You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/monaco-editor.0aa64468.asyn...

231 lines
2.3 MiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{"+3Gp":function(Lt,N,e){"use strict";e.d(N,"a",function(){return z}),e.d(N,"b",function(){return D});var T=e("MNsG"),le=e("Yr1X"),$=function(){var W=function(x,h){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var f in w)w.hasOwnProperty(f)&&(y[f]=w[f])},W(x,h)};return function(x,h){W(x,h);function y(){this.constructor=x}x.prototype=h===null?Object.create(h):(y.prototype=h.prototype,new y)}}(),R=T.e?1.5:1.35,B=8,z=function(){function W(x){this.zoomLevel=x.zoomLevel,this.fontFamily=String(x.fontFamily),this.fontWeight=String(x.fontWeight),this.fontSize=x.fontSize,this.fontFeatureSettings=x.fontFeatureSettings,this.lineHeight=x.lineHeight|0,this.letterSpacing=x.letterSpacing}return W.createFromValidatedSettings=function(x,h,y){var w=x.get(33),f=x.get(37),v=x.get(36),C=x.get(35),g=x.get(49),u=x.get(46);return W._create(w,f,v,C,g,u,h,y)},W._create=function(x,h,y,w,f,v,C,g){f===0?f=Math.round(R*y):f<B&&(f=B);var u=1+(g?0:le.a.getZoomLevel()*.1);return y*=u,f*=u,new W({zoomLevel:C,fontFamily:x,fontWeight:h,fontSize:y,fontFeatureSettings:w,lineHeight:f,letterSpacing:v})},W.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing},W.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},W}(),D=function(W){$(x,W);function x(h,y){var w=W.call(this,h)||this;return w.isTrusted=y,w.isMonospace=h.isMonospace,w.typicalHalfwidthCharacterWidth=h.typicalHalfwidthCharacterWidth,w.typicalFullwidthCharacterWidth=h.typicalFullwidthCharacterWidth,w.canUseHalfwidthRightwardsArrow=h.canUseHalfwidthRightwardsArrow,w.spaceWidth=h.spaceWidth,w.middotWidth=h.middotWidth,w.maxDigitWidth=h.maxDigitWidth,w}return x.prototype.equals=function(h){return this.fontFamily===h.fontFamily&&this.fontWeight===h.fontWeight&&this.fontSize===h.fontSize&&this.fontFeatureSettings===h.fontFeatureSettings&&this.lineHeight===h.lineHeight&&this.letterSpacing===h.letterSpacing&&this.typicalHalfwidthCharacterWidth===h.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===h.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===h.canUseHalfwidthRightwardsArrow&&this.spaceWidth===h.spaceWidth&&this.middotWidth===h.middotWidth&&this.maxDigitWidth===h.maxDigitWidth},x}(z)},"+7oY":function(Lt,N,e){"use strict";e.d(N,"a",function(){return R}),e.d(N,"i",function(){return B}),e.d(N,"b",function(){return z}),e.d(N,"h",function(){return D}),e.d(N,"d",function(){return x}),e.d(N,"c",function(){return h}),e.d(N,"e",function(){return y}),e.d(N,"g",function(){return w}),e.d(N,"f",function(){return f});var T=e("ic2d"),le=e("Cg/j"),$=e("CRAX"),R=Object(le.c)("configurationService");function B(v,C){var g=Object.create(null);for(var u in v)z(g,u,v[u],C);return g}function z(v,C,g,u){for(var s=C.split("."),l=s.pop(),c=v,p=0;p<s.length;p++){var _=s[p],L=c[_];switch(typeof L){case"undefined":L=c[_]=Object.create(null);break;case"object":break;default:u("Ignoring "+C+" as "+s.slice(0,p+1).join(".")+" is "+JSON.stringify(L));return}c=L}typeof c=="object"?c[l]=g:u("Ignoring "+C+" as "+s.join(".")+" is "+JSON.stringify(c))}function D(v,C){var g=C.split(".");W(v,g)}function W(v,C){var g=C.shift();if(C.length===0){delete v[g];return}if(Object.keys(v).indexOf(g)!==-1){var u=v[g];typeof u=="object"&&!Array.isArray(u)&&(W(u,C),Object.keys(u).length===0&&delete v[g])}}function x(v,C,g){function u(c,p){for(var _=c,L=0,I=p;L<I.length;L++){var P=I[L];if(typeof _!="object"||_===null)return;_=_[P]}return _}var s=C.split("."),l=u(v,s);return typeof l=="undefined"?g:l}function h(){var v=T.a.as($.a.Configuration).getConfigurationProperties();return Object.keys(v)}function y(){var v=Object.create(null),C=T.a.as($.a.Configuration).getConfigurationProperties();for(var g in C){var u=C[g].default;z(v,g,u,function(s){return console.error("Conflict in default settings: "+s)})}return v}function w(v){return v.substring(1,v.length-1)}function f(v,C,g){var u=v.inspect(C),s=v.inspect(g);return typeof u.userValue!="undefined"||typeof u.workspaceValue!="undefined"||typeof u.workspaceFolderValue!="undefined"?u.value:typeof s.userValue!="undefined"||typeof s.workspaceValue!="undefined"||typeof s.workspaceFolderValue!="undefined"?s.value:u.defaultValue}},"+Fos":function(Lt,N,e){"use strict";e.d(N,"a",function(){return z});var T=e("Ll0s"),le=e("cGHE"),$=e("aokT"),R=e("N0LK"),B=function(){function D(W,x,h){this.lineNumber=W,this.column=x,this.leftoverVisibleColumns=h}return D}(),z=function(){function D(){}return D.leftPosition=function(W,x,h){return h>W.getLineMinColumn(x)?h=h-R.G(W.getLineContent(x),h-1):x>1&&(x=x-1,h=W.getLineMaxColumn(x)),new le.a(x,h)},D.left=function(W,x,h,y){var w=D.leftPosition(x,h,y);return new B(w.lineNumber,w.column,0)},D.moveLeft=function(W,x,h,y,w){var f,v;if(h.hasSelection()&&!y)f=h.selection.startLineNumber,v=h.selection.startColumn;else{var C=D.left(W,x,h.position.lineNumber,h.position.column-(w-1));f=C.lineNumber,v=C.column}return h.move(y,f,v,0)},D.rightPosition=function(W,x,h){return h<W.getLineMaxColumn(x)?h=h+R.E(W.getLineContent(x),h-1):x<W.getLineCount()&&(x=x+1,h=W.getLineMinColumn(x)),new le.a(x,h)},D.right=function(W,x,h,y){var w=D.rightPosition(x,h,y);return new B(w.lineNumber,w.column,0)},D.moveRight=function(W,x,h,y,w){var f,v;if(h.hasSelection()&&!y)f=h.selection.endLineNumber,v=h.selection.endColumn;else{var C=D.right(W,x,h.position.lineNumber,h.position.column+(w-1));f=C.lineNumber,v=C.column}return h.move(y,f,v,0)},D.down=function(W,x,h,y,w,f,v){var C=T.a.visibleColumnFromColumn(x.getLineContent(h),y,W.tabSize)+w;h=h+f;var g=x.getLineCount();return h>g?(h=g,v?y=x.getLineMaxColumn(h):y=Math.min(x.getLineMaxColumn(h),y)):y=T.a.columnFromVisibleColumn2(W,x,h,C),w=C-T.a.visibleColumnFromColumn(x.getLineContent(h),y,W.tabSize),new B(h,y,w)},D.moveDown=function(W,x,h,y,w){var f,v;h.hasSelection()&&!y?(f=h.selection.endLineNumber,v=h.selection.endColumn):(f=h.position.lineNumber,v=h.position.column);var C=D.down(W,x,f,v,h.leftoverVisibleColumns,w,!0);return h.move(y,C.lineNumber,C.column,C.leftoverVisibleColumns)},D.translateDown=function(W,x,h){var y=h.selection,w=D.down(W,x,y.selectionStartLineNumber,y.selectionStartColumn,h.selectionStartLeftoverVisibleColumns,1,!1),f=D.down(W,x,y.positionLineNumber,y.positionColumn,h.leftoverVisibleColumns,1,!1);return new T.f(new $.a(w.lineNumber,w.column,w.lineNumber,w.column),w.leftoverVisibleColumns,new le.a(f.lineNumber,f.column),f.leftoverVisibleColumns)},D.up=function(W,x,h,y,w,f,v){var C=T.a.visibleColumnFromColumn(x.getLineContent(h),y,W.tabSize)+w;return h=h-f,h<1?(h=1,v?y=x.getLineMinColumn(h):y=Math.min(x.getLineMaxColumn(h),y)):y=T.a.columnFromVisibleColumn2(W,x,h,C),w=C-T.a.visibleColumnFromColumn(x.getLineContent(h),y,W.tabSize),new B(h,y,w)},D.moveUp=function(W,x,h,y,w){var f,v;h.hasSelection()&&!y?(f=h.selection.startLineNumber,v=h.selection.startColumn):(f=h.position.lineNumber,v=h.position.column);var C=D.up(W,x,f,v,h.leftoverVisibleColumns,w,!0);return h.move(y,C.lineNumber,C.column,C.leftoverVisibleColumns)},D.translateUp=function(W,x,h){var y=h.selection,w=D.up(W,x,y.selectionStartLineNumber,y.selectionStartColumn,h.selectionStartLeftoverVisibleColumns,1,!1),f=D.up(W,x,y.positionLineNumber,y.positionColumn,h.leftoverVisibleColumns,1,!1);return new T.f(new $.a(w.lineNumber,w.column,w.lineNumber,w.column),w.leftoverVisibleColumns,new le.a(f.lineNumber,f.column),f.leftoverVisibleColumns)},D.moveToBeginningOfLine=function(W,x,h,y){var w=h.position.lineNumber,f=x.getLineMinColumn(w),v=x.getLineFirstNonWhitespaceColumn(w)||f,C,g=h.position.column;return g===v?C=f:C=v,h.move(y,w,C,0)},D.moveToEndOfLine=function(W,x,h,y){var w=h.position.lineNumber,f=x.getLineMaxColumn(w);return h.move(y,w,f,0)},D.moveToBeginningOfBuffer=function(W,x,h,y){return h.move(y,1,1,0)},D.moveToEndOfBuffer=function(W,x,h,y){var w=x.getLineCount(),f=x.getLineMaxColumn(w);return h.move(y,w,f,0)},D}()},"+a1H":function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return e.e(305).then(e.bind(null,"O3xE"))}})},"+hIS":function(Lt,N,e){"use strict";e.d(N,"a",function(){return z});var T=typeof monaco=="undefined"?self.monaco:monaco,le={},$={},R=function(){function D(W){var x=this;this._languageId=W,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(h,y){x._lazyLoadPromiseResolve=h,x._lazyLoadPromiseReject=y})}return D.getOrCreate=function(W){return $[W]||($[W]=new D(W)),$[W]},D.prototype.whenLoaded=function(){return this._lazyLoadPromise},D.prototype.load=function(){var W=this;return this._loadingTriggered||(this._loadingTriggered=!0,le[this._languageId].loader().then(function(x){return W._lazyLoadPromiseResolve(x)},function(x){return W._lazyLoadPromiseReject(x)})),this._lazyLoadPromise},D}();function B(D){return R.getOrCreate(D).load()}function z(D){var W=D.id;le[W]=D,T.languages.register(D);var x=R.getOrCreate(W);T.languages.setMonarchTokensProvider(W,x.whenLoaded().then(function(h){return h.language})),T.languages.onLanguage(W,function(){x.load().then(function(h){T.languages.setLanguageConfiguration(W,h.conf)})})}},"/RFl":function(Lt,N,e){"use strict";e.r(N),e.d(N,"DragAndDropController",function(){return w});var T=e("OhnE"),le=e("pmY6"),$=e("MNsG"),R=e("sswD"),B=e("cGHE"),z=e("aokT"),D=e("gCVg"),W=function(){function f(v,C,g){this.selection=v,this.targetPosition=C,this.copy=g,this.targetSelection=null}return f.prototype.getEditOperations=function(v,C){var g=v.getValueInRange(this.selection);if(this.copy||C.addEditOperation(this.selection,null),C.addEditOperation(new z.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),g),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new D.a(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new D.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber<this.selection.endLineNumber){this.targetSelection=new D.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new D.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column-this.selection.endColumn+this.selection.startColumn:this.targetPosition.column-this.selection.endColumn+this.selection.startColumn,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new D.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn)},f.prototype.computeCursorState=function(v,C){return this.targetSelection},f}(),x=e("tX9W"),h=function(){var f=function(v,C){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,u){g.__proto__=u}||function(g,u){for(var s in u)u.hasOwnProperty(s)&&(g[s]=u[s])},f(v,C)};return function(v,C){f(v,C);function g(){this.constructor=v}v.prototype=C===null?Object.create(C):(g.prototype=C.prototype,new g)}}();function y(f){return $.e?f.altKey:f.ctrlKey}var w=function(f){h(v,f);function v(C){var g=f.call(this)||this;return g._editor=C,g._register(g._editor.onMouseDown(function(u){return g._onEditorMouseDown(u)})),g._register(g._editor.onMouseUp(function(u){return g._onEditorMouseUp(u)})),g._register(g._editor.onMouseDrag(function(u){return g._onEditorMouseDrag(u)})),g._register(g._editor.onMouseDrop(function(u){return g._onEditorMouseDrop(u)})),g._register(g._editor.onKeyDown(function(u){return g.onEditorKeyDown(u)})),g._register(g._editor.onKeyUp(function(u){return g.onEditorKeyUp(u)})),g._register(g._editor.onDidBlurEditorWidget(function(){return g.onEditorBlur()})),g._dndDecorationIds=[],g._mouseDown=!1,g._modifierPressed=!1,g._dragSelection=null,g}return v.prototype.onEditorBlur=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1},v.prototype.onEditorKeyDown=function(C){if(!this._editor.getOption(24))return;y(C)&&(this._modifierPressed=!0),this._mouseDown&&y(C)&&this._editor.updateOptions({mouseStyle:"copy"})},v.prototype.onEditorKeyUp=function(C){if(!this._editor.getOption(24))return;y(C)&&(this._modifierPressed=!1),this._mouseDown&&C.keyCode===v.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"})},v.prototype._onEditorMouseDown=function(C){this._mouseDown=!0},v.prototype._onEditorMouseUp=function(C){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})},v.prototype._onEditorMouseDrag=function(C){var g=C.target;if(this._dragSelection===null){var u=this._editor.getSelections()||[],s=u.filter(function(l){return g.position&&l.containsPosition(g.position)});if(s.length===1)this._dragSelection=s[0];else return}y(C.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),g.position&&(this._dragSelection.containsPosition(g.position)?this._removeDecoration():this.showAt(g.position))},v.prototype._onEditorMouseDrop=function(C){if(C.target&&(this._hitContent(C.target)||this._hitMargin(C.target))&&C.target.position){var g=new B.a(C.target.position.lineNumber,C.target.position.column);if(this._dragSelection===null){var u=null;if(C.event.shiftKey){var s=this._editor.getSelection();if(s){var l=s.selectionStartLineNumber,c=s.selectionStartColumn;u=[new D.a(l,c,g.lineNumber,g.column)]}}else u=(this._editor.getSelections()||[]).map(function(p){return p.containsPosition(g)?new D.a(g.lineNumber,g.column,g.lineNumber,g.column):p});this._editor.setSelections(u||[],"mouse")}else(!this._dragSelection.containsPosition(g)||(y(C.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(g)||this._dragSelection.getStartPosition().equals(g)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(v.ID,new W(this._dragSelection,g,y(C.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1},v.prototype.showAt=function(C){var g=[{range:new z.a(C.lineNumber,C.column,C.lineNumber,C.column),options:v._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,g),this._editor.revealPosition(C,1)},v.prototype._removeDecoration=function(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])},v.prototype._hitContent=function(C){return C.type===6||C.type===7},v.prototype._hitMargin=function(C){return C.type===2||C.type===3||C.type===4},v.prototype.dispose=function(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,f.prototype.dispose.call(this)},v.ID="editor.contrib.dragAndDrop",v.TRIGGER_KEY_VALUE=$.e?6:5,v._DECORATION_OPTIONS=x.a.register({className:"dnd-target"}),v}(le.a);Object(R.h)(w.ID,w)},"/UlZ":function(Lt,N,e){"use strict";e.d(N,"f",function(){return z}),e.d(N,"a",function(){return D}),e.d(N,"h",function(){return W}),e.d(N,"g",function(){return _}),e.d(N,"d",function(){return Q}),e.d(N,"j",function(){return q}),e.d(N,"b",function(){return he}),e.d(N,"c",function(){return J}),e.d(N,"i",function(){return b}),e.d(N,"e",function(){return re});var T=e("3/fG"),le=e("MNsG"),$=e("0JNc"),R=function(){var ne=function(fe,Oe){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,Ue){Me.__proto__=Ue}||function(Me,Ue){for(var Je in Ue)Ue.hasOwnProperty(Je)&&(Me[Je]=Ue[Je])},ne(fe,Oe)};return function(fe,Oe){ne(fe,Oe);function Me(){this.constructor=fe}fe.prototype=Oe===null?Object.create(Oe):(Me.prototype=Oe.prototype,new Me)}}(),B=function(){return B=Object.assign||function(ne){for(var fe,Oe=1,Me=arguments.length;Oe<Me;Oe++){fe=arguments[Oe];for(var Ue in fe)Object.prototype.hasOwnProperty.call(fe,Ue)&&(ne[Ue]=fe[Ue])}return ne},B.apply(this,arguments)},z=8,D=function(){function ne(fe){this._values=fe}return ne.prototype.hasChanged=function(fe){return this._values[fe]},ne}(),W=function(){function ne(){this._values=[]}return ne.prototype._read=function(fe){return this._values[fe]},ne.prototype.get=function(fe){return this._values[fe]},ne.prototype._write=function(fe,Oe){this._values[fe]=Oe},ne}(),x=function(){function ne(fe,Oe,Me,Ue){this.id=fe,this.name=Oe,this.defaultValue=Me,this.schema=Ue}return ne.prototype.compute=function(fe,Oe,Me){return Me},ne}(),h=function(){function ne(fe,Oe){Oe===void 0&&(Oe=null),this.schema=void 0,this.id=fe,this.name="_never_",this.defaultValue=void 0,this.deps=Oe}return ne.prototype.validate=function(fe){return this.defaultValue},ne}(),y=function(){function ne(fe,Oe,Me,Ue){this.id=fe,this.name=Oe,this.defaultValue=Me,this.schema=Ue}return ne.prototype.validate=function(fe){return typeof fe=="undefined"?this.defaultValue:fe},ne.prototype.compute=function(fe,Oe,Me){return Me},ne}(),w=function(ne){R(fe,ne);function fe(Oe,Me,Ue,Je){Je===void 0&&(Je=void 0);var nt=this;return typeof Je!="undefined"&&(Je.type="boolean",Je.default=Ue),nt=ne.call(this,Oe,Me,Ue,Je)||this,nt}return fe.boolean=function(Oe,Me){return typeof Oe=="undefined"?Me:Oe==="false"?!1:Boolean(Oe)},fe.prototype.validate=function(Oe){return fe.boolean(Oe,this.defaultValue)},fe}(y),f=function(ne){R(fe,ne);function fe(Oe,Me,Ue,Je,nt,vt){vt===void 0&&(vt=void 0);var Rt=this;return typeof vt!="undefined"&&(vt.type="integer",vt.default=Ue,vt.minimum=Je,vt.maximum=nt),Rt=ne.call(this,Oe,Me,Ue,vt)||this,Rt.minimum=Je,Rt.maximum=nt,Rt}return fe.clampedInt=function(Oe,Me,Ue,Je){var nt;return typeof Oe=="undefined"?nt=Me:(nt=parseInt(Oe,10),isNaN(nt)&&(nt=Me)),nt=Math.max(Ue,nt),nt=Math.min(Je,nt),nt|0},fe.prototype.validate=function(Oe){return fe.clampedInt(Oe,this.defaultValue,this.minimum,this.maximum)},fe}(y),v=function(ne){R(fe,ne);function fe(Oe,Me,Ue,Je,nt){var vt=this;return typeof nt!="undefined"&&(nt.type="number",nt.default=Ue),vt=ne.call(this,Oe,Me,Ue,nt)||this,vt.validationFn=Je,vt}return fe.clamp=function(Oe,Me,Ue){return Oe<Me?Me:Oe>Ue?Ue:Oe},fe.float=function(Oe,Me){if(typeof Oe=="number")return Oe;if(typeof Oe=="undefined")return Me;var Ue=parseFloat(Oe);return isNaN(Ue)?Me:Ue},fe.prototype.validate=function(Oe){return this.validationFn(fe.float(Oe,this.defaultValue))},fe}(y),C=function(ne){R(fe,ne);function fe(Oe,Me,Ue,Je){Je===void 0&&(Je=void 0);var nt=this;return typeof Je!="undefined"&&(Je.type="string",Je.default=Ue),nt=ne.call(this,Oe,Me,Ue,Je)||this,nt}return fe.string=function(Oe,Me){return typeof Oe!="string"?Me:Oe},fe.prototype.validate=function(Oe){return fe.string(Oe,this.defaultValue)},fe}(y),g=function(ne){R(fe,ne);function fe(Oe,Me,Ue,Je,nt){nt===void 0&&(nt=void 0);var vt=this;return typeof nt!="undefined"&&(nt.type="string",nt.enum=Je,nt.default=Ue),vt=ne.call(this,Oe,Me,Ue,nt)||this,vt._allowedValues=Je,vt}return fe.stringSet=function(Oe,Me,Ue){return typeof Oe!="string"||Ue.indexOf(Oe)===-1?Me:Oe},fe.prototype.validate=function(Oe){return fe.stringSet(Oe,this.defaultValue,this._allowedValues)},fe}(y),u=function(ne){R(fe,ne);function fe(Oe,Me,Ue,Je,nt,vt,Rt){Rt===void 0&&(Rt=void 0);var Dt=this;return typeof Rt!="undefined"&&(Rt.type="string",Rt.enum=nt,Rt.default=Je),Dt=ne.call(this,Oe,Me,Ue,Rt)||this,Dt._allowedValues=nt,Dt._convert=vt,Dt}return fe.prototype.validate=function(Oe){return typeof Oe!="string"?this.defaultValue:this._allowedValues.indexOf(Oe)===-1?this.defaultValue:this._convert(Oe)},fe}(x);function s(ne){switch(ne){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var l=function(ne){R(fe,ne);function fe(){return ne.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[T.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),T.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),T.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:T.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return fe.prototype.validate=function(Oe){switch(Oe){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},fe.prototype.compute=function(Oe,Me,Ue){return Ue===0?Oe.accessibilitySupport:Ue},fe}(x),c=function(ne){R(fe,ne);function fe(){var Oe=this,Me={insertSpace:!0};return Oe=ne.call(this,13,"comments",Me,{"editor.comments.insertSpace":{type:"boolean",default:Me.insertSpace,description:T.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this,Oe}return fe.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var Me=Oe;return{insertSpace:w.boolean(Me.insertSpace,this.defaultValue.insertSpace)}},fe}(x);function p(ne){switch(ne){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var _;(function(ne){ne[ne.Line=1]="Line",ne[ne.Block=2]="Block",ne[ne.Underline=3]="Underline",ne[ne.LineThin=4]="LineThin",ne[ne.BlockOutline=5]="BlockOutline",ne[ne.UnderlineThin=6]="UnderlineThin"})(_||(_={}));function L(ne){switch(ne){case"line":return _.Line;case"block":return _.Block;case"underline":return _.Underline;case"line-thin":return _.LineThin;case"block-outline":return _.BlockOutline;case"underline-thin":return _.UnderlineThin}}var I=function(ne){R(fe,ne);function fe(){return ne.call(this,104,[55,26])||this}return fe.prototype.compute=function(Oe,Me,Ue){var Je="monaco-editor";return Me.get(26)&&(Je+=" "+Me.get(26)),Oe.extraEditorClassName&&(Je+=" "+Oe.extraEditorClassName),Me.get(55)==="default"?Je+=" mouse-default":Me.get(55)==="copy"&&(Je+=" mouse-copy"),Me.get(85)&&(Je+=" showUnused"),Je},fe}(h),P=function(ne){R(fe,ne);function fe(){return ne.call(this,25,"emptySelectionClipboard",!0,{description:T.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return fe.prototype.compute=function(Oe,Me,Ue){return Ue&&Oe.emptySelectionClipboard},fe}(w),A=function(ne){R(fe,ne);function fe(){var Oe=this,Me={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return Oe=ne.call(this,28,"find",Me,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:Me.seedSearchStringFromSelection,description:T.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:Me.autoFindInSelection,enumDescriptions:[T.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),T.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),T.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:T.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:Me.globalFindClipboard,description:T.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:le.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:Me.addExtraSpaceOnTop,description:T.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,Oe}return fe.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var Me=Oe;return{seedSearchStringFromSelection:w.boolean(Me.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:typeof Oe.autoFindInSelection=="boolean"?Oe.autoFindInSelection?"always":"never":g.stringSet(Me.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:w.boolean(Me.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:w.boolean(Me.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},fe}(x),Q=function(ne){R(fe,ne);function fe(){return ne.call(this,35,"fontLigatures",fe.OFF,{anyOf:[{type:"boolean",description:T.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:T.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:T.a("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return fe.prototype.validate=function(Oe){return typeof Oe=="undefined"?this.defaultValue:typeof Oe=="string"?Oe==="false"?fe.OFF:Oe==="true"?fe.ON:Oe:Boolean(Oe)?fe.ON:fe.OFF},fe.OFF='"liga" off, "calt" off',fe.ON='"liga" on, "calt" on',fe}(x),K=function(ne){R(fe,ne);function fe(){return ne.call(this,34)||this}return fe.prototype.compute=function(Oe,Me,Ue){return Oe.fontInfo},fe}(h),H=function(ne){R(fe,ne);function fe(){return ne.call(this,36,"fontSize",he.fontSize,{type:"number",minimum:6,maximum:100,default:he.fontSize,description:T.a("fontSize","Controls the font size in pixels.")})||this}return fe.prototype.validate=function(Oe){var Me=v.float(Oe,this.defaultValue);return Me===0?he.fontSize:v.clamp(Me,6,100)},fe.prototype.compute=function(Oe,Me,Ue){return Oe.fontInfo.fontSize},fe}(y),V=function(ne){R(fe,ne);function fe(){var Oe=this,Me={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:""},Ue={type:"string",enum:["peek","gotoAndPeek","goto"],default:Me.multiple,enumDescriptions:[T.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),T.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),T.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return Oe=ne.call(this,41,"gotoLocation",Me,{"editor.gotoLocation.multiple":{deprecationMessage:T.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":B({description:T.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},Ue),"editor.gotoLocation.multipleTypeDefinitions":B({description:T.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},Ue),"editor.gotoLocation.multipleDeclarations":B({description:T.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},Ue),"editor.gotoLocation.multipleImplementations":B({description:T.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},Ue),"editor.gotoLocation.multipleReferences":B({description:T.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},Ue),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:Me.alternativeDefinitionCommand,description:T.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:Me.alternativeTypeDefinitionCommand,description:T.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:Me.alternativeDeclarationCommand,description:T.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:Me.alternativeImplementationCommand,description:T.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:Me.alternativeReferenceCommand,description:T.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,Oe}return fe.prototype.validate=function(Oe){var Me,Ue,Je,nt,vt;if(typeof Oe!="object")return this.defaultValue;var Rt=Oe;return{multiple:g.stringSet(Rt.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(Me=Rt.multipleDefinitions)!==null&&Me!==void 0?Me:g.stringSet(Rt.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(Ue=Rt.multipleTypeDefinitions)!==null&&Ue!==void 0?Ue:g.stringSet(Rt.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(Je=Rt.multipleDeclarations)!==null&&Je!==void 0?Je:g.stringSet(Rt.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(nt=Rt.multipleImplementations)!==null&&nt!==void 0?nt:g.stringSet(Rt.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(vt=Rt.multipleReferences)!==null&&vt!==void 0?vt:g.stringSet(Rt.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:C.string(Rt.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:C.string(Rt.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:C.string(Rt.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:C.string(Rt.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:C.string(Rt.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},fe}(x),de=function(ne){R(fe,ne);function fe(){var Oe=this,Me={enabled:!0,delay:300,sticky:!0};return Oe=ne.call(this,44,"hover",Me,{"editor.hover.enabled":{type:"boolean",default:Me.enabled,description:T.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:Me.delay,description:T.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:Me.sticky,description:T.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,Oe}return fe.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var Me=Oe;return{enabled:w.boolean(Me.enabled,this.defaultValue.enabled),delay:f.clampedInt(Me.delay,this.defaultValue.delay,0,1e4),sticky:w.boolean(Me.sticky,this.defaultValue.sticky)}},fe}(x),_e=function(ne){R(fe,ne);function fe(){return ne.call(this,107,[40,48,30,54,78,50])||this}return fe.prototype.compute=function(Oe,Me,Ue){return fe.computeLayout(Me,{outerWidth:Oe.outerWidth,outerHeight:Oe.outerHeight,lineHeight:Oe.fontInfo.lineHeight,lineNumbersDigitCount:Oe.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:Oe.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:Oe.fontInfo.maxDigitWidth,pixelRatio:Oe.pixelRatio})},fe.computeLayout=function(Oe,Me){var Ue=Me.outerWidth|0,Je=Me.outerHeight|0,nt=Me.lineHeight|0,vt=Me.lineNumbersDigitCount|0,Rt=Me.typicalHalfwidthCharacterWidth,Dt=Me.maxDigitWidth,Kt=Me.pixelRatio,ao=Oe.get(40),lo=Oe.get(50).renderType!==0,so=Oe.get(51)|0,jt=Oe.get(54),pt=jt.enabled,gt=jt.side,Tt=jt.renderCharacters,it=Kt>=2?Math.round(jt.scale*2):jt.scale,et=jt.maxColumn|0,ut=Oe.get(78),Ct=ut.verticalScrollbarSize|0,ht=ut.verticalHasArrows,Et=ut.arrowSize|0,Yt=ut.horizontalScrollbarSize|0,Nt=Oe.get(48),bt=Oe.get(30),$e;if(typeof Nt=="string"&&/^\d+(\.\d+)?ch$/.test(Nt)){var Ye=parseFloat(Nt.substr(0,Nt.length-2));$e=f.clampedInt(Ye*Rt,0,0,1e3)}else $e=f.clampedInt(Nt,0,0,1e3);bt&&($e+=16);var ze=0;if(lo){var Ke=Math.max(vt,so);ze=Math.round(Ke*Dt)}var ge=0;ao&&(ge=nt);var G=0,oe=G+ge,Y=oe+ze,ae=Y+$e,Fe=Ue-ge-ze-$e,dt,Ot,Qt,to;if(!pt)Ot=0,Qt=0,dt=0,to=Fe;else{var fo=it/Kt;dt=Tt?1:2,Qt=Math.max(0,Math.floor((Fe-Ct-2)*fo/(Rt+fo)))+z;var ho=Qt/fo;ho>et&&(Qt=Math.floor(et*fo)),to=Fe-Qt,gt==="left"?(Ot=0,G+=Qt,oe+=Qt,Y+=Qt,ae+=Qt):Ot=Ue-Qt-Ct}var _o=Math.max(1,Math.floor((to-Ct-2)/Rt)),Do=ht?Et:0;return{width:Ue,height:Je,glyphMarginLeft:G,glyphMarginWidth:ge,lineNumbersLeft:oe,lineNumbersWidth:ze,decorationsLeft:Y,decorationsWidth:$e,contentLeft:ae,contentWidth:to,renderMinimap:dt,minimapLeft:Ot,minimapWidth:Qt,viewportColumn:_o,verticalScrollbarWidth:Ct,horizontalScrollbarHeight:Yt,overviewRuler:{top:Do,width:Ct,height:Je-2*Do,right:0}}},fe}(h),Se=function(ne){R(fe,ne);function fe(){var Oe=this,Me={enabled:!0};return Oe=ne.call(this,47,"lightbulb",Me,{"editor.lightbulb.enabled":{type:"boolean",default:Me.enabled,description:T.a("codeActions","Enables the code action lightbulb in the editor.")}})||this,Oe}return fe.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var Me=Oe;return{enabled:w.boolean(Me.enabled,this.defaultValue.enabled)}},fe}(x),Ie=function(ne){R(fe,ne);function fe(){return ne.call(this,49,"lineHeight",he.lineHeight,0,150,{description:T.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return fe.prototype.compute=function(Oe,Me,Ue){return Oe.fontInfo.lineHeight},fe}(f),Pe=function(ne){R(fe,ne);function fe(){var Oe=this,Me={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return Oe=ne.call(this,54,"minimap",Me,{"editor.minimap.enabled":{type:"boolean",default:Me.enabled,description:T.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:Me.side,description:T.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:Me.showSlider,description:T.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:Me.scale,minimum:1,maximum:3,description:T.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:Me.renderCharacters,description:T.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:Me.maxColumn,description:T.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,Oe}return fe.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var Me=Oe;return{enabled:w.boolean(Me.enabled,this.defaultValue.enabled),side:g.stringSet(Me.side,this.defaultValue.side,["right","left"]),showSlider:g.stringSet(Me.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:w.boolean(Me.renderCharacters,this.defaultValue.renderCharacters),scale:f.clampedInt(Me.scale,1,1,3),maxColumn:f.clampedInt(Me.maxColumn,this.defaultValue.maxColumn,1,1e4)}},fe}(x);function Ve(ne){return ne==="ctrlCmd"?le.e?"metaKey":"ctrlKey":"altKey"}var ke=function(ne){R(fe,ne);function fe(){var Oe=this,Me={enabled:!0,cycle:!1};return Oe=ne.call(this,64,"parameterHints",Me,{"editor.parameterHints.enabled":{type:"boolean",default:Me.enabled,description:T.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:Me.cycle,description:T.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,Oe}return fe.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var Me=Oe;return{enabled:w.boolean(Me.enabled,this.defaultValue.enabled),cycle:w.boolean(Me.cycle,this.defaultValue.cycle)}},fe}(x),se=function(ne){R(fe,ne);function fe(){return ne.call(this,105)||this}return fe.prototype.compute=function(Oe,Me,Ue){return Oe.pixelRatio},fe}(h),ee=function(ne){R(fe,ne);function fe(){var Oe=this,Me={other:!0,comments:!1,strings:!1};return Oe=ne.call(this,66,"quickSuggestions",Me,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:Me.strings,description:T.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:Me.comments,description:T.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:Me.other,description:T.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:Me,description:T.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,Oe.defaultValue=Me,Oe}return fe.prototype.validate=function(Oe){if(typeof Oe=="boolean")return Oe;if(typeof Oe=="object"){var Me=Oe,Ue={other:w.boolean(Me.other,this.defaultValue.other),comments:w.boolean(Me.comments,this.defaultValue.comments),strings:w.boolean(Me.strings,this.defaultValue.strings)};return Ue.other&&Ue.comments&&Ue.strings?!0:!Ue.other&&!Ue.comments&&!Ue.strings?!1:Ue}return this.defaultValue},fe}(x),ie=function(ne){R(fe,ne);function fe(){return ne.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[T.a("lineNumbers.off","Line numbers are not rendered."),T.a("lineNumbers.on","Line numbers are rendered as absolute number."),T.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),T.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:T.a("lineNumbers","Controls the display of line numbers.")})||this}return fe.prototype.validate=function(Oe){var Me=this.defaultValue.renderType,Ue=this.defaultValue.renderFn;return typeof Oe!="undefined"&&(typeof Oe=="function"?(Me=4,Ue=Oe):Oe==="interval"?Me=3:Oe==="relative"?Me=2:Oe==="on"?Me=1:Me=0),{renderType:Me,renderFn:Ue}},fe}(x);function q(ne){var fe=ne.get(73);return fe==="editable"?ne.get(68):!(fe==="on")}var ce=function(ne){R(fe,ne);function fe(){var Oe=this,Me=[];return Oe=ne.call(this,77,"rulers",Me,{type:"array",items:{type:"number"},default:Me,description:T.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,Oe}return fe.prototype.validate=function(Oe){if(Array.isArray(Oe)){for(var Me=[],Ue=0,Je=Oe;Ue<Je.length;Ue++){var nt=Je[Ue];Me.push(f.clampedInt(nt,0,0,1e4))}return Me.sort(function(vt,Rt){return vt-Rt}),Me}return this.defaultValue},fe}(y);function Z(ne,fe){if(typeof ne!="string")return fe;switch(ne){case"hidden":return 2;case"visible":return 3;default:return 1}}var ye=function(ne){R(fe,ne);function fe(){return ne.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 fe.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var Me=Oe,Ue=f.clampedInt(Me.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),Je=f.clampedInt(Me.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:f.clampedInt(Me.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Z(Me.vertical,this.defaultValue.vertical),horizontal:Z(Me.horizontal,this.defaultValue.horizontal),useShadows:w.boolean(Me.useShadows,this.defaultValue.useShadows),verticalHasArrows:w.boolean(Me.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:w.boolean(Me.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:w.boolean(Me.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:w.boolean(Me.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:Ue,horizontalSliderSize:f.clampedInt(Me.horizontalSliderSize,Ue,0,1e3),verticalScrollbarSize:Je,verticalSliderSize:f.clampedInt(Me.verticalSliderSize,Je,0,1e3)}},fe}(x),je=function(ne){R(fe,ne);function fe(){var Oe=this,Me={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 Oe=ne.call(this,89,"suggest",Me,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[T.a("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),T.a("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:Me.insertMode,description:T.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:Me.insertHighlight,description:T.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:Me.filterGraceful,description:T.a("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:Me.localityBonus,description:T.a("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:Me.shareSuggestSelections,markdownDescription:T.a("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:Me.snippetsPreventQuickSuggestions,description:T.a("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:Me.showIcons,description:T.a("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:Me.maxVisibleSuggestions,minimum:1,maximum:15,description:T.a("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:T.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:T.a("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.hideStatusBar":{type:"boolean",default:!0,markdownDescription:T.a("editor.suggest.hideStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")}})||this,Oe}return fe.prototype.validate=function(Oe){if(typeof Oe!="object")return this.defaultValue;var Me=Oe;return{insertMode:g.stringSet(Me.insertMode,this.defaultValue.insertMode,["insert","replace"]),insertHighlight:w.boolean(Me.insertHighlight,this.defaultValue.insertHighlight),filterGraceful:w.boolean(Me.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:w.boolean(Me.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:w.boolean(Me.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:w.boolean(Me.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:w.boolean(Me.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:f.clampedInt(Me.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:w.boolean(Me.showMethods,this.defaultValue.showMethods),showFunctions:w.boolean(Me.showFunctions,this.defaultValue.showFunctions),showConstructors:w.boolean(Me.showConstructors,this.defaultValue.showConstructors),showFields:w.boolean(Me.showFields,this.defaultValue.showFields),showVariables:w.boolean(Me.showVariables,this.defaultValue.showVariables),showClasses:w.boolean(Me.showClasses,this.defaultValue.showClasses),showStructs:w.boolean(Me.showStructs,this.defaultValue.showStructs),showInterfaces:w.boolean(Me.showInterfaces,this.defaultValue.showInterfaces),showModules:w.boolean(Me.showModules,this.defaultValue.showModules),showProperties:w.boolean(Me.showProperties,this.defaultValue.showProperties),showEvents:w.boolean(Me.showEvents,this.defaultValue.showEvents),showOperators:w.boolean(Me.showOperators,this.defaultValue.showOperators),showUnits:w.boolean(Me.showUnits,this.defaultValue.showUnits),showValues:w.boolean(Me.showValues,this.defaultValue.showValues),showConstants:w.boolean(Me.showConstants,this.defaultValue.showConstants),showEnums:w.boolean(Me.showEnums,this.defaultValue.showEnums),showEnumMembers:w.boolean(Me.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:w.boolean(Me.showKeywords,this.defaultValue.showKeywords),showWords:w.boolean(Me.showWords,this.defaultValue.showWords),showColors:w.boolean(Me.showColors,this.defaultValue.showColors),showFiles:w.boolean(Me.showFiles,this.defaultValue.showFiles),showReferences:w.boolean(Me.showReferences,this.defaultValue.showReferences),showFolders:w.boolean(Me.showFolders,this.defaultValue.showFolders),showTypeParameters:w.boolean(Me.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:w.boolean(Me.showSnippets,this.defaultValue.showSnippets),hideStatusBar:w.boolean(Me.hideStatusBar,this.defaultValue.hideStatusBar)}},fe}(x),Ge=function(ne){R(fe,ne);function fe(){return ne.call(this,106,[68])||this}return fe.prototype.compute=function(Oe,Me,Ue){var Je=Me.get(68);return Je?!0:Oe.tabFocusMode},fe}(h);function ue(ne){switch(ne){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}var ve=function(ne){R(fe,ne);function fe(){return ne.call(this,108,[97,100,101,107,2])||this}return fe.prototype.compute=function(Oe,Me,Ue){var Je=Me.get(97),nt=Me.get(100),vt=Me.get(101),Rt=Me.get(107),Dt=Me.get(2),Kt=null;return Dt===2?Kt={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:vt&&Oe.isDominatedByLongLines?Kt={isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,Rt.viewportColumn)}:Je==="on"?Kt={isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,Rt.viewportColumn)}:Je==="bounded"?Kt={isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,Rt.viewportColumn),nt)}:Je==="wordWrapColumn"?Kt={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:nt}:Kt={isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1},{isDominatedByLongLines:Oe.isDominatedByLongLines,isWordWrapMinified:Kt.isWordWrapMinified,isViewportWrapping:Kt.isViewportWrapping,wrappingColumn:Kt.wrappingColumn}},fe}(h),Ee="Consolas, 'Courier New', monospace",xe="Menlo, Monaco, 'Courier New', monospace",Ce="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",he={fontFamily:le.e?xe:le.d?Ce:Ee,fontWeight:"normal",fontSize:le.e?12:14,lineHeight:0,letterSpacing:0},J={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},b=[];function F(ne){return b[ne.id]=ne,ne}var re={acceptSuggestionOnCommitCharacter:F(new w(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:T.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:F(new g(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",T.a("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:T.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:F(new l),accessibilityPageSize:F(new f(3,"accessibilityPageSize",10,1,1073741824,{description:T.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:F(new C(4,"ariaLabel",T.a("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:F(new g(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",T.a("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),T.a("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:T.a("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:F(new g(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",T.a("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:T.a("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:F(new g(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",T.a("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),T.a("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:T.a("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:F(new u(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],s,{enumDescriptions:[T.a("editor.autoIndent.none","The editor will not insert indentation automatically."),T.a("editor.autoIndent.keep","The editor will keep the current line's indentation."),T.a("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),T.a("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),T.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:T.a("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:F(new w(9,"automaticLayout",!1)),autoSurround:F(new g(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[T.a("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),T.a("editor.autoSurround.quotes","Surround with quotes but not brackets."),T.a("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:T.a("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:F(new w(11,"codeLens",!0,{description:T.a("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:F(new w(12,"colorDecorators",!0,{description:T.a("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),comments:F(new c),contextmenu:F(new w(14,"contextmenu",!0)),copyWithSyntaxHighlighting:F(new w(15,"copyWithSyntaxHighlighting",!0,{description:T.a("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:F(new u(16,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],p,{description:T.a("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:F(new w(17,"cursorSmoothCaretAnimation",!1,{description:T.a("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:F(new u(18,"cursorStyle",_.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],L,{description:T.a("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:F(new f(19,"cursorSurroundingLines",0,0,1073741824,{description:T.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:F(new g(20,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[T.a("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),T.a("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:T.a("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:F(new f(21,"cursorWidth",0,0,1073741824,{markdownDescription:T.a("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:F(new w(22,"disableLayerHinting",!1)),disableMonospaceOptimizations:F(new w(23,"disableMonospaceOptimizations",!1)),dragAndDrop:F(new w(24,"dragAndDrop",!0,{description:T.a("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:F(new P),extraEditorClassName:F(new C(26,"extraEditorClassName","")),fastScrollSensitivity:F(new v(27,"fastScrollSensitivity",5,function(ne){return ne<=0?5:ne},{markdownDescription:T.a("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:F(new A),fixedOverflowWidgets:F(new w(29,"fixedOverflowWidgets",!1)),folding:F(new w(30,"folding",!0,{description:T.a("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:F(new g(31,"foldingStrategy","auto",["auto","indentation"],{markdownDescription:T.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:F(new w(32,"foldingHighlight",!0,{description:T.a("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),fontFamily:F(new C(33,"fontFamily",he.fontFamily,{description:T.a("fontFamily","Controls the font family.")})),fontInfo:F(new K),fontLigatures2:F(new Q),fontSize:F(new H),fontWeight:F(new C(37,"fontWeight",he.fontWeight,{enum:["normal","bold","100","200","300","400","500","600","700","800","900"],description:T.a("fontWeight","Controls the font weight.")})),formatOnPaste:F(new w(38,"formatOnPaste",!1,{description:T.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:F(new w(39,"formatOnType",!1,{description:T.a("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:F(new w(40,"glyphMargin",!0,{description:T.a("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:F(new V),hideCursorInOverviewRuler:F(new w(42,"hideCursorInOverviewRuler",!1,{description:T.a("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:F(new w(43,"highlightActiveIndentGuide",!0,{description:T.a("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:F(new de),inDiffEditor:F(new w(45,"inDiffEditor",!1)),letterSpacing:F(new v(46,"letterSpacing",he.letterSpacing,function(ne){return v.clamp(ne,-5,20)},{description:T.a("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:F(new Se),lineDecorationsWidth:F(new y(48,"lineDecorationsWidth",10)),lineHeight:F(new Ie),lineNumbers:F(new ie),lineNumbersMinChars:F(new f(51,"lineNumbersMinChars",5,1,300)),links:F(new w(52,"links",!0,{description:T.a("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:F(new g(53,"matchBrackets","always",["always","near","never"],{description:T.a("matchBrackets","Highlight matching brackets.")})),minimap:F(new Pe),mouseStyle:F(new g(55,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:F(new v(56,"mouseWheelScrollSensitivity",1,function(ne){return ne===0?1:ne},{markdownDescription:T.a("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:F(new w(57,"mouseWheelZoom",!1,{markdownDescription:T.a("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:F(new w(58,"multiCursorMergeOverlapping",!0,{description:T.a("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:F(new u(59,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],Ve,{markdownEnumDescriptions:[T.a("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),T.a("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:T.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:F(new g(60,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[T.a("multiCursorPaste.spread","Each cursor pastes a single line of the text."),T.a("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:T.a("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:F(new w(61,"occurrencesHighlight",!0,{description:T.a("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:F(new w(62,"overviewRulerBorder",!0,{description:T.a("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:F(new f(63,"overviewRulerLanes",3,0,3)),parameterHints:F(new ke),peekWidgetDefaultFocus:F(new g(65,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[T.a("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),T.a("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:T.a("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),quickSuggestions:F(new ee),quickSuggestionsDelay:F(new f(67,"quickSuggestionsDelay",10,0,1073741824,{description:T.a("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:F(new w(68,"readOnly",!1)),renderControlCharacters:F(new w(69,"renderControlCharacters",!1,{description:T.a("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:F(new w(70,"renderIndentGuides",!0,{description:T.a("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:F(new w(71,"renderFinalNewline",!0,{description:T.a("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:F(new g(72,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",T.a("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:T.a("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderValidationDecorations:F(new g(73,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:F(new g(74,"renderWhitespace","none",["none","boundary","selection","all"],{enumDescriptions:["",T.a("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),T.a("renderWhitespace.selection","Render whitespace characters only on selected text."),""],description:T.a("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:F(new f(75,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:F(new w(76,"roundedSelection",!0,{description:T.a("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:F(new ce),scrollbar:F(new ye),scrollBeyondLastColumn:F(new f(79,"scrollBeyondLastColumn",5,0,1073741824,{description:T.a("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:F(new w(80,"scrollBeyondLastLine",!0,{description:T.a("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),selectionClipboard:F(new w(81,"selectionClipboard",!0,{description:T.a("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:le.d})),selectionHighlight:F(new w(82,"selectionHighlight",!0,{description:T.a("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:F(new w(83,"selectOnLineNumbers",!0)),showFoldingControls:F(new g(84,"showFoldingControls","mouseover",["always","mouseover"],{description:T.a("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")})),showUnused:F(new w(85,"showUnused",!0,{description:T.a("showUnused","Controls fading out of unused code.")})),snippetSuggestions:F(new g(86,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[T.a("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),T.a("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),T.a("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),T.a("snippetSuggestions.none","Do not show snippet suggestions.")],description:T.a("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:F(new w(87,"smoothScrolling",!1,{description:T.a("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:F(new f(88,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:F(new je),suggestFontSize:F(new f(90,"suggestFontSize",0,0,1e3,{markdownDescription:T.a("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:F(new f(91,"suggestLineHeight",0,0,1e3,{markdownDescription:T.a("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:F(new w(92,"suggestOnTriggerCharacters",!0,{description:T.a("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:F(new g(93,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[T.a("suggestSelection.first","Always select the first suggestion."),T.a("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),T.a("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:T.a("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:F(new g(94,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[T.a("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),T.a("tabCompletion.off","Disable tab completions."),T.a("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:T.a("tabCompletion","Enables tab completions.")})),useTabStops:F(new w(95,"useTabStops",!0,{description:T.a("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:F(new C(96,"wordSeparators",$.b,{description:T.a("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:F(new g(97,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[T.a("wordWrap.off","Lines will never wrap."),T.a("wordWrap.on","Lines will wrap at the viewport width."),T.a({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),T.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:T.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:F(new C(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:F(new C(99,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:F(new f(100,"wordWrapColumn",80,1,1073741824,{markdownDescription:T.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:F(new w(101,"wordWrapMinified",!0)),wrappingIndent:F(new u(102,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],ue,{enumDescriptions:[T.a("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),T.a("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),T.a("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),T.a("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:T.a("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:F(new g(103,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[T.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."),T.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:T.a("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:F(new I),pixelRatio:F(new se),tabFocusMode:F(new Ge),layoutInfo:F(new _e),wrappingInfo:F(new ve)}},"/cAr":function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return e.e(314).then(e.bind(null,"8m5U"))}})},"/cxE":function(Lt,N,e){"use strict";e.d(N,"e",function(){return $}),e.d(N,"f",function(){return R}),e.d(N,"g",function(){return B}),e.d(N,"d",function(){return D}),e.d(N,"a",function(){return W}),e.d(N,"b",function(){return x}),e.d(N,"c",function(){return h});var T=function(){function y(){this.listeners=[],this.unexpectedErrorHandler=function(w){setTimeout(function(){throw w.stack?new Error(w.message+`
`+w.stack):w},0)}}return y.prototype.emit=function(w){this.listeners.forEach(function(f){f(w)})},y.prototype.onUnexpectedError=function(w){this.unexpectedErrorHandler(w),this.emit(w)},y.prototype.onUnexpectedExternalError=function(w){this.unexpectedErrorHandler(w)},y}(),le=new T;function $(y){D(y)||le.onUnexpectedError(y);return}function R(y){D(y)||le.onUnexpectedExternalError(y);return}function B(y){if(y instanceof Error){var w=y.name,f=y.message,v=y.stacktrace||y.stack;return{$isError:!0,name:w,message:f,stack:v}}return y}var z="Canceled";function D(y){return y instanceof Error&&y.name===z&&y.message===z}function W(){var y=new Error(z);return y.name=y.message,y}function x(y){return y?new Error("Illegal argument: "+y):new Error("Illegal argument")}function h(y){return y?new Error("Illegal state: "+y):new Error("Illegal state")}},"/kV6":function(Lt,N,e){"use strict";e.d(N,"b",function(){return z}),e.d(N,"a",function(){return D}),e.d(N,"f",function(){return W}),e.d(N,"e",function(){return h}),e.d(N,"d",function(){return w}),e.d(N,"c",function(){return f});var T=e("/cxE"),le=function(){function v(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return v.prototype.define=function(C,g){this._keyCodeToStr[C]=g,this._strToKeyCode[g.toLowerCase()]=C},v.prototype.keyCodeToStr=function(C){return this._keyCodeToStr[C]},v.prototype.strToKeyCode=function(C){return this._strToKeyCode[C.toLowerCase()]||0},v}(),$=new le,R=new le,B=new le;(function(){function v(C,g,u,s){u===void 0&&(u=g),s===void 0&&(s=u),$.define(C,g),R.define(C,u),B.define(C,s)}v(0,"unknown"),v(1,"Backspace"),v(2,"Tab"),v(3,"Enter"),v(4,"Shift"),v(5,"Ctrl"),v(6,"Alt"),v(7,"PauseBreak"),v(8,"CapsLock"),v(9,"Escape"),v(10,"Space"),v(11,"PageUp"),v(12,"PageDown"),v(13,"End"),v(14,"Home"),v(15,"LeftArrow","Left"),v(16,"UpArrow","Up"),v(17,"RightArrow","Right"),v(18,"DownArrow","Down"),v(19,"Insert"),v(20,"Delete"),v(21,"0"),v(22,"1"),v(23,"2"),v(24,"3"),v(25,"4"),v(26,"5"),v(27,"6"),v(28,"7"),v(29,"8"),v(30,"9"),v(31,"A"),v(32,"B"),v(33,"C"),v(34,"D"),v(35,"E"),v(36,"F"),v(37,"G"),v(38,"H"),v(39,"I"),v(40,"J"),v(41,"K"),v(42,"L"),v(43,"M"),v(44,"N"),v(45,"O"),v(46,"P"),v(47,"Q"),v(48,"R"),v(49,"S"),v(50,"T"),v(51,"U"),v(52,"V"),v(53,"W"),v(54,"X"),v(55,"Y"),v(56,"Z"),v(57,"Meta"),v(58,"ContextMenu"),v(59,"F1"),v(60,"F2"),v(61,"F3"),v(62,"F4"),v(63,"F5"),v(64,"F6"),v(65,"F7"),v(66,"F8"),v(67,"F9"),v(68,"F10"),v(69,"F11"),v(70,"F12"),v(71,"F13"),v(72,"F14"),v(73,"F15"),v(74,"F16"),v(75,"F17"),v(76,"F18"),v(77,"F19"),v(78,"NumLock"),v(79,"ScrollLock"),v(80,";",";","OEM_1"),v(81,"=","=","OEM_PLUS"),v(82,",",",","OEM_COMMA"),v(83,"-","-","OEM_MINUS"),v(84,".",".","OEM_PERIOD"),v(85,"/","/","OEM_2"),v(86,"`","`","OEM_3"),v(110,"ABNT_C1"),v(111,"ABNT_C2"),v(87,"[","[","OEM_4"),v(88,"\\","\\","OEM_5"),v(89,"]","]","OEM_6"),v(90,"'","'","OEM_7"),v(91,"OEM_8"),v(92,"OEM_102"),v(93,"NumPad0"),v(94,"NumPad1"),v(95,"NumPad2"),v(96,"NumPad3"),v(97,"NumPad4"),v(98,"NumPad5"),v(99,"NumPad6"),v(100,"NumPad7"),v(101,"NumPad8"),v(102,"NumPad9"),v(103,"NumPad_Multiply"),v(104,"NumPad_Add"),v(105,"NumPad_Separator"),v(106,"NumPad_Subtract"),v(107,"NumPad_Decimal"),v(108,"NumPad_Divide")})();var z;(function(v){function C(c){return $.keyCodeToStr(c)}v.toString=C;function g(c){return $.strToKeyCode(c)}v.fromString=g;function u(c){return R.keyCodeToStr(c)}v.toUserSettingsUS=u;function s(c){return B.keyCodeToStr(c)}v.toUserSettingsGeneral=s;function l(c){return R.strToKeyCode(c)||B.strToKeyCode(c)}v.fromUserSettings=l})(z||(z={}));function D(v,C){var g=(C&65535)<<16>>>0;return(v|g)>>>0}function W(v,C){if(v===0)return null;var g=(v&65535)>>>0,u=(v&4294901760)>>>16;return u!==0?new y([x(g,C),x(u,C)]):new y([x(g,C)])}function x(v,C){var g=!!(v&2048),u=!!(v&256),s=C===2?u:g,l=!!(v&1024),c=!!(v&512),p=C===2?g:u,_=v&255;return new h(s,l,c,p,_)}var h=function(){function v(C,g,u,s,l){this.ctrlKey=C,this.shiftKey=g,this.altKey=u,this.metaKey=s,this.keyCode=l}return v.prototype.equals=function(C){return this.ctrlKey===C.ctrlKey&&this.shiftKey===C.shiftKey&&this.altKey===C.altKey&&this.metaKey===C.metaKey&&this.keyCode===C.keyCode},v.prototype.isModifierKey=function(){return this.keyCode===0||this.keyCode===5||this.keyCode===57||this.keyCode===6||this.keyCode===4},v.prototype.toChord=function(){return new y([this])},v.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&this.keyCode===5||this.shiftKey&&this.keyCode===4||this.altKey&&this.keyCode===6||this.metaKey&&this.keyCode===57},v}(),y=function(){function v(C){if(C.length===0)throw Object(T.b)("parts");this.parts=C}return v.prototype.equals=function(C){if(C===null)return!1;if(this.parts.length!==C.parts.length)return!1;for(var g=0;g<this.parts.length;g++)if(!this.parts[g].equals(C.parts[g]))return!1;return!0},v}(),w=function(){function v(C,g,u,s,l,c){this.ctrlKey=C,this.shiftKey=g,this.altKey=u,this.metaKey=s,this.keyLabel=l,this.keyAriaLabel=c}return v}(),f=function(){function v(){}return v}()},"/oaI":function(Lt,N,e){},"0+8E":function(Lt,N,e){"use strict";e.d(N,"b",function(){return l}),e.d(N,"a",function(){return c});var T=e("i/Rh"),le=e("3/fG"),$=e("D3Dy"),R=e("EffR"),B=e("Md8J"),z=e("OBOq"),D=e("WqXY"),W=e("MI8n"),x=e("G300"),h=e("zrhQ"),y=e("qj0h"),w=e("JYp7"),f=function(){function p(_,L){_===void 0&&(_=[]),L===void 0&&(L=10),this._initialize(_),this._limit=L,this._onChange()}return p.prototype.add=function(_){this._history.delete(_),this._history.add(_),this._onChange()},p.prototype.next=function(){return this._navigator.next()},p.prototype.previous=function(){return this._navigator.previous()},p.prototype.current=function(){return this._navigator.current()},p.prototype.parent=function(){return null},p.prototype.first=function(){return this._navigator.first()},p.prototype.last=function(){return this._navigator.last()},p.prototype.has=function(_){return this._history.has(_)},p.prototype._onChange=function(){this._reduceToLimit();var _=this._elements;this._navigator=new w.b(_,0,_.length,_.length)},p.prototype._reduceToLimit=function(){var _=this._elements;_.length>this._limit&&this._initialize(_.slice(_.length-this._limit))},p.prototype._initialize=function(_){this._history=new Set;for(var L=0,I=_;L<I.length;L++){var P=I[L];this._history.add(P)}},Object.defineProperty(p.prototype,"_elements",{get:function(){var _=[];return this._history.forEach(function(L){return _.push(L)}),_},enumerable:!0,configurable:!0}),p}(),v=e("GJhM"),C=e("4y0V"),g=function(){var p=function(_,L){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,P){I.__proto__=P}||function(I,P){for(var A in P)P.hasOwnProperty(A)&&(I[A]=P[A])},p(_,L)};return function(_,L){p(_,L);function I(){this.constructor=_}_.prototype=L===null?Object.create(L):(I.prototype=L.prototype,new I)}}(),u=R.a,s={inputBackground:h.a.fromHex("#3C3C3C"),inputForeground:h.a.fromHex("#CCCCCC"),inputValidationInfoBorder:h.a.fromHex("#55AAFF"),inputValidationInfoBackground:h.a.fromHex("#063B49"),inputValidationWarningBorder:h.a.fromHex("#B89500"),inputValidationWarningBackground:h.a.fromHex("#352A05"),inputValidationErrorBorder:h.a.fromHex("#BE1100"),inputValidationErrorBackground:h.a.fromHex("#5A1D1D")},l=function(p){g(_,p);function _(L,I,P){var A=p.call(this)||this;A.state="idle",A.maxHeight=Number.POSITIVE_INFINITY,A._onDidChange=A._register(new W.a),A.onDidChange=A._onDidChange.event,A._onDidHeightChange=A._register(new W.a),A.onDidHeightChange=A._onDidHeightChange.event,A.contextViewProvider=I,A.options=P||Object.create(null),Object(y.g)(A.options,s,!1),A.message=null,A.placeholder=A.options.placeholder||"",A.ariaLabel=A.options.ariaLabel||"",A.inputBackground=A.options.inputBackground,A.inputForeground=A.options.inputForeground,A.inputBorder=A.options.inputBorder,A.inputValidationInfoBorder=A.options.inputValidationInfoBorder,A.inputValidationInfoBackground=A.options.inputValidationInfoBackground,A.inputValidationInfoForeground=A.options.inputValidationInfoForeground,A.inputValidationWarningBorder=A.options.inputValidationWarningBorder,A.inputValidationWarningBackground=A.options.inputValidationWarningBackground,A.inputValidationWarningForeground=A.options.inputValidationWarningForeground,A.inputValidationErrorBorder=A.options.inputValidationErrorBorder,A.inputValidationErrorBackground=A.options.inputValidationErrorBackground,A.inputValidationErrorForeground=A.options.inputValidationErrorForeground,A.options.validationOptions&&(A.validation=A.options.validationOptions.validation),A.element=R.q(L,u(".monaco-inputbox.idle"));var Q=A.options.flexibleHeight?"textarea":"input",K=R.q(A.element,u(".wrapper"));if(A.input=R.q(K,u(Q+".input.empty")),A.input.setAttribute("autocorrect","off"),A.input.setAttribute("autocapitalize","off"),A.input.setAttribute("spellcheck","false"),A.onfocus(A.input,function(){return R.f(A.element,"synthetic-focus")}),A.onblur(A.input,function(){return R.P(A.element,"synthetic-focus")}),A.options.flexibleHeight){A.maxHeight=typeof A.options.flexibleMaxHeight=="number"?A.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,A.mirror=R.q(K,u("div.mirror")),A.mirror.innerHTML="&#160;",A.scrollableElement=new v.b(A.element,{vertical:1}),A.options.flexibleWidth&&(A.input.setAttribute("wrap","off"),A.mirror.style.whiteSpace="pre",A.mirror.style.wordWrap="initial"),R.q(L,A.scrollableElement.getDomNode()),A._register(A.scrollableElement),A._register(A.scrollableElement.onScroll(function(V){return A.input.scrollTop=V.scrollTop}));var H=W.b.filter(Object(C.a)(document,"selectionchange"),function(){var V=document.getSelection();return(V==null?void 0:V.anchorNode)===K});A._register(H(A.updateScrollDimensions,A)),A._register(A.onDidHeightChange(A.updateScrollDimensions,A))}else A.input.type=A.options.type||"text",A.input.setAttribute("wrap","off");return A.ariaLabel&&A.input.setAttribute("aria-label",A.ariaLabel),A.placeholder&&A.setPlaceHolder(A.placeholder),A.oninput(A.input,function(){return A.onValueChange()}),A.onblur(A.input,function(){return A.onBlur()}),A.onfocus(A.input,function(){return A.onFocus()}),A.placeholder&&$.i&&A.onclick(A.input,function(V){R.c.stop(V,!0),A.input.focus()}),A.ignoreGesture(A.input),setTimeout(function(){return A.updateMirror()},0),A.options.actions&&(A.actionbar=A._register(new D.a(A.element)),A.actionbar.push(A.options.actions,{icon:!0,label:!1})),A.applyStyles(),A}return _.prototype.onBlur=function(){this._hideMessage()},_.prototype.onFocus=function(){this._showMessage()},_.prototype.setPlaceHolder=function(L){this.placeholder=L,this.input.setAttribute("placeholder",L),this.input.title=L},_.prototype.setAriaLabel=function(L){this.ariaLabel=L,L?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")},Object.defineProperty(_.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"value",{get:function(){return this.input.value},set:function(L){this.input.value!==L&&(this.input.value=L,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"height",{get:function(){return typeof this.cachedHeight=="number"?this.cachedHeight:R.G(this.element)},enumerable:!0,configurable:!0}),_.prototype.focus=function(){this.input.focus()},_.prototype.blur=function(){this.input.blur()},_.prototype.hasFocus=function(){return document.activeElement===this.input},_.prototype.select=function(L){L===void 0&&(L=null),this.input.select(),L&&this.input.setSelectionRange(L.start,L.end)},_.prototype.enable=function(){this.input.removeAttribute("disabled")},_.prototype.disable=function(){this.blur(),this.input.disabled=!0,this._hideMessage()},Object.defineProperty(_.prototype,"width",{get:function(){return R.H(this.input)},set:function(L){if(this.options.flexibleHeight&&this.options.flexibleWidth){var I=0;if(this.mirror){var P=parseFloat(this.mirror.style.paddingLeft||"")||0,A=parseFloat(this.mirror.style.paddingRight||"")||0;I=P+A}this.input.style.width=L-I+"px"}else this.input.style.width=L+"px";this.mirror&&(this.mirror.style.width=L+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"paddingRight",{set:function(L){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width="calc(100% - "+L+"px)":this.input.style.paddingRight=L+"px",this.mirror&&(this.mirror.style.paddingRight=L+"px")},enumerable:!0,configurable:!0}),_.prototype.updateScrollDimensions=function(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;var L=this.cachedContentHeight,I=this.cachedHeight,P=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:L,height:I}),this.scrollableElement.setScrollPosition({scrollTop:P})},_.prototype.showMessage=function(L,I){this.message=L,R.P(this.element,"idle"),R.P(this.element,"info"),R.P(this.element,"warning"),R.P(this.element,"error"),R.f(this.element,this.classForType(L.type));var P=this.stylesForType(this.message.type);this.element.style.border=P.border?"1px solid "+P.border:"";var A;L.type===3?A=le.a("alertErrorMessage","Error: {0}",L.content):L.type===2?A=le.a("alertWarningMessage","Warning: {0}",L.content):A=le.a("alertInfoMessage","Info: {0}",L.content),z.a(A),(this.hasFocus()||I)&&this._showMessage()},_.prototype.hideMessage=function(){this.message=null,R.P(this.element,"info"),R.P(this.element,"warning"),R.P(this.element,"error"),R.f(this.element,"idle"),this._hideMessage(),this.applyStyles()},_.prototype.validate=function(){var L=null;return this.validation&&(L=this.validation(this.value),L?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(L)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!L},_.prototype.stylesForType=function(L){switch(L){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}}},_.prototype.classForType=function(L){switch(L){case 1:return"info";case 2:return"warning";default:return"error"}},_.prototype._showMessage=function(){var L=this;if(!this.contextViewProvider||!this.message)return;var I,P=function(){return I.style.width=R.H(L.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return L.element},anchorAlignment:1,render:function(A){if(!L.message)return null;I=R.q(A,u(".monaco-inputbox-container")),P();var Q={inline:!0,className:"monaco-inputbox-message"},K=L.message.formatContent?Object(B.b)(L.message.content,Q):Object(B.c)(L.message.content,Q);R.f(K,L.classForType(L.message.type));var H=L.stylesForType(L.message.type);return K.style.backgroundColor=H.background?H.background.toString():"",K.style.color=H.foreground?H.foreground.toString():"",K.style.border=H.border?"1px solid "+H.border:"",R.q(I,K),null},onHide:function(){L.state="closed"},layout:P}),this.state="open"},_.prototype._hideMessage=function(){if(!this.contextViewProvider)return;this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle"},_.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),R.Y(this.input,"empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()},_.prototype.updateMirror=function(){if(!this.mirror)return;var L=this.value,I=L.charCodeAt(L.length-1),P=I===10?" ":"",A=L+P;A?this.mirror.textContent=L+P:this.mirror.innerHTML="&#160;",this.layout()},_.prototype.style=function(L){this.inputBackground=L.inputBackground,this.inputForeground=L.inputForeground,this.inputBorder=L.inputBorder,this.inputValidationInfoBackground=L.inputValidationInfoBackground,this.inputValidationInfoForeground=L.inputValidationInfoForeground,this.inputValidationInfoBorder=L.inputValidationInfoBorder,this.inputValidationWarningBackground=L.inputValidationWarningBackground,this.inputValidationWarningForeground=L.inputValidationWarningForeground,this.inputValidationWarningBorder=L.inputValidationWarningBorder,this.inputValidationErrorBackground=L.inputValidationErrorBackground,this.inputValidationErrorForeground=L.inputValidationErrorForeground,this.inputValidationErrorBorder=L.inputValidationErrorBorder,this.applyStyles()},_.prototype.applyStyles=function(){var L=this.inputBackground?this.inputBackground.toString():"",I=this.inputForeground?this.inputForeground.toString():"",P=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=L,this.element.style.color=I,this.input.style.backgroundColor=L,this.input.style.color=I,this.element.style.borderWidth=P?"1px":"",this.element.style.borderStyle=P?"solid":"",this.element.style.borderColor=P},_.prototype.layout=function(){if(!this.mirror)return;var L=this.cachedContentHeight;this.cachedContentHeight=R.G(this.mirror),L!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))},_.prototype.insertAtCursor=function(L){var I=this.inputElement,P=I.selectionStart,A=I.selectionEnd,Q=I.value;P!==null&&A!==null&&(this.value=Q.substr(0,P)+L+Q.substr(A),I.setSelectionRange(P+1,P+1),this.layout())},_.prototype.dispose=function(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),p.prototype.dispose.call(this)},_}(x.a),c=function(p){g(_,p);function _(L,I,P){var A=p.call(this,L,I,P)||this;return A.history=new f(P.history,100),A}return _.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},_.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var L=this.getNextValue();L&&(L=L===this.value?this.getNextValue():L),L&&(this.value=L,z.c(this.value))},_.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var L=this.getPreviousValue();L&&(L=L===this.value?this.getPreviousValue():L),L&&(this.value=L,z.c(this.value))},_.prototype.getCurrentValue=function(){var L=this.history.current();return L||(L=this.history.last(),this.history.next()),L},_.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},_.prototype.getNextValue=function(){return this.history.next()||this.history.last()},_}(l)},"0/Sa":function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("aokT"),le=function(){function $(){}return $.insert=function(R,B){return{range:new T.a(R.lineNumber,R.column,R.lineNumber,R.column),text:B,forceMoveMarkers:!0}},$.delete=function(R){return{range:R,text:null}},$.replace=function(R,B){return{range:R,text:B}},$.replaceMove=function(R,B){return{range:R,text:B,forceMoveMarkers:!0}},$}()},"03kh":function(Lt,N,e){"use strict";e.d(N,"a",function(){return f});var T=e("qj0h"),le=e("Vxe3"),$=e("nB0o"),R=e("nnTU"),B=e("T8No"),z=e("Cg/j"),D=e("sM1p"),W=e("t9D7"),x=e("R3nR"),h=function(){var v=function(C,g){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,s){u.__proto__=s}||function(u,s){for(var l in s)s.hasOwnProperty(l)&&(u[l]=s[l])},v(C,g)};return function(C,g){v(C,g);function u(){this.constructor=C}C.prototype=g===null?Object.create(g):(u.prototype=g.prototype,new u)}}(),y=function(v,C,g,u){var s=arguments.length,l=s<3?C:u===null?u=Object.getOwnPropertyDescriptor(C,g):u,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(v,C,g,u);else for(var p=v.length-1;p>=0;p--)(c=v[p])&&(l=(s<3?c(l):s>3?c(C,g,l):c(C,g))||l);return s>3&&l&&Object.defineProperty(C,g,l),l},w=function(v,C){return function(g,u){C(g,u,v)}},f=function(v){h(C,v);function C(g,u,s,l,c,p,_,L,I,P){var A=v.call(this,g,s.getRawOptions(),{},l,c,p,_,L,I,P)||this;return A._parentEditor=s,A._overwriteOptions=u,v.prototype.updateOptions.call(A,A._overwriteOptions),A._register(s.onDidChangeConfiguration(function(Q){return A._onParentConfigurationChanged(Q)})),A}return C.prototype.getParentEditor=function(){return this._parentEditor},C.prototype._onParentConfigurationChanged=function(g){v.prototype.updateOptions.call(this,this._parentEditor.getRawOptions()),v.prototype.updateOptions.call(this,this._overwriteOptions)},C.prototype.updateOptions=function(g){T.g(this._overwriteOptions,g,!0),v.prototype.updateOptions.call(this,this._overwriteOptions)},C=y([w(3,z.a),w(4,le.a),w(5,R.b),w(6,B.c),w(7,W.c),w(8,D.a),w(9,x.b)],C),C}($.a)},"09fa":function(Lt,N,e){"use strict";e.d(N,"a",function(){return le}),e.d(N,"b",function(){return $}),e.d(N,"c",function(){return R});var T=e("Cg/j"),le=Object(T.c)("logService"),$;(function(B){B[B.Trace=0]="Trace",B[B.Debug=1]="Debug",B[B.Info=2]="Info",B[B.Warning=3]="Warning",B[B.Error=4]="Error",B[B.Critical=5]="Critical",B[B.Off=6]="Off"})($||($={}));var R=function(){function B(){}return B.prototype.getLevel=function(){return $.Info},B.prototype.trace=function(z){for(var D=[],W=1;W<arguments.length;W++)D[W-1]=arguments[W]},B.prototype.error=function(z){for(var D=[],W=1;W<arguments.length;W++)D[W-1]=arguments[W]},B.prototype.dispose=function(){},B}()},"0JNc":function(Lt,N,e){"use strict";e.d(N,"b",function(){return T}),e.d(N,"a",function(){return $}),e.d(N,"c",function(){return R}),e.d(N,"d",function(){return D});var T="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function le(W){W===void 0&&(W="");for(var x="(-?\\d*\\.\\d\\w*)|([^",h=0,y=T;h<y.length;h++){var w=y[h];if(W.indexOf(w)>=0)continue;x+="\\"+w}return x+="\\s]+)",new RegExp(x,"g")}var $=le();function R(W){var x=$;if(W&&W instanceof RegExp)if(W.global)x=W;else{var h="g";W.ignoreCase&&(h+="i"),W.multiline&&(h+="m"),W.unicode&&(h+="u"),x=new RegExp(W.source,h)}return x.lastIndex=0,x}function B(W,x,h,y){var w=W-1-y,f=h.lastIndexOf(" ",w-1)+1;x.lastIndex=f;for(var v;v=x.exec(h);){var C=v.index||0;if(C<=w&&x.lastIndex>=w)return{word:v[0],startColumn:y+1+C,endColumn:y+1+x.lastIndex}}return null}function z(W,x,h,y){var w=W-1-y;x.lastIndex=0;for(var f;f=x.exec(h);){var v=f.index||0;if(v>w)return null;if(x.lastIndex>=w)return{word:f[0],startColumn:y+1+v,endColumn:y+1+x.lastIndex}}return null}function D(W,x,h,y){x.lastIndex=0;var w=x.exec(h);if(!w)return null;var f=w[0].indexOf(" ")>=0?z(W,x,h,y):B(W,x,h,y);return x.lastIndex=0,f}},"0oIH":function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return e.e(304).then(e.bind(null,"Eg73"))}})},"10Fh":function(Lt,N,e){"use strict";e.r(N),e.d(N,"provideSelectionRanges",function(){return I});var T=e("6OMU"),le=e("JQT/"),$=e("sswD"),R=e("cGHE"),B=e("aokT"),z=e("gCVg"),D=e("wQH0"),W=e("twdY"),x=e("3/fG"),h=e("pmY6"),y=e("N0LK"),w=function(){function P(){}return P.prototype.provideSelectionRanges=function(A,Q){for(var K=[],H=0,V=Q;H<V.length;H++){var de=V[H],_e=[];K.push(_e),this._addInWordRanges(_e,A,de),this._addWordRanges(_e,A,de),this._addWhitespaceLine(_e,A,de),_e.push({range:A.getFullModelRange()})}return K},P.prototype._addInWordRanges=function(A,Q,K){var H=Q.getWordAtPosition(K);if(!H)return;for(var V=H.word,de=H.startColumn,_e=K.column-de,Se=_e,Ie=_e,Pe=0;Se>=0;Se--){var Ve=V.charCodeAt(Se);if(Ve===95||Ve===45)break;if(Object(y.B)(Ve)&&Object(y.C)(Pe))break;Pe=Ve}for(Se+=1;Ie<V.length;Ie++){var Ve=V.charCodeAt(Ie);if(Object(y.C)(Ve)&&Object(y.B)(Pe))break;if(Ve===95||Ve===45)break;Pe=Ve}Se<Ie&&A.push({range:new B.a(K.lineNumber,de+Se,K.lineNumber,de+Ie)})},P.prototype._addWordRanges=function(A,Q,K){var H=Q.getWordAtPosition(K);H&&A.push({range:new B.a(K.lineNumber,H.startColumn,K.lineNumber,H.endColumn)})},P.prototype._addWhitespaceLine=function(A,Q,K){Q.getLineLength(K.lineNumber)>0&&Q.getLineFirstNonWhitespaceColumn(K.lineNumber)===0&&Q.getLineLastNonWhitespaceColumn(K.lineNumber)===0&&A.push({range:new B.a(K.lineNumber,1,K.lineNumber,Q.getLineMaxColumn(K.lineNumber))})},P}(),f=e("Z7SF"),v=e("nnTU"),C=e("/cxE"),g=function(){var P=function(A,Q){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,H){K.__proto__=H}||function(K,H){for(var V in H)H.hasOwnProperty(V)&&(K[V]=H[V])},P(A,Q)};return function(A,Q){P(A,Q);function K(){this.constructor=A}A.prototype=Q===null?Object.create(Q):(K.prototype=Q.prototype,new K)}}(),u=function(P,A,Q,K){function H(V){return V instanceof Q?V:new Q(function(de){de(V)})}return new(Q||(Q=Promise))(function(V,de){function _e(Pe){try{Ie(K.next(Pe))}catch(Ve){de(Ve)}}function Se(Pe){try{Ie(K.throw(Pe))}catch(Ve){de(Ve)}}function Ie(Pe){Pe.done?V(Pe.value):H(Pe.value).then(_e,Se)}Ie((K=K.apply(P,A||[])).next())})},s=function(P,A){var Q={label:0,sent:function(){if(V[0]&1)throw V[1];return V[1]},trys:[],ops:[]},K,H,V,de;return de={next:_e(0),throw:_e(1),return:_e(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function _e(Ie){return function(Pe){return Se([Ie,Pe])}}function Se(Ie){if(K)throw new TypeError("Generator is already executing.");for(;Q;)try{if(K=1,H&&(V=Ie[0]&2?H.return:Ie[0]?H.throw||((V=H.return)&&V.call(H),0):H.next)&&!(V=V.call(H,Ie[1])).done)return V;(H=0,V)&&(Ie=[Ie[0]&2,V.value]);switch(Ie[0]){case 0:case 1:V=Ie;break;case 4:return Q.label++,{value:Ie[1],done:!1};case 5:Q.label++,H=Ie[1],Ie=[0];continue;case 7:Ie=Q.ops.pop(),Q.trys.pop();continue;default:if(!(V=Q.trys,V=V.length>0&&V[V.length-1])&&(Ie[0]===6||Ie[0]===2)){Q=0;continue}if(Ie[0]===3&&(!V||Ie[1]>V[0]&&Ie[1]<V[3])){Q.label=Ie[1];break}if(Ie[0]===6&&Q.label<V[1]){Q.label=V[1],V=Ie;break}if(V&&Q.label<V[2]){Q.label=V[2],Q.ops.push(Ie);break}V[2]&&Q.ops.pop(),Q.trys.pop();continue}Ie=A.call(P,Q)}catch(Pe){Ie=[6,Pe],H=0}finally{K=V=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}},l=function(){function P(A,Q){this.index=A,this.ranges=Q}return P.prototype.mov=function(A){var Q=this.index+(A?1:-1);if(Q<0||Q>=this.ranges.length)return this;var K=new P(Q,this.ranges);return K.ranges[Q].equalsRange(this.ranges[this.index])?K.mov(A):K},P}(),c=function(){function P(A){this._ignoreSelection=!1,this._editor=A}return P.get=function(A){return A.getContribution(P.ID)},P.prototype.dispose=function(){Object(h.f)(this._selectionListener)},P.prototype.run=function(A){var Q=this;if(!this._editor.hasModel())return;var K=this._editor.getSelections(),H=this._editor.getModel();if(!W.w.has(H))return;var V=Promise.resolve(void 0);return this._state||(V=I(H,K.map(function(de){return de.getPosition()}),le.a.None).then(function(de){if(!T.q(de)||de.length!==K.length)return;if(!Q._editor.hasModel()||!T.g(Q._editor.getSelections(),K,function(Ie,Pe){return Ie.equalsSelection(Pe)}))return;for(var _e=function(Ie){de[Ie]=de[Ie].filter(function(Pe){return Pe.containsPosition(K[Ie].getStartPosition())&&Pe.containsPosition(K[Ie].getEndPosition())}),de[Ie].unshift(K[Ie])},Se=0;Se<de.length;Se++)_e(Se);Q._state=de.map(function(Ie){return new l(0,Ie)}),Object(h.f)(Q._selectionListener),Q._selectionListener=Q._editor.onDidChangeCursorPosition(function(){Q._ignoreSelection||(Object(h.f)(Q._selectionListener),Q._state=void 0)})})),V.then(function(){if(!Q._state)return;Q._state=Q._state.map(function(_e){return _e.mov(A)});var de=Q._state.map(function(_e){return z.a.fromPositions(_e.ranges[_e.index].getStartPosition(),_e.ranges[_e.index].getEndPosition())});Q._ignoreSelection=!0;try{Q._editor.setSelections(de)}finally{Q._ignoreSelection=!1}})},P.ID="editor.contrib.smartSelectController",P}(),p=function(P){g(A,P);function A(Q,K){var H=P.call(this,K)||this;return H._forward=Q,H}return A.prototype.run=function(Q,K){return u(this,void 0,void 0,function(){var H;return s(this,function(V){switch(V.label){case 0:return H=c.get(K),H?[4,H.run(this._forward)]:[3,2];case 1:V.sent(),V.label=2;case 2:return[2]}})})},A}($.b),_=function(P){g(A,P);function A(){return P.call(this,!0,{id:"editor.action.smartSelect.expand",label:x.a("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:D.a.editorTextFocus,primary:1024|512|17,mac:{primary:2048|256|1024|17,secondary:[256|1024|17]},weight:100},menuOpts:{menuId:25,group:"1_basic",title:x.a({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})||this}return A}(p);v.a.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");var L=function(P){g(A,P);function A(){return P.call(this,!1,{id:"editor.action.smartSelect.shrink",label:x.a("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:D.a.editorTextFocus,primary:1024|512|15,mac:{primary:2048|256|1024|15,secondary:[256|1024|15]},weight:100},menuOpts:{menuId:25,group:"1_basic",title:x.a({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})||this}return A}(p);Object($.h)(c.ID,c),Object($.f)(_),Object($.f)(L),W.w.register("*",new w);function I(P,A,Q){var K=W.w.all(P);K.length===1&&K.unshift(new f.a);for(var H=[],V=[],de=0,_e=K;de<_e.length;de++){var Se=_e[de];H.push(Promise.resolve(Se.provideSelectionRanges(P,A,Q)).then(function(Ie){if(T.q(Ie)&&Ie.length===A.length)for(var Pe=0;Pe<A.length;Pe++){V[Pe]||(V[Pe]=[]);for(var Ve=0,ke=Ie[Pe];Ve<ke.length;Ve++){var se=ke[Ve];B.a.isIRange(se.range)&&B.a.containsPosition(se.range,A[Pe])&&V[Pe].push(B.a.lift(se.range))}}},C.f))}return Promise.all(H).then(function(){return V.map(function(Ie){if(Ie.length===0)return[];Ie.sort(function(Ge,ue){return R.a.isBefore(Ge.getStartPosition(),ue.getStartPosition())?1:R.a.isBefore(ue.getStartPosition(),Ge.getStartPosition())||R.a.isBefore(Ge.getEndPosition(),ue.getEndPosition())?-1:R.a.isBefore(ue.getEndPosition(),Ge.getEndPosition())?1:0});for(var Pe=[],Ve,ke=0,se=Ie;ke<se.length;ke++){var ee=se[ke];(!Ve||B.a.containsRange(ee,Ve)&&!B.a.equalsRange(ee,Ve))&&(Pe.push(ee),Ve=ee)}for(var ie=[Pe[0]],q=1;q<Pe.length;q++){var ce=Pe[q-1],Z=Pe[q];if(Z.startLineNumber!==ce.startLineNumber||Z.endLineNumber!==ce.endLineNumber){var ye=new B.a(ce.startLineNumber,P.getLineFirstNonWhitespaceColumn(ce.startLineNumber),ce.endLineNumber,P.getLineLastNonWhitespaceColumn(ce.endLineNumber));ye.containsRange(ce)&&!ye.equalsRange(ce)&&Z.containsRange(ye)&&!Z.equalsRange(ye)&&ie.push(ye);var je=new B.a(ce.startLineNumber,1,ce.endLineNumber,P.getLineMaxColumn(ce.endLineNumber));je.containsRange(ce)&&!je.equalsRange(ye)&&Z.containsRange(je)&&!Z.equalsRange(je)&&ie.push(je)}ie.push(Z)}return ie})})}Object($.l)("_executeSelectionRangeProvider",function(P){for(var A=[],Q=1;Q<arguments.length;Q++)A[Q-1]=arguments[Q];var K=A[0];return I(P,K,le.a.None)})},"1I1M":function(Lt,N,e){"use strict";e.d(N,"a",function(){return D}),e.d(N,"b",function(){return W});var T=e("N0LK"),le=e("Ll0s"),$=e("5v8Y"),R=e("cGHE"),B=e("aokT"),z=function(){var h=function(y,w){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var C in v)v.hasOwnProperty(C)&&(f[C]=v[C])},h(y,w)};return function(y,w){h(y,w);function f(){this.constructor=y}y.prototype=w===null?Object.create(w):(f.prototype=w.prototype,new f)}}(),D=function(){function h(){}return h._createWord=function(y,w,f,v,C){return{start:v,end:C,wordType:w,nextCharClass:f}},h._findPreviousWordOnLine=function(y,w,f){var v=w.getLineContent(f.lineNumber);return this._doFindPreviousWordOnLine(v,y,f)},h._doFindPreviousWordOnLine=function(y,w,f){for(var v=0,C=f.column-2;C>=0;C--){var g=y.charCodeAt(C),u=w.get(g);if(u===0){if(v===2)return this._createWord(y,v,u,C+1,this._findEndOfWord(y,w,v,C+1));v=1}else if(u===2){if(v===1)return this._createWord(y,v,u,C+1,this._findEndOfWord(y,w,v,C+1));v=2}else if(u===1&&v!==0)return this._createWord(y,v,u,C+1,this._findEndOfWord(y,w,v,C+1))}return v!==0?this._createWord(y,v,1,0,this._findEndOfWord(y,w,v,0)):null},h._findEndOfWord=function(y,w,f,v){for(var C=y.length,g=v;g<C;g++){var u=y.charCodeAt(g),s=w.get(u);if(s===1)return g;if(f===1&&s===2)return g;if(f===2&&s===0)return g}return C},h._findNextWordOnLine=function(y,w,f){var v=w.getLineContent(f.lineNumber);return this._doFindNextWordOnLine(v,y,f)},h._doFindNextWordOnLine=function(y,w,f){for(var v=0,C=y.length,g=f.column-1;g<C;g++){var u=y.charCodeAt(g),s=w.get(u);if(s===0){if(v===2)return this._createWord(y,v,s,this._findStartOfWord(y,w,v,g-1),g);v=1}else if(s===2){if(v===1)return this._createWord(y,v,s,this._findStartOfWord(y,w,v,g-1),g);v=2}else if(s===1&&v!==0)return this._createWord(y,v,s,this._findStartOfWord(y,w,v,g-1),g)}return v!==0?this._createWord(y,v,1,this._findStartOfWord(y,w,v,C-1),C):null},h._findStartOfWord=function(y,w,f,v){for(var C=v;C>=0;C--){var g=y.charCodeAt(C),u=w.get(g);if(u===1)return C+1;if(f===1&&u===2)return C+1;if(f===2&&u===0)return C+1}return 0},h.moveWordLeft=function(y,w,f,v){var C=f.lineNumber,g=f.column,u=!1;g===1&&(C>1&&(u=!0,C=C-1,g=w.getLineMaxColumn(C)));var s=h._findPreviousWordOnLine(y,w,new R.a(C,g));if(v===0){if(s&&!u){var l=w.getLineLastNonWhitespaceColumn(C);if(l<g)return new R.a(C,s.end+1)}return new R.a(C,s?s.start+1:1)}if(v===1)return s&&s.wordType===2&&s.end-s.start===1&&s.nextCharClass===0&&(s=h._findPreviousWordOnLine(y,w,new R.a(C,s.start+1))),new R.a(C,s?s.start+1:1);if(v===3){for(;s&&s.wordType===2;)s=h._findPreviousWordOnLine(y,w,new R.a(C,s.start+1));return new R.a(C,s?s.start+1:1)}return s&&g<=s.end+1&&(s=h._findPreviousWordOnLine(y,w,new R.a(C,s.start+1))),new R.a(C,s?s.end+1:1)},h._moveWordPartLeft=function(y,w){var f=w.lineNumber,v=y.getLineMaxColumn(f);if(w.column===1)return f>1?new R.a(f-1,y.getLineMaxColumn(f-1)):w;for(var C=y.getLineContent(f),g=w.column-1;g>1;g--){var u=C.charCodeAt(g-2),s=C.charCodeAt(g-1);if(u!==95&&s===95)return new R.a(f,g);if(T.B(u)&&T.C(s))return new R.a(f,g);if(T.C(u)&&T.C(s)&&g+1<v){var l=C.charCodeAt(g);if(T.B(l))return new R.a(f,g)}}return new R.a(f,1)},h.moveWordRight=function(y,w,f,v){var C=f.lineNumber,g=f.column,u=!1;g===w.getLineMaxColumn(C)&&(C<w.getLineCount()&&(u=!0,C=C+1,g=1));var s=h._findNextWordOnLine(y,w,new R.a(C,g));if(v===2)s&&s.wordType===2&&(s.end-s.start===1&&s.nextCharClass===0&&(s=h._findNextWordOnLine(y,w,new R.a(C,s.end+1)))),s?g=s.end+1:g=w.getLineMaxColumn(C);else if(v===3){for(u&&(g=0);s&&(s.wordType===2||s.start+1<=g);)s=h._findNextWordOnLine(y,w,new R.a(C,s.end+1));s?g=s.start+1:g=w.getLineMaxColumn(C)}else s&&!u&&g>=s.start+1&&(s=h._findNextWordOnLine(y,w,new R.a(C,s.end+1))),s?g=s.start+1:g=w.getLineMaxColumn(C);return new R.a(C,g)},h._moveWordPartRight=function(y,w){var f=w.lineNumber,v=y.getLineMaxColumn(f);if(w.column===v)return f<y.getLineCount()?new R.a(f+1,1):w;for(var C=y.getLineContent(f),g=w.column+1;g<v;g++){var u=C.charCodeAt(g-2),s=C.charCodeAt(g-1);if(u===95&&s!==95)return new R.a(f,g);if(T.B(u)&&T.C(s))return new R.a(f,g);if(T.C(u)&&T.C(s)&&g+1<v){var l=C.charCodeAt(g);if(T.B(l))return new R.a(f,g)}}return new R.a(f,v)},h._deleteWordLeftWhitespace=function(y,w){var f=y.getLineContent(w.lineNumber),v=w.column-2,C=T.D(f,v);return C+1<v?new B.a(w.lineNumber,C+2,w.lineNumber,w.column):null},h.deleteWordLeft=function(y,w,f,v,C){if(!f.isEmpty())return f;var g=new R.a(f.positionLineNumber,f.positionColumn),u=g.lineNumber,s=g.column;if(u===1&&s===1)return null;if(v){var l=this._deleteWordLeftWhitespace(w,g);if(l)return l}var c=h._findPreviousWordOnLine(y,w,g);return C===0?c?s=c.start+1:s>1?s=1:(u--,s=w.getLineMaxColumn(u)):(c&&s<=c.end+1&&(c=h._findPreviousWordOnLine(y,w,new R.a(u,c.start+1))),c?s=c.end+1:s>1?s=1:(u--,s=w.getLineMaxColumn(u))),new B.a(u,s,g.lineNumber,g.column)},h._deleteWordPartLeft=function(y,w){if(!w.isEmpty())return w;var f=w.getPosition(),v=h._moveWordPartLeft(y,f);return new B.a(f.lineNumber,f.column,v.lineNumber,v.column)},h._findFirstNonWhitespaceChar=function(y,w){for(var f=y.length,v=w;v<f;v++){var C=y.charAt(v);if(C!==" "&&C!==" ")return v}return f},h._deleteWordRightWhitespace=function(y,w){var f=y.getLineContent(w.lineNumber),v=w.column-1,C=this._findFirstNonWhitespaceChar(f,v);return v+1<C?new B.a(w.lineNumber,w.column,w.lineNumber,C+1):null},h.deleteWordRight=function(y,w,f,v,C){if(!f.isEmpty())return f;var g=new R.a(f.positionLineNumber,f.positionColumn),u=g.lineNumber,s=g.column,l=w.getLineCount(),c=w.getLineMaxColumn(u);if(u===l&&s===c)return null;if(v){var p=this._deleteWordRightWhitespace(w,g);if(p)return p}var _=h._findNextWordOnLine(y,w,g);return C===2?_?s=_.end+1:s<c||u===l?s=c:(u++,_=h._findNextWordOnLine(y,w,new R.a(u,1)),_?s=_.start+1:s=w.getLineMaxColumn(u)):(_&&s>=_.start+1&&(_=h._findNextWordOnLine(y,w,new R.a(u,_.end+1))),_?s=_.start+1:s<c||u===l?s=c:(u++,_=h._findNextWordOnLine(y,w,new R.a(u,1)),_?s=_.start+1:s=w.getLineMaxColumn(u))),new B.a(u,s,g.lineNumber,g.column)},h._deleteWordPartRight=function(y,w){if(!w.isEmpty())return w;var f=w.getPosition(),v=h._moveWordPartRight(y,f);return new B.a(f.lineNumber,f.column,v.lineNumber,v.column)},h.word=function(y,w,f,v,C){var g=Object($.a)(y.wordSeparators),u=h._findPreviousWordOnLine(g,w,C),s=h._findNextWordOnLine(g,w,C);if(!v){var l,c;return u&&u.wordType===1&&u.start<=C.column-1&&C.column-1<=u.end?(l=u.start+1,c=u.end+1):s&&s.wordType===1&&s.start<=C.column-1&&C.column-1<=s.end?(l=s.start+1,c=s.end+1):(u?l=u.end+1:l=1,s?c=s.start+1:c=w.getLineMaxColumn(C.lineNumber)),new le.f(new B.a(C.lineNumber,l,C.lineNumber,c),0,new R.a(C.lineNumber,c),0)}var p,_;u&&u.wordType===1&&u.start<C.column-1&&C.column-1<u.end?(p=u.start+1,_=u.end+1):s&&s.wordType===1&&s.start<C.column-1&&C.column-1<s.end?(p=s.start+1,_=s.end+1):(p=C.column,_=C.column);var L=C.lineNumber,I;if(f.selectionStart.containsPosition(C))I=f.selectionStart.endColumn;else if(C.isBeforeOrEqual(f.selectionStart.getStartPosition())){I=p;var P=new R.a(L,I);f.selectionStart.containsPosition(P)&&(I=f.selectionStart.endColumn)}else{I=_;var P=new R.a(L,I);f.selectionStart.containsPosition(P)&&(I=f.selectionStart.startColumn)}return f.move(!0,L,I,0)},h}(),W=function(h){z(y,h);function y(){return h!==null&&h.apply(this,arguments)||this}return y.deleteWordPartLeft=function(w,f,v,C){var g=x([D.deleteWordLeft(w,f,v,C,0),D.deleteWordLeft(w,f,v,C,2),D._deleteWordPartLeft(f,v)]);return g.sort(B.a.compareRangesUsingEnds),g[2]},y.deleteWordPartRight=function(w,f,v,C){var g=x([D.deleteWordRight(w,f,v,C,0),D.deleteWordRight(w,f,v,C,2),D._deleteWordPartRight(f,v)]);return g.sort(B.a.compareRangesUsingStarts),g[0]},y.moveWordPartLeft=function(w,f,v){var C=x([D.moveWordLeft(w,f,v,0),D.moveWordLeft(w,f,v,2),D._moveWordPartLeft(f,v)]);return C.sort(R.a.compare),C[2]},y.moveWordPartRight=function(w,f,v){var C=x([D.moveWordRight(w,f,v,0),D.moveWordRight(w,f,v,2),D._moveWordPartRight(f,v)]);return C.sort(R.a.compare),C[0]},y}(D);function x(h){return h.filter(function(y){return Boolean(y)})}},"1YUG":function(Lt,N,e){"use strict";e.r(N),e.d(N,"CoreEditorCommand",function(){return u}),e.d(N,"EditorScroll_",function(){return s}),e.d(N,"RevealLine_",function(){return l}),e.d(N,"CoreNavigationCommands",function(){return c}),e.d(N,"CoreEditingCommands",function(){return p});var T=e("3/fG"),le=e("746U"),$=e("sswD"),R=e("Vxe3"),B=e("Ll0s"),z=e("cGHE"),D=e("aokT"),W=function(){function A(){}return A.columnSelect=function(Q,K,H,V,de,_e){for(var Se=Math.abs(de-H)+1,Ie=H>de,Pe=V>_e,Ve=V<_e,ke=[],se=0;se<Se;se++){var ee=H+(Ie?-se:se),ie=B.a.columnFromVisibleColumn2(Q,K,ee,V),q=B.a.columnFromVisibleColumn2(Q,K,ee,_e),ce=B.a.visibleColumnFromColumn2(Q,K,new z.a(ee,ie)),Z=B.a.visibleColumnFromColumn2(Q,K,new z.a(ee,q));if(Ve){if(ce>_e)continue;if(Z<V)continue}if(Pe){if(Z>V)continue;if(ce<_e)continue}ke.push(new B.f(new D.a(ee,ie,ee,ie),0,new z.a(ee,q),0))}if(ke.length===0)for(var se=0;se<Se;se++){var ee=H+(Ie?-se:se),ye=K.getLineMaxColumn(ee);ke.push(new B.f(new D.a(ee,ye,ee,ye),0,new z.a(ee,ye),0))}return{viewStates:ke,reversed:Ie,fromLineNumber:H,fromVisualColumn:V,toLineNumber:de,toVisualColumn:_e}},A.columnSelectLeft=function(Q,K,H){var V=H.toViewVisualColumn;return V>1&&V--,A.columnSelect(Q,K,H.fromViewLineNumber,H.fromViewVisualColumn,H.toViewLineNumber,V)},A.columnSelectRight=function(Q,K,H){for(var V=0,de=Math.min(H.fromViewLineNumber,H.toViewLineNumber),_e=Math.max(H.fromViewLineNumber,H.toViewLineNumber),Se=de;Se<=_e;Se++){var Ie=K.getLineMaxColumn(Se),Pe=B.a.visibleColumnFromColumn2(Q,K,new z.a(Se,Ie));V=Math.max(V,Pe)}var Ve=H.toViewVisualColumn;return Ve<V&&Ve++,this.columnSelect(Q,K,H.fromViewLineNumber,H.fromViewVisualColumn,H.toViewLineNumber,Ve)},A.columnSelectUp=function(Q,K,H,V){var de=V?Q.pageSize:1,_e=Math.max(1,H.toViewLineNumber-de);return this.columnSelect(Q,K,H.fromViewLineNumber,H.fromViewVisualColumn,_e,H.toViewVisualColumn)},A.columnSelectDown=function(Q,K,H,V){var de=V?Q.pageSize:1,_e=Math.min(K.getLineCount(),H.toViewLineNumber+de);return this.columnSelect(Q,K,H.fromViewLineNumber,H.fromViewVisualColumn,_e,H.toViewVisualColumn)},A}(),x=e("snIX"),h=e("oAeH"),y=e("GR/f"),w=e("iuje"),f=e("wQH0"),v=e("T8No"),C=function(){var A=function(Q,K){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,V){H.__proto__=V}||function(H,V){for(var de in V)V.hasOwnProperty(de)&&(H[de]=V[de])},A(Q,K)};return function(Q,K){A(Q,K);function H(){this.constructor=Q}Q.prototype=K===null?Object.create(K):(H.prototype=K.prototype,new H)}}(),g=0,u=function(A){C(Q,A);function Q(){return A!==null&&A.apply(this,arguments)||this}return Q.prototype.runEditorCommand=function(K,H,V){var de=H._getCursors();if(!de)return;this.runCoreEditorCommand(de,V||{})},Q}($.c),s;(function(A){var Q=function(H){if(!le.i(H))return!1;var V=H;return le.j(V.to)?!le.k(V.by)&&!le.j(V.by)||!le.k(V.value)&&!le.h(V.value)?!1:!(!le.k(V.revealCursor)&&!le.e(V.revealCursor)):!1};A.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:Q,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"}}}}]},A.RawDirection={Up:"up",Down:"down"},A.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"};function K(H){var V;switch(H.to){case A.RawDirection.Up:V=1;break;case A.RawDirection.Down:V=2;break;default:return null}var de;switch(H.by){case A.RawUnit.Line:de=1;break;case A.RawUnit.WrappedLine:de=2;break;case A.RawUnit.Page:de=3;break;case A.RawUnit.HalfPage:de=4;break;default:de=2}var _e=Math.floor(H.value||1),Se=!!H.revealCursor;return{direction:V,unit:de,value:_e,revealCursor:Se,select:!!H.select}}A.parse=K})(s||(s={}));var l;(function(A){var Q=function(K){if(!le.i(K))return!1;var H=K;return le.h(H.lineNumber)?!(!le.k(H.at)&&!le.j(H.at)):!1};A.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:Q,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},A.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}})(l||(l={}));var c;(function(A){var Q=function(q){C(ce,q);function ce(Z){var ye=q.call(this,Z)||this;return ye._inSelectionMode=Z.inSelectionMode,ye}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,[h.b.moveTo(Z.context,Z.getPrimaryCursor(),this._inSelectionMode,ye.position,ye.viewPosition)]),Z.reveal(ye.source,!0,0,0)},ce}(u);A.MoveTo=Object($.g)(new Q({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),A.MoveToSelect=Object($.g)(new Q({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));var K=function(q){C(ce,q);function ce(){return q!==null&&q.apply(this,arguments)||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement();var je=this._getColumnSelectResult(Z.context,Z.getPrimaryCursor(),Z.getColumnSelectData(),ye);Z.setStates(ye.source,3,je.viewStates.map(function(Ge){return B.d.fromViewState(Ge)})),Z.setColumnSelectData({isReal:!0,fromViewLineNumber:je.fromLineNumber,fromViewVisualColumn:je.fromVisualColumn,toViewLineNumber:je.toLineNumber,toViewVisualColumn:je.toVisualColumn}),Z.reveal(ye.source,!0,je.reversed?1:2,0)},ce}(u);A.ColumnSelect=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"columnSelect",precondition:void 0})||this}return ce.prototype._getColumnSelectResult=function(Z,ye,je,Ge){var ue=Z.model.validatePosition(Ge.position),ve=Z.validateViewPosition(new z.a(Ge.viewPosition.lineNumber,Ge.viewPosition.column),ue),Ee=Ge.doColumnSelect?je.fromViewLineNumber:ve.lineNumber,xe=Ge.doColumnSelect?je.fromViewVisualColumn:Ge.mouseColumn-1;return W.columnSelect(Z.config,Z.viewModel,Ee,xe,ve.lineNumber,Ge.mouseColumn-1)},ce}(K))),A.CursorColumnSelectLeft=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|512|15,linux:{primary:0}}})||this}return ce.prototype._getColumnSelectResult=function(Z,ye,je,Ge){return W.columnSelectLeft(Z.config,Z.viewModel,je)},ce}(K))),A.CursorColumnSelectRight=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|512|17,linux:{primary:0}}})||this}return ce.prototype._getColumnSelectResult=function(Z,ye,je,Ge){return W.columnSelectRight(Z.config,Z.viewModel,je)},ce}(K)));var H=function(q){C(ce,q);function ce(Z){var ye=q.call(this,Z)||this;return ye._isPaged=Z.isPaged,ye}return ce.prototype._getColumnSelectResult=function(Z,ye,je,Ge){return W.columnSelectUp(Z.config,Z.viewModel,je,this._isPaged)},ce}(K);A.CursorColumnSelectUp=Object($.g)(new H({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|512|16,linux:{primary:0}}})),A.CursorColumnSelectPageUp=Object($.g)(new H({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|512|11,linux:{primary:0}}}));var V=function(q){C(ce,q);function ce(Z){var ye=q.call(this,Z)||this;return ye._isPaged=Z.isPaged,ye}return ce.prototype._getColumnSelectResult=function(Z,ye,je,Ge){return W.columnSelectDown(Z.config,Z.viewModel,je,this._isPaged)},ce}(K);A.CursorColumnSelectDown=Object($.g)(new V({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|512|18,linux:{primary:0}}})),A.CursorColumnSelectPageDown=Object($.g)(new V({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|512|12,linux:{primary:0}}}));var de=function(q){C(ce,q);function ce(){return q.call(this,{id:"cursorMove",precondition:void 0,description:h.a.description})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){var je=h.a.parse(ye);if(!je)return;this._runCursorMove(Z,ye.source,je)},ce.prototype._runCursorMove=function(Z,ye,je){Z.context.model.pushStackElement(),Z.setStates(ye,3,h.b.move(Z.context,Z.getAll(),je)),Z.reveal(ye,!0,0,0)},ce}(u);A.CursorMoveImpl=de,A.CursorMove=Object($.g)(new de);var _e=function(q){C(ce,q);function ce(Z){var ye=q.call(this,Z)||this;return ye._staticArgs=Z.args,ye}return ce.prototype.runCoreEditorCommand=function(Z,ye){var je=this._staticArgs;this._staticArgs.value===-1&&(je={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:Z.context.config.pageSize}),A.CursorMove._runCursorMove(Z,ye.source,je)},ce}(u);A.CursorLeft=Object($.g)(new _e({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:15,mac:{primary:15,secondary:[256|32]}}})),A.CursorLeftSelect=Object($.g)(new _e({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|15}})),A.CursorRight=Object($.g)(new _e({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:17,mac:{primary:17,secondary:[256|36]}}})),A.CursorRightSelect=Object($.g)(new _e({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|17}})),A.CursorUp=Object($.g)(new _e({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:16,mac:{primary:16,secondary:[256|46]}}})),A.CursorUpSelect=Object($.g)(new _e({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|16,secondary:[2048|1024|16],mac:{primary:1024|16},linux:{primary:1024|16}}})),A.CursorPageUp=Object($.g)(new _e({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:11}})),A.CursorPageUpSelect=Object($.g)(new _e({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|11}})),A.CursorDown=Object($.g)(new _e({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:18,mac:{primary:18,secondary:[256|44]}}})),A.CursorDownSelect=Object($.g)(new _e({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|18,secondary:[2048|1024|18],mac:{primary:1024|18},linux:{primary:1024|18}}})),A.CursorPageDown=Object($.g)(new _e({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:12}})),A.CursorPageDownSelect=Object($.g)(new _e({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|12}})),A.CreateCursor=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"createCursor",precondition:void 0})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){var je=Z.context,Ge;ye.wholeLine?Ge=h.b.line(je,Z.getPrimaryCursor(),!1,ye.position,ye.viewPosition):Ge=h.b.moveTo(je,Z.getPrimaryCursor(),!1,ye.position,ye.viewPosition);var ue=Z.getAll();if(ue.length>1)for(var ve=Ge.modelState?Ge.modelState.position:null,Ee=Ge.viewState?Ge.viewState.position:null,xe=0,Ce=ue.length;xe<Ce;xe++){var he=ue[xe];if(ve&&!he.modelState.selection.containsPosition(ve))continue;if(Ee&&!he.viewState.selection.containsPosition(Ee))continue;ue.splice(xe,1),Z.context.model.pushStackElement(),Z.setStates(ye.source,3,ue);return}ue.push(Ge),Z.context.model.pushStackElement(),Z.setStates(ye.source,3,ue)},ce}(u))),A.LastCursorMoveToSelect=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"_lastCursorMoveToSelect",precondition:void 0})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){var je=Z.context,Ge=Z.getLastAddedCursorIndex(),ue=Z.getAll(),ve=ue.slice(0);ve[Ge]=h.b.moveTo(je,ue[Ge],!0,ye.position,ye.viewPosition),Z.context.model.pushStackElement(),Z.setStates(ye.source,3,ve)},ce}(u)));var Se=function(q){C(ce,q);function ce(Z){var ye=q.call(this,Z)||this;return ye._inSelectionMode=Z.inSelectionMode,ye}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,h.b.moveToBeginningOfLine(Z.context,Z.getAll(),this._inSelectionMode)),Z.reveal(ye.source,!0,0,0)},ce}(u);A.CursorHome=Object($.g)(new Se({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:14,mac:{primary:14,secondary:[2048|15]}}})),A.CursorHomeSelect=Object($.g)(new Se({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|14,mac:{primary:1024|14,secondary:[2048|1024|15]}}})),A.CursorLineStart=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"cursorLineStart",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:0,mac:{primary:256|31}}})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,this._exec(Z.context,Z.getAll())),Z.reveal(ye.source,!0,0,0)},ce.prototype._exec=function(Z,ye){for(var je=[],Ge=0,ue=ye.length;Ge<ue;Ge++){var ve=ye[Ge],Ee=ve.modelState.position.lineNumber;je[Ge]=B.d.fromModelState(ve.modelState.move(!1,Ee,1,0))}return je},ce}(u)));var Ie=function(q){C(ce,q);function ce(Z){var ye=q.call(this,Z)||this;return ye._inSelectionMode=Z.inSelectionMode,ye}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,h.b.moveToEndOfLine(Z.context,Z.getAll(),this._inSelectionMode)),Z.reveal(ye.source,!0,0,0)},ce}(u);A.CursorEnd=Object($.g)(new Ie({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:13,mac:{primary:13,secondary:[2048|17]}}})),A.CursorEndSelect=Object($.g)(new Ie({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1024|13,mac:{primary:1024|13,secondary:[2048|1024|17]}}})),A.CursorLineEnd=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:0,mac:{primary:256|35}}})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,this._exec(Z.context,Z.getAll())),Z.reveal(ye.source,!0,0,0)},ce.prototype._exec=function(Z,ye){for(var je=[],Ge=0,ue=ye.length;Ge<ue;Ge++){var ve=ye[Ge],Ee=ve.modelState.position.lineNumber,xe=Z.model.getLineMaxColumn(Ee);je[Ge]=B.d.fromModelState(ve.modelState.move(!1,Ee,xe,0))}return je},ce}(u)));var Pe=function(q){C(ce,q);function ce(Z){var ye=q.call(this,Z)||this;return ye._inSelectionMode=Z.inSelectionMode,ye}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,h.b.moveToBeginningOfBuffer(Z.context,Z.getAll(),this._inSelectionMode)),Z.reveal(ye.source,!0,0,0)},ce}(u);A.CursorTop=Object($.g)(new Pe({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|14,mac:{primary:2048|16}}})),A.CursorTopSelect=Object($.g)(new Pe({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|14,mac:{primary:2048|1024|16}}}));var Ve=function(q){C(ce,q);function ce(Z){var ye=q.call(this,Z)||this;return ye._inSelectionMode=Z.inSelectionMode,ye}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,h.b.moveToEndOfBuffer(Z.context,Z.getAll(),this._inSelectionMode)),Z.reveal(ye.source,!0,0,0)},ce}(u);A.CursorBottom=Object($.g)(new Ve({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|13,mac:{primary:2048|18}}})),A.CursorBottomSelect=Object($.g)(new Ve({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|1024|13,mac:{primary:2048|1024|18}}}));var ke=function(q){C(ce,q);function ce(){return q.call(this,{id:"editorScroll",precondition:void 0,description:s.description})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){var je=s.parse(ye);if(!je)return;this._runEditorScroll(Z,ye.source,je)},ce.prototype._runEditorScroll=function(Z,ye,je){var Ge=this._computeDesiredScrollTop(Z.context,je);if(je.revealCursor){var ue=Z.context.getCompletelyVisibleViewRangeAtScrollTop(Ge);Z.setStates(ye,3,[h.b.findPositionInViewportIfOutside(Z.context,Z.getPrimaryCursor(),ue,je.select)])}Z.scrollTo(Ge)},ce.prototype._computeDesiredScrollTop=function(Z,ye){if(ye.unit===1){var je=Z.getCompletelyVisibleModelRange(),Ge=void 0;ye.direction===1?Ge=Math.max(1,je.startLineNumber-ye.value):Ge=Math.min(Z.model.getLineCount(),je.startLineNumber+ye.value);var ue=Z.convertModelPositionToViewPosition(new z.a(Ge,1));return Z.getVerticalOffsetForViewLine(ue.lineNumber)}var ve;ye.unit===3?ve=Z.config.pageSize*ye.value:ye.unit===4?ve=Math.round(Z.config.pageSize/2)*ye.value:ve=ye.value;var Ee=(ye.direction===1?-1:1)*ve;return Z.getCurrentScrollTop()+Ee*Z.config.lineHeight},ce}(u);A.EditorScrollImpl=ke,A.EditorScroll=Object($.g)(new ke),A.ScrollLineUp=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"scrollLineUp",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|16,mac:{primary:256|11}}})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){A.EditorScroll._runEditorScroll(Z,ye.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})},ce}(u))),A.ScrollPageUp=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"scrollPageUp",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|11,win:{primary:512|11},linux:{primary:512|11}}})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){A.EditorScroll._runEditorScroll(Z,ye.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})},ce}(u))),A.ScrollLineDown=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"scrollLineDown",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|18,mac:{primary:256|12}}})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){A.EditorScroll._runEditorScroll(Z,ye.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})},ce}(u))),A.ScrollPageDown=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"scrollPageDown",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|12,win:{primary:512|12},linux:{primary:512|12}}})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){A.EditorScroll._runEditorScroll(Z,ye.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})},ce}(u)));var se=function(q){C(ce,q);function ce(Z){var ye=q.call(this,Z)||this;return ye._inSelectionMode=Z.inSelectionMode,ye}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,[h.b.word(Z.context,Z.getPrimaryCursor(),this._inSelectionMode,ye.position)]),Z.reveal(ye.source,!0,0,0)},ce}(u);A.WordSelect=Object($.g)(new se({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),A.WordSelectDrag=Object($.g)(new se({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),A.LastCursorWordSelect=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"lastCursorWordSelect",precondition:void 0})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){var je=Z.context,Ge=Z.getLastAddedCursorIndex(),ue=Z.getAll(),ve=ue.slice(0),Ee=ue[Ge];ve[Ge]=h.b.word(je,Ee,Ee.modelState.hasSelection(),ye.position),je.model.pushStackElement(),Z.setStates(ye.source,3,ve)},ce}(u)));var ee=function(q){C(ce,q);function ce(Z){var ye=q.call(this,Z)||this;return ye._inSelectionMode=Z.inSelectionMode,ye}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,[h.b.line(Z.context,Z.getPrimaryCursor(),this._inSelectionMode,ye.position,ye.viewPosition)]),Z.reveal(ye.source,!1,0,0)},ce}(u);A.LineSelect=Object($.g)(new ee({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),A.LineSelectDrag=Object($.g)(new ee({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));var ie=function(q){C(ce,q);function ce(Z){var ye=q.call(this,Z)||this;return ye._inSelectionMode=Z.inSelectionMode,ye}return ce.prototype.runCoreEditorCommand=function(Z,ye){var je=Z.getLastAddedCursorIndex(),Ge=Z.getAll(),ue=Ge.slice(0);ue[je]=h.b.line(Z.context,Ge[je],this._inSelectionMode,ye.position,ye.viewPosition),Z.context.model.pushStackElement(),Z.setStates(ye.source,3,ue)},ce}(u);A.LastCursorLineSelect=Object($.g)(new ie({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),A.LastCursorLineSelectDrag=Object($.g)(new ie({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),A.ExpandLineSelection=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"expandLineSelection",precondition:void 0,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|42}})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,h.b.expandLineSelection(Z.context,Z.getAll())),Z.reveal(ye.source,!0,0,0)},ce}(u))),A.CancelSelection=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"cancelSelection",precondition:f.a.hasNonEmptySelection,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,[h.b.cancelSelection(Z.context,Z.getPrimaryCursor())]),Z.reveal(ye.source,!0,0,0)},ce}(u))),A.RemoveSecondaryCursors=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"removeSecondaryCursors",precondition:f.a.hasMultipleSelections,kbOpts:{weight:g+1,kbExpr:f.a.textInputFocus,primary:9,secondary:[1024|9]}})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,[Z.getPrimaryCursor()]),Z.reveal(ye.source,!0,0,0)},ce}(u))),A.RevealLine=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"revealLine",precondition:void 0,description:l.description})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){var je=ye,Ge=(je.lineNumber||0)+1;Ge<1&&(Ge=1);var ue=Z.context.model.getLineCount();Ge>ue&&(Ge=ue);var ve=new D.a(Ge,1,Ge,Z.context.model.getLineMaxColumn(Ge)),Ee=0;if(je.at)switch(je.at){case l.RawAtArgument.Top:Ee=3;break;case l.RawAtArgument.Center:Ee=1;break;case l.RawAtArgument.Bottom:Ee=4;break;default:break}var xe=Z.context.convertModelRangeToViewRange(ve);Z.revealRange(ye.source,!1,xe,Ee,0)},ce}(u))),A.SelectAll=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"selectAll",precondition:void 0})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,[h.b.selectAll(Z.context,Z.getPrimaryCursor())])},ce}(u))),A.SetSelection=Object($.g)(new(function(q){C(ce,q);function ce(){return q.call(this,{id:"setSelection",precondition:void 0})||this}return ce.prototype.runCoreEditorCommand=function(Z,ye){Z.context.model.pushStackElement(),Z.setStates(ye.source,3,[B.d.fromModelSelection(ye.selection)])},ce}(u)))})(c||(c={}));var p;(function(A){var Q=function(K){C(H,K);function H(){return K!==null&&K.apply(this,arguments)||this}return H.prototype.runEditorCommand=function(V,de,_e){var Se=de._getCursors();if(!Se)return;this.runCoreEditingCommand(de,Se,_e||{})},H}($.c);A.CoreEditingCommand=Q,A.LineBreakInsert=Object($.g)(new(function(K){C(H,K);function H(){return K.call(this,{id:"lineBreakInsert",precondition:f.a.writable,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:0,mac:{primary:256|45}}})||this}return H.prototype.runCoreEditingCommand=function(V,de,_e){V.pushUndoStop(),V.executeCommands(this.id,y.a.lineBreakInsert(de.context.config,de.context.model,de.getAll().map(function(Se){return Se.modelState.selection})))},H}(Q))),A.Outdent=Object($.g)(new(function(K){C(H,K);function H(){return K.call(this,{id:"outdent",precondition:f.a.writable,kbOpts:{weight:g,kbExpr:v.a.and(f.a.editorTextFocus,f.a.tabDoesNotMoveFocus),primary:1024|2}})||this}return H.prototype.runCoreEditingCommand=function(V,de,_e){V.pushUndoStop(),V.executeCommands(this.id,y.a.outdent(de.context.config,de.context.model,de.getAll().map(function(Se){return Se.modelState.selection}))),V.pushUndoStop()},H}(Q))),A.Tab=Object($.g)(new(function(K){C(H,K);function H(){return K.call(this,{id:"tab",precondition:f.a.writable,kbOpts:{weight:g,kbExpr:v.a.and(f.a.editorTextFocus,f.a.tabDoesNotMoveFocus),primary:2}})||this}return H.prototype.runCoreEditingCommand=function(V,de,_e){V.pushUndoStop(),V.executeCommands(this.id,y.a.tab(de.context.config,de.context.model,de.getAll().map(function(Se){return Se.modelState.selection}))),V.pushUndoStop()},H}(Q))),A.DeleteLeft=Object($.g)(new(function(K){C(H,K);function H(){return K.call(this,{id:"deleteLeft",precondition:f.a.writable,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:1,secondary:[1024|1],mac:{primary:1,secondary:[1024|1,256|38,256|1]}}})||this}return H.prototype.runCoreEditingCommand=function(V,de,_e){var Se=x.a.deleteLeft(de.getPrevEditOperationType(),de.context.config,de.context.model,de.getAll().map(function(Ve){return Ve.modelState.selection})),Ie=Se[0],Pe=Se[1];Ie&&V.pushUndoStop(),V.executeCommands(this.id,Pe),de.setPrevEditOperationType(2)},H}(Q))),A.DeleteRight=Object($.g)(new(function(K){C(H,K);function H(){return K.call(this,{id:"deleteRight",precondition:f.a.writable,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:20,mac:{primary:20,secondary:[256|34,256|20]}}})||this}return H.prototype.runCoreEditingCommand=function(V,de,_e){var Se=x.a.deleteRight(de.getPrevEditOperationType(),de.context.config,de.context.model,de.getAll().map(function(Ve){return Ve.modelState.selection})),Ie=Se[0],Pe=Se[1];Ie&&V.pushUndoStop(),V.executeCommands(this.id,Pe),de.setPrevEditOperationType(3)},H}(Q)))})(p||(p={}));function _(A){A.register()}var L=function(A){C(Q,A);function Q(K){var H=A.call(this,K)||this;return H._editorHandler=K.editorHandler,H._inputHandler=K.inputHandler,H}return Q.prototype.runCommand=function(K,H){var V=K.get(R.a).getFocusedCodeEditor();if(V&&V.hasTextFocus())return this._runEditorHandler(K,V,H);var de=document.activeElement;if(de&&["input","textarea"].indexOf(de.tagName.toLowerCase())>=0){document.execCommand(this._inputHandler);return}var _e=K.get(R.a).getActiveCodeEditor();if(_e)return _e.focus(),this._runEditorHandler(K,_e,H)},Q.prototype._runEditorHandler=function(K,H,V){var de=this._editorHandler;typeof de=="string"?H.trigger("keyboard",de,V):(V=V||{},V.source="keyboard",de.runEditorCommand(K,H,V))},Q}($.a),I=function(A){C(Q,A);function Q(K,H,V){var de=A.call(this,{id:K,precondition:void 0,description:V})||this;return de._handlerId=H,de}return Q.prototype.runCommand=function(K,H){var V=K.get(R.a).getFocusedCodeEditor();if(!V)return;V.trigger("keyboard",this._handlerId,H)},Q}($.a);_(new L({editorHandler:c.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:f.a.textInputFocus,kbOpts:{weight:g,kbExpr:null,primary:2048|31},menuOpts:{menuId:25,group:"1_basic",title:T.a({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),_(new L({editorHandler:w.b.Undo,inputHandler:"undo",id:w.b.Undo,precondition:f.a.writable,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|56},menuOpts:{menuId:17,group:"1_do",title:T.a({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),_(new I("default:"+w.b.Undo,w.b.Undo)),_(new L({editorHandler:w.b.Redo,inputHandler:"redo",id:w.b.Redo,precondition:f.a.writable,kbOpts:{weight:g,kbExpr:f.a.textInputFocus,primary:2048|55,secondary:[2048|1024|56],mac:{primary:2048|1024|56}},menuOpts:{menuId:17,group:"1_do",title:T.a({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),_(new I("default:"+w.b.Redo,w.b.Redo));function P(A,Q){_(new I("default:"+A,A)),_(new I(A,A,Q))}P(w.b.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),P(w.b.ReplacePreviousChar),P(w.b.CompositionStart),P(w.b.CompositionEnd),P(w.b.Paste),P(w.b.Cut)},"1lwE":function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return e.e(339).then(e.bind(null,"cOMg"))}})},"23p7":function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return e.e(292).then(e.bind(null,"aA7r"))}})},"24hK":function(Lt,N,e){"use strict";e.d(N,"a",function(){return $});var T=e("JYp7"),le=function(){function R(B){this.element=B,this.next=R.Undefined,this.prev=R.Undefined}return R.Undefined=new R(void 0),R}(),$=function(){function R(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}return Object.defineProperty(R.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),R.prototype.isEmpty=function(){return this._first===le.Undefined},R.prototype.clear=function(){this._first=le.Undefined,this._last=le.Undefined,this._size=0},R.prototype.unshift=function(B){return this._insert(B,!1)},R.prototype.push=function(B){return this._insert(B,!0)},R.prototype._insert=function(B,z){var D=this,W=new le(B);if(this._first===le.Undefined)this._first=W,this._last=W;else if(z){var x=this._last;this._last=W,W.prev=x,x.next=W}else{var h=this._first;this._first=W,W.next=h,h.prev=W}this._size+=1;var y=!1;return function(){y||(y=!0,D._remove(W))}},R.prototype.shift=function(){if(this._first===le.Undefined)return;var B=this._first.element;return this._remove(this._first),B},R.prototype.pop=function(){if(this._last===le.Undefined)return;var B=this._last.element;return this._remove(this._last),B},R.prototype._remove=function(B){if(B.prev!==le.Undefined&&B.next!==le.Undefined){var z=B.prev;z.next=B.next,B.next.prev=z}else B.prev===le.Undefined&&B.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):B.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):B.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1},R.prototype.iterator=function(){var B,z=this._first;return{next:function(){return z===le.Undefined?T.c:(B?B.value=z.element:B={done:!1,value:z.element},z=z.next,B)}}},R.prototype.toArray=function(){for(var B=[],z=this._first;z!==le.Undefined;z=z.next)B.push(z.element);return B},R}()},"2ESN":function(Lt,N,e){"use strict";e.r(N);var T=e("YHy6"),le=e("3/fG"),$=e("X+cX"),R=e("JQT/"),B=e("/cxE"),z=e("eLzo"),D=e("pmY6"),W=e("MNsG"),x=e("sswD"),h=e("tX9W"),y=e("twdY"),w=e("aBYw"),f=e("bY76"),v=e("aokT"),C=e("G2kB"),g=e("nnTU"),u=e("6OMU"),s=function(){var ee=function(ie,q){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,Z){ce.__proto__=Z}||function(ce,Z){for(var ye in Z)Z.hasOwnProperty(ye)&&(ce[ye]=Z[ye])},ee(ie,q)};return function(ie,q){ee(ie,q);function ce(){this.constructor=ie}ie.prototype=q===null?Object.create(q):(ce.prototype=q.prototype,new ce)}}(),l=function(ee,ie,q,ce){function Z(ye){return ye instanceof q?ye:new q(function(je){je(ye)})}return new(q||(q=Promise))(function(ye,je){function Ge(Ee){try{ve(ce.next(Ee))}catch(xe){je(xe)}}function ue(Ee){try{ve(ce.throw(Ee))}catch(xe){je(xe)}}function ve(Ee){Ee.done?ye(Ee.value):Z(Ee.value).then(Ge,ue)}ve((ce=ce.apply(ee,ie||[])).next())})},c=function(ee,ie){var q={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},ce,Z,ye,je;return je={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(je[Symbol.iterator]=function(){return this}),je;function Ge(ve){return function(Ee){return ue([ve,Ee])}}function ue(ve){if(ce)throw new TypeError("Generator is already executing.");for(;q;)try{if(ce=1,Z&&(ye=ve[0]&2?Z.return:ve[0]?Z.throw||((ye=Z.return)&&ye.call(Z),0):Z.next)&&!(ye=ye.call(Z,ve[1])).done)return ye;(Z=0,ye)&&(ve=[ve[0]&2,ye.value]);switch(ve[0]){case 0:case 1:ye=ve;break;case 4:return q.label++,{value:ve[1],done:!1};case 5:q.label++,Z=ve[1],ve=[0];continue;case 7:ve=q.ops.pop(),q.trys.pop();continue;default:if(!(ye=q.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){q=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]<ye[3])){q.label=ve[1];break}if(ve[0]===6&&q.label<ye[1]){q.label=ye[1],ye=ve;break}if(ye&&q.label<ye[2]){q.label=ye[2],q.ops.push(ve);break}ye[2]&&q.ops.pop(),q.trys.pop();continue}ve=ie.call(ee,q)}catch(Ee){ve=[6,Ee],Z=0}finally{ce=ye=0}if(ve[0]&5)throw ve[1];return{value:ve[0]?ve[1]:void 0,done:!0}}},p=function(){function ee(ie,q){this._link=ie,this._provider=q}return ee.prototype.toJSON=function(){return{range:this.range,url:this.url,tooltip:this.tooltip}},Object.defineProperty(ee.prototype,"range",{get:function(){return this._link.range},enumerable:!0,configurable:!0}),Object.defineProperty(ee.prototype,"url",{get:function(){return this._link.url},enumerable:!0,configurable:!0}),Object.defineProperty(ee.prototype,"tooltip",{get:function(){return this._link.tooltip},enumerable:!0,configurable:!0}),ee.prototype.resolve=function(ie){return l(this,void 0,void 0,function(){var q=this;return c(this,function(ce){return this._link.url?[2,this._link.url]:typeof this._provider.resolveLink=="function"?[2,Promise.resolve(this._provider.resolveLink(this._link,ie)).then(function(Z){return q._link=Z||q._link,q._link.url?q.resolve(ie):Promise.reject(new Error("missing"))})]:[2,Promise.reject(new Error("missing"))]})})},ee}(),_=function(ee){s(ie,ee);function ie(q){for(var ce=ee.call(this)||this,Z=[],ye=function(Ce,he){var J=Ce.links.map(function(b){return new p(b,he)});Z=ie._union(Z,J),Object(D.g)(he)&&je._register(he)},je=this,Ge=0,ue=q;Ge<ue.length;Ge++){var ve=ue[Ge],Ee=ve[0],xe=ve[1];ye(Ee,xe)}return ce.links=Z,ce}return ie._union=function(q,ce){var Z=[],ye,je,Ge,ue;for(ye=0,Ge=0,je=q.length,ue=ce.length;ye<je&&Ge<ue;){var ve=q[ye],Ee=ce[Ge];if(v.a.areIntersectingOrTouching(ve.range,Ee.range)){ye++;continue}var xe=v.a.compareRangesUsingStarts(ve.range,Ee.range);xe<0?(Z.push(ve),ye++):(Z.push(Ee),Ge++)}for(;ye<je;ye++)Z.push(q[ye]);for(;Ge<ue;Ge++)Z.push(ce[Ge]);return Z},ie}(D.a);function L(ee,ie){var q=[],ce=y.s.ordered(ee).reverse().map(function(Z,ye){return Promise.resolve(Z.provideLinks(ee,ie)).then(function(je){je&&(q[ye]=[je,Z])},B.f)});return Promise.all(ce).then(function(){var Z=new _(Object(u.d)(q));return ie.isCancellationRequested?(Z.dispose(),new _([])):Z})}g.a.registerCommand("_executeLinkProvider",function(ee){for(var ie=[],q=1;q<arguments.length;q++)ie[q-1]=arguments[q];return l(void 0,void 0,void 0,function(){var ce,Z,ye,je;return c(this,function(Ge){switch(Ge.label){case 0:return ce=ie[0],ce instanceof f.a?(Z=ee.get(C.a).getModel(ce),Z?[4,L(Z,R.a.None)]:[2,[]]):[2,[]];case 1:return ye=Ge.sent(),ye?(je=ye.links.slice(0),ye.dispose(),[2,je]):[2,[]]}})})});var I=e("sM1p"),P=e("W9cx"),A=e("MD5Z"),Q=e("t9D7"),K=function(){var ee=function(ie,q){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,Z){ce.__proto__=Z}||function(ce,Z){for(var ye in Z)Z.hasOwnProperty(ye)&&(ce[ye]=Z[ye])},ee(ie,q)};return function(ie,q){ee(ie,q);function ce(){this.constructor=ie}ie.prototype=q===null?Object.create(q):(ce.prototype=q.prototype,new ce)}}(),H=function(){return H=Object.assign||function(ee){for(var ie,q=1,ce=arguments.length;q<ce;q++){ie=arguments[q];for(var Z in ie)Object.prototype.hasOwnProperty.call(ie,Z)&&(ee[Z]=ie[Z])}return ee},H.apply(this,arguments)},V=function(ee,ie,q,ce){var Z=arguments.length,ye=Z<3?ie:ce===null?ce=Object.getOwnPropertyDescriptor(ie,q):ce,je;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ye=Reflect.decorate(ee,ie,q,ce);else for(var Ge=ee.length-1;Ge>=0;Ge--)(je=ee[Ge])&&(ye=(Z<3?je(ye):Z>3?je(ie,q,ye):je(ie,q))||ye);return Z>3&&ye&&Object.defineProperty(ie,q,ye),ye},de=function(ee,ie){return function(q,ce){ie(q,ce,ee)}},_e=function(ee,ie,q,ce){function Z(ye){return ye instanceof q?ye:new q(function(je){je(ye)})}return new(q||(q=Promise))(function(ye,je){function Ge(Ee){try{ve(ce.next(Ee))}catch(xe){je(xe)}}function ue(Ee){try{ve(ce.throw(Ee))}catch(xe){je(xe)}}function ve(Ee){Ee.done?ye(Ee.value):Z(Ee.value).then(Ge,ue)}ve((ce=ce.apply(ee,ie||[])).next())})},Se=function(ee,ie){var q={label:0,sent:function(){if(ye[0]&1)throw ye[1];return ye[1]},trys:[],ops:[]},ce,Z,ye,je;return je={next:Ge(0),throw:Ge(1),return:Ge(2)},typeof Symbol=="function"&&(je[Symbol.iterator]=function(){return this}),je;function Ge(ve){return function(Ee){return ue([ve,Ee])}}function ue(ve){if(ce)throw new TypeError("Generator is already executing.");for(;q;)try{if(ce=1,Z&&(ye=ve[0]&2?Z.return:ve[0]?Z.throw||((ye=Z.return)&&ye.call(Z),0):Z.next)&&!(ye=ye.call(Z,ve[1])).done)return ye;(Z=0,ye)&&(ve=[ve[0]&2,ye.value]);switch(ve[0]){case 0:case 1:ye=ve;break;case 4:return q.label++,{value:ve[1],done:!1};case 5:q.label++,Z=ve[1],ve=[0];continue;case 7:ve=q.ops.pop(),q.trys.pop();continue;default:if(!(ye=q.trys,ye=ye.length>0&&ye[ye.length-1])&&(ve[0]===6||ve[0]===2)){q=0;continue}if(ve[0]===3&&(!ye||ve[1]>ye[0]&&ve[1]<ye[3])){q.label=ve[1];break}if(ve[0]===6&&q.label<ye[1]){q.label=ye[1],ye=ve;break}if(ye&&q.label<ye[2]){q.label=ye[2],q.ops.push(ve);break}ye[2]&&q.ops.pop(),q.trys.pop();continue}ve=ie.call(ee,q)}catch(Ee){ve=[6,Ee],Z=0}finally{ce=ye=0}if(ve[0]&5)throw ve[1];return{value:ve[0]?ve[1]:void 0,done:!0}}};function Ie(ee,ie){var q=ee.url&&/^command:/i.test(ee.url.toString()),ce=ee.tooltip?ee.tooltip:q?le.a("links.navigate.executeCmd","Execute command"):le.a("links.navigate.follow","Follow link"),Z=ie?W.e?le.a("links.navigate.kb.meta.mac","cmd + click"):le.a("links.navigate.kb.meta","ctrl + click"):W.e?le.a("links.navigate.kb.alt.mac","option + click"):le.a("links.navigate.kb.alt","alt + click");if(ee.url){var ye=new z.a("",!0).appendMarkdown("["+ce+"]("+ee.url.toString()+") ("+Z+")");return ye}else return new z.a().appendText(ce+" ("+Z+")")}var Pe={general:h.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:h.a.register({stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},Ve=function(){function ee(ie,q){this.link=ie,this.decorationId=q}return ee.decoration=function(ie,q){return{range:ie.range,options:ee._getOptions(ie,q,!1)}},ee._getOptions=function(ie,q,ce){var Z=H({},ce?Pe.active:Pe.general);return Z.hoverMessage=Ie(ie,q),Z},ee.prototype.activate=function(ie,q){ie.changeDecorationOptions(this.decorationId,ee._getOptions(this.link,q,!0))},ee.prototype.deactivate=function(ie,q){ie.changeDecorationOptions(this.decorationId,ee._getOptions(this.link,q,!1))},ee}(),ke=function(){function ee(ie,q,ce){var Z=this;this.listenersToRemove=new D.b,this.editor=ie,this.openerService=q,this.notificationService=ce;var ye=new w.a(ie);this.listenersToRemove.add(ye),this.listenersToRemove.add(ye.onMouseMoveOrRelevantKeyDown(function(je){var Ge=je[0],ue=je[1];Z._onEditorMouseMove(Ge,ue)})),this.listenersToRemove.add(ye.onExecute(function(je){Z.onEditorMouseUp(je)})),this.listenersToRemove.add(ye.onCancel(function(je){Z.cleanUpActiveLinkDecoration()})),this.enabled=ie.getOption(52),this.listenersToRemove.add(ie.onDidChangeConfiguration(function(je){var Ge=ie.getOption(52);if(Z.enabled===Ge)return;Z.enabled=Ge,Z.updateDecorations([]),Z.stop(),Z.beginCompute()})),this.listenersToRemove.add(ie.onDidChangeModelContent(function(je){return Z.onChange()})),this.listenersToRemove.add(ie.onDidChangeModel(function(je){return Z.onModelChanged()})),this.listenersToRemove.add(ie.onDidChangeModelLanguage(function(je){return Z.onModelModeChanged()})),this.listenersToRemove.add(y.s.onDidChange(function(je){return Z.onModelModeChanged()})),this.timeout=new $.e,this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}return ee.get=function(ie){return ie.getContribution(ee.ID)},ee.prototype.onModelChanged=function(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()},ee.prototype.onModelModeChanged=function(){this.stop(),this.beginCompute()},ee.prototype.onChange=function(){var ie=this;this.timeout.setIfNotSet(function(){return ie.beginCompute()},ee.RECOMPUTE_TIME)},ee.prototype.beginCompute=function(){return _e(this,void 0,void 0,function(){var ie,q,ce;return Se(this,function(Z){switch(Z.label){case 0:if(!this.editor.hasModel()||!this.enabled)return[2];if(ie=this.editor.getModel(),!y.s.has(ie))return[2];this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=$.f(function(ye){return L(ie,ye)}),Z.label=1;case 1:return Z.trys.push([1,3,4,5]),q=this,[4,this.computePromise];case 2:return q.activeLinksList=Z.sent(),this.updateDecorations(this.activeLinksList.links),[3,5];case 3:return ce=Z.sent(),Object(B.e)(ce),[3,5];case 4:return this.computePromise=null,[7];case 5:return[2]}})})},ee.prototype.updateDecorations=function(ie){for(var q=this.editor.getOption(59)==="altKey",ce=[],Z=Object.keys(this.currentOccurrences),ye=0,je=Z.length;ye<je;ye++){var Ge=Z[ye],ue=this.currentOccurrences[Ge];ce.push(ue.decorationId)}var ve=[];if(ie)for(var Ee=0,xe=ie;Ee<xe.length;Ee++){var Ce=xe[Ee];ve.push(Ve.decoration(Ce,q))}var he=this.editor.deltaDecorations(ce,ve);this.currentOccurrences={},this.activeLinkDecorationId=null;for(var ye=0,je=he.length;ye<je;ye++){var ue=new Ve(ie[ye],he[ye]);this.currentOccurrences[ue.decorationId]=ue}},ee.prototype._onEditorMouseMove=function(ie,q){var ce=this,Z=this.editor.getOption(59)==="altKey";if(this.isEnabled(ie,q)){this.cleanUpActiveLinkDecoration();var ye=this.getLinkOccurrence(ie.target.position);ye&&this.editor.changeDecorations(function(je){ye.activate(je,Z),ce.activeLinkDecorationId=ye.decorationId})}else this.cleanUpActiveLinkDecoration()},ee.prototype.cleanUpActiveLinkDecoration=function(){var ie=this.editor.getOption(59)==="altKey";if(this.activeLinkDecorationId){var q=this.currentOccurrences[this.activeLinkDecorationId];q&&this.editor.changeDecorations(function(ce){q.deactivate(ce,ie)}),this.activeLinkDecorationId=null}},ee.prototype.onEditorMouseUp=function(ie){if(!this.isEnabled(ie))return;var q=this.getLinkOccurrence(ie.target.position);if(!q)return;this.openLinkOccurrence(q,ie.hasSideBySideModifier,!0)},ee.prototype.openLinkOccurrence=function(ie,q,ce){var Z=this;if(ce===void 0&&(ce=!1),!this.openerService)return;var ye=ie.link;ye.resolve(R.a.None).then(function(je){return Z.openerService.open(je,{openToSide:q,fromUserGesture:ce})},function(je){var Ge=je instanceof Error?je.message:je;Ge==="invalid"?Z.notificationService.warn(le.a("invalid.url","Failed to open this link because it is not well-formed: {0}",ye.url.toString())):Ge==="missing"?Z.notificationService.warn(le.a("missing.url","Failed to open this link because its target is missing.")):Object(B.e)(je)})},ee.prototype.getLinkOccurrence=function(ie){if(!this.editor.hasModel()||!ie)return null;for(var q=this.editor.getModel().getDecorationsInRange({startLineNumber:ie.lineNumber,startColumn:ie.column,endLineNumber:ie.lineNumber,endColumn:ie.column},0,!0),ce=0,Z=q;ce<Z.length;ce++){var ye=Z[ce],je=this.currentOccurrences[ye.id];if(je)return je}return null},ee.prototype.isEnabled=function(ie,q){return Boolean(ie.target.type===6&&(ie.hasTriggerModifier||q&&q.keyCodeIsTriggerKey))},ee.prototype.stop=function(){this.timeout.cancel(),this.activeLinksList&&this.activeLinksList.dispose(),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)},ee.prototype.dispose=function(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()},ee.ID="editor.linkDetector",ee.RECOMPUTE_TIME=1e3,ee=V([de(1,P.a),de(2,I.a)],ee),ee}(),se=function(ee){K(ie,ee);function ie(){return ee.call(this,{id:"editor.action.openLink",label:le.a("label","Open Link"),alias:"Open Link",precondition:void 0})||this}return ie.prototype.run=function(q,ce){var Z=ke.get(ce);if(!Z)return;if(!ce.hasModel())return;for(var ye=ce.getSelections(),je=0,Ge=ye;je<Ge.length;je++){var ue=Ge[je],ve=Z.getLinkOccurrence(ue.getEndPosition());ve&&Z.openLinkOccurrence(ve,!1)}},ie}(x.b);Object(x.h)(ke.ID,ke),Object(x.f)(se),Object(Q.e)(function(ee,ie){var q=ee.getColor(A.n);q&&ie.addRule(".monaco-editor .detected-link-active { color: "+q+" !important; }")})},"2MPD":function(Lt,N,e){},"2Tsy":function(Lt,N,e){},"2V9f":function(Lt,N,e){},"2gzu":function(Lt,N,e){"use strict";e.d(N,"b",function(){return s}),e.d(N,"a",function(){return l});var T=e("CHaL"),le=e.n(T),$=e("3/fG"),R=e("N0LK"),B=e("8HAY"),z=e("WqXY"),D=e("EffR"),W=e("uDWl"),x=e("X+cX"),h=e("pmY6"),y=e("GJhM"),w=e("MNsG"),f=function(){var I=function(P,A){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,K){Q.__proto__=K}||function(Q,K){for(var H in K)K.hasOwnProperty(H)&&(Q[H]=K[H])},I(P,A)};return function(P,A){I(P,A);function Q(){this.constructor=P}P.prototype=A===null?Object.create(A):(Q.prototype=A.prototype,new Q)}}(),v=function(){for(var I=0,P=0,A=arguments.length;P<A;P++)I+=arguments[P].length;for(var Q=Array(I),K=0,P=0;P<A;P++)for(var H=arguments[P],V=0,de=H.length;V<de;V++,K++)Q[K]=H[V];return Q},C=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,g=/(&amp;)?(&amp;)([^\s&])/g,u;(function(I){I[I.Right=0]="Right",I[I.Left=1]="Left"})(u||(u={}));var s=function(I){f(P,I);function P(A,Q,K){var H=I.call(this,K||"submenu",A,"",!0)||this;return H.entries=Q,H}return P}(B.a),l=function(I){f(P,I);function P(A,Q,K){K===void 0&&(K={});var H=this;Object(D.f)(A,"monaco-menu-container"),A.setAttribute("role","presentation");var V=document.createElement("div");Object(D.f)(V,"monaco-menu"),V.setAttribute("role","presentation"),H=I.call(this,V,{orientation:2,actionViewItemProvider:function(Se){return H.doGetActionViewItem(Se,K,de)},context:K.context,actionRunner:K.actionRunner,ariaLabel:K.ariaLabel,triggerKeys:{keys:v([3],w.e?[10]:[]),keyDown:!0}})||this,H.menuElement=V,H.actionsList.setAttribute("role","menu"),H.actionsList.tabIndex=0,H.menuDisposables=H._register(new h.b),Object(D.j)(V,D.d.KEY_DOWN,function(Se){var Ie=new W.a(Se);Ie.equals(2)&&Se.preventDefault()}),K.enableMnemonics&&H.menuDisposables.add(Object(D.j)(V,D.d.KEY_DOWN,function(Se){var Ie=Se.key.toLocaleLowerCase();if(H.mnemonics.has(Ie)){D.c.stop(Se,!0);var Pe=H.mnemonics.get(Ie);if(Pe.length===1&&(Pe[0]instanceof p&&Pe[0].container&&H.focusItemByElement(Pe[0].container),Pe[0].onClick(Se)),Pe.length>1){var Ve=Pe.shift();Ve&&Ve.container&&(H.focusItemByElement(Ve.container),Pe.push(Ve)),H.mnemonics.set(Ie,Pe)}}})),w.d&&H._register(Object(D.j)(V,D.d.KEY_DOWN,function(Se){var Ie=new W.a(Se);Ie.equals(14)||Ie.equals(11)?(H.focusedItem=H.viewItems.length-1,H.focusNext(),D.c.stop(Se,!0)):(Ie.equals(13)||Ie.equals(12))&&(H.focusedItem=0,H.focusPrevious(),D.c.stop(Se,!0))})),H._register(Object(D.j)(H.domNode,D.d.MOUSE_OUT,function(Se){var Ie=Se.relatedTarget;Object(D.K)(Ie,H.domNode)||(H.focusedItem=void 0,H.updateFocus(),Se.stopPropagation())})),H._register(Object(D.j)(H.actionsList,D.d.MOUSE_OVER,function(Se){var Ie=Se.target;if(!Ie||!Object(D.K)(Ie,H.actionsList)||Ie===H.actionsList)return;for(;Ie.parentElement!==H.actionsList&&Ie.parentElement!==null;)Ie=Ie.parentElement;if(Object(D.I)(Ie,"action-item")){var Pe=H.focusedItem;H.setFocusedItem(Ie),Pe!==H.focusedItem&&H.updateFocus()}}));var de={parent:H};H.mnemonics=new Map,H.scrollableElement=H._register(new y.a(V,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));var _e=H.scrollableElement.getDomNode();return _e.style.position="",H._register(Object(D.j)(_e,D.d.MOUSE_UP,function(Se){Se.preventDefault()})),V.style.maxHeight=Math.max(10,window.innerHeight-A.getBoundingClientRect().top-30)+"px",H.push(Q,{icon:!0,label:!0,isMenu:!0}),A.appendChild(H.scrollableElement.getDomNode()),H.scrollableElement.scanDomNode(),H.viewItems.filter(function(Se){return!(Se instanceof _)}).forEach(function(Se,Ie,Pe){Se.updatePositionInSet(Ie+1,Pe.length)}),H}return P.prototype.style=function(A){var Q=this.getContainer(),K=A.foregroundColor?""+A.foregroundColor:"",H=A.backgroundColor?""+A.backgroundColor:"",V=A.borderColor?"1px solid "+A.borderColor:"",de=A.shadowColor?"0 2px 4px "+A.shadowColor:"";Q.style.border=V,this.domNode.style.color=K,this.domNode.style.backgroundColor=H,Q.style.boxShadow=de,this.viewItems&&this.viewItems.forEach(function(_e){(_e instanceof c||_e instanceof _)&&_e.style(A)})},P.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(P.prototype,"onScroll",{get:function(){return this.scrollableElement.onScroll},enumerable:!0,configurable:!0}),Object.defineProperty(P.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),P.prototype.focusItemByElement=function(A){var Q=this.focusedItem;this.setFocusedItem(A),Q!==this.focusedItem&&this.updateFocus()},P.prototype.setFocusedItem=function(A){for(var Q=0;Q<this.actionsList.children.length;Q++){var K=this.actionsList.children[Q];if(A===K){this.focusedItem=Q;break}}},P.prototype.updateFocus=function(A){I.prototype.updateFocus.call(this,A,!0),typeof this.focusedItem!="undefined"&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})},P.prototype.doGetActionViewItem=function(A,Q,K){if(A instanceof z.d)return new _(Q.context,A,{icon:!0});if(A instanceof s){var H=new p(A,A.entries,K,Q);if(Q.enableMnemonics){var V=H.getMnemonic();if(V&&H.isEnabled()){var de=[];this.mnemonics.has(V)&&(de=this.mnemonics.get(V)),de.push(H),this.mnemonics.set(V,de)}}return H}else{var _e={enableMnemonics:Q.enableMnemonics};if(Q.getKeyBinding){var Se=Q.getKeyBinding(A);if(Se){var Ie=Se.getLabel();Ie&&(_e.keybinding=Ie)}}var H=new c(Q.context,A,_e);if(Q.enableMnemonics){var V=H.getMnemonic();if(V&&H.isEnabled()){var de=[];this.mnemonics.has(V)&&(de=this.mnemonics.get(V)),de.push(H),this.mnemonics.set(V,de)}}return H}},P}(z.a),c=function(I){f(P,I);function P(A,Q,K){K===void 0&&(K={});var H=this;if(K.isMenu=!0,H=I.call(this,Q,Q,K)||this,H.options=K,H.options.icon=K.icon!==void 0?K.icon:!1,H.options.label=K.label!==void 0?K.label:!0,H.cssClass="",H.options.label&&K.enableMnemonics){var V=H.getAction().label;if(V){var de=C.exec(V);de&&(H.mnemonic=(de[1]?de[1]:de[3]).toLocaleLowerCase())}}return H.runOnceToEnableMouseUp=new x.d(function(){if(!H.element)return;H._register(Object(D.j)(H.element,D.d.MOUSE_UP,function(_e){if(_e.defaultPrevented)return;D.c.stop(_e,!0),H.onClick(_e)}))},100),H._register(H.runOnceToEnableMouseUp),H}return P.prototype.render=function(A){if(I.prototype.render.call(this,A),!this.element)return;this.container=A,this.item=Object(D.q)(this.element,Object(D.a)("a.action-menu-item")),this._action.id===z.d.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(D.q)(this.item,Object(D.a)("span.menu-item-check.codicon.codicon-check")),this.check.setAttribute("role","none"),this.label=Object(D.q)(this.item,Object(D.a)("span.action-label")),this.options.label&&this.options.keybinding&&(Object(D.q)(this.item,Object(D.a)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},P.prototype.blur=function(){I.prototype.blur.call(this),this.applyStyle()},P.prototype.focus=function(){I.prototype.focus.call(this),this.item&&this.item.focus(),this.applyStyle()},P.prototype.updatePositionInSet=function(A,Q){this.item&&(this.item.setAttribute("aria-posinset",""+A),this.item.setAttribute("aria-setsize",""+Q))},P.prototype.updateLabel=function(){if(this.options.label){var A=this.getAction().label;if(A){var Q=L(A);this.options.enableMnemonics||(A=Q),this.label&&this.label.setAttribute("aria-label",Q.replace(/&&/g,"&"));var K=C.exec(A);if(K){A=R.o(A),g.lastIndex=0;for(var H=g.exec(A);H&&H[1];)H=g.exec(A);H&&(A=A.substr(0,H.index)+'<u aria-hidden="true">'+H[3]+"</u>"+A.substr(H.index+H[0].length)),A=A.replace(/&amp;&amp;/g,"&amp;"),this.item&&this.item.setAttribute("aria-keyshortcuts",(K[1]?K[1]:K[3]).toLocaleLowerCase())}else A=A.replace(/&&/g,"&")}this.label&&(this.label.innerHTML=A.trim())}},P.prototype.updateTooltip=function(){var A=null;this.getAction().tooltip?A=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(A=this.getAction().label,this.options.keybinding&&(A=$.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",A,this.options.keybinding))),A&&this.item&&(this.item.title=A)},P.prototype.updateClass=function(){this.cssClass&&this.item&&Object(D.Q)(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",Object(D.f)(this.label,"icon"),this.cssClass&&Object(D.g)(this.label,this.cssClass),this.updateEnabled()):this.label&&Object(D.P)(this.label,"icon")},P.prototype.updateEnabled=function(){this.getAction().enabled?(this.element&&Object(D.P)(this.element,"disabled"),this.item&&(Object(D.P)(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&Object(D.f)(this.element,"disabled"),this.item&&(Object(D.f)(this.item,"disabled"),Object(D.S)(this.item)))},P.prototype.updateChecked=function(){if(!this.item)return;this.getAction().checked?(Object(D.f)(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(Object(D.P)(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false"))},P.prototype.getMnemonic=function(){return this.mnemonic},P.prototype.applyStyle=function(){if(!this.menuStyle)return;var A=this.element&&Object(D.I)(this.element,"focused"),Q=A&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,K=A&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,H=A&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=Q?Q.toString():"",this.item.style.backgroundColor=K?K.toString():""),this.check&&(this.check.style.color=Q?Q.toString():""),this.container&&(this.container.style.border=H)},P.prototype.style=function(A){this.menuStyle=A,this.applyStyle()},P}(z.c),p=function(I){f(P,I);function P(A,Q,K,H){var V=I.call(this,A,A,H)||this;return V.submenuActions=Q,V.parentData=K,V.submenuOptions=H,V.mysubmenu=null,V.submenuDisposables=V._register(new h.b),V.mouseOver=!1,V.expandDirection=H&&H.expandDirection!==void 0?H.expandDirection:u.Right,V.showScheduler=new x.d(function(){V.mouseOver&&(V.cleanupExistingSubmenu(!1),V.createSubmenu(!1))},250),V.hideScheduler=new x.d(function(){V.element&&!Object(D.K)(document.activeElement,V.element)&&V.parentData.submenu===V.mysubmenu&&(V.parentData.parent.focus(!1),V.cleanupExistingSubmenu(!0))},750),V}return P.prototype.render=function(A){var Q=this;if(I.prototype.render.call(this,A),!this.element)return;this.item&&(Object(D.f)(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(D.q)(this.item,Object(D.a)("span.submenu-indicator.codicon.codicon-chevron-right")),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(D.j)(this.element,D.d.KEY_UP,function(K){var H=new W.a(K);(H.equals(17)||H.equals(3))&&(D.c.stop(K,!0),Q.createSubmenu(!0))})),this._register(Object(D.j)(this.element,D.d.KEY_DOWN,function(K){var H=new W.a(K);document.activeElement===Q.item&&((H.equals(17)||H.equals(3))&&D.c.stop(K,!0))})),this._register(Object(D.j)(this.element,D.d.MOUSE_OVER,function(K){Q.mouseOver||(Q.mouseOver=!0,Q.showScheduler.schedule())})),this._register(Object(D.j)(this.element,D.d.MOUSE_LEAVE,function(K){Q.mouseOver=!1})),this._register(Object(D.j)(this.element,D.d.FOCUS_OUT,function(K){Q.element&&!Object(D.K)(document.activeElement,Q.element)&&Q.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(function(){Q.parentData.parent.focus(!1),Q.cleanupExistingSubmenu(!1)}))},P.prototype.onClick=function(A){D.c.stop(A,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)},P.prototype.cleanupExistingSubmenu=function(A){this.parentData.submenu&&(A||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))},P.prototype.createSubmenu=function(A){var Q=this;if(A===void 0&&(A=!0),!this.element)return;if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=Object(D.q)(this.element,Object(D.a)("div.monaco-submenu")),Object(D.g)(this.submenuContainer,"menubar-menu-items-holder","context-view");var K=getComputedStyle(this.parentData.parent.domNode),H=parseFloat(K.paddingTop||"0")||0;this.submenuContainer.style.top=this.element.offsetTop-this.parentData.parent.scrollOffset-H+"px",this.parentData.submenu=new l(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);var V=this.element.getBoundingClientRect(),de=this.submenuContainer.getBoundingClientRect();this.expandDirection===u.Right?window.innerWidth<=V.right+de.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-H+"px"):this.expandDirection===u.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-H+"px"),this.submenuDisposables.add(Object(D.j)(this.submenuContainer,D.d.KEY_UP,function(_e){var Se=new W.a(_e);Se.equals(15)&&(D.c.stop(_e,!0),Q.parentData.parent.focus(),Q.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Object(D.j)(this.submenuContainer,D.d.KEY_DOWN,function(_e){var Se=new W.a(_e);Se.equals(15)&&D.c.stop(_e,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(function(){Q.parentData.parent.focus(),Q.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(A),this.mysubmenu=this.parentData.submenu}},P.prototype.updateAriaExpanded=function(A){var Q;this.item&&((Q=this.item)===null||Q===void 0||Q.setAttribute("aria-expanded",A))},P.prototype.applyStyle=function(){if(I.prototype.applyStyle.call(this),!this.menuStyle)return;var A=this.element&&Object(D.I)(this.element,"focused"),Q=A&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=Q?""+Q:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)},P.prototype.dispose=function(){I.prototype.dispose.call(this),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)},P}(c),_=function(I){f(P,I);function P(){return I!==null&&I.apply(this,arguments)||this}return P.prototype.style=function(A){this.label&&(this.label.style.borderBottomColor=A.separatorColor?""+A.separatorColor:"")},P}(z.b);function L(I){var P=C,A=P.exec(I);if(!A)return I;var Q=!A[1];return I.replace(P,Q?"$2$3":"").trim()}},"3/fG":function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});function T($,R){var B;return R.length===0?B=$:B=$.replace(/\{(\d+)\}/g,function(z,D){var W=D[0];return typeof R[W]!="undefined"?R[W]:z}),B}function le($,R){for(var B=[],z=2;z<arguments.length;z++)B[z-2]=arguments[z];return T(R,B)}},"3Rsk":function(Lt,N,e){"use strict";e.d(N,"a",function(){return $});var T=e("ic2d"),le=e("MI8n"),$={JSONContribution:"base.contributions.json"};function R(D){return D.length>0&&D.charAt(D.length-1)==="#"?D.substring(0,D.length-1):D}var B=function(){function D(){this._onDidChangeSchema=new le.a,this.schemasById={}}return D.prototype.registerSchema=function(W,x){this.schemasById[R(W)]=x,this._onDidChangeSchema.fire(W)},D.prototype.notifySchemaChanged=function(W){this._onDidChangeSchema.fire(W)},D}(),z=new B;T.a.add($.JSONContribution,z)},"3qCu":function(Lt,N,e){"use strict";e.d(N,"a",function(){return ke});var T=e("EffR"),le=e("Md8J"),$=e("/cxE"),R=e("eLzo"),B=e("nD70"),z;(function(se){"use strict";var ee={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:b,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:b,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:b,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};ee._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ee._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ee.def=Ee(ee.def).replace("label",ee._label).replace("title",ee._title).getRegex(),ee.bullet=/(?:[*+-]|\d{1,9}\.)/,ee.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ee.item=Ee(ee.item,"gm").replace(/bull/g,ee.bullet).getRegex(),ee.list=Ee(ee.list).replace(/bull/g,ee.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ee.def.source+")").getRegex(),ee._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",ee._comment=/<!--(?!-?>)[\s\S]*?-->/,ee.html=Ee(ee.html,"i").replace("comment",ee._comment).replace("tag",ee._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ee.paragraph=Ee(ee.paragraph).replace("hr",ee.hr).replace("heading",ee.heading).replace("lheading",ee.lheading).replace("tag",ee._tag).getRegex(),ee.blockquote=Ee(ee.blockquote).replace("paragraph",ee.paragraph).getRegex(),ee.normal=F({},ee),ee.gfm=F({},ee.normal,{fences:/^ {0,3}(`{3,}|~{3,})([^`\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),ee.gfm.paragraph=Ee(ee.paragraph).replace("(?!","(?!"+ee.gfm.fences.source.replace("\\1","\\2")+"|"+ee.list.source.replace("\\1","\\3")+"|").getRegex(),ee.tables=F({},ee.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),ee.pedantic=F({},ee.normal,{html:Ee(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ee._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 ie(Me){this.tokens=[],this.tokens.links=Object.create(null),this.options=Me||Oe.defaults,this.rules=ee.normal,this.options.pedantic?this.rules=ee.pedantic:this.options.gfm&&(this.options.tables?this.rules=ee.tables:this.rules=ee.gfm)}ie.rules=ee,ie.lex=function(Me,Ue){var Je=new ie(Ue);return Je.lex(Me)},ie.prototype.lex=function(Me){return Me=Me.replace(/\r\n|\r/g,`
`).replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,`
`),this.token(Me,!0)},ie.prototype.token=function(Me,Ue){Me=Me.replace(/^ +$/gm,"");for(var Je,nt,vt,Rt,Dt,Kt,ao,lo,so,jt,pt,gt,Tt,it,et,ut;Me;){if((vt=this.rules.newline.exec(Me))&&(Me=Me.substring(vt[0].length),vt[0].length>1&&this.tokens.push({type:"space"})),vt=this.rules.code.exec(Me)){Me=Me.substring(vt[0].length),vt=vt[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?vt:ne(vt,`
`)});continue}if(vt=this.rules.fences.exec(Me)){Me=Me.substring(vt[0].length),this.tokens.push({type:"code",lang:vt[2]?vt[2].trim():vt[2],text:vt[3]||""});continue}if(vt=this.rules.heading.exec(Me)){Me=Me.substring(vt[0].length),this.tokens.push({type:"heading",depth:vt[1].length,text:vt[2]});continue}if((vt=this.rules.nptable.exec(Me))&&(Kt={type:"table",header:re(vt[1].replace(/^ *| *\| *$/g,"")),align:vt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:vt[3]?vt[3].replace(/\n$/,"").split(`
`):[]},Kt.header.length===Kt.align.length)){for(Me=Me.substring(vt[0].length),pt=0;pt<Kt.align.length;pt++)/^ *-+: *$/.test(Kt.align[pt])?Kt.align[pt]="right":/^ *:-+: *$/.test(Kt.align[pt])?Kt.align[pt]="center":/^ *:-+ *$/.test(Kt.align[pt])?Kt.align[pt]="left":Kt.align[pt]=null;for(pt=0;pt<Kt.cells.length;pt++)Kt.cells[pt]=re(Kt.cells[pt],Kt.header.length);this.tokens.push(Kt);continue}if(vt=this.rules.hr.exec(Me)){Me=Me.substring(vt[0].length),this.tokens.push({type:"hr"});continue}if(vt=this.rules.blockquote.exec(Me)){Me=Me.substring(vt[0].length),this.tokens.push({type:"blockquote_start"}),vt=vt[0].replace(/^ *> ?/gm,""),this.token(vt,Ue),this.tokens.push({type:"blockquote_end"});continue}if(vt=this.rules.list.exec(Me)){for(Me=Me.substring(vt[0].length),Rt=vt[2],it=Rt.length>1,ao={type:"list_start",ordered:it,start:it?+Rt:"",loose:!1},this.tokens.push(ao),vt=vt[0].match(this.rules.item),lo=[],Je=!1,Tt=vt.length,pt=0;pt<Tt;pt++)Kt=vt[pt],jt=Kt.length,Kt=Kt.replace(/^ *([*+-]|\d+\.) */,""),~Kt.indexOf(`
`)&&(jt-=Kt.length,Kt=this.options.pedantic?Kt.replace(/^ {1,4}/gm,""):Kt.replace(new RegExp("^ {1,"+jt+"}","gm"),"")),pt!==Tt-1&&(Dt=ee.bullet.exec(vt[pt+1])[0],(Rt.length>1?Dt.length===1:Dt.length>1||this.options.smartLists&&Dt!==Rt)&&(Me=vt.slice(pt+1).join(`
`)+Me,pt=Tt-1)),nt=Je||/\n\n(?!\s*$)/.test(Kt),pt!==Tt-1&&(Je=Kt.charAt(Kt.length-1)===`
`,nt||(nt=Je)),nt&&(ao.loose=!0),et=/^\[[ xX]\] /.test(Kt),ut=void 0,et&&(ut=Kt[1]!==" ",Kt=Kt.replace(/^\[[ xX]\] +/,"")),so={type:"list_item_start",task:et,checked:ut,loose:nt},lo.push(so),this.tokens.push(so),this.token(Kt,!1),this.tokens.push({type:"list_item_end"});if(ao.loose)for(Tt=lo.length,pt=0;pt<Tt;pt++)lo[pt].loose=!0;this.tokens.push({type:"list_end"});continue}if(vt=this.rules.html.exec(Me)){Me=Me.substring(vt[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(vt[1]==="pre"||vt[1]==="script"||vt[1]==="style"),text:vt[0]});continue}if(Ue&&(vt=this.rules.def.exec(Me))){Me=Me.substring(vt[0].length),vt[3]&&(vt[3]=vt[3].substring(1,vt[3].length-1)),gt=vt[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[gt]||(this.tokens.links[gt]={href:vt[2],title:vt[3]});continue}if((vt=this.rules.table.exec(Me))&&(Kt={type:"table",header:re(vt[1].replace(/^ *| *\| *$/g,"")),align:vt[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:vt[3]?vt[3].replace(/\n$/,"").split(`
`):[]},Kt.header.length===Kt.align.length)){for(Me=Me.substring(vt[0].length),pt=0;pt<Kt.align.length;pt++)/^ *-+: *$/.test(Kt.align[pt])?Kt.align[pt]="right":/^ *:-+: *$/.test(Kt.align[pt])?Kt.align[pt]="center":/^ *:-+ *$/.test(Kt.align[pt])?Kt.align[pt]="left":Kt.align[pt]=null;for(pt=0;pt<Kt.cells.length;pt++)Kt.cells[pt]=re(Kt.cells[pt].replace(/^ *\| *| *\| *$/g,""),Kt.header.length);this.tokens.push(Kt);continue}if(vt=this.rules.lheading.exec(Me)){Me=Me.substring(vt[0].length),this.tokens.push({type:"heading",depth:vt[2]==="="?1:2,text:vt[1]});continue}if(Ue&&(vt=this.rules.paragraph.exec(Me))){Me=Me.substring(vt[0].length),this.tokens.push({type:"paragraph",text:vt[1].charAt(vt[1].length-1)===`
`?vt[1].slice(0,-1):vt[1]});continue}if(vt=this.rules.text.exec(Me)){Me=Me.substring(vt[0].length),this.tokens.push({type:"text",text:vt[0]});continue}if(Me)throw new Error("Infinite loop on byte: "+Me.charCodeAt(0))}return this.tokens};var q={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:b,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:b,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};q._punctuation=`!"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~`,q.em=Ee(q.em).replace(/punctuation/g,q._punctuation).getRegex(),q._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,q._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,q._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])?)+(?![-_])/,q.autolink=Ee(q.autolink).replace("scheme",q._scheme).replace("email",q._email).getRegex(),q._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,q.tag=Ee(q.tag).replace("comment",ee._comment).replace("attribute",q._attribute).getRegex(),q._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|`(?!`)|[^\[\]\\`])*?/,q._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*)/,q._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,q.link=Ee(q.link).replace("label",q._label).replace("href",q._href).replace("title",q._title).getRegex(),q.reflink=Ee(q.reflink).replace("label",q._label).getRegex(),q.normal=F({},q),q.pedantic=F({},q.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:Ee(/^!?\[(label)\]\((.*?)\)/).replace("label",q._label).getRegex(),reflink:Ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",q._label).getRegex()}),q.gfm=F({},q.normal,{escape:Ee(q.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),q.gfm.url=Ee(q.gfm.url,"i").replace("email",q.gfm._extended_email).getRegex(),q.breaks=F({},q.gfm,{br:Ee(q.br).replace("{2,}","*").getRegex(),text:Ee(q.gfm.text).replace(/\{2,\}/g,"*").getRegex()});function ce(Me,Ue){if(this.options=Ue||Oe.defaults,this.links=Me,this.rules=q.normal,this.renderer=this.options.renderer||new Z,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=q.pedantic:this.options.gfm&&(this.options.breaks?this.rules=q.breaks:this.rules=q.gfm)}ce.rules=q,ce.output=function(Me,Ue,Je){var nt=new ce(Ue,Je);return nt.output(Me)},ce.prototype.output=function(Me){for(var Ue="",Je,nt,vt,Rt,Dt,Kt;Me;){if(Dt=this.rules.escape.exec(Me)){Me=Me.substring(Dt[0].length),Ue+=ue(Dt[1]);continue}if(Dt=this.rules.tag.exec(Me)){!this.inLink&&/^<a /i.test(Dt[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(Dt[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(Dt[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Dt[0])&&(this.inRawBlock=!1),Me=Me.substring(Dt[0].length),Ue+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Dt[0]):ue(Dt[0]):Dt[0];continue}if(Dt=this.rules.link.exec(Me)){var ao=fe(Dt[2],"()");if(ao>-1){var lo=Dt[0].length-(Dt[2].length-ao)-(Dt[3]||"").length;Dt[2]=Dt[2].substring(0,ao),Dt[0]=Dt[0].substring(0,lo).trim(),Dt[3]=""}Me=Me.substring(Dt[0].length),this.inLink=!0,vt=Dt[2],this.options.pedantic?(Je=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(vt),Je?(vt=Je[1],Rt=Je[3]):Rt=""):Rt=Dt[3]?Dt[3].slice(1,-1):"",vt=vt.trim().replace(/^<([\s\S]*)>$/,"$1"),Ue+=this.outputLink(Dt,{href:ce.escapes(vt),title:ce.escapes(Rt)}),this.inLink=!1;continue}if((Dt=this.rules.reflink.exec(Me))||(Dt=this.rules.nolink.exec(Me))){if(Me=Me.substring(Dt[0].length),Je=(Dt[2]||Dt[1]).replace(/\s+/g," "),Je=this.links[Je.toLowerCase()],!Je||!Je.href){Ue+=Dt[0].charAt(0),Me=Dt[0].substring(1)+Me;continue}this.inLink=!0,Ue+=this.outputLink(Dt,Je),this.inLink=!1;continue}if(Dt=this.rules.strong.exec(Me)){Me=Me.substring(Dt[0].length),Ue+=this.renderer.strong(this.output(Dt[4]||Dt[3]||Dt[2]||Dt[1]));continue}if(Dt=this.rules.em.exec(Me)){Me=Me.substring(Dt[0].length),Ue+=this.renderer.em(this.output(Dt[6]||Dt[5]||Dt[4]||Dt[3]||Dt[2]||Dt[1]));continue}if(Dt=this.rules.code.exec(Me)){Me=Me.substring(Dt[0].length),Ue+=this.renderer.codespan(ue(Dt[2].trim(),!0));continue}if(Dt=this.rules.br.exec(Me)){Me=Me.substring(Dt[0].length),Ue+=this.renderer.br();continue}if(Dt=this.rules.del.exec(Me)){Me=Me.substring(Dt[0].length),Ue+=this.renderer.del(this.output(Dt[1]));continue}if(Dt=this.rules.autolink.exec(Me)){Me=Me.substring(Dt[0].length),Dt[2]==="@"?(nt=ue(this.mangle(Dt[1])),vt="mailto:"+nt):(nt=ue(Dt[1]),vt=nt),Ue+=this.renderer.link(vt,null,nt);continue}if(!this.inLink&&(Dt=this.rules.url.exec(Me))){if(Dt[2]==="@")nt=ue(Dt[0]),vt="mailto:"+nt;else{do Kt=Dt[0],Dt[0]=this.rules._backpedal.exec(Dt[0])[0];while(Kt!==Dt[0]);nt=ue(Dt[0]),Dt[1]==="www."?vt="http://"+nt:vt=nt}Me=Me.substring(Dt[0].length),Ue+=this.renderer.link(vt,null,nt);continue}if(Dt=this.rules.text.exec(Me)){Me=Me.substring(Dt[0].length),this.inRawBlock?Ue+=this.renderer.text(Dt[0]):Ue+=this.renderer.text(ue(this.smartypants(Dt[0])));continue}if(Me)throw new Error("Infinite loop on byte: "+Me.charCodeAt(0))}return Ue},ce.escapes=function(Me){return Me&&Me.replace(ce.rules._escapes,"$1")},ce.prototype.outputLink=function(Me,Ue){var Je=Ue.href,nt=Ue.title?ue(Ue.title):null;return Me[0].charAt(0)!=="!"?this.renderer.link(Je,nt,this.output(Me[1])):this.renderer.image(Je,nt,ue(Me[1]))},ce.prototype.smartypants=function(Me){return this.options.smartypants?Me.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"):Me},ce.prototype.mangle=function(Me){if(!this.options.mangle)return Me;for(var Ue="",Je=Me.length,nt=0,vt;nt<Je;nt++)vt=Me.charCodeAt(nt),Math.random()>.5&&(vt="x"+vt.toString(16)),Ue+="&#"+vt+";";return Ue};function Z(Me){this.options=Me||Oe.defaults}Z.prototype.code=function(Me,Ue,Je){var nt=(Ue||"").match(/\S*/)[0];if(this.options.highlight){var vt=this.options.highlight(Me,nt);vt!=null&&vt!==Me&&(Je=!0,Me=vt)}return nt?'<pre><code class="'+this.options.langPrefix+ue(nt,!0)+'">'+(Je?Me:ue(Me,!0))+`</code></pre>
`:"<pre><code>"+(Je?Me:ue(Me,!0))+"</code></pre>"},Z.prototype.blockquote=function(Me){return`<blockquote>
`+Me+`</blockquote>
`},Z.prototype.html=function(Me){return Me},Z.prototype.heading=function(Me,Ue,Je,nt){return this.options.headerIds?"<h"+Ue+' id="'+this.options.headerPrefix+nt.slug(Je)+'">'+Me+"</h"+Ue+`>
`:"<h"+Ue+">"+Me+"</h"+Ue+`>
`},Z.prototype.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Z.prototype.list=function(Me,Ue,Je){var nt=Ue?"ol":"ul",vt=Ue&&Je!==1?' start="'+Je+'"':"";return"<"+nt+vt+`>
`+Me+"</"+nt+`>
`},Z.prototype.listitem=function(Me){return"<li>"+Me+`</li>
`},Z.prototype.checkbox=function(Me){return"<input "+(Me?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Z.prototype.paragraph=function(Me){return"<p>"+Me+`</p>
`},Z.prototype.table=function(Me,Ue){return Ue&&(Ue="<tbody>"+Ue+"</tbody>"),`<table>
<thead>
`+Me+`</thead>
`+Ue+`</table>
`},Z.prototype.tablerow=function(Me){return`<tr>
`+Me+`</tr>
`},Z.prototype.tablecell=function(Me,Ue){var Je=Ue.header?"th":"td",nt=Ue.align?"<"+Je+' align="'+Ue.align+'">':"<"+Je+">";return nt+Me+"</"+Je+`>
`},Z.prototype.strong=function(Me){return"<strong>"+Me+"</strong>"},Z.prototype.em=function(Me){return"<em>"+Me+"</em>"},Z.prototype.codespan=function(Me){return"<code>"+Me+"</code>"},Z.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},Z.prototype.del=function(Me){return"<del>"+Me+"</del>"},Z.prototype.link=function(Me,Ue,Je){if(Me=xe(this.options.sanitize,this.options.baseUrl,Me),Me===null)return Je;var nt='<a href="'+ue(Me)+'"';return Ue&&(nt+=' title="'+Ue+'"'),nt+=">"+Je+"</a>",nt},Z.prototype.image=function(Me,Ue,Je){if(Me=xe(this.options.sanitize,this.options.baseUrl,Me),Me===null)return Je;var nt='<img src="'+Me+'" alt="'+Je+'"';return Ue&&(nt+=' title="'+Ue+'"'),nt+=this.options.xhtml?"/>":">",nt},Z.prototype.text=function(Me){return Me};function ye(){}ye.prototype.strong=ye.prototype.em=ye.prototype.codespan=ye.prototype.del=ye.prototype.text=function(Me){return Me},ye.prototype.link=ye.prototype.image=function(Me,Ue,Je){return""+Je},ye.prototype.br=function(){return""};function je(Me){this.tokens=[],this.token=null,this.options=Me||Oe.defaults,this.options.renderer=this.options.renderer||new Z,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Ge}je.parse=function(Me,Ue){var Je=new je(Ue);return Je.parse(Me)},je.prototype.parse=function(Me){this.inline=new ce(Me.links,this.options),this.inlineText=new ce(Me.links,F({},this.options,{renderer:new ye})),this.tokens=Me.reverse();for(var Ue="";this.next();)Ue+=this.tok();return Ue},je.prototype.next=function(){return this.token=this.tokens.pop()},je.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},je.prototype.parseText=function(){for(var Me=this.token.text;this.peek().type==="text";)Me+=`
`+this.next().text;return this.inline.output(Me)},je.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,ve(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 Me="",Ue="",Je,nt,vt,Rt;for(vt="",Je=0;Je<this.token.header.length;Je++)vt+=this.renderer.tablecell(this.inline.output(this.token.header[Je]),{header:!0,align:this.token.align[Je]});for(Me+=this.renderer.tablerow(vt),Je=0;Je<this.token.cells.length;Je++){for(nt=this.token.cells[Je],vt="",Rt=0;Rt<nt.length;Rt++)vt+=this.renderer.tablecell(this.inline.output(nt[Rt]),{header:!1,align:this.token.align[Rt]});Ue+=this.renderer.tablerow(vt)}return this.renderer.table(Me,Ue)}case"blockquote_start":{for(Ue="";this.next().type!=="blockquote_end";)Ue+=this.tok();return this.renderer.blockquote(Ue)}case"list_start":{Ue="";for(var Dt=this.token.ordered,Kt=this.token.start;this.next().type!=="list_end";)Ue+=this.tok();return this.renderer.list(Ue,Dt,Kt)}case"list_item_start":{Ue="";var ao=this.token.loose,lo=this.token.checked,so=this.token.task;for(this.token.task&&(Ue+=this.renderer.checkbox(lo));this.next().type!=="list_item_end";)Ue+=!ao&&this.token.type==="text"?this.parseText():this.tok();return this.renderer.listitem(Ue,so,lo)}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 jt='Token with "'+this.token.type+'" type was not found.';if(this.options.silent)console.log(jt);else throw new Error(jt)}}};function Ge(){this.seen={}}Ge.prototype.slug=function(Me){var Ue=Me.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ue)){var Je=Ue;do this.seen[Je]++,Ue=Je+"-"+this.seen[Je];while(this.seen.hasOwnProperty(Ue))}return this.seen[Ue]=0,Ue};function ue(Me,Ue){if(Ue){if(ue.escapeTest.test(Me))return Me.replace(ue.escapeReplace,function(Je){return ue.replacements[Je]})}else if(ue.escapeTestNoEncode.test(Me))return Me.replace(ue.escapeReplaceNoEncode,function(Je){return ue.replacements[Je]});return Me}ue.escapeTest=/[&<>"']/,ue.escapeReplace=/[&<>"']/g,ue.replacements={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ue.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,ue.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function ve(Me){return Me.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(Ue,Je){return Je=Je.toLowerCase(),Je==="colon"?":":Je.charAt(0)==="#"?Je.charAt(1)==="x"?String.fromCharCode(parseInt(Je.substring(2),16)):String.fromCharCode(+Je.substring(1)):""})}function Ee(Me,Ue){return Me=Me.source||Me,Ue=Ue||"",{replace:function(Je,nt){return nt=nt.source||nt,nt=nt.replace(/(^|[^\[])\^/g,"$1"),Me=Me.replace(Je,nt),this},getRegex:function(){return new RegExp(Me,Ue)}}}function xe(Me,Ue,Je){if(Me){try{var nt=decodeURIComponent(ve(Je)).replace(/[^\w:]/g,"").toLowerCase()}catch(vt){return null}if(nt.indexOf("javascript:")===0||nt.indexOf("vbscript:")===0||nt.indexOf("data:")===0)return null}Ue&&!J.test(Je)&&(Je=Ce(Ue,Je));try{Je=encodeURI(Je).replace(/%25/g,"%")}catch(vt){return null}return Je}function Ce(Me,Ue){return he[" "+Me]||(/^[^:]+:\/*[^/]*$/.test(Me)?he[" "+Me]=Me+"/":he[" "+Me]=ne(Me,"/",!0)),Me=he[" "+Me],Ue.slice(0,2)==="//"?Me.replace(/:[\s\S]*/,":")+Ue:Ue.charAt(0)==="/"?Me.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+Ue:Me+Ue}var he={},J=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(){}b.exec=b;function F(Me){for(var Ue=1,Je,nt;Ue<arguments.length;Ue++){Je=arguments[Ue];for(nt in Je)Object.prototype.hasOwnProperty.call(Je,nt)&&(Me[nt]=Je[nt])}return Me}function re(Me,Ue){var Je=Me.replace(/\|/g,function(Rt,Dt,Kt){for(var ao=!1,lo=Dt;--lo>=0&&Kt[lo]==="\\";)ao=!ao;return ao?"|":" |"}),nt=Je.split(/ \|/),vt=0;if(nt.length>Ue)nt.splice(Ue);else for(;nt.length<Ue;)nt.push("");for(;vt<nt.length;vt++)nt[vt]=nt[vt].trim().replace(/\\\|/g,"|");return nt}function ne(Me,Ue,Je){if(Me.length===0)return"";for(var nt=0;nt<Me.length;){var vt=Me.charAt(Me.length-nt-1);if(vt===Ue&&!Je)nt++;else if(vt!==Ue&&Je)nt++;else break}return Me.substr(0,Me.length-nt)}function fe(Me,Ue){if(Me.indexOf(Ue[1])===-1)return-1;for(var Je=0,nt=0;nt<Me.length;nt++)if(Me[nt]==="\\")nt++;else if(Me[nt]===Ue[0])Je++;else if(Me[nt]===Ue[1]&&(Je--,Je<0))return nt;return-1}function Oe(Me,Ue,Je){if(typeof Me=="undefined"||Me===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Me!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Me)+", string expected");if(Je||typeof Ue=="function"){Je||(Je=Ue,Ue=null),Ue=F({},Oe.defaults,Ue||{});var nt=Ue.highlight,vt,Rt,Dt=0;try{vt=ie.lex(Me,Ue)}catch(ao){return Je(ao)}Rt=vt.length;var Kt=function(ao){if(ao)return Ue.highlight=nt,Je(ao);var lo;try{lo=je.parse(vt,Ue)}catch(so){ao=so}return Ue.highlight=nt,ao?Je(ao):Je(null,lo)};if(!nt||nt.length<3)return Kt();if(delete Ue.highlight,!Rt)return Kt();for(;Dt<vt.length;Dt++)(function(ao){return ao.type!=="code"?--Rt||Kt():nt(ao.text,ao.lang,function(lo,so){if(lo)return Kt(lo);if(so==null||so===ao.text)return--Rt||Kt();ao.text=so,ao.escaped=!0,--Rt||Kt()})})(vt[Dt]);return}try{return Ue&&(Ue=F({},Oe.defaults,Ue)),je.parse(ie.lex(Me,Ue),Ue)}catch(ao){if(ao.message+=`
Please report this to https://github.com/markedjs/marked.`,(Ue||Oe.defaults).silent)return"<p>An error occurred:</p><pre>"+ue(ao.message+"",!0)+"</pre>";throw ao}}Oe.options=Oe.setOptions=function(Me){return F(Oe.defaults,Me),Oe},Oe.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new Z,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},Oe.defaults=Oe.getDefaults(),Oe.Parser=je,Oe.parser=je.parse,Oe.Renderer=Z,Oe.TextRenderer=ye,Oe.Lexer=ie,Oe.lexer=ie.lex,Oe.InlineLexer=ce,Oe.inlineLexer=ce.output,Oe.Slugger=Ge,Oe.parse=Oe,z=Oe}).call(void 0);var D=z,W=z.Parser,x=z.parser,h=z.Renderer,y=z.TextRenderer,w=z.Lexer,f=z.lexer,v=z.InlineLexer,C=z.inlineLexer,g=z.parse,u,u;let s;(function(){function se(ee,ie,q){function ce(je,Ge){if(!ie[je]){if(!ee[je]){var ue=typeof u=="function"&&u;if(!Ge&&ue)return u(je,!0);if(Z)return Z(je,!0);var ve=new Error("Cannot find module '"+je+"'");throw ve.code="MODULE_NOT_FOUND",ve}var Ee=ie[je]={exports:{}};ee[je][0].call(Ee.exports,function(xe){var Ce=ee[je][1][xe];return ce(Ce||xe)},Ee,Ee.exports,se,ee,ie,q)}return ie[je].exports}for(var Z=typeof u=="function"&&u,ye=0;ye<q.length;ye++)ce(q[ye]);return ce}return se})()({1:[function(se,ee,ie){"use strict";var q=se("./toMap"),ce=["background","base","cite","href","longdesc","src","usemap"];ee.exports={uris:q(ce)}},{"./toMap":10}],2:[function(se,ee,ie){"use strict";var q={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};ee.exports=q},{}],3:[function(se,ee,ie){"use strict";var q=se("./toMap"),ce=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"];ee.exports={voids:q(ce)}},{"./toMap":10}],4:[function(se,ee,ie){"use strict";var q=se("he"),ce=se("assignment"),Z=se("./parser"),ye=se("./sanitizer"),je=se("./defaults");function Ge(ue,ve,Ee){var xe=[],Ce=Ee===!0?ve:ce({},je,ve),he=ye(xe,Ce);return Z(ue,he),xe.join("")}Ge.defaults=je,ee.exports=Ge,s=Ge},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(se,ee,ie){"use strict";ee.exports=function(ce){return typeof ce=="string"?ce.toLowerCase():ce}},{}],6:[function(se,ee,ie){"use strict";function q(ce){for(var Z=Array.prototype.slice.call(arguments,1),ye,je;Z.length;){ye=Z.shift();for(je in ye)ye.hasOwnProperty(je)&&(Object.prototype.toString.call(ce[je])==="[object Object]"?ce[je]=q(ce[je],ye[je]):ce[je]=ye[je])}return ce}ee.exports=q},{}],7:[function(se,ee,ie){"use strict";var q=se("he"),ce=se("./lowercase"),Z=se("./attributes"),ye=se("./elements"),je=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,Ge=/^<\s*\/\s*([\w:-]+)[^>]*>/,ue=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,ve=/^</,Ee=/^<\s*\//;function xe(){var he=[];return he.lastItem=function(){return he[he.length-1]},he}function Ce(he,J){for(var b=xe(),F=he,re;he;)ne();nt();function ne(){re=!0,fe();var vt=he===F;F=he,vt&&(he="")}function fe(){he.substr(0,4)==="<!--"?Me():Ee.test(he)?Oe(Ge,nt):ve.test(he)&&Oe(je,Je),Ue()}function Oe(vt,Rt){var Dt=he.match(vt);Dt&&(he=he.substring(Dt[0].length),Dt[0].replace(vt,Rt),re=!1)}function Me(){var vt=he.indexOf("-->");vt>=0&&(J.comment&&J.comment(he.substring(4,vt)),he=he.substring(vt+3),re=!1)}function Ue(){if(!re)return;var vt,Rt=he.indexOf("<");Rt>=0?(vt=he.substring(0,Rt),he=he.substring(Rt)):(vt=he,he=""),J.chars&&J.chars(vt)}function Je(vt,Rt,Dt,Kt){var ao={},lo=ce(Rt),so=ye.voids[lo]||!!Kt;Dt.replace(ue,jt),so||b.push(lo),J.start&&J.start(lo,ao,so);function jt(pt,gt,Tt,it,et){Tt===void 0&&it===void 0&&et===void 0?ao[gt]=void 0:ao[gt]=q.decode(Tt||it||et||"")}}function nt(vt,Rt){var Dt,Kt=0,ao=ce(Rt);if(ao)for(Kt=b.length-1;Kt>=0&&!(b[Kt]===ao);Kt--);if(Kt>=0){for(Dt=b.length-1;Dt>=Kt;Dt--)J.end&&J.end(b[Dt]);b.length=Kt}}}ee.exports=Ce},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(se,ee,ie){"use strict";var q=se("he"),ce=se("./lowercase"),Z=se("./attributes"),ye=se("./elements");function je(Ge,ue){var ve,Ee,xe=ue||{};return fe(),{start:he,end:J,chars:F};function Ce(Oe){Ge.push(Oe)}function he(Oe,Me,Ue){var Je=ce(Oe);if(Ee.ignoring){re(Je);return}if((xe.allowedTags||[]).indexOf(Je)===-1){re(Je);return}if(xe.filter&&!xe.filter({tag:Je,attrs:Me})){re(Je);return}Ce("<"),Ce(Je),Object.keys(Me).forEach(nt),Ce(Ue?"/>":">");function nt(vt){var Rt=Me[vt],Dt=(xe.allowedClasses||{})[Je]||[],Kt=(xe.allowedAttributes||{})[Je]||[];Kt=Kt.concat((xe.allowedAttributes||{})["*"]||[]);var ao,lo=ce(vt);lo==="class"&&Kt.indexOf(lo)===-1?(Rt=Rt.split(" ").filter(so).join(" ").trim(),ao=Rt.length):ao=Kt.indexOf(lo)!==-1&&(Z.uris[lo]!==!0||b(Rt)),ao&&(Ce(" "),Ce(vt),typeof Rt=="string"&&(Ce('="'),Ce(q.encode(Rt)),Ce('"')));function so(jt){return Dt&&Dt.indexOf(jt)!==-1}}}function J(Oe){var Me=ce(Oe),Ue=(xe.allowedTags||[]).indexOf(Me)!==-1;Ue&&Ee.ignoring===!1?(Ce("</"),Ce(Me),Ce(">")):ne(Me)}function b(Oe){var Me=Oe[0];if(Me==="#"||Me==="/")return!0;var Ue=Oe.indexOf(":");if(Ue===-1)return!0;var Je=Oe.indexOf("?");if(Je!==-1&&Ue>Je)return!0;var nt=Oe.indexOf("#");if(nt!==-1&&Ue>nt)return!0;return xe.allowedSchemes.some(vt);function vt(Rt){return Oe.indexOf(Rt+":")===0}}function F(Oe){Ee.ignoring===!1&&Ce(xe.transformText?xe.transformText(Oe):Oe)}function re(Oe){if(ye.voids[Oe])return;Ee.ignoring===!1?Ee={ignoring:Oe,depth:1}:Ee.ignoring===Oe&&Ee.depth++}function ne(Oe){Ee.ignoring===Oe&&(--Ee.depth<=0&&fe())}function fe(){Ee={ignoring:!1,depth:0}}}ee.exports=je},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(se,ee,ie){"use strict";var q={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ce={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Z=/(&amp;|&lt;|&gt;|&quot;|&#39;)/g,ye=/[&<>"']/g;function je(Ee){return q[Ee]}function Ge(Ee){return ce[Ee]}function ue(Ee){return Ee==null?"":String(Ee).replace(ye,je)}function ve(Ee){return Ee==null?"":String(Ee).replace(Z,Ge)}ue.options=ve.options={},ee.exports={encode:ue,escape:ue,decode:ve,unescape:ve,version:"1.0.0-browser"}},{}],10:[function(se,ee,ie){"use strict";function q(Z){return Z.reduce(ce,{})}function ce(Z,ye){return Z[ye]=!0,Z}ee.exports=q},{}]},{},[4]);var l=s,c=e("Q4rV"),p=e("qj0h"),_=e("N0LK"),L=e("bY76"),I=e("tYmi"),P=e("Vhoy");function A(se,ee){ee===void 0&&(ee={});var ie=Object(le.a)(ee),q=function(xe){var Ce;try{Ce=Object(c.a)(decodeURIComponent(xe))}catch(he){}return Ce?(Ce=Object(p.b)(Ce,function(he){return se.uris&&se.uris[he]?L.a.revive(se.uris[he]):void 0}),encodeURIComponent(JSON.stringify(Ce))):xe},ce=function(xe,Ce){var he=se.uris&&se.uris[xe];if(!he)return xe;var J=L.a.revive(he);return L.a.parse(xe).toString()===J.toString()?xe:(Ce&&(J=T.s(J)),J.query&&(J=J.with({query:q(J.query)})),J.toString(!0))},Z,ye=new Promise(function(xe){return Z=xe}),je=new h;je.image=function(xe,Ce,he){var J,b=[],F=[];return xe&&(J=Object(R.d)(xe),xe=J.href,b=J.dimensions,xe=ce(xe,!0),F.push('src="'+xe+'"')),he&&F.push('alt="'+he+'"'),Ce&&F.push('title="'+Ce+'"'),b.length&&(F=F.concat(b)),"<img "+F.join(" ")+">"},je.link=function(xe,Ce,he){return xe===he&&(he=Object(R.e)(he)),xe=ce(xe,!1),Ce=Object(R.e)(Ce),xe=Object(R.e)(xe),!xe||xe.match(/^data:|javascript:/i)||xe.match(/^command:/i)&&!se.isTrusted||xe.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?he:(xe=xe.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),'<a href="#" data-href="'+xe+'" title="'+(Ce||xe)+'">'+he+"</a>")},je.paragraph=function(xe){return"<p>"+(se.supportThemeIcons?Object(P.c)(xe):xe)+"</p>"},ee.codeBlockRenderer&&(je.code=function(xe,Ce){var he=ee.codeBlockRenderer(Ce,xe),J=B.b.nextId(),b=Promise.all([he,ye]).then(function(F){var re=F[0],ne=ie.querySelector('div[data-code="'+J+'"]');ne&&(ne.innerHTML=re)}).catch(function(F){});return ee.codeBlockRenderCallback&&b.then(ee.codeBlockRenderCallback),'<div class="code" data-code="'+J+'">'+Object(_.o)(xe)+"</div>"});var Ge=ee.actionHandler;Ge&&Ge.disposeables.add(T.o(ie,"click",function(xe){var Ce=xe.target;if(Ce.tagName!=="A"&&(Ce=Ce.parentElement,!Ce||Ce.tagName!=="A"))return;try{var he=Ce.dataset.href;he&&Ge.callback(he,xe)}catch(J){Object($.e)(J)}finally{xe.preventDefault()}}));var ue={sanitize:!0,renderer:je},ve=[I.b.http,I.b.https,I.b.mailto,I.b.data,I.b.file,I.b.vscodeRemote,I.b.vscodeRemoteResource];se.isTrusted&&ve.push(I.b.command);var Ee=g(se.supportThemeIcons?Object(P.b)(se.value):se.value,ue);return ie.innerHTML=l(Ee,{allowedSchemes:ve,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),Z(),ie}var Q=e("W9cx"),K=e("WBhO"),H=e("TQUy"),V=e("Cg/j"),de=e("MI8n"),_e=e("pmY6"),Se=e("twdY"),Ie=function(){var se=function(ee,ie){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ce){q.__proto__=ce}||function(q,ce){for(var Z in ce)ce.hasOwnProperty(Z)&&(q[Z]=ce[Z])},se(ee,ie)};return function(ee,ie){se(ee,ie);function q(){this.constructor=ee}ee.prototype=ie===null?Object.create(ie):(q.prototype=ie.prototype,new q)}}(),Pe=function(se,ee,ie,q){var ce=arguments.length,Z=ce<3?ee:q===null?q=Object.getOwnPropertyDescriptor(ee,ie):q,ye;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Z=Reflect.decorate(se,ee,ie,q);else for(var je=se.length-1;je>=0;je--)(ye=se[je])&&(Z=(ce<3?ye(Z):ce>3?ye(ee,ie,Z):ye(ee,ie))||Z);return ce>3&&Z&&Object.defineProperty(ee,ie,Z),Z},Ve=function(se,ee){return function(ie,q){ee(ie,q,se)}},ke=function(se){Ie(ee,se);function ee(ie,q,ce){ce===void 0&&(ce=Q.b);var Z=se.call(this)||this;return Z._editor=ie,Z._modeService=q,Z._openerService=ce,Z._onDidRenderCodeBlock=Z._register(new de.a),Z.onDidRenderCodeBlock=Z._onDidRenderCodeBlock.event,Z}return ee.prototype.getOptions=function(ie){var q=this;return{codeBlockRenderer:function(ce,Z){var ye=null;if(ce)ye=q._modeService.getModeIdForLanguageName(ce);else{var je=q._editor.getModel();je&&(ye=je.getLanguageIdentifier().language)}return q._modeService.triggerMode(ye||""),Promise.resolve(!0).then(function(Ge){var ue=Se.B.getPromise(ye||"");return ue?ue.then(function(ve){return Object(H.b)(Z,ve)}):Object(H.b)(Z,void 0)}).then(function(Ge){return'<span style="font-family: '+q._editor.getOption(34).fontFamily+'">'+Ge+"</span>"})},codeBlockRenderCallback:function(){return q._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(ce){q._openerService.open(ce,{fromUserGesture:!0}).catch($.e)},disposeables:ie}}},ee.prototype.render=function(ie){var q=new _e.b,ce;return ie?ce=A(ie,this.getOptions(q)):ce=document.createElement("span"),{element:ce,dispose:function(){return q.dispose()}}},ee=Pe([Ve(1,K.a),Ve(2,Object(V.d)(Q.a))],ee),ee}(_e.a)},"3rx1":function(Lt,N,e){"use strict";e.d(N,"b",function(){return D}),e.d(N,"a",function(){return W}),e.d(N,"c",function(){return h});var T=e("bY76"),le=e("MrjW"),$=e("N0LK"),R=e("tYmi"),B=e("MNsG"),z=e("gslv");function D(f,v,C){if(typeof f=="string"&&(f=T.a.file(f)),C){var g=C.getWorkspaceFolder(f);if(g){var u=C.getWorkspace().folders.length>1,s=void 0;if(Object(z.e)(g.uri,f)?s="":s=Object(z.h)(g.uri,f),u){var l=g.name?g.name:Object(z.b)(g.uri);s=s?l+" \u2022 "+s:l}return s}}if(f.scheme!==R.b.file&&f.scheme!==R.b.untitled)return f.with({query:null,fragment:null}).toString(!0);if(x(f.fsPath))return Object(le.normalize)(h(f.fsPath));var c=Object(le.normalize)(f.fsPath);return!B.h&&v&&(c=w(c,v.userHome)),c}function W(f){if(!f)return;typeof f=="string"&&(f=T.a.file(f));var v=Object(z.b)(f)||(f.scheme===R.b.file?f.fsPath:f.path);return x(v)?h(v):v}function x(f){return!!(B.h&&f&&f[1]===":")}function h(f){return x(f)?f.charAt(0).toUpperCase()+f.slice(1):f}var y=Object.create(null);function w(f,v){if(B.h||!f||!v)return f;var C=y.original===v?y.normalized:void 0;return C||(C=""+Object($.K)(v,le.posix.sep)+le.posix.sep,y={original:v,normalized:C}),(B.d?Object($.N)(f,C):Object($.O)(f,C))&&(f="~/"+f.substr(C.length)),f}},"4bUh":function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("twdY"),le=function(){function R(B,z){this._tokens=B,this._tokensCount=this._tokens.length>>>1,this._text=z}return R.prototype.equals=function(B){return B instanceof R?this.slicedEquals(B,0,this._tokensCount):!1},R.prototype.slicedEquals=function(B,z,D){if(this._text!==B._text)return!1;if(this._tokensCount!==B._tokensCount)return!1;for(var W=z<<1,x=W+(D<<1),h=W;h<x;h++)if(this._tokens[h]!==B._tokens[h])return!1;return!0},R.prototype.getLineContent=function(){return this._text},R.prototype.getCount=function(){return this._tokensCount},R.prototype.getStartOffset=function(B){return B>0?this._tokens[B-1<<1]:0},R.prototype.getMetadata=function(B){var z=this._tokens[(B<<1)+1];return z},R.prototype.getLanguageId=function(B){var z=this._tokens[(B<<1)+1];return T.A.getLanguageId(z)},R.prototype.getStandardTokenType=function(B){var z=this._tokens[(B<<1)+1];return T.A.getTokenType(z)},R.prototype.getForeground=function(B){var z=this._tokens[(B<<1)+1];return T.A.getForeground(z)},R.prototype.getClassName=function(B){var z=this._tokens[(B<<1)+1];return T.A.getClassNameFromMetadata(z)},R.prototype.getInlineStyle=function(B,z){var D=this._tokens[(B<<1)+1];return T.A.getInlineStyleFromMetadata(D,z)},R.prototype.getEndOffset=function(B){return this._tokens[B<<1]},R.prototype.findTokenIndexAtOffset=function(B){return R.findIndexInTokensArray(this._tokens,B)},R.prototype.inflate=function(){return this},R.prototype.sliceAndInflate=function(B,z,D){return new $(this,B,z,D)},R.convertToEndOffset=function(B,z){for(var D=B.length>>>1,W=D-1,x=0;x<W;x++)B[x<<1]=B[x+1<<1];B[W<<1]=z},R.findIndexInTokensArray=function(B,z){if(B.length<=2)return 0;for(var D=0,W=(B.length>>>1)-1;D<W;){var x=D+Math.floor((W-D)/2),h=B[x<<1];if(h===z)return x+1;h<z?D=x+1:h>z&&(W=x)}return D},R}(),$=function(){function R(B,z,D,W){this._source=B,this._startOffset=z,this._endOffset=D,this._deltaOffset=W,this._firstTokenIndex=B.findTokenIndexAtOffset(z),this._tokensCount=0;for(var x=this._firstTokenIndex,h=B.getCount();x<h;x++){var y=B.getStartOffset(x);if(y>=D)break;this._tokensCount++}}return R.prototype.equals=function(B){return B instanceof R?this._startOffset===B._startOffset&&this._endOffset===B._endOffset&&this._deltaOffset===B._deltaOffset&&this._source.slicedEquals(B._source,this._firstTokenIndex,this._tokensCount):!1},R.prototype.getCount=function(){return this._tokensCount},R.prototype.getForeground=function(B){return this._source.getForeground(this._firstTokenIndex+B)},R.prototype.getEndOffset=function(B){var z=this._source.getEndOffset(this._firstTokenIndex+B);return Math.min(this._endOffset,z)-this._startOffset+this._deltaOffset},R.prototype.getClassName=function(B){return this._source.getClassName(this._firstTokenIndex+B)},R.prototype.getInlineStyle=function(B,z){return this._source.getInlineStyle(this._firstTokenIndex+B,z)},R.prototype.findTokenIndexAtOffset=function(B){return this._source.findTokenIndexAtOffset(B+this._startOffset-this._deltaOffset)-this._firstTokenIndex},R}()},"4rho":function(Lt,N,e){},"4sI4":function(Lt,N,e){"use strict";e.r(N),e.d(N,"StandaloneReferencesController",function(){return w});var T=e("sswD"),le=e("Vxe3"),$=e("QY8A"),R=e("+7oY"),B=e("T8No"),z=e("Cg/j"),D=e("sM1p"),W=e("A+jI"),x=function(){var f=function(v,C){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,u){g.__proto__=u}||function(g,u){for(var s in u)u.hasOwnProperty(s)&&(g[s]=u[s])},f(v,C)};return function(v,C){f(v,C);function g(){this.constructor=v}v.prototype=C===null?Object.create(C):(g.prototype=C.prototype,new g)}}(),h=function(f,v,C,g){var u=arguments.length,s=u<3?v:g===null?g=Object.getOwnPropertyDescriptor(v,C):g,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(f,v,C,g);else for(var c=f.length-1;c>=0;c--)(l=f[c])&&(s=(u<3?l(s):u>3?l(v,C,s):l(v,C))||s);return u>3&&s&&Object.defineProperty(v,C,s),s},y=function(f,v){return function(C,g){v(C,g,f)}},w=function(f){x(v,f);function v(C,g,u,s,l,c,p){return f.call(this,!0,C,g,u,s,l,c,p)||this}return v=h([y(1,B.c),y(2,le.a),y(3,D.a),y(4,z.a),y(5,W.a),y(6,R.a)],v),v}($.a);Object(T.h)($.a.ID,w)},"4y0V":function(Lt,N,e){"use strict";e.d(N,"a",function(){return le}),e.d(N,"b",function(){return $});var T=e("MI8n"),le=function(R,B,z){var D=function(x){return W.fire(x)},W=new T.a({onFirstListenerAdd:function(){R.addEventListener(B,D,z)},onLastListenerRemove:function(){R.removeEventListener(B,D,z)}});return W.event};function $(R){return T.b.map(R,function(B){return B.preventDefault(),B.stopPropagation(),B})}},"51B1":function(Lt,N,e){},"51f4":function(Lt,N,e){"use strict";e.d(N,"a",function(){return B});var T=!1,le=null;function $(z){if(!z.parent||z.parent===z)return null;try{var D=z.location,W=z.parent.location;if(D.protocol!==W.protocol||D.hostname!==W.hostname||D.port!==W.port)return T=!0,null}catch(x){return T=!0,null}return z.parent}function R(z,D){for(var W=z.document.getElementsByTagName("iframe"),x,h=0,y=W.length;h<y;h++)if(x=W[h],x.contentWindow===D)return x;return null}var B=function(){function z(){}return z.getSameOriginWindowChain=function(){if(!le){le=[];var D=window,W;do W=$(D),W?le.push({window:D,iframeElement:R(W,D)}):le.push({window:D,iframeElement:null}),D=W;while(D)}return le.slice(0)},z.hasDifferentOriginAncestor=function(){return le||this.getSameOriginWindowChain(),T},z.getPositionOfChildWindowRelativeToAncestorWindow=function(D,W){if(!W||D===W)return{top:0,left:0};for(var x=0,h=0,y=this.getSameOriginWindowChain(),w=0,f=y;w<f.length;w++){var v=f[w];if(v.window===W)break;if(!v.iframeElement)break;var C=v.iframeElement.getBoundingClientRect();x+=C.top,h+=C.left}return{top:x,left:h}},z}()},"5DEy":function(Lt,N,e){},"5RaG":function(Lt,N,e){"use strict";e.r(N),e.d(N,"CursorUndoRedoController",function(){return W}),e.d(N,"CursorUndo",function(){return x}),e.d(N,"CursorRedo",function(){return h});var T=e("3/fG"),le=e("pmY6"),$=e("sswD"),R=e("wQH0"),B=function(){var y=function(w,f){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,C){v.__proto__=C}||function(v,C){for(var g in C)C.hasOwnProperty(g)&&(v[g]=C[g])},y(w,f)};return function(w,f){y(w,f);function v(){this.constructor=w}w.prototype=f===null?Object.create(f):(v.prototype=f.prototype,new v)}}(),z=function(){function y(w){this.selections=w}return y.prototype.equals=function(w){var f=this.selections.length,v=w.selections.length;if(f!==v)return!1;for(var C=0;C<f;C++)if(!this.selections[C].equalsSelection(w.selections[C]))return!1;return!0},y}(),D=function(){function y(w,f,v){this.cursorState=w,this.scrollTop=f,this.scrollLeft=v}return y}(),W=function(y){B(w,y);function w(f){var v=y.call(this)||this;return v._editor=f,v._isCursorUndoRedo=!1,v._undoStack=[],v._redoStack=[],v._register(f.onDidChangeModel(function(C){v._undoStack=[],v._redoStack=[]})),v._register(f.onDidChangeModelContent(function(C){v._undoStack=[],v._redoStack=[]})),v._register(f.onDidChangeCursorSelection(function(C){if(v._isCursorUndoRedo)return;if(!C.oldSelections)return;if(C.oldModelVersionId!==C.modelVersionId)return;var g=new z(C.oldSelections),u=v._undoStack.length>0&&v._undoStack[v._undoStack.length-1].cursorState.equals(g);u||(v._undoStack.push(new D(g,f.getScrollTop(),f.getScrollLeft())),v._redoStack=[],v._undoStack.length>50&&v._undoStack.shift())})),v}return w.get=function(f){return f.getContribution(w.ID)},w.prototype.cursorUndo=function(){if(!this._editor.hasModel()||this._undoStack.length===0)return;this._redoStack.push(new D(new z(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop())},w.prototype.cursorRedo=function(){if(!this._editor.hasModel()||this._redoStack.length===0)return;this._undoStack.push(new D(new z(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop())},w.prototype._applyState=function(f){this._isCursorUndoRedo=!0,this._editor.setSelections(f.cursorState.selections),this._editor.setScrollPosition({scrollTop:f.scrollTop,scrollLeft:f.scrollLeft}),this._isCursorUndoRedo=!1},w.ID="editor.contrib.cursorUndoRedoController",w}(le.a),x=function(y){B(w,y);function w(){return y.call(this,{id:"cursorUndo",label:T.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:R.a.textInputFocus,primary:2048|51,weight:100}})||this}return w.prototype.run=function(f,v,C){W.get(v).cursorUndo()},w}($.b),h=function(y){B(w,y);function w(){return y.call(this,{id:"cursorRedo",label:T.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})||this}return w.prototype.run=function(f,v,C){W.get(v).cursorRedo()},w}($.b);Object($.h)(W.ID,W),Object($.f)(x),Object($.f)(h)},"5TxY":function(Lt,N,e){"use strict";e.d(N,"a",function(){return w}),e.d(N,"b",function(){return v});var T=e("D3Dy"),le=e("EffR"),$=e("X+cX"),R=e("MI8n"),B=e("pmY6"),z=e("MNsG"),D=e("N0LK"),W=e("Comh"),x=e("gCVg"),h=e("CjF5"),y=function(){var u=function(s,l){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,p){c.__proto__=p}||function(c,p){for(var _ in p)p.hasOwnProperty(_)&&(c[_]=p[_])},u(s,l)};return function(s,l){u(s,l);function c(){this.constructor=s}s.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),w={forceCopyWithSyntaxHighlighting:!1},f=function(){function u(){this._lastState=null}return u.prototype.set=function(s,l){this._lastState={lastCopiedValue:s,data:l}},u.prototype.get=function(s){return this._lastState&&this._lastState.lastCopiedValue===s?this._lastState.data:(this._lastState=null,null)},u.INSTANCE=new u,u}(),v=function(u){y(s,u);function s(l,c){var p=u.call(this)||this;p.textArea=c,p._onFocus=p._register(new R.a),p.onFocus=p._onFocus.event,p._onBlur=p._register(new R.a),p.onBlur=p._onBlur.event,p._onKeyDown=p._register(new R.a),p.onKeyDown=p._onKeyDown.event,p._onKeyUp=p._register(new R.a),p.onKeyUp=p._onKeyUp.event,p._onCut=p._register(new R.a),p.onCut=p._onCut.event,p._onPaste=p._register(new R.a),p.onPaste=p._onPaste.event,p._onType=p._register(new R.a),p.onType=p._onType.event,p._onCompositionStart=p._register(new R.a),p.onCompositionStart=p._onCompositionStart.event,p._onCompositionUpdate=p._register(new R.a),p.onCompositionUpdate=p._onCompositionUpdate.event,p._onCompositionEnd=p._register(new R.a),p.onCompositionEnd=p._onCompositionEnd.event,p._onSelectionChangeRequest=p._register(new R.a),p.onSelectionChangeRequest=p._onSelectionChangeRequest.event,p._host=l,p._textArea=p._register(new g(c)),p._asyncTriggerCut=p._register(new $.d(function(){return p._onCut.fire()},0)),p._textAreaState=W.b.EMPTY,p._selectionChangeListener=null,p.writeScreenReaderContent("ctor"),p._hasFocus=!1,p._isDoingComposition=!1,p._nextCommand=0,p._register(le.o(c.domNode,"keydown",function(P){p._isDoingComposition&&(P.keyCode===109||P.keyCode===1)&&P.stopPropagation(),P.equals(9)&&P.preventDefault(),p._onKeyDown.fire(P)})),p._register(le.o(c.domNode,"keyup",function(P){p._onKeyUp.fire(P)})),p._register(le.j(c.domNode,"compositionstart",function(P){if(p._isDoingComposition)return;p._isDoingComposition=!0,T.f||p._setAndWriteTextAreaState("compositionstart",W.b.EMPTY),p._onCompositionStart.fire()}));var _=function(P){var A=p._textAreaState,Q=W.b.readFromTextArea(p._textArea);return[Q,W.b.deduceInput(A,Q,P)]},L=function(P){var A=p._textAreaState,Q=W.b.selectedText(P),K={text:Q.value,replaceCharCnt:A.selectionEnd-A.selectionStart};return[Q,K]},I=function(P){return T.f&&P==="ja"?!0:!!(T.i&&P.indexOf("zh-Han")===0)};return p._register(le.j(c.domNode,"compositionupdate",function(P){if(I(P.locale)){var A=_(!1),Q=A[0],K=A[1];p._textAreaState=Q,p._onType.fire(K),p._onCompositionUpdate.fire(P);return}var H=L(P.data),V=H[0],de=H[1];p._textAreaState=V,p._onType.fire(de),p._onCompositionUpdate.fire(P)})),p._register(le.j(c.domNode,"compositionend",function(P){if(!p._isDoingComposition)return;if(I(P.locale)){var A=_(!1),Q=A[0],K=A[1];p._textAreaState=Q,p._onType.fire(K)}else{var H=L(P.data),Q=H[0],K=H[1];p._textAreaState=Q,p._onType.fire(K)}if((T.f||T.d)&&(p._textAreaState=W.b.readFromTextArea(p._textArea)),!p._isDoingComposition)return;p._isDoingComposition=!1,p._onCompositionEnd.fire()})),p._register(le.j(c.domNode,"input",function(){if(p._textArea.setIgnoreSelectionChangeTime("received input event"),p._isDoingComposition)return;var P=_(z.e),A=P[0],Q=P[1];if(Q.replaceCharCnt===0&&Q.text.length===1&&D.z(Q.text.charCodeAt(0)))return;p._textAreaState=A,p._nextCommand===0?Q.text!==""&&p._onType.fire(Q):((Q.text!==""||Q.replaceCharCnt!==0)&&p._firePaste(Q.text,null),p._nextCommand=0)})),p._register(le.j(c.domNode,"cut",function(P){p._textArea.setIgnoreSelectionChangeTime("received cut event"),p._ensureClipboardGetsEditorSelection(P),p._asyncTriggerCut.schedule()})),p._register(le.j(c.domNode,"copy",function(P){p._ensureClipboardGetsEditorSelection(P)})),p._register(le.j(c.domNode,"paste",function(P){if(p._textArea.setIgnoreSelectionChangeTime("received paste event"),C.canUseTextData(P)){var A=C.getTextData(P),Q=A[0],K=A[1];Q!==""&&p._firePaste(Q,K)}else p._textArea.getSelectionStart()!==p._textArea.getSelectionEnd()&&p._setAndWriteTextAreaState("paste",W.b.EMPTY),p._nextCommand=1})),p._register(le.j(c.domNode,"focus",function(){p._setHasFocus(!0)})),p._register(le.j(c.domNode,"blur",function(){p._setHasFocus(!1)})),p}return s.prototype._installSelectionChangeListener=function(){var l=this,c=0;return le.j(document,"selectionchange",function(p){if(!l._hasFocus)return;if(l._isDoingComposition)return;if(!T.d||!z.h)return;var _=Date.now(),L=_-c;if(c=_,L<5)return;var I=_-l._textArea.getIgnoreSelectionChangeTime();if(l._textArea.resetSelectionChangeTime(),I<100)return;if(!l._textAreaState.selectionStartPosition||!l._textAreaState.selectionEndPosition)return;var P=l._textArea.getValue();if(l._textAreaState.value!==P)return;var A=l._textArea.getSelectionStart(),Q=l._textArea.getSelectionEnd();if(l._textAreaState.selectionStart===A&&l._textAreaState.selectionEnd===Q)return;var K=l._textAreaState.deduceEditorPosition(A),H=l._host.deduceModelPosition(K[0],K[1],K[2]),V=l._textAreaState.deduceEditorPosition(Q),de=l._host.deduceModelPosition(V[0],V[1],V[2]),_e=new x.a(H.lineNumber,H.column,de.lineNumber,de.column);l._onSelectionChangeRequest.fire(_e)})},s.prototype.dispose=function(){u.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},s.prototype.focusTextArea=function(){this._setHasFocus(!0),this.refreshFocusState()},s.prototype.isFocused=function(){return this._hasFocus},s.prototype.refreshFocusState=function(){var l=le.E(this.textArea.domNode);l?this._setHasFocus(l.activeElement===this.textArea.domNode):le.M(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)},s.prototype._setHasFocus=function(l){if(this._hasFocus===l)return;this._hasFocus=l,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(T.e?this._setAndWriteTextAreaState("focusgain",W.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire()},s.prototype._setAndWriteTextAreaState=function(l,c){this._hasFocus||(c=c.collapseSelection()),c.writeToTextArea(l,this._textArea,this._hasFocus),this._textAreaState=c},s.prototype.writeScreenReaderContent=function(l){if(this._isDoingComposition)return;this._setAndWriteTextAreaState(l,this._host.getScreenReaderContent(this._textAreaState))},s.prototype._ensureClipboardGetsEditorSelection=function(l){var c=this._host.getDataToCopy(C.canUseTextData(l)&&h.a.clipboard.richText),p={version:1,isFromEmptySelection:c.isFromEmptySelection,multicursorText:c.multicursorText,mode:c.mode};if(f.INSTANCE.set(T.h?c.text.replace(/\r\n/g,`
`):c.text,p),!C.canUseTextData(l)){this._setAndWriteTextAreaState("copy or cut",W.b.selectedText(c.text));return}C.setTextData(l,c.text,c.html,p)},s.prototype._firePaste=function(l,c){c||(c=f.INSTANCE.get(l)),this._onPaste.fire({text:l,metadata:c})},s}(B.a),C=function(){function u(){}return u.canUseTextData=function(s){return s.clipboardData?!0:!!window.clipboardData},u.getTextData=function(s){if(s.clipboardData){s.preventDefault();var l=s.clipboardData.getData("text/plain"),c=null,p=s.clipboardData.getData("vscode-editor-data");if(typeof p=="string")try{c=JSON.parse(p),c.version!==1&&(c=null)}catch(_){}return[l,c]}if(window.clipboardData){s.preventDefault();var l=window.clipboardData.getData("Text");return[l,null]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},u.setTextData=function(s,l,c,p){if(s.clipboardData){s.clipboardData.setData("text/plain",l),typeof c=="string"&&s.clipboardData.setData("text/html",c),s.clipboardData.setData("vscode-editor-data",JSON.stringify(p)),s.preventDefault();return}if(window.clipboardData){window.clipboardData.setData("Text",l),s.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},u}(),g=function(u){y(s,u);function s(l){var c=u.call(this)||this;return c._actual=l,c._ignoreSelectionChangeTime=0,c}return s.prototype.setIgnoreSelectionChangeTime=function(l){this._ignoreSelectionChangeTime=Date.now()},s.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},s.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},s.prototype.getValue=function(){return this._actual.domNode.value},s.prototype.setValue=function(l,c){var p=this._actual.domNode;if(p.value===c)return;this.setIgnoreSelectionChangeTime("setValue"),p.value=c},s.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},s.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},s.prototype.setSelectionRange=function(l,c,p){var _=this._actual.domNode,L=null,I=le.E(_);I?L=I.activeElement:L=document.activeElement;var P=L===_,A=_.selectionStart,Q=_.selectionEnd;if(P&&A===c&&Q===p){T.h&&window.parent!==window&&_.focus();return}if(P){this.setIgnoreSelectionChangeTime("setSelectionRange"),_.setSelectionRange(c,p),T.h&&window.parent!==window&&_.focus();return}try{var K=le.V(_);this.setIgnoreSelectionChangeTime("setSelectionRange"),_.focus(),_.setSelectionRange(c,p),le.T(_,K)}catch(H){}},s}(B.a)},"5Y4S":function(Lt,N,e){"use strict";e.d(N,"a",function(){return $});var T=e("MNsG"),le=T.b.performance&&typeof T.b.performance.now=="function",$=function(){function R(B){this._highResolution=le&&B,this._startTime=this._now(),this._stopTime=-1}return R.create=function(B){return B===void 0&&(B=!0),new R(B)},R.prototype.stop=function(){this._stopTime=this._now()},R.prototype.elapsed=function(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime},R.prototype._now=function(){return this._highResolution?T.b.performance.now():new Date().getTime()},R}()},"5v8Y":function(Lt,N,e){"use strict";e.d(N,"a",function(){return B});var T=e("MXAL"),le=function(){var z=function(D,W){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,h){x.__proto__=h}||function(x,h){for(var y in h)h.hasOwnProperty(y)&&(x[y]=h[y])},z(D,W)};return function(D,W){z(D,W);function x(){this.constructor=D}D.prototype=W===null?Object.create(W):(x.prototype=W.prototype,new x)}}(),$=function(z){le(D,z);function D(W){for(var x=z.call(this,0)||this,h=0,y=W.length;h<y;h++)x.set(W.charCodeAt(h),2);return x.set(32,1),x.set(9,1),x}return D}(T.a);function R(z){var D={};return function(W){return D.hasOwnProperty(W)||(D[W]=z(W)),D[W]}}var B=R(function(z){return new $(z)})},"62hx":function(Lt,N,e){},"6OMU":function(Lt,N,e){"use strict";e.d(N,"v",function(){return T}),e.d(N,"w",function(){return le}),e.d(N,"g",function(){return $}),e.d(N,"c",function(){return R}),e.d(N,"i",function(){return B}),e.d(N,"r",function(){return z}),e.d(N,"o",function(){return x}),e.d(N,"d",function(){return h}),e.d(N,"p",function(){return y}),e.d(N,"q",function(){return w}),e.d(N,"e",function(){return f}),e.d(N,"f",function(){return v}),e.d(N,"n",function(){return C}),e.d(N,"k",function(){return g}),e.d(N,"j",function(){return u}),e.d(N,"l",function(){return s}),e.d(N,"m",function(){return l}),e.d(N,"u",function(){return c}),e.d(N,"a",function(){return p}),e.d(N,"t",function(){return _}),e.d(N,"s",function(){return L}),e.d(N,"h",function(){return I}),e.d(N,"b",function(){return P});function T(A,Q){return Q===void 0&&(Q=0),A[A.length-(1+Q)]}function le(A){if(A.length===0)throw new Error("Invalid tail call");return[A.slice(0,A.length-1),A[A.length-1]]}function $(A,Q,K){if(K===void 0&&(K=function(de,_e){return de===_e}),A===Q)return!0;if(!A||!Q)return!1;if(A.length!==Q.length)return!1;for(var H=0,V=A.length;H<V;H++)if(!K(A[H],Q[H]))return!1;return!0}function R(A,Q,K){for(var H=0,V=A.length-1;H<=V;){var de=(H+V)/2|0,_e=K(A[de],Q);if(_e<0)H=de+1;else if(_e>0)V=de-1;else return de}return-(H+1)}function B(A,Q){var K=0,H=A.length;if(H===0)return 0;for(;K<H;){var V=Math.floor((K+H)/2);Q(A[V])?H=V:K=V+1}return K}function z(A,Q){return W(A,Q,0,A.length-1,[]),A}function D(A,Q,K,H,V,de){for(var _e=K,Se=H+1,Ie=K;Ie<=V;Ie++)de[Ie]=A[Ie];for(var Ie=K;Ie<=V;Ie++)_e>H?A[Ie]=de[Se++]:Se>V?A[Ie]=de[_e++]:Q(de[Se],de[_e])<0?A[Ie]=de[Se++]:A[Ie]=de[_e++]}function W(A,Q,K,H,V){if(H<=K)return;var de=K+(H-K)/2|0;if(W(A,Q,K,de,V),W(A,Q,de+1,H,V),Q(A[de],A[de+1])<=0)return;D(A,Q,K,de,H,V)}function x(A,Q){for(var K=[],H=void 0,V=0,de=z(A.slice(0),Q);V<de.length;V++){var _e=de[V];!H||Q(H[0],_e)!==0?(H=[_e],K.push(H)):H.push(_e)}return K}function h(A){return A.filter(function(Q){return!!Q})}function y(A){return!Array.isArray(A)||A.length===0}function w(A){return Array.isArray(A)&&A.length>0}function f(A,Q){if(!Q)return A.filter(function(H,V){return A.indexOf(H)===V});var K=Object.create(null);return A.filter(function(H){var V=Q(H);return K[V]?!1:(K[V]=!0,!0)})}function v(A){var Q=new Set;return A.filter(function(K){return Q.has(K)?!1:(Q.add(K),!0)})}function C(A){var Q=[];return A.forEach(function(K){return Q.push(K)}),Q}function g(A,Q){for(var K=0;K<A.length;K++){var H=A[K];if(Q(H))return K}return-1}function u(A,Q,K){K===void 0&&(K=void 0);var H=g(A,Q);return H<0?K:A[H]}function s(A,Q){return A.length>0?A[0]:Q}function l(A){var Q;return(Q=[]).concat.apply(Q,A)}function c(A,Q){var K=typeof Q=="number"?A:0;typeof Q=="number"?K=A:(K=0,Q=A);var H=[];if(K<=Q)for(var V=K;V<Q;V++)H.push(V);else for(var V=K;V>Q;V--)H.push(V);return H}function p(A,Q,K){var H=A.slice(0,Q),V=A.slice(Q);return H.concat(K,V)}function _(A,Q){var K=A.indexOf(Q);K>-1&&(A.splice(K,1),A.unshift(Q))}function L(A,Q){var K=A.indexOf(Q);K>-1&&(A.splice(K,1),A.push(Q))}function I(A,Q){for(var K=0;K<A.length;K++){var H=A[K];if(Q(H,K,A))return H}return}function P(A){return Array.isArray(A)?A:[A]}},"6lNC":function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return e.e(317).then(e.bind(null,"meXB"))}})},"746U":function(Lt,N,e){"use strict";e.d(N,"d",function(){return le}),e.d(N,"j",function(){return $}),e.d(N,"i",function(){return R}),e.d(N,"h",function(){return B}),e.d(N,"e",function(){return z}),e.d(N,"k",function(){return D}),e.d(N,"l",function(){return W}),e.d(N,"a",function(){return x}),e.d(N,"f",function(){return y}),e.d(N,"g",function(){return w}),e.d(N,"m",function(){return f}),e.d(N,"c",function(){return g}),e.d(N,"b",function(){return u}),e.d(N,"n",function(){return s}),e.d(N,"o",function(){return l});var T={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function le(c){return Array.isArray?Array.isArray(c):!!(c&&typeof c.length===T.number&&c.constructor===Array)}function $(c){return typeof c===T.string||c instanceof String}function R(c){return typeof c===T.object&&c!==null&&!Array.isArray(c)&&!(c instanceof RegExp)&&!(c instanceof Date)}function B(c){return(typeof c===T.number||c instanceof Number)&&!isNaN(c)}function z(c){return c===!0||c===!1}function D(c){return typeof c===T.undefined}function W(c){return D(c)||c===null}function x(c,p){if(!c)throw new Error(p?"Unexpected type, expected '"+p+"'":"Unexpected type")}var h=Object.prototype.hasOwnProperty;function y(c){if(!R(c))return!1;for(var p in c)if(h.call(c,p))return!1;return!0}function w(c){return typeof c===T.function}function f(c,p){for(var _=Math.min(c.length,p.length),L=0;L<_;L++)v(c[L],p[L])}function v(c,p){if($(p)){if(typeof c!==p)throw new Error("argument does not match constraint: typeof "+p)}else if(w(p)){try{if(c instanceof p)return}catch(_){}if(!W(c)&&c.constructor===p)return;if(p.length===1&&p.call(void 0,c)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function C(c){for(var p=[],_=Object.getPrototypeOf(c);Object.prototype!==_;)p=p.concat(Object.getOwnPropertyNames(_)),_=Object.getPrototypeOf(_);return p}function g(c){for(var p=[],_=0,L=C(c);_<L.length;_++){var I=L[_];typeof c[I]=="function"&&p.push(I)}return p}function u(c,p){for(var _=function(Q){return function(){var K=Array.prototype.slice.call(arguments,0);return p(Q,K)}},L={},I=0,P=c;I<P.length;I++){var A=P[I];L[A]=_(A)}return L}function s(c){return c===null?void 0:c}function l(c){return typeof c=="undefined"?null:c}},"79sc":function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("Cg/j"),le=Object(T.c)("markerDecorationsService")},"7afs":function(Lt,N,e){"use strict";e.d(N,"a",function(){return T}),e.d(N,"b",function(){return R});function T(D,W){W===void 0&&(W=0);switch(typeof D){case"object":return D===null?le(349,W):Array.isArray(D)?B(D,W):z(D,W);case"string":return R(D,W);case"boolean":return $(D,W);case"number":return le(D,W);case"undefined":return le(0,937);default:return le(0,617)}}function le(D,W){return(W<<5)-W+D|0}function $(D,W){return le(D?433:863,W)}function R(D,W){W=le(149417,W);for(var x=0,h=D.length;x<h;x++)W=le(D.charCodeAt(x),W);return W}function B(D,W){return W=le(104579,W),D.reduce(function(x,h){return T(h,x)},W)}function z(D,W){return W=le(181387,W),Object.keys(D).sort().reduce(function(x,h){return x=R(h,x),T(D[h],x)},W)}},"7lZ/":function(Lt,N,e){"use strict";e.d(N,"a",function(){return R});var T=e("qj0h"),le=e("Vhoy"),$=e("N0LK"),R=function(){function B(z,D){this.supportCodicons=D,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",z.appendChild(this.domNode)}return Object.defineProperty(B.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),B.prototype.set=function(z,D,W,x){if(D===void 0&&(D=[]),W===void 0&&(W=""),z||(z=""),x&&(z=B.escapeNewLines(z,D)),this.didEverRender&&this.text===z&&this.title===W&&T.e(this.highlights,D))return;Array.isArray(D)||(D=[]),this.text=z,this.title=W,this.highlights=D,this.render()},B.prototype.render=function(){for(var z="",D=0,W=0,x=this.highlights;W<x.length;W++){var h=x[W];if(h.end===h.start)continue;if(D<h.start){z+="<span>";var y=this.text.substring(D,h.start);z+=this.supportCodicons?Object(le.c)(Object($.o)(y)):Object($.o)(y),z+="</span>",D=h.end}h.extraClasses?z+='<span class="highlight '+h.extraClasses+'">':z+='<span class="highlight">';var w=this.text.substring(h.start,h.end);z+=this.supportCodicons?Object(le.c)(Object($.o)(w)):Object($.o)(w),z+="</span>",D=h.end}if(D<this.text.length){z+="<span>";var w=this.text.substring(D);z+=this.supportCodicons?Object(le.c)(Object($.o)(w)):Object($.o)(w),z+="</span>"}this.domNode.innerHTML=z,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},B.escapeNewLines=function(z,D){var W=0,x=0;return z.replace(/\r\n|\r|\n/g,function(h,y){x=h===`\r
`?-1:0,y+=W;for(var w=0,f=D;w<f.length;w++){var v=f[w];if(v.end<=y)continue;v.start>=y&&(v.start+=x),v.end>=y&&(v.end+=x)}return W+=x,"\u23CE"})},B}()},"7zd4":function(Lt,N,e){},"8ATB":function(Lt,N,e){},"8HAY":function(Lt,N,e){"use strict";e.d(N,"a",function(){return z}),e.d(N,"b",function(){return D});var T=e("pmY6"),le=e("MI8n"),$=function(){var W=function(x,h){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var f in w)w.hasOwnProperty(f)&&(y[f]=w[f])},W(x,h)};return function(x,h){W(x,h);function y(){this.constructor=x}x.prototype=h===null?Object.create(h):(y.prototype=h.prototype,new y)}}(),R=function(W,x,h,y){function w(f){return f instanceof h?f:new h(function(v){v(f)})}return new(h||(h=Promise))(function(f,v){function C(s){try{u(y.next(s))}catch(l){v(l)}}function g(s){try{u(y.throw(s))}catch(l){v(l)}}function u(s){s.done?f(s.value):w(s.value).then(C,g)}u((y=y.apply(W,x||[])).next())})},B=function(W,x){var h={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},y,w,f,v;return v={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function C(u){return function(s){return g([u,s])}}function g(u){if(y)throw new TypeError("Generator is already executing.");for(;h;)try{if(y=1,w&&(f=u[0]&2?w.return:u[0]?w.throw||((f=w.return)&&f.call(w),0):w.next)&&!(f=f.call(w,u[1])).done)return f;(w=0,f)&&(u=[u[0]&2,f.value]);switch(u[0]){case 0:case 1:f=u;break;case 4:return h.label++,{value:u[1],done:!1};case 5:h.label++,w=u[1],u=[0];continue;case 7:u=h.ops.pop(),h.trys.pop();continue;default:if(!(f=h.trys,f=f.length>0&&f[f.length-1])&&(u[0]===6||u[0]===2)){h=0;continue}if(u[0]===3&&(!f||u[1]>f[0]&&u[1]<f[3])){h.label=u[1];break}if(u[0]===6&&h.label<f[1]){h.label=f[1],f=u;break}if(f&&h.label<f[2]){h.label=f[2],h.ops.push(u);break}f[2]&&h.ops.pop(),h.trys.pop();continue}u=x.call(W,h)}catch(s){u=[6,s],w=0}finally{y=f=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},z=function(W){$(x,W);function x(h,y,w,f,v){y===void 0&&(y=""),w===void 0&&(w=""),f===void 0&&(f=!0);var C=W.call(this)||this;return C._onDidChange=C._register(new le.a),C.onDidChange=C._onDidChange.event,C._enabled=!0,C._checked=!1,C._id=h,C._label=y,C._cssClass=w,C._enabled=f,C._actionCallback=v,C}return Object.defineProperty(x.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"label",{get:function(){return this._label},set:function(h){this._setLabel(h)},enumerable:!0,configurable:!0}),x.prototype._setLabel=function(h){this._label!==h&&(this._label=h,this._onDidChange.fire({label:h}))},Object.defineProperty(x.prototype,"tooltip",{get:function(){return this._tooltip||""},set:function(h){this._setTooltip(h)},enumerable:!0,configurable:!0}),x.prototype._setTooltip=function(h){this._tooltip!==h&&(this._tooltip=h,this._onDidChange.fire({tooltip:h}))},Object.defineProperty(x.prototype,"class",{get:function(){return this._cssClass},set:function(h){this._setClass(h)},enumerable:!0,configurable:!0}),x.prototype._setClass=function(h){this._cssClass!==h&&(this._cssClass=h,this._onDidChange.fire({class:h}))},Object.defineProperty(x.prototype,"enabled",{get:function(){return this._enabled},set:function(h){this._setEnabled(h)},enumerable:!0,configurable:!0}),x.prototype._setEnabled=function(h){this._enabled!==h&&(this._enabled=h,this._onDidChange.fire({enabled:h}))},Object.defineProperty(x.prototype,"checked",{get:function(){return this._checked},set:function(h){this._setChecked(h)},enumerable:!0,configurable:!0}),x.prototype._setChecked=function(h){this._checked!==h&&(this._checked=h,this._onDidChange.fire({checked:h}))},x.prototype.run=function(h,y){return this._actionCallback?this._actionCallback(h):Promise.resolve(!0)},x}(T.a),D=function(W){$(x,W);function x(){var h=W!==null&&W.apply(this,arguments)||this;return h._onDidBeforeRun=h._register(new le.a),h.onDidBeforeRun=h._onDidBeforeRun.event,h._onDidRun=h._register(new le.a),h.onDidRun=h._onDidRun.event,h}return x.prototype.run=function(h,y){return R(this,void 0,void 0,function(){var w,f;return B(this,function(v){switch(v.label){case 0:if(!h.enabled)return[2,Promise.resolve(null)];this._onDidBeforeRun.fire({action:h}),v.label=1;case 1:return v.trys.push([1,3,,4]),[4,this.runAction(h,y)];case 2:return w=v.sent(),this._onDidRun.fire({action:h,result:w}),[3,4];case 3:return f=v.sent(),this._onDidRun.fire({action:h,error:f}),[3,4];case 4:return[2]}})})},x.prototype.runAction=function(h,y){var w=y?h.run(y):h.run();return Promise.resolve(w)},x}(T.a)},"8HsV":function(Lt,N,e){"use strict";e.d(N,"a",function(){return T});var T=function(){function le(){for(var $=[],R=0;R<arguments.length;R++)$[R]=arguments[R];this._entries=new Map;for(var B=0,z=$;B<z.length;B++){var D=z[B],W=D[0],x=D[1];this.set(W,x)}}return le.prototype.set=function($,R){var B=this._entries.get($);return this._entries.set($,R),B},le.prototype.has=function($){return this._entries.has($)},le.prototype.get=function($){return this._entries.get($)},le}()},"8XyJ":function(Lt,N,e){"use strict";e.r(N),e.d(N,"InsertCursorAbove",function(){return s}),e.d(N,"InsertCursorBelow",function(){return l}),e.d(N,"MultiCursorSessionResult",function(){return L}),e.d(N,"MultiCursorSession",function(){return I}),e.d(N,"MultiCursorSelectionController",function(){return P}),e.d(N,"MultiCursorSelectionControllerAction",function(){return A}),e.d(N,"AddSelectionToNextFindMatchAction",function(){return Q}),e.d(N,"AddSelectionToPreviousFindMatchAction",function(){return K}),e.d(N,"MoveSelectionToNextFindMatchAction",function(){return H}),e.d(N,"MoveSelectionToPreviousFindMatchAction",function(){return V}),e.d(N,"SelectHighlightsAction",function(){return de}),e.d(N,"CompatChangeAll",function(){return _e}),e.d(N,"SelectionHighlighter",function(){return Ie});var T=e("3/fG"),le=e("X+cX"),$=e("/kV6"),R=e("pmY6"),B=e("sswD"),z=e("oAeH"),D=e("aokT"),W=e("gCVg"),x=e("wQH0"),h=e("M1Kb"),y=e("tX9W"),w=e("twdY"),f=e("oQaD"),v=e("MD5Z"),C=e("t9D7"),g=e("T8No"),u=function(){var ke=function(se,ee){return ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,q){ie.__proto__=q}||function(ie,q){for(var ce in q)q.hasOwnProperty(ce)&&(ie[ce]=q[ce])},ke(se,ee)};return function(se,ee){ke(se,ee);function ie(){this.constructor=se}se.prototype=ee===null?Object.create(ee):(ie.prototype=ee.prototype,new ie)}}(),s=function(ke){u(se,ke);function se(){return ke.call(this,{id:"editor.action.insertCursorAbove",label:T.a("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:x.a.editorTextFocus,primary:2048|512|16,linux:{primary:1024|512|16,secondary:[2048|1024|16]},weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})||this}return se.prototype.run=function(ee,ie,q){if(!ie.hasModel())return;var ce=q&&q.logicalLine===!0,Z=ie._getCursors(),ye=Z.context;if(ye.config.readOnly)return;ye.model.pushStackElement(),Z.setStates(q.source,3,z.b.addCursorUp(ye,Z.getAll(),ce)),Z.reveal(q.source,!0,1,0)},se}(B.b),l=function(ke){u(se,ke);function se(){return ke.call(this,{id:"editor.action.insertCursorBelow",label:T.a("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:x.a.editorTextFocus,primary:2048|512|18,linux:{primary:1024|512|18,secondary:[2048|1024|18]},weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})||this}return se.prototype.run=function(ee,ie,q){if(!ie.hasModel())return;var ce=q&&q.logicalLine===!0,Z=ie._getCursors(),ye=Z.context;if(ye.config.readOnly)return;ye.model.pushStackElement(),Z.setStates(q.source,3,z.b.addCursorDown(ye,Z.getAll(),ce)),Z.reveal(q.source,!0,2,0)},se}(B.b),c=function(ke){u(se,ke);function se(){return ke.call(this,{id:"editor.action.insertCursorAtEndOfEachLineSelected",label:T.a("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:x.a.editorTextFocus,primary:1024|512|39,weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})||this}return se.prototype.getCursorsForSelection=function(ee,ie,q){if(ee.isEmpty())return;for(var ce=ee.startLineNumber;ce<ee.endLineNumber;ce++){var Z=ie.getLineMaxColumn(ce);q.push(new W.a(ce,Z,ce,Z))}ee.endColumn>1&&q.push(new W.a(ee.endLineNumber,ee.endColumn,ee.endLineNumber,ee.endColumn))},se.prototype.run=function(ee,ie){var q=this;if(!ie.hasModel())return;var ce=ie.getModel(),Z=ie.getSelections(),ye=[];Z.forEach(function(je){return q.getCursorsForSelection(je,ce,ye)}),ye.length>0&&ie.setSelections(ye)},se}(B.b),p=function(ke){u(se,ke);function se(){return ke.call(this,{id:"editor.action.addCursorsToBottom",label:T.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})||this}return se.prototype.run=function(ee,ie){if(!ie.hasModel())return;for(var q=ie.getSelections(),ce=ie.getModel().getLineCount(),Z=[],ye=q[0].startLineNumber;ye<=ce;ye++)Z.push(new W.a(ye,q[0].startColumn,ye,q[0].endColumn));Z.length>0&&ie.setSelections(Z)},se}(B.b),_=function(ke){u(se,ke);function se(){return ke.call(this,{id:"editor.action.addCursorsToTop",label:T.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})||this}return se.prototype.run=function(ee,ie){if(!ie.hasModel())return;for(var q=ie.getSelections(),ce=[],Z=q[0].startLineNumber;Z>=1;Z--)ce.push(new W.a(Z,q[0].startColumn,Z,q[0].endColumn));ce.length>0&&ie.setSelections(ce)},se}(B.b),L=function(){function ke(se,ee,ie){this.selections=se,this.revealRange=ee,this.revealScrollType=ie}return ke}(),I=function(){function ke(se,ee,ie,q,ce,Z,ye){this._editor=se,this.findController=ee,this.isDisconnectedFromFindController=ie,this.searchText=q,this.wholeWord=ce,this.matchCase=Z,this.currentMatch=ye}return ke.create=function(se,ee){if(!se.hasModel())return null;var ie=ee.getState();if(!se.hasTextFocus()&&ie.isRevealed&&ie.searchString.length>0)return new ke(se,ee,!1,ie.searchString,ie.wholeWord,ie.matchCase,null);var q=!1,ce,Z,ye=se.getSelections();ye.length===1&&ye[0].isEmpty()?(q=!0,ce=!0,Z=!0):(ce=ie.wholeWord,Z=ie.matchCase);var je=se.getSelection(),Ge,ue=null;if(je.isEmpty()){var ve=se.getModel().getWordAtPosition(je.getStartPosition());if(!ve)return null;Ge=ve.word,ue=new W.a(je.startLineNumber,ve.startColumn,je.startLineNumber,ve.endColumn)}else Ge=se.getModel().getValueInRange(je).replace(/\r\n/g,`
`);return new ke(se,ee,q,Ge,ce,Z,ue)},ke.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var se=this._getNextMatch();if(!se)return null;var ee=this._editor.getSelections();return new L(ee.concat(se),se,0)},ke.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var se=this._getNextMatch();if(!se)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(se),se,0)},ke.prototype._getNextMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var se=this.currentMatch;return this.currentMatch=null,se}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ie=ee[ee.length-1],q=this._editor.getModel().findNextMatch(this.searchText,ie.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new W.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},ke.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var se=this._getPreviousMatch();if(!se)return null;var ee=this._editor.getSelections();return new L(ee.concat(se),se,0)},ke.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var se=this._getPreviousMatch();if(!se)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(se),se,0)},ke.prototype._getPreviousMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var se=this.currentMatch;return this.currentMatch=null,se}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ie=ee[ee.length-1],q=this._editor.getModel().findPreviousMatch(this.searchText,ie.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new W.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},ke.prototype.selectAll=function(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1,1073741824)):[]},ke}(),P=function(ke){u(se,ke);function se(ee){var ie=ke.call(this)||this;return ie._sessionDispose=ie._register(new R.b),ie._editor=ee,ie._ignoreSelectionChange=!1,ie._session=null,ie}return se.get=function(ee){return ee.getContribution(se.ID)},se.prototype.dispose=function(){this._endSession(),ke.prototype.dispose.call(this)},se.prototype._beginSessionIfNeeded=function(ee){var ie=this;if(!this._session){var q=I.create(this._editor,ee);if(!q)return;this._session=q;var ce={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(ce.wholeWordOverride=1,ce.matchCaseOverride=1,ce.isRegexOverride=2),ee.getState().change(ce,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(function(Z){if(ie._ignoreSelectionChange)return;ie._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(function(){ie._endSession()})),this._sessionDispose.add(ee.getState().onFindReplaceStateChange(function(Z){(Z.matchCase||Z.wholeWord)&&ie._endSession()}))}},se.prototype._endSession=function(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){var ee={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(ee,!1)}this._session=null},se.prototype._setSelections=function(ee){this._ignoreSelectionChange=!0,this._editor.setSelections(ee),this._ignoreSelectionChange=!1},se.prototype._expandEmptyToWord=function(ee,ie){if(!ie.isEmpty())return ie;var q=ee.getWordAtPosition(ie.getStartPosition());return q?new W.a(ie.startLineNumber,q.startColumn,ie.startLineNumber,q.endColumn):ie},se.prototype._applySessionResult=function(ee){if(!ee)return;this._setSelections(ee.selections),ee.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(ee.revealRange,ee.revealScrollType)},se.prototype.getSession=function(ee){return this._session},se.prototype.addSelectionToNextFindMatch=function(ee){if(!this._editor.hasModel())return;if(!this._session){var ie=this._editor.getSelections();if(ie.length>1){var q=ee.getState(),ce=q.matchCase,Z=Pe(this._editor.getModel(),ie,ce);if(!Z){for(var ye=this._editor.getModel(),je=[],Ge=0,ue=ie.length;Ge<ue;Ge++)je[Ge]=this._expandEmptyToWord(ye,ie[Ge]);this._editor.setSelections(je);return}}}this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())},se.prototype.addSelectionToPreviousFindMatch=function(ee){this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())},se.prototype.moveSelectionToNextFindMatch=function(ee){this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())},se.prototype.moveSelectionToPreviousFindMatch=function(ee){this._beginSessionIfNeeded(ee),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())},se.prototype.selectAll=function(ee){if(!this._editor.hasModel())return;var ie=null,q=ee.getState();if(q.isRevealed&&q.searchString.length>0&&q.isRegex)ie=this._editor.getModel().findMatches(q.searchString,!0,q.isRegex,q.matchCase,q.wholeWord?this._editor.getOption(96):null,!1,1073741824);else{if(this._beginSessionIfNeeded(ee),!this._session)return;ie=this._session.selectAll()}if(q.searchScope){for(var ce=q.searchScope,Z=[],ye=0;ye<ie.length;ye++)ie[ye].range.endLineNumber<=ce.endLineNumber&&ie[ye].range.startLineNumber>=ce.startLineNumber&&Z.push(ie[ye]);ie=Z}if(ie.length>0){for(var je=this._editor.getSelection(),ye=0,Ge=ie.length;ye<Ge;ye++){var ue=ie[ye],ve=ue.range.intersectRanges(je);if(ve){ie[ye]=ie[0],ie[0]=ue;break}}this._setSelections(ie.map(function(Ee){return new W.a(Ee.range.startLineNumber,Ee.range.startColumn,Ee.range.endLineNumber,Ee.range.endColumn)}))}},se.ID="editor.contrib.multiCursorController",se}(R.a),A=function(ke){u(se,ke);function se(){return ke!==null&&ke.apply(this,arguments)||this}return se.prototype.run=function(ee,ie){var q=P.get(ie);if(!q)return;var ce=f.CommonFindController.get(ie);if(!ce)return;this._run(q,ce)},se}(B.b),Q=function(ke){u(se,ke);function se(){return ke.call(this,{id:"editor.action.addSelectionToNextFindMatch",label:T.a("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:x.a.focus,primary:2048|34,weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})||this}return se.prototype._run=function(ee,ie){ee.addSelectionToNextFindMatch(ie)},se}(A),K=function(ke){u(se,ke);function se(){return ke.call(this,{id:"editor.action.addSelectionToPreviousFindMatch",label:T.a("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})||this}return se.prototype._run=function(ee,ie){ee.addSelectionToPreviousFindMatch(ie)},se}(A),H=function(ke){u(se,ke);function se(){return ke.call(this,{id:"editor.action.moveSelectionToNextFindMatch",label:T.a("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:x.a.focus,primary:Object($.a)(2048|41,2048|34),weight:100}})||this}return se.prototype._run=function(ee,ie){ee.moveSelectionToNextFindMatch(ie)},se}(A),V=function(ke){u(se,ke);function se(){return ke.call(this,{id:"editor.action.moveSelectionToPreviousFindMatch",label:T.a("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})||this}return se.prototype._run=function(ee,ie){ee.moveSelectionToPreviousFindMatch(ie)},se}(A),de=function(ke){u(se,ke);function se(){return ke.call(this,{id:"editor.action.selectHighlights",label:T.a("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:x.a.focus,primary:2048|1024|42,weight:100},menuOpts:{menuId:25,group:"3_multi",title:T.a({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})||this}return se.prototype._run=function(ee,ie){ee.selectAll(ie)},se}(A),_e=function(ke){u(se,ke);function se(){return ke.call(this,{id:"editor.action.changeAll",label:T.a("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:g.a.and(x.a.writable,x.a.editorTextFocus),kbOpts:{kbExpr:x.a.editorTextFocus,primary:2048|60,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})||this}return se.prototype._run=function(ee,ie){ee.selectAll(ie)},se}(A),Se=function(){function ke(se,ee,ie){this.searchText=se,this.matchCase=ee,this.wordSeparators=ie}return ke.softEquals=function(se,ee){return!se&&!ee?!0:!se||!ee?!1:se.searchText===ee.searchText&&se.matchCase===ee.matchCase&&se.wordSeparators===ee.wordSeparators},ke}(),Ie=function(ke){u(se,ke);function se(ee){var ie=ke.call(this)||this;return ie.editor=ee,ie._isEnabled=ee.getOption(82),ie.decorations=[],ie.updateSoon=ie._register(new le.d(function(){return ie._update()},300)),ie.state=null,ie._register(ee.onDidChangeConfiguration(function(q){ie._isEnabled=ee.getOption(82)})),ie._register(ee.onDidChangeCursorSelection(function(q){if(!ie._isEnabled)return;q.selection.isEmpty()?q.reason===3?(ie.state&&ie._setState(null),ie.updateSoon.schedule()):ie._setState(null):ie._update()})),ie._register(ee.onDidChangeModel(function(q){ie._setState(null)})),ie._register(f.CommonFindController.get(ee).getState().onFindReplaceStateChange(function(q){ie._update()})),ie}return se.prototype._update=function(){this._setState(se._createState(this._isEnabled,this.editor))},se._createState=function(ee,ie){if(!ee)return null;if(!ie.hasModel())return null;var q=ie.getSelection();if(q.startLineNumber!==q.endLineNumber)return null;var ce=P.get(ie);if(!ce)return null;var Z=f.CommonFindController.get(ie);if(!Z)return null;var ye=ce.getSession(Z);if(!ye){var je=ie.getSelections();if(je.length>1){var Ge=Z.getState(),ue=Ge.matchCase,ve=Pe(ie.getModel(),je,ue);if(!ve)return null}ye=I.create(ie,Z)}if(!ye)return null;if(ye.currentMatch)return null;if(/^[ \t]+$/.test(ye.searchText))return null;if(ye.searchText.length>200)return null;var Ee=Z.getState(),xe=Ee.matchCase;if(Ee.isRevealed){var Ce=Ee.searchString;xe||(Ce=Ce.toLowerCase());var he=ye.searchText;if(xe||(he=he.toLowerCase()),Ce===he&&ye.matchCase===Ee.matchCase&&ye.wholeWord===Ee.wholeWord&&!Ee.isRegex)return null}return new Se(ye.searchText,ye.matchCase,ye.wholeWord?ie.getOption(96):null)},se.prototype._setState=function(ee){if(Se.softEquals(this.state,ee)){this.state=ee;return}if(this.state=ee,!this.state){this.decorations=this.editor.deltaDecorations(this.decorations,[]);return}if(!this.editor.hasModel())return;var ie=this.editor.getModel();if(ie.isTooLargeForTokenization())return;var q=w.i.has(ie),ce=ie.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(function(he){return he.range});ce.sort(D.a.compareRangesUsingStarts);var Z=this.editor.getSelections();Z.sort(D.a.compareRangesUsingStarts);for(var ye=[],je=0,Ge=0,ue=ce.length,ve=Z.length;je<ue;){var Ee=ce[je];if(Ge>=ve)ye.push(Ee),je++;else{var xe=D.a.compareRangesUsingStarts(Ee,Z[Ge]);xe<0?((Z[Ge].isEmpty()||!D.a.areIntersecting(Ee,Z[Ge]))&&ye.push(Ee),je++):(xe>0||je++,Ge++)}}var Ce=ye.map(function(he){return{range:he,options:q?se._SELECTION_HIGHLIGHT:se._SELECTION_HIGHLIGHT_OVERVIEW}});this.decorations=this.editor.deltaDecorations(this.decorations,Ce)},se.prototype.dispose=function(){this._setState(null),ke.prototype.dispose.call(this)},se.ID="editor.contrib.selectionHighlighter",se._SELECTION_HIGHLIGHT_OVERVIEW=y.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(C.f)(v.Mb),position:h.d.Center}}),se._SELECTION_HIGHLIGHT=y.a.register({stickiness:1,className:"selectionHighlight"}),se}(R.a);function Pe(ke,se,ee){for(var ie=Ve(ke,se[0],!ee),q=1,ce=se.length;q<ce;q++){var Z=se[q];if(Z.isEmpty())return!1;var ye=Ve(ke,Z,!ee);if(ie!==ye)return!1}return!0}function Ve(ke,se,ee){var ie=ke.getValueInRange(se);return ee?ie.toLowerCase():ie}Object(B.h)(P.ID,P),Object(B.h)(Ie.ID,Ie),Object(B.f)(s),Object(B.f)(l),Object(B.f)(c),Object(B.f)(Q),Object(B.f)(K),Object(B.f)(H),Object(B.f)(V),Object(B.f)(de),Object(B.f)(_e),Object(B.f)(p),Object(B.f)(_)},"8Ydt":function(Lt,N,e){"use strict";e.r(N),e.d(N,"DefinitionAction",function(){return b});var T=e("OBOq"),le=e("X+cX"),$=e("/kV6"),R=e("MNsG"),B=e("sFUC"),z=e("sswD"),D=e("Vxe3"),W=e("cGHE"),x=e("aokT"),h=e("wQH0"),y=e("twdY"),w=e("NR8r"),f=e("iNS8"),v=e("QY8A"),C=e("9o5J"),g=e("3/fG"),u=e("fjLI"),s=e("T8No"),l=e("sM1p"),c=e("tTk5"),p=e("vRMv"),_=e("nnTU"),L=e("vATl"),I=e("Cg/j"),P=e("9fML"),A=e("nrhi"),Q=e("pmY6"),K=e("MI8n"),H=e("bexQ"),V=e("gslv"),de=function(){var Ue=function(Je,nt){return Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,Rt){vt.__proto__=Rt}||function(vt,Rt){for(var Dt in Rt)Rt.hasOwnProperty(Dt)&&(vt[Dt]=Rt[Dt])},Ue(Je,nt)};return function(Je,nt){Ue(Je,nt);function vt(){this.constructor=Je}Je.prototype=nt===null?Object.create(nt):(vt.prototype=nt.prototype,new vt)}}(),_e=function(Ue,Je,nt,vt){var Rt=arguments.length,Dt=Rt<3?Je:vt===null?vt=Object.getOwnPropertyDescriptor(Je,nt):vt,Kt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Dt=Reflect.decorate(Ue,Je,nt,vt);else for(var ao=Ue.length-1;ao>=0;ao--)(Kt=Ue[ao])&&(Dt=(Rt<3?Kt(Dt):Rt>3?Kt(Je,nt,Dt):Kt(Je,nt))||Dt);return Rt>3&&Dt&&Object.defineProperty(Je,nt,Dt),Dt},Se=function(Ue,Je){return function(nt,vt){Je(nt,vt,Ue)}},Ie=new s.d("hasSymbols",!1),Pe=Object(I.c)("ISymbolNavigationService"),Ve=function(){function Ue(Je,nt,vt,Rt){this._editorService=nt,this._notificationService=vt,this._keybindingService=Rt,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Ie.bindTo(Je)}return Ue.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(Q.f)(this._currentState),Object(Q.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},Ue.prototype.put=function(Je){var nt=this,vt=Je.parent.parent;if(vt.references.length<=1){this.reset();return}this._currentModel=vt,this._currentIdx=vt.references.indexOf(Je),this._ctxHasSymbols.set(!0),this._showMessage();var Rt=new ke(this._editorService),Dt=Rt.onDidChange(function(Kt){if(nt._ignoreEditorChange)return;var ao=nt._editorService.getActiveCodeEditor();if(!ao)return;var lo=ao.getModel(),so=ao.getPosition();if(!lo||!so)return;for(var jt=!1,pt=!1,gt=0,Tt=vt.references;gt<Tt.length;gt++){var it=Tt[gt];if(Object(V.e)(it.uri,lo.uri))jt=!0,pt=pt||x.a.containsPosition(it.range,so);else if(jt)break}(!jt||!pt)&&nt.reset()});this._currentState=Object(Q.e)(Rt,Dt)},Ue.prototype.revealNext=function(Je){var nt=this;if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;var vt=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:vt.uri,options:{selection:x.a.collapseToStart(vt.range),revealInCenterIfOutsideViewport:!0}},Je).finally(function(){nt._ignoreEditorChange=!1})},Ue.prototype._showMessage=function(){Object(Q.f)(this._currentMessage);var Je=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),nt=Je?Object(g.a)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,Je.getLabel()):Object(g.a)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(nt)},Ue=_e([Se(0,s.c),Se(1,D.a),Se(2,l.a),Se(3,H.a)],Ue),Ue}();Object(P.b)(Pe,Ve,!0),Object(z.g)(new(function(Ue){de(Je,Ue);function Je(){return Ue.call(this,{id:"editor.gotoNextSymbolFromResult",precondition:Ie,kbOpts:{weight:100,primary:70}})||this}return Je.prototype.runEditorCommand=function(nt,vt){return nt.get(Pe).revealNext(vt)},Je}(z.c))),A.a.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:Ie,primary:9,handler:function(Ue){Ue.get(Pe).reset()}});var ke=function(){function Ue(Je){this._listener=new Map,this._disposables=new Q.b,this._onDidChange=new K.a,this.onDidChange=this._onDidChange.event,this._disposables.add(Je.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(Je.onCodeEditorAdd(this._onDidAddEditor,this)),Je.listCodeEditors().forEach(this._onDidAddEditor,this)}return Ue.prototype.dispose=function(){this._disposables.dispose(),this._onDidChange.dispose(),this._listener.forEach(Q.f)},Ue.prototype._onDidAddEditor=function(Je){var nt=this;this._listener.set(Je,Object(Q.e)(Je.onDidChangeCursorPosition(function(vt){return nt._onDidChange.fire({editor:Je})}),Je.onDidChangeModelContent(function(vt){return nt._onDidChange.fire({editor:Je})})))},Ue.prototype._onDidRemoveEditor=function(Je){Object(Q.f)(this._listener.get(Je)),this._listener.delete(Je)},Ue=_e([Se(0,D.a)],Ue),Ue}(),se=e("D3Dy"),ee=e("bY76"),ie=e("746U"),q=e("03kh"),ce=function(){var Ue=function(Je,nt){return Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,Rt){vt.__proto__=Rt}||function(vt,Rt){for(var Dt in Rt)Rt.hasOwnProperty(Dt)&&(vt[Dt]=Rt[Dt])},Ue(Je,nt)};return function(Je,nt){Ue(Je,nt);function vt(){this.constructor=Je}Je.prototype=nt===null?Object.create(nt):(vt.prototype=nt.prototype,new vt)}}(),Z=function(Ue,Je,nt,vt){function Rt(Dt){return Dt instanceof nt?Dt:new nt(function(Kt){Kt(Dt)})}return new(nt||(nt=Promise))(function(Dt,Kt){function ao(jt){try{so(vt.next(jt))}catch(pt){Kt(pt)}}function lo(jt){try{so(vt.throw(jt))}catch(pt){Kt(pt)}}function so(jt){jt.done?Dt(jt.value):Rt(jt.value).then(ao,lo)}so((vt=vt.apply(Ue,Je||[])).next())})},ye=function(Ue,Je){var nt={label:0,sent:function(){if(Dt[0]&1)throw Dt[1];return Dt[1]},trys:[],ops:[]},vt,Rt,Dt,Kt;return Kt={next:ao(0),throw:ao(1),return:ao(2)},typeof Symbol=="function"&&(Kt[Symbol.iterator]=function(){return this}),Kt;function ao(so){return function(jt){return lo([so,jt])}}function lo(so){if(vt)throw new TypeError("Generator is already executing.");for(;nt;)try{if(vt=1,Rt&&(Dt=so[0]&2?Rt.return:so[0]?Rt.throw||((Dt=Rt.return)&&Dt.call(Rt),0):Rt.next)&&!(Dt=Dt.call(Rt,so[1])).done)return Dt;(Rt=0,Dt)&&(so=[so[0]&2,Dt.value]);switch(so[0]){case 0:case 1:Dt=so;break;case 4:return nt.label++,{value:so[1],done:!1};case 5:nt.label++,Rt=so[1],so=[0];continue;case 7:so=nt.ops.pop(),nt.trys.pop();continue;default:if(!(Dt=nt.trys,Dt=Dt.length>0&&Dt[Dt.length-1])&&(so[0]===6||so[0]===2)){nt=0;continue}if(so[0]===3&&(!Dt||so[1]>Dt[0]&&so[1]<Dt[3])){nt.label=so[1];break}if(so[0]===6&&nt.label<Dt[1]){nt.label=Dt[1],Dt=so;break}if(Dt&&nt.label<Dt[2]){nt.label=Dt[2],nt.ops.push(so);break}Dt[2]&&nt.ops.pop(),nt.trys.pop();continue}so=Je.call(Ue,nt)}catch(jt){so=[6,jt],Rt=0}finally{vt=Dt=0}if(so[0]&5)throw so[1];return{value:so[0]?so[1]:void 0,done:!0}}},je,Ge,ue,ve,Ee,xe,Ce,he;u.c.appendMenuItem(7,{submenu:8,title:g.a("peek.submenu","Peek"),group:"navigation",order:100});var J=function(Ue){ce(Je,Ue);function Je(nt,vt){var Rt=Ue.call(this,vt)||this;return Rt._configuration=nt,Rt}return Je.prototype.run=function(nt,vt){var Rt=this;if(!vt.hasModel())return Promise.resolve(void 0);var Dt=nt.get(l.a),Kt=nt.get(D.a),ao=nt.get(c.a),lo=nt.get(Pe),so=vt.getModel(),jt=vt.getPosition(),pt=new L.b(vt,1|4),gt=Object(le.j)(this._getLocationModel(so,jt,pt.token),pt.token).then(function(Tt){return Z(Rt,void 0,void 0,function(){var it,et,ut,Ct;return ye(this,function(ht){if(!Tt||pt.token.isCancellationRequested)return[2];if(Object(T.a)(Tt.ariaMessage),Tt.referenceAt(so.uri,jt)&&(et=this._getAlternativeCommand(vt),et!==this.id&&(it=vt.getAction(et))),ut=Tt.references.length,ut===0)this._configuration.muteMessage||(Ct=so.getWordAtPosition(jt),w.a.get(vt).showMessage(this._getNoResultFoundMessage(Ct),jt));else if(ut===1&&it)it.run();else return[2,this._onResult(Kt,lo,vt,Tt)];return[2]})})},function(Tt){Dt.error(Tt)}).finally(function(){pt.dispose()});return ao.showWhile(gt,250),gt},Je.prototype._onResult=function(nt,vt,Rt,Dt){return Z(this,void 0,void 0,function(){var Kt,ao,lo,so;return ye(this,function(jt){switch(jt.label){case 0:return Kt=this._getGoToPreference(Rt),!(Rt instanceof q.a)&&(this._configuration.openInPeek||Kt==="peek"&&Dt.references.length>1)?(this._openInPeek(Rt,Dt),[3,3]):[3,1];case 1:return ao=Dt.firstReference(),lo=Dt.references.length>1&&Kt==="gotoAndPeek",[4,this._openReference(Rt,nt,ao,this._configuration.openToSide,!lo)];case 2:so=jt.sent(),lo&&so?this._openInPeek(so,Dt):Dt.dispose(),Kt==="goto"&&vt.put(ao),jt.label=3;case 3:return[2]}})})},Je.prototype._openReference=function(nt,vt,Rt,Dt,Kt){return Z(this,void 0,void 0,function(){var ao,lo,so,jt;return ye(this,function(pt){switch(pt.label){case 0:return ao=void 0,Object(y.G)(Rt)&&(ao=Rt.targetSelectionRange),ao||(ao=Rt.range),[4,vt.openCodeEditor({resource:Rt.uri,options:{selection:x.a.collapseToStart(ao),revealInCenterIfOutsideViewport:!0}},nt,Dt)];case 1:return lo=pt.sent(),lo?(Kt&&(so=lo.getModel(),jt=lo.deltaDecorations([],[{range:ao,options:{className:"symbolHighlight"}}]),setTimeout(function(){lo.getModel()===so&&lo.deltaDecorations(jt,[])},350)),[2,lo]):[2,void 0]}})})},Je.prototype._openInPeek=function(nt,vt){var Rt=v.a.get(nt);Rt&&nt.hasModel()?Rt.toggleWidget(nt.getSelection(),Object(le.f)(function(Dt){return Promise.resolve(vt)}),this._configuration.openInPeek):vt.dispose()},Je}(z.b),b=function(Ue){ce(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Dt;return ye(this,function(Kt){switch(Kt.label){case 0:return Dt=C.c.bind,[4,Object(p.b)(nt,vt,Rt)];case 1:return[2,new(Dt.apply(C.c,[void 0,Kt.sent(),g.a("def.title","Definitions")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?g.a("noResultWord","No definition found for '{0}'",nt.word):g.a("generic.noResults","No definition found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeDefinitionCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleDefinitions},Je}(J),F=R.g&&!se.l?2048|70:70;Object(z.f)((je=function(Ue){ce(Je,Ue);function Je(){var nt=Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.id,label:g.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:s.a.and(h.a.hasDefinitionProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:F,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:g.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return _.a.registerCommandAlias("editor.action.goToDeclaration",Je.id),nt}return Je}(b),je.id="editor.action.revealDefinition",je)),Object(z.f)((Ge=function(Ue){ce(Je,Ue);function Je(){var nt=Ue.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Je.id,label:g.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:s.a.and(h.a.hasDefinitionProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:Object($.a)(2048|41,F),weight:100}})||this;return _.a.registerCommandAlias("editor.action.openDeclarationToTheSide",Je.id),nt}return Je}(b),Ge.id="editor.action.revealDefinitionAside",Ge)),Object(z.f)((ue=function(Ue){ce(Je,Ue);function Je(){var nt=Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Je.id,label:g.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:s.a.and(h.a.hasDefinitionProvider,f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:512|70,linux:{primary:2048|1024|68},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return _.a.registerCommandAlias("editor.action.previewDeclaration",Je.id),nt}return Je}(b),ue.id="editor.action.peekDefinition",ue));var re=function(Ue){ce(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Dt;return ye(this,function(Kt){switch(Kt.label){case 0:return Dt=C.c.bind,[4,Object(p.a)(nt,vt,Rt)];case 1:return[2,new(Dt.apply(C.c,[void 0,Kt.sent(),g.a("decl.title","Declarations")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?g.a("decl.noResultWord","No declaration found for '{0}'",nt.word):g.a("decl.generic.noResults","No declaration found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeDeclarationCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleDeclarations},Je}(J);Object(z.f)((ve=function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.id,label:g.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:s.a.and(h.a.hasDeclarationProvider,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:g.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?g.a("decl.noResultWord","No declaration found for '{0}'",nt.word):g.a("decl.generic.noResults","No declaration found")},Je}(re),ve.id="editor.action.revealDeclaration",ve)),Object(z.f)(function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:g.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:s.a.and(h.a.hasDeclarationProvider,f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return Je}(re));var ne=function(Ue){ce(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Dt;return ye(this,function(Kt){switch(Kt.label){case 0:return Dt=C.c.bind,[4,Object(p.e)(nt,vt,Rt)];case 1:return[2,new(Dt.apply(C.c,[void 0,Kt.sent(),g.a("typedef.title","Type Definitions")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?g.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",nt.word):g.a("goToTypeDefinition.generic.noResults","No type definition found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeTypeDefinitionCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleTypeDefinitions},Je}(J);Object(z.f)((Ee=function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.ID,label:g.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:s.a.and(h.a.hasTypeDefinitionProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:g.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return Je}(ne),Ee.ID="editor.action.goToTypeDefinition",Ee)),Object(z.f)((xe=function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Je.ID,label:g.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:s.a.and(h.a.hasTypeDefinitionProvider,f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return Je}(ne),xe.ID="editor.action.peekTypeDefinition",xe));var fe=function(Ue){ce(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Dt;return ye(this,function(Kt){switch(Kt.label){case 0:return Dt=C.c.bind,[4,Object(p.c)(nt,vt,Rt)];case 1:return[2,new(Dt.apply(C.c,[void 0,Kt.sent(),g.a("impl.title","Implementations")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?g.a("goToImplementation.noResultWord","No implementation found for '{0}'",nt.word):g.a("goToImplementation.generic.noResults","No implementation found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeImplementationCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleImplementations},Je}(J);Object(z.f)((Ce=function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.ID,label:g.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:s.a.and(h.a.hasImplementationProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:2048|70,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:g.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return Je}(fe),Ce.ID="editor.action.goToImplementation",Ce)),Object(z.f)((he=function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Je.ID,label:g.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:s.a.and(h.a.hasImplementationProvider,f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:2048|1024|70,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return Je}(fe),he.ID="editor.action.peekImplementation",he));var Oe=function(Ue){ce(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getNoResultFoundMessage=function(nt){return nt?g.a("references.no","No references found for '{0}'",nt.word):g.a("references.noGeneric","No references found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeReferenceCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleReferences},Je}(J);Object(z.f)(function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:g.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:s.a.and(h.a.hasReferenceProvider,f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:1024|70,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:g.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Dt;return ye(this,function(Kt){switch(Kt.label){case 0:return Dt=C.c.bind,[4,Object(p.d)(nt,vt,!0,Rt)];case 1:return[2,new(Dt.apply(C.c,[void 0,Kt.sent(),g.a("ref.title","References")]))]}})})},Je}(Oe)),Object(z.f)(function(Ue){ce(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:g.a("references.action.label","Peek References"),alias:"Peek References",precondition:s.a.and(h.a.hasReferenceProvider,f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Dt;return ye(this,function(Kt){switch(Kt.label){case 0:return Dt=C.c.bind,[4,Object(p.d)(nt,vt,!1,Rt)];case 1:return[2,new(Dt.apply(C.c,[void 0,Kt.sent(),g.a("ref.title","References")]))]}})})},Je}(Oe));var Me=function(Ue){ce(Je,Ue);function Je(nt,vt,Rt){var Dt=Ue.call(this,nt,{id:"editor.action.goToLocation",label:g.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:s.a.and(f.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated())})||this;return Dt._references=vt,Dt._gotoMultipleBehaviour=Rt,Dt}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){return ye(this,function(Dt){return[2,new C.c(this._references,g.a("generic.title","Locations"))]})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&g.a("generic.noResult","No results for '{0}'",nt.word)||""},Je.prototype._getGoToPreference=function(nt){var vt;return(vt=this._gotoMultipleBehaviour)!==null&&vt!==void 0?vt:nt.getOption(41).multipleReferences},Je.prototype._getAlternativeCommand=function(){return""},Je}(J);_.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:ee.a},{name:"position",description:"The position at which to start",constraint:W.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(Ue,Je,nt,vt,Rt,Dt){return Z(void 0,void 0,void 0,function(){var Kt,ao;return ye(this,function(lo){switch(lo.label){case 0:return Object(ie.a)(ee.a.isUri(Je)),Object(ie.a)(W.a.isIPosition(nt)),Object(ie.a)(Array.isArray(vt)),Object(ie.a)(typeof Rt=="undefined"||typeof Rt=="string"),Object(ie.a)(typeof Dt=="undefined"||typeof Dt=="boolean"),Kt=Ue.get(D.a),[4,Kt.openCodeEditor({resource:Je},Kt.getFocusedCodeEditor())];case 1:return ao=lo.sent(),Object(B.a)(ao)?(ao.setPosition(nt),ao.revealPositionInCenterIfOutsideViewport(nt,0),[2,ao.invokeWithinContext(function(so){var jt=new Me({muteMessage:!0,openInPeek:Boolean(Dt),openToSide:!1},vt,Rt);so.get(I.a).invokeFunction(jt.run.bind(jt),ao)})]):[2]}})})}}),_.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:ee.a},{name:"position",description:"The position at which to start",constraint:W.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(Ue,Je,nt,vt,Rt){return Z(void 0,void 0,void 0,function(){return ye(this,function(Dt){return Ue.get(_.b).executeCommand("editor.action.goToLocations",Je,nt,vt,Rt,!0),[2]})})}}),_.a.registerCommand({id:"editor.action.findReferences",handler:function(Ue,Je,nt){Object(ie.a)(ee.a.isUri(Je)),Object(ie.a)(W.a.isIPosition(nt));var vt=Ue.get(D.a);return vt.openCodeEditor({resource:Je},vt.getFocusedCodeEditor()).then(function(Rt){if(!Object(B.a)(Rt)||!Rt.hasModel())return;var Dt=v.a.get(Rt);if(!Dt)return;var Kt=Object(le.f)(function(lo){return Object(p.d)(Rt.getModel(),W.a.lift(nt),!1,lo).then(function(so){return new C.c(so,g.a("ref.title","References"))})}),ao=new x.a(nt.lineNumber,nt.column,nt.lineNumber,nt.column);return Promise.resolve(Dt.toggleWidget(ao,Kt,!1))})}}),_.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},"8gvo":function(Lt,N,e){},"8z58":function(Lt,N,e){"use strict";e.r(N),e.d(N,"CancellationTokenSource",function(){return Wd}),e.d(N,"Emitter",function(){return Bd}),e.d(N,"KeyCode",function(){return Ud}),e.d(N,"KeyMod",function(){return Hd}),e.d(N,"Position",function(){return Vd}),e.d(N,"Range",function(){return zd}),e.d(N,"Selection",function(){return Kd}),e.d(N,"SelectionDirection",function(){return Gd}),e.d(N,"MarkerSeverity",function(){return Xd}),e.d(N,"MarkerTag",function(){return Yd}),e.d(N,"Uri",function(){return Zd}),e.d(N,"Token",function(){return Qd}),e.d(N,"editor",function(){return $d}),e.d(N,"languages",function(){return Jd});var T=e("/UlZ"),le=e("URDS"),$=e("JQT/"),R=e("MI8n"),B=e("/kV6"),z=e("bY76"),D=e("cGHE"),W=e("aokT"),x=e("gCVg"),h=e("Tcc1"),y;(function(a){a[a.Unknown=0]="Unknown",a[a.Disabled=1]="Disabled",a[a.Enabled=2]="Enabled"})(y||(y={}));var w;(function(a){a[a.KeepWhitespace=1]="KeepWhitespace",a[a.InsertAsSnippet=4]="InsertAsSnippet"})(w||(w={}));var f;(function(a){a[a.Method=0]="Method",a[a.Function=1]="Function",a[a.Constructor=2]="Constructor",a[a.Field=3]="Field",a[a.Variable=4]="Variable",a[a.Class=5]="Class",a[a.Struct=6]="Struct",a[a.Interface=7]="Interface",a[a.Module=8]="Module",a[a.Property=9]="Property",a[a.Event=10]="Event",a[a.Operator=11]="Operator",a[a.Unit=12]="Unit",a[a.Value=13]="Value",a[a.Constant=14]="Constant",a[a.Enum=15]="Enum",a[a.EnumMember=16]="EnumMember",a[a.Keyword=17]="Keyword",a[a.Text=18]="Text",a[a.Color=19]="Color",a[a.File=20]="File",a[a.Reference=21]="Reference",a[a.Customcolor=22]="Customcolor",a[a.Folder=23]="Folder",a[a.TypeParameter=24]="TypeParameter",a[a.Snippet=25]="Snippet"})(f||(f={}));var v;(function(a){a[a.Deprecated=1]="Deprecated"})(v||(v={}));var C;(function(a){a[a.Invoke=0]="Invoke",a[a.TriggerCharacter=1]="TriggerCharacter",a[a.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(C||(C={}));var g;(function(a){a[a.EXACT=0]="EXACT",a[a.ABOVE=1]="ABOVE",a[a.BELOW=2]="BELOW"})(g||(g={}));var u;(function(a){a[a.NotSet=0]="NotSet",a[a.ContentFlush=1]="ContentFlush",a[a.RecoverFromMarkers=2]="RecoverFromMarkers",a[a.Explicit=3]="Explicit",a[a.Paste=4]="Paste",a[a.Undo=5]="Undo",a[a.Redo=6]="Redo"})(u||(u={}));var s;(function(a){a[a.LF=1]="LF",a[a.CRLF=2]="CRLF"})(s||(s={}));var l;(function(a){a[a.Text=0]="Text",a[a.Read=1]="Read",a[a.Write=2]="Write"})(l||(l={}));var c;(function(a){a[a.None=0]="None",a[a.Keep=1]="Keep",a[a.Brackets=2]="Brackets",a[a.Advanced=3]="Advanced",a[a.Full=4]="Full"})(c||(c={}));var p;(function(a){a[a.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",a[a.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",a[a.accessibilitySupport=2]="accessibilitySupport",a[a.accessibilityPageSize=3]="accessibilityPageSize",a[a.ariaLabel=4]="ariaLabel",a[a.autoClosingBrackets=5]="autoClosingBrackets",a[a.autoClosingOvertype=6]="autoClosingOvertype",a[a.autoClosingQuotes=7]="autoClosingQuotes",a[a.autoIndent=8]="autoIndent",a[a.automaticLayout=9]="automaticLayout",a[a.autoSurround=10]="autoSurround",a[a.codeLens=11]="codeLens",a[a.colorDecorators=12]="colorDecorators",a[a.comments=13]="comments",a[a.contextmenu=14]="contextmenu",a[a.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",a[a.cursorBlinking=16]="cursorBlinking",a[a.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",a[a.cursorStyle=18]="cursorStyle",a[a.cursorSurroundingLines=19]="cursorSurroundingLines",a[a.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",a[a.cursorWidth=21]="cursorWidth",a[a.disableLayerHinting=22]="disableLayerHinting",a[a.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",a[a.dragAndDrop=24]="dragAndDrop",a[a.emptySelectionClipboard=25]="emptySelectionClipboard",a[a.extraEditorClassName=26]="extraEditorClassName",a[a.fastScrollSensitivity=27]="fastScrollSensitivity",a[a.find=28]="find",a[a.fixedOverflowWidgets=29]="fixedOverflowWidgets",a[a.folding=30]="folding",a[a.foldingStrategy=31]="foldingStrategy",a[a.foldingHighlight=32]="foldingHighlight",a[a.fontFamily=33]="fontFamily",a[a.fontInfo=34]="fontInfo",a[a.fontLigatures=35]="fontLigatures",a[a.fontSize=36]="fontSize",a[a.fontWeight=37]="fontWeight",a[a.formatOnPaste=38]="formatOnPaste",a[a.formatOnType=39]="formatOnType",a[a.glyphMargin=40]="glyphMargin",a[a.gotoLocation=41]="gotoLocation",a[a.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",a[a.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",a[a.hover=44]="hover",a[a.inDiffEditor=45]="inDiffEditor",a[a.letterSpacing=46]="letterSpacing",a[a.lightbulb=47]="lightbulb",a[a.lineDecorationsWidth=48]="lineDecorationsWidth",a[a.lineHeight=49]="lineHeight",a[a.lineNumbers=50]="lineNumbers",a[a.lineNumbersMinChars=51]="lineNumbersMinChars",a[a.links=52]="links",a[a.matchBrackets=53]="matchBrackets",a[a.minimap=54]="minimap",a[a.mouseStyle=55]="mouseStyle",a[a.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",a[a.mouseWheelZoom=57]="mouseWheelZoom",a[a.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",a[a.multiCursorModifier=59]="multiCursorModifier",a[a.multiCursorPaste=60]="multiCursorPaste",a[a.occurrencesHighlight=61]="occurrencesHighlight",a[a.overviewRulerBorder=62]="overviewRulerBorder",a[a.overviewRulerLanes=63]="overviewRulerLanes",a[a.parameterHints=64]="parameterHints",a[a.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",a[a.quickSuggestions=66]="quickSuggestions",a[a.quickSuggestionsDelay=67]="quickSuggestionsDelay",a[a.readOnly=68]="readOnly",a[a.renderControlCharacters=69]="renderControlCharacters",a[a.renderIndentGuides=70]="renderIndentGuides",a[a.renderFinalNewline=71]="renderFinalNewline",a[a.renderLineHighlight=72]="renderLineHighlight",a[a.renderValidationDecorations=73]="renderValidationDecorations",a[a.renderWhitespace=74]="renderWhitespace",a[a.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",a[a.roundedSelection=76]="roundedSelection",a[a.rulers=77]="rulers",a[a.scrollbar=78]="scrollbar",a[a.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",a[a.scrollBeyondLastLine=80]="scrollBeyondLastLine",a[a.selectionClipboard=81]="selectionClipboard",a[a.selectionHighlight=82]="selectionHighlight",a[a.selectOnLineNumbers=83]="selectOnLineNumbers",a[a.showFoldingControls=84]="showFoldingControls",a[a.showUnused=85]="showUnused",a[a.snippetSuggestions=86]="snippetSuggestions",a[a.smoothScrolling=87]="smoothScrolling",a[a.stopRenderingLineAfter=88]="stopRenderingLineAfter",a[a.suggest=89]="suggest",a[a.suggestFontSize=90]="suggestFontSize",a[a.suggestLineHeight=91]="suggestLineHeight",a[a.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",a[a.suggestSelection=93]="suggestSelection",a[a.tabCompletion=94]="tabCompletion",a[a.useTabStops=95]="useTabStops",a[a.wordSeparators=96]="wordSeparators",a[a.wordWrap=97]="wordWrap",a[a.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",a[a.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",a[a.wordWrapColumn=100]="wordWrapColumn",a[a.wordWrapMinified=101]="wordWrapMinified",a[a.wrappingIndent=102]="wrappingIndent",a[a.wrappingStrategy=103]="wrappingStrategy",a[a.editorClassName=104]="editorClassName",a[a.pixelRatio=105]="pixelRatio",a[a.tabFocusMode=106]="tabFocusMode",a[a.layoutInfo=107]="layoutInfo",a[a.wrappingInfo=108]="wrappingInfo"})(p||(p={}));var _;(function(a){a[a.TextDefined=0]="TextDefined",a[a.LF=1]="LF",a[a.CRLF=2]="CRLF"})(_||(_={}));var L;(function(a){a[a.LF=0]="LF",a[a.CRLF=1]="CRLF"})(L||(L={}));var I;(function(a){a[a.None=0]="None",a[a.Indent=1]="Indent",a[a.IndentOutdent=2]="IndentOutdent",a[a.Outdent=3]="Outdent"})(I||(I={}));var P;(function(a){a[a.Unknown=0]="Unknown",a[a.Backspace=1]="Backspace",a[a.Tab=2]="Tab",a[a.Enter=3]="Enter",a[a.Shift=4]="Shift",a[a.Ctrl=5]="Ctrl",a[a.Alt=6]="Alt",a[a.PauseBreak=7]="PauseBreak",a[a.CapsLock=8]="CapsLock",a[a.Escape=9]="Escape",a[a.Space=10]="Space",a[a.PageUp=11]="PageUp",a[a.PageDown=12]="PageDown",a[a.End=13]="End",a[a.Home=14]="Home",a[a.LeftArrow=15]="LeftArrow",a[a.UpArrow=16]="UpArrow",a[a.RightArrow=17]="RightArrow",a[a.DownArrow=18]="DownArrow",a[a.Insert=19]="Insert",a[a.Delete=20]="Delete",a[a.KEY_0=21]="KEY_0",a[a.KEY_1=22]="KEY_1",a[a.KEY_2=23]="KEY_2",a[a.KEY_3=24]="KEY_3",a[a.KEY_4=25]="KEY_4",a[a.KEY_5=26]="KEY_5",a[a.KEY_6=27]="KEY_6",a[a.KEY_7=28]="KEY_7",a[a.KEY_8=29]="KEY_8",a[a.KEY_9=30]="KEY_9",a[a.KEY_A=31]="KEY_A",a[a.KEY_B=32]="KEY_B",a[a.KEY_C=33]="KEY_C",a[a.KEY_D=34]="KEY_D",a[a.KEY_E=35]="KEY_E",a[a.KEY_F=36]="KEY_F",a[a.KEY_G=37]="KEY_G",a[a.KEY_H=38]="KEY_H",a[a.KEY_I=39]="KEY_I",a[a.KEY_J=40]="KEY_J",a[a.KEY_K=41]="KEY_K",a[a.KEY_L=42]="KEY_L",a[a.KEY_M=43]="KEY_M",a[a.KEY_N=44]="KEY_N",a[a.KEY_O=45]="KEY_O",a[a.KEY_P=46]="KEY_P",a[a.KEY_Q=47]="KEY_Q",a[a.KEY_R=48]="KEY_R",a[a.KEY_S=49]="KEY_S",a[a.KEY_T=50]="KEY_T",a[a.KEY_U=51]="KEY_U",a[a.KEY_V=52]="KEY_V",a[a.KEY_W=53]="KEY_W",a[a.KEY_X=54]="KEY_X",a[a.KEY_Y=55]="KEY_Y",a[a.KEY_Z=56]="KEY_Z",a[a.Meta=57]="Meta",a[a.ContextMenu=58]="ContextMenu",a[a.F1=59]="F1",a[a.F2=60]="F2",a[a.F3=61]="F3",a[a.F4=62]="F4",a[a.F5=63]="F5",a[a.F6=64]="F6",a[a.F7=65]="F7",a[a.F8=66]="F8",a[a.F9=67]="F9",a[a.F10=68]="F10",a[a.F11=69]="F11",a[a.F12=70]="F12",a[a.F13=71]="F13",a[a.F14=72]="F14",a[a.F15=73]="F15",a[a.F16=74]="F16",a[a.F17=75]="F17",a[a.F18=76]="F18",a[a.F19=77]="F19",a[a.NumLock=78]="NumLock",a[a.ScrollLock=79]="ScrollLock",a[a.US_SEMICOLON=80]="US_SEMICOLON",a[a.US_EQUAL=81]="US_EQUAL",a[a.US_COMMA=82]="US_COMMA",a[a.US_MINUS=83]="US_MINUS",a[a.US_DOT=84]="US_DOT",a[a.US_SLASH=85]="US_SLASH",a[a.US_BACKTICK=86]="US_BACKTICK",a[a.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",a[a.US_BACKSLASH=88]="US_BACKSLASH",a[a.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",a[a.US_QUOTE=90]="US_QUOTE",a[a.OEM_8=91]="OEM_8",a[a.OEM_102=92]="OEM_102",a[a.NUMPAD_0=93]="NUMPAD_0",a[a.NUMPAD_1=94]="NUMPAD_1",a[a.NUMPAD_2=95]="NUMPAD_2",a[a.NUMPAD_3=96]="NUMPAD_3",a[a.NUMPAD_4=97]="NUMPAD_4",a[a.NUMPAD_5=98]="NUMPAD_5",a[a.NUMPAD_6=99]="NUMPAD_6",a[a.NUMPAD_7=100]="NUMPAD_7",a[a.NUMPAD_8=101]="NUMPAD_8",a[a.NUMPAD_9=102]="NUMPAD_9",a[a.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",a[a.NUMPAD_ADD=104]="NUMPAD_ADD",a[a.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",a[a.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",a[a.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",a[a.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",a[a.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",a[a.ABNT_C1=110]="ABNT_C1",a[a.ABNT_C2=111]="ABNT_C2",a[a.MAX_VALUE=112]="MAX_VALUE"})(P||(P={}));var A;(function(a){a[a.Hint=1]="Hint",a[a.Info=2]="Info",a[a.Warning=4]="Warning",a[a.Error=8]="Error"})(A||(A={}));var Q;(function(a){a[a.Unnecessary=1]="Unnecessary",a[a.Deprecated=2]="Deprecated"})(Q||(Q={}));var K;(function(a){a[a.Inline=1]="Inline",a[a.Gutter=2]="Gutter"})(K||(K={}));var H;(function(a){a[a.UNKNOWN=0]="UNKNOWN",a[a.TEXTAREA=1]="TEXTAREA",a[a.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",a[a.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",a[a.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",a[a.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",a[a.CONTENT_TEXT=6]="CONTENT_TEXT",a[a.CONTENT_EMPTY=7]="CONTENT_EMPTY",a[a.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",a[a.CONTENT_WIDGET=9]="CONTENT_WIDGET",a[a.OVERVIEW_RULER=10]="OVERVIEW_RULER",a[a.SCROLLBAR=11]="SCROLLBAR",a[a.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",a[a.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(H||(H={}));var V;(function(a){a[a.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",a[a.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",a[a.TOP_CENTER=2]="TOP_CENTER"})(V||(V={}));var de;(function(a){a[a.Left=1]="Left",a[a.Center=2]="Center",a[a.Right=4]="Right",a[a.Full=7]="Full"})(de||(de={}));var _e;(function(a){a[a.Off=0]="Off",a[a.On=1]="On",a[a.Relative=2]="Relative",a[a.Interval=3]="Interval",a[a.Custom=4]="Custom"})(_e||(_e={}));var Se;(function(a){a[a.None=0]="None",a[a.Text=1]="Text",a[a.Blocks=2]="Blocks"})(Se||(Se={}));var Ie;(function(a){a[a.Smooth=0]="Smooth",a[a.Immediate=1]="Immediate"})(Ie||(Ie={}));var Pe;(function(a){a[a.Auto=1]="Auto",a[a.Hidden=2]="Hidden",a[a.Visible=3]="Visible"})(Pe||(Pe={}));var Ve;(function(a){a[a.LTR=0]="LTR",a[a.RTL=1]="RTL"})(Ve||(Ve={}));var ke;(function(a){a[a.Invoke=1]="Invoke",a[a.TriggerCharacter=2]="TriggerCharacter",a[a.ContentChange=3]="ContentChange"})(ke||(ke={}));var se;(function(a){a[a.File=0]="File",a[a.Module=1]="Module",a[a.Namespace=2]="Namespace",a[a.Package=3]="Package",a[a.Class=4]="Class",a[a.Method=5]="Method",a[a.Property=6]="Property",a[a.Field=7]="Field",a[a.Constructor=8]="Constructor",a[a.Enum=9]="Enum",a[a.Interface=10]="Interface",a[a.Function=11]="Function",a[a.Variable=12]="Variable",a[a.Constant=13]="Constant",a[a.String=14]="String",a[a.Number=15]="Number",a[a.Boolean=16]="Boolean",a[a.Array=17]="Array",a[a.Object=18]="Object",a[a.Key=19]="Key",a[a.Null=20]="Null",a[a.EnumMember=21]="EnumMember",a[a.Struct=22]="Struct",a[a.Event=23]="Event",a[a.Operator=24]="Operator",a[a.TypeParameter=25]="TypeParameter"})(se||(se={}));var ee;(function(a){a[a.Deprecated=1]="Deprecated"})(ee||(ee={}));var ie;(function(a){a[a.Hidden=0]="Hidden",a[a.Blink=1]="Blink",a[a.Smooth=2]="Smooth",a[a.Phase=3]="Phase",a[a.Expand=4]="Expand",a[a.Solid=5]="Solid"})(ie||(ie={}));var q;(function(a){a[a.Line=1]="Line",a[a.Block=2]="Block",a[a.Underline=3]="Underline",a[a.LineThin=4]="LineThin",a[a.BlockOutline=5]="BlockOutline",a[a.UnderlineThin=6]="UnderlineThin"})(q||(q={}));var ce;(function(a){a[a.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",a[a.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",a[a.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",a[a.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ce||(ce={}));var Z;(function(a){a[a.None=0]="None",a[a.Same=1]="Same",a[a.Indent=2]="Indent",a[a.DeepIndent=3]="DeepIndent"})(Z||(Z={}));var ye=function(){function a(){}return a.chord=function(r,n){return Object(B.a)(r,n)},a.CtrlCmd=2048,a.Shift=1024,a.Alt=512,a.WinCtrl=256,a}();function je(){return{editor:void 0,languages:void 0,CancellationTokenSource:$.b,Emitter:R.a,KeyCode:P,KeyMod:ye,Position:D.a,Range:W.a,Selection:x.a,SelectionDirection:Ve,MarkerSeverity:A,MarkerTag:Q,Uri:z.a,Token:h.a}}var Ge=e("siPX"),ue=e("Vxe3"),ve=e("EffR"),Ee=e("24hK"),xe=e("Q4rV"),Ce=e("tYmi"),he=e("gslv"),J=e("nnTU"),b=e("W9cx"),F;(function(a){a[a.API=0]="API",a[a.USER=1]="USER"})(F||(F={}));var re=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},ne=function(a,r){return function(n,d){r(n,d,a)}},fe=function(a,r,n,d){function S(k){return k instanceof n?k:new n(function(we){we(k)})}return new(n||(n=Promise))(function(k,we){function We(yt){try{Qe(d.next(yt))}catch(It){we(It)}}function Xe(yt){try{Qe(d.throw(yt))}catch(It){we(It)}}function Qe(yt){yt.done?k(yt.value):S(yt.value).then(We,Xe)}Qe((d=d.apply(a,r||[])).next())})},Oe=function(a,r){var n={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},d,S,k,we;return we={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(we[Symbol.iterator]=function(){return this}),we;function We(Qe){return function(yt){return Xe([Qe,yt])}}function Xe(Qe){if(d)throw new TypeError("Generator is already executing.");for(;n;)try{if(d=1,S&&(k=Qe[0]&2?S.return:Qe[0]?S.throw||((k=S.return)&&k.call(S),0):S.next)&&!(k=k.call(S,Qe[1])).done)return k;(S=0,k)&&(Qe=[Qe[0]&2,k.value]);switch(Qe[0]){case 0:case 1:k=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,S=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(k=n.trys,k=k.length>0&&k[k.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!k||Qe[1]>k[0]&&Qe[1]<k[3])){n.label=Qe[1];break}if(Qe[0]===6&&n.label<k[1]){n.label=k[1],k=Qe;break}if(k&&n.label<k[2]){n.label=k[2],n.ops.push(Qe);break}k[2]&&n.ops.pop(),n.trys.pop();continue}Qe=r.call(a,n)}catch(yt){Qe=[6,yt],S=0}finally{d=k=0}if(Qe[0]&5)throw Qe[1];return{value:Qe[0]?Qe[1]:void 0,done:!0}}},Me=function(){for(var a=0,r=0,n=arguments.length;r<n;r++)a+=arguments[r].length;for(var d=Array(a),S=0,r=0;r<n;r++)for(var k=arguments[r],we=0,We=k.length;we<We;we++,S++)d[S]=k[we];return d},Ue=function(){function a(r){this._commandService=r}return a.prototype.open=function(r){return fe(this,void 0,void 0,function(){var n,d;return Oe(this,function(S){switch(S.label){case 0:if(!Object(b.c)(r,Ce.b.command))return[2,!1];if(typeof r=="string"&&(r=z.a.parse(r)),!J.a.getCommand(r.path))throw new Error("command '"+r.path+"' NOT known");n=[];try{n=Object(xe.a)(decodeURIComponent(r.query))}catch(k){try{n=Object(xe.a)(r.query)}catch(we){}}return Array.isArray(n)||(n=[n]),[4,(d=this._commandService).executeCommand.apply(d,Me([r.path],n))];case 1:return S.sent(),[2,!0]}})})},a=re([ne(0,J.b)],a),a}(),Je=function(){function a(r){this._editorService=r}return a.prototype.open=function(r,n){return fe(this,void 0,void 0,function(){var d,S;return Oe(this,function(k){switch(k.label){case 0:return typeof r=="string"&&(r=z.a.parse(r)),d=void 0,S=/^L?(\d+)(?:,(\d+))?/.exec(r.fragment),S&&(d={startLineNumber:parseInt(S[1]),startColumn:S[2]?parseInt(S[2]):1},r=r.with({fragment:""})),r.scheme===Ce.b.file&&(r=Object(he.g)(r)),[4,this._editorService.openCodeEditor({resource:r,options:{selection:d,context:(n==null?void 0:n.fromUserGesture)?F.USER:F.API}},this._editorService.getFocusedCodeEditor(),n==null?void 0:n.openToSide)];case 1:return k.sent(),[2,!0]}})})},a=re([ne(0,ue.a)],a),a}(),nt=function(){function a(r,n){var d=this;this._openers=new Ee.a,this._validators=new Ee.a,this._resolvers=new Ee.a,this._externalOpener={openExternal:function(S){return ve.ab(S),Promise.resolve(!0)}},this._openers.push({open:function(S,k){return fe(d,void 0,void 0,function(){return Oe(this,function(we){switch(we.label){case 0:return(k==null?void 0:k.openExternal)||Object(b.c)(S,Ce.b.mailto)||Object(b.c)(S,Ce.b.http)||Object(b.c)(S,Ce.b.https)?[4,this._doOpenExternal(S,k)]:[3,2];case 1:return we.sent(),[2,!0];case 2:return[2,!1]}})})}}),this._openers.push(new Ue(n)),this._openers.push(new Je(r))}return a.prototype.open=function(r,n){return fe(this,void 0,void 0,function(){var d,S,k,we,We,Xe,Qe;return Oe(this,function(yt){switch(yt.label){case 0:d=0,S=this._validators.toArray(),yt.label=1;case 1:return d<S.length?(k=S[d],[4,k.shouldOpen(r)]):[3,4];case 2:if(!yt.sent())return[2,!1];yt.label=3;case 3:return d++,[3,1];case 4:we=0,We=this._openers.toArray(),yt.label=5;case 5:return we<We.length?(Xe=We[we],[4,Xe.open(r,n)]):[3,8];case 6:if(Qe=yt.sent(),Qe)return[2,!0];yt.label=7;case 7:return we++,[3,5];case 8:return[2,!1]}})})},a.prototype.resolveExternalUri=function(r,n){return fe(this,void 0,void 0,function(){var d,S,k,we;return Oe(this,function(We){switch(We.label){case 0:d=0,S=this._resolvers.toArray(),We.label=1;case 1:return d<S.length?(k=S[d],[4,k.resolveExternalUri(r,n)]):[3,4];case 2:if(we=We.sent(),we)return[2,we];We.label=3;case 3:return d++,[3,1];case 4:return[2,{resolved:r,dispose:function(){}}]}})})},a.prototype._doOpenExternal=function(r,n){return fe(this,void 0,void 0,function(){var d,S;return Oe(this,function(k){switch(k.label){case 0:return d=typeof r=="string"?z.a.parse(r):r,[4,this.resolveExternalUri(d,n)];case 1:if(S=k.sent().resolved,typeof r=="string"&&d.toString()===S.toString())return[2,this._externalOpener.openExternal(r)];return[2,this._externalOpener.openExternal(encodeURI(S.toString(!0)))];return[2]}})})},a.prototype.dispose=function(){this._validators.clear()},a=re([ne(0,ue.a),ne(1,J.b)],a),a}(),vt=e("FWmy"),Rt=e("pmY6"),Dt=e("qj0h"),Kt=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),ao={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},lo=function(a){Kt(r,a);function r(n,d){d===void 0&&(d={});var S=a.call(this)||this;return S._onDidUpdate=S._register(new R.a),S._editor=n,S._options=Dt.g(d,ao,!1),S.disposed=!1,S.nextIdx=-1,S.ranges=[],S.ignoreSelectionChange=!1,S.revealFirst=Boolean(S._options.alwaysRevealFirst),S._register(S._editor.onDidDispose(function(){return S.dispose()})),S._register(S._editor.onDidUpdateDiff(function(){return S._onDiffUpdated()})),S._options.followsCaret&&S._register(S._editor.getModifiedEditor().onDidChangeCursorPosition(function(k){if(S.ignoreSelectionChange)return;S.nextIdx=-1})),S._options.alwaysRevealFirst&&S._register(S._editor.getModifiedEditor().onDidChangeModel(function(k){S.revealFirst=!0})),S._init(),S}return r.prototype._init=function(){var n=this._editor.getLineChanges();if(!n)return},r.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)))},r.prototype._compute=function(n){var d=this;this.ranges=[],n&&n.forEach(function(S){!d._options.ignoreCharChanges&&S.charChanges?S.charChanges.forEach(function(k){d.ranges.push({rhs:!0,range:new W.a(k.modifiedStartLineNumber,k.modifiedStartColumn,k.modifiedEndLineNumber,k.modifiedEndColumn)})}):d.ranges.push({rhs:!0,range:new W.a(S.modifiedStartLineNumber,1,S.modifiedStartLineNumber,1)})}),this.ranges.sort(function(S,k){return S.range.getStartPosition().isBeforeOrEqual(k.range.getStartPosition())?-1:k.range.getStartPosition().isBeforeOrEqual(S.range.getStartPosition())?1:0}),this._onDidUpdate.fire(this)},r.prototype._initIdx=function(n){var d=!1,S=this._editor.getPosition();if(!S){this.nextIdx=0;return}for(var k=0,we=this.ranges.length;k<we&&!d;k++){var We=this.ranges[k].range;S.isBeforeOrEqual(We.getStartPosition())&&(this.nextIdx=k+(n?0:-1),d=!0)}d||(this.nextIdx=n?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)},r.prototype._move=function(n,d){if(vt.a(!this.disposed,"Illegal State - diff navigator has been disposed"),!this.canNavigate())return;this.nextIdx===-1?this._initIdx(n):n?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var S=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var k=S.range.getStartPosition();this._editor.setPosition(k),this._editor.revealPositionInCenter(k,d)}finally{this.ignoreSelectionChange=!1}},r.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},r.prototype.next=function(n){n===void 0&&(n=0),this._move(!0,n)},r.prototype.previous=function(n){n===void 0&&(n=0),this._move(!1,n)},r.prototype.dispose=function(){a.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},r}(Rt.a),so=e("+3Gp"),jt=e("iuje"),pt=e("M1Kb"),gt=e("twdY"),Tt=e("i/Ef"),it=e("pAvP"),et=e("t49l"),ut=e("X+cX"),Ct=e("/cxE"),ht=e("MNsG"),Et=e("746U"),Yt=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Nt="$initialize",bt=!1;function $e(a){if(!ht.g)return;bt||(bt=!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(a.message)}var Ye=function(){function a(r){this._workerId=-1,this._handler=r,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return a.prototype.setWorkerId=function(r){this._workerId=r},a.prototype.sendMessage=function(r,n){var d=this,S=String(++this._lastSentReq);return new Promise(function(k,we){d._pendingReplies[S]={resolve:k,reject:we},d._send({vsWorker:d._workerId,req:S,method:r,args:n})})},a.prototype.handleMessage=function(r){if(!r||!r.vsWorker)return;if(this._workerId!==-1&&r.vsWorker!==this._workerId)return;this._handleMessage(r)},a.prototype._handleMessage=function(r){var n=this;if(r.seq){var d=r;if(!this._pendingReplies[d.seq]){console.warn("Got reply to unknown seq");return}var S=this._pendingReplies[d.seq];if(delete this._pendingReplies[d.seq],d.err){var k=d.err;d.err.$isError&&(k=new Error,k.name=d.err.name,k.message=d.err.message,k.stack=d.err.stack),S.reject(k);return}S.resolve(d.res);return}var we=r,We=we.req,Xe=this._handler.handleMessage(we.method,we.args);Xe.then(function(Qe){n._send({vsWorker:n._workerId,seq:We,res:Qe,err:void 0})},function(Qe){Qe.detail instanceof Error&&(Qe.detail=Object(Ct.g)(Qe.detail)),n._send({vsWorker:n._workerId,seq:We,res:void 0,err:Object(Ct.g)(Qe)})})},a.prototype._send=function(r){var n=[];if(r.req)for(var d=r,S=0;S<d.args.length;S++)d.args[S]instanceof ArrayBuffer&&n.push(d.args[S]);else{var d=r;d.res instanceof ArrayBuffer&&n.push(d.res)}this._handler.sendMessage(r,n)},a}(),ze=function(a){Yt(r,a);function r(n,d,S){var k=a.call(this)||this,we=null;k._worker=k._register(n.create("vs/base/common/worker/simpleWorker",function(yt){k._protocol.handleMessage(yt)},function(yt){we&&we(yt)})),k._protocol=new Ye({sendMessage:function(yt,It){k._worker.postMessage(yt,It)},handleMessage:function(yt,It){if(typeof S[yt]!="function")return Promise.reject(new Error("Missing method "+yt+" on main thread host."));try{return Promise.resolve(S[yt].apply(S,It))}catch(Wt){return Promise.reject(Wt)}}}),k._protocol.setWorkerId(k._worker.getId());var We=null;typeof self.require!="undefined"&&typeof self.require.getConfig=="function"?We=self.require.getConfig():typeof self.requirejs!="undefined"&&(We=self.requirejs.s.contexts._.config);var Xe=Et.c(S);k._onModuleLoaded=k._protocol.sendMessage(Nt,[k._worker.getId(),JSON.parse(JSON.stringify(We)),d,Xe]);var Qe=function(yt,It){return k._request(yt,It)};return k._lazyProxy=new Promise(function(yt,It){we=It,k._onModuleLoaded.then(function(Wt){yt(Et.b(Wt,Qe))},function(Wt){It(Wt),k._onError("Worker failed to load "+d,Wt)})}),k}return r.prototype.getProxyObject=function(){return this._lazyProxy},r.prototype._request=function(n,d){var S=this;return new Promise(function(k,we){S._onModuleLoaded.then(function(){S._protocol.sendMessage(n,d).then(k,we)},we)})},r.prototype._onError=function(n,d){console.error(n),console.info(d)},r}(Rt.a),Ke=function(){function a(r,n){var d=this;this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Ye({sendMessage:function(S,k){r(S,k)},handleMessage:function(S,k){return d._handleMessage(S,k)}})}return a.prototype.onmessage=function(r){this._protocol.handleMessage(r)},a.prototype._handleMessage=function(r,n){if(r===Nt)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[r]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+r));try{return Promise.resolve(this._requestHandler[r].apply(this._requestHandler,n))}catch(d){return Promise.reject(d)}},a.prototype.initialize=function(r,n,d,S){var k=this;this._protocol.setWorkerId(r);var we=function(Xe,Qe){return k._protocol.sendMessage(Xe,Qe)},We=Et.b(S,we);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(We),Promise.resolve(Et.c(this._requestHandler))):(n&&(typeof n.baseUrl!="undefined"&&delete n.baseUrl,typeof n.paths!="undefined"&&(typeof n.paths.vs!="undefined"&&delete n.paths.vs),n.catchError=!0,self.require.config(n)),new Promise(function(Xe,Qe){self.require([d],function(yt){if(k._requestHandler=yt.create(We),!k._requestHandler){Qe(new Error("No RequestHandler!"));return}Xe(Et.c(k._requestHandler))},Qe)}))},a}();function ge(a){return new Ke(a,null)}function G(a,r){if(ht.b.MonacoEnvironment){if(typeof ht.b.MonacoEnvironment.getWorker=="function")return ht.b.MonacoEnvironment.getWorker(a,r);if(typeof ht.b.MonacoEnvironment.getWorkerUrl=="function")return new Worker(ht.b.MonacoEnvironment.getWorkerUrl(a,r))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function oe(a){return typeof a.then=="function"}var Y=function(){function a(r,n,d,S,k){this.id=n;var we=G("workerMain.js",d);oe(we)?this.worker=we:this.worker=Promise.resolve(we),this.postMessage(r,[]),this.worker.then(function(We){We.onmessage=function(Xe){S(Xe.data)},We.onmessageerror=k,typeof We.addEventListener=="function"&&We.addEventListener("error",k)})}return a.prototype.getId=function(){return this.id},a.prototype.postMessage=function(r,n){this.worker&&this.worker.then(function(d){return d.postMessage(r,n)})},a.prototype.dispose=function(){this.worker&&this.worker.then(function(r){return r.terminate()}),this.worker=null},a}(),ae=function(){function a(r){this._label=r,this._webWorkerFailedBeforeError=!1}return a.prototype.create=function(r,n,d){var S=this,k=++a.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new Y(r,k,this._label||"anonymous"+k,n,function(we){$e(we),S._webWorkerFailedBeforeError=we,d(we)})},a.LAST_WORKER_ID=0,a}(),Fe=e("cMvZ"),dt=e("6OMU"),Ot=e("Gw4z"),Qt=e("JYp7"),to=e("N0LK"),fo=3;function ho(a,r,n,d){var S=new Ot.a(a,r,n);return S.ComputeDiff(d)}var _o=function(){function a(r){for(var n=[],d=[],S=0,k=r.length;S<k;S++)n[S]=Ho(r[S],1),d[S]=Fo(r[S],1);this.lines=r,this._startColumns=n,this._endColumns=d}return a.prototype.getElements=function(){for(var r=[],n=0,d=this.lines.length;n<d;n++)r[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return r},a.prototype.getStartLineNumber=function(r){return r+1},a.prototype.getEndLineNumber=function(r){return r+1},a.prototype.createCharSequence=function(r,n,d){for(var S=[],k=[],we=[],We=0,Xe=n;Xe<=d;Xe++)for(var Qe=this.lines[Xe],yt=r?this._startColumns[Xe]:1,It=r?this._endColumns[Xe]:Qe.length+1,Wt=yt;Wt<It;Wt++)S[We]=Qe.charCodeAt(Wt-1),k[We]=Xe+1,we[We]=Wt,We++;return new Do(S,k,we)},a}(),Do=function(){function a(r,n,d){this._charCodes=r,this._lineNumbers=n,this._columns=d}return a.prototype.getElements=function(){return this._charCodes},a.prototype.getStartLineNumber=function(r){return this._lineNumbers[r]},a.prototype.getStartColumn=function(r){return this._columns[r]},a.prototype.getEndLineNumber=function(r){return this._lineNumbers[r]},a.prototype.getEndColumn=function(r){return this._columns[r]+1},a}(),Ro=function(){function a(r,n,d,S,k,we,We,Xe){this.originalStartLineNumber=r,this.originalStartColumn=n,this.originalEndLineNumber=d,this.originalEndColumn=S,this.modifiedStartLineNumber=k,this.modifiedStartColumn=we,this.modifiedEndLineNumber=We,this.modifiedEndColumn=Xe}return a.createFromDiffChange=function(r,n,d){var S,k,we,We,Xe,Qe,yt,It;return r.originalLength===0?(S=0,k=0,we=0,We=0):(S=n.getStartLineNumber(r.originalStart),k=n.getStartColumn(r.originalStart),we=n.getEndLineNumber(r.originalStart+r.originalLength-1),We=n.getEndColumn(r.originalStart+r.originalLength-1)),r.modifiedLength===0?(Xe=0,Qe=0,yt=0,It=0):(Xe=d.getStartLineNumber(r.modifiedStart),Qe=d.getStartColumn(r.modifiedStart),yt=d.getEndLineNumber(r.modifiedStart+r.modifiedLength-1),It=d.getEndColumn(r.modifiedStart+r.modifiedLength-1)),new a(S,k,we,We,Xe,Qe,yt,It)},a}();function jo(a){if(a.length<=1)return a;for(var r=[a[0]],n=r[0],d=1,S=a.length;d<S;d++){var k=a[d],we=k.originalStart-(n.originalStart+n.originalLength),We=k.modifiedStart-(n.modifiedStart+n.modifiedLength),Xe=Math.min(we,We);Xe<fo?(n.originalLength=k.originalStart+k.originalLength-n.originalStart,n.modifiedLength=k.modifiedStart+k.modifiedLength-n.modifiedStart):(r.push(k),n=k)}return r}var Eo=function(){function a(r,n,d,S,k){this.originalStartLineNumber=r,this.originalEndLineNumber=n,this.modifiedStartLineNumber=d,this.modifiedEndLineNumber=S,this.charChanges=k}return a.createFromDiffResult=function(r,n,d,S,k,we,We){var Xe,Qe,yt,It,Wt=void 0;if(n.originalLength===0?(Xe=d.getStartLineNumber(n.originalStart)-1,Qe=0):(Xe=d.getStartLineNumber(n.originalStart),Qe=d.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(yt=S.getStartLineNumber(n.modifiedStart)-1,It=0):(yt=S.getStartLineNumber(n.modifiedStart),It=S.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),we&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&k()){var Pt=d.createCharSequence(r,n.originalStart,n.originalStart+n.originalLength-1),ro=S.createCharSequence(r,n.modifiedStart,n.modifiedStart+n.modifiedLength-1),eo=ho(Pt,ro,k,!0).changes;We&&(eo=jo(eo)),Wt=[];for(var Gt=0,Jt=eo.length;Gt<Jt;Gt++)Wt.push(Ro.createFromDiffChange(eo[Gt],Pt,ro))}return new a(Xe,Qe,yt,It,Wt)},a}(),Wo=function(){function a(r,n,d){this.shouldComputeCharChanges=d.shouldComputeCharChanges,this.shouldPostProcessCharChanges=d.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=d.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=d.shouldMakePrettyDiff,this.originalLines=r,this.modifiedLines=n,this.original=new _o(r),this.modified=new _o(n),this.continueLineDiff=Io(d.maxComputationTime),this.continueCharDiff=Io(d.maxComputationTime===0?0:Math.min(d.maxComputationTime,5e3))}return a.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 r=ho(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=r.changes,d=r.quitEarly;if(this.shouldIgnoreTrimWhitespace){for(var S=[],k=0,we=n.length;k<we;k++)S.push(Eo.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[k],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:d,changes:S}}for(var We=[],Xe=0,Qe=0,k=-1,yt=n.length;k<yt;k++){for(var It=k+1<yt?n[k+1]:null,Wt=It?It.originalStart:this.originalLines.length,Pt=It?It.modifiedStart:this.modifiedLines.length;Xe<Wt&&Qe<Pt;){var ro=this.originalLines[Xe],eo=this.modifiedLines[Qe];if(ro!==eo){{for(var Gt=Ho(ro,1),Jt=Ho(eo,1);Gt>1&&Jt>1;){var co=ro.charCodeAt(Gt-2),So=eo.charCodeAt(Jt-2);if(co!==So)break;Gt--,Jt--}(Gt>1||Jt>1)&&this._pushTrimWhitespaceCharChange(We,Xe+1,1,Gt,Qe+1,1,Jt)}{for(var xo=Fo(ro,1),Po=Fo(eo,1),Go=ro.length+1,Xo=eo.length+1;xo<Go&&Po<Xo;){var co=ro.charCodeAt(xo-1),So=ro.charCodeAt(Po-1);if(co!==So)break;xo++,Po++}(xo<Go||Po<Xo)&&this._pushTrimWhitespaceCharChange(We,Xe+1,xo,Go,Qe+1,Po,Xo)}}Xe++,Qe++}It&&(We.push(Eo.createFromDiffResult(this.shouldIgnoreTrimWhitespace,It,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),Xe+=It.originalLength,Qe+=It.modifiedLength)}return{quitEarly:d,changes:We}},a.prototype._pushTrimWhitespaceCharChange=function(r,n,d,S,k,we,We){if(this._mergeTrimWhitespaceCharChange(r,n,d,S,k,we,We))return;var Xe=void 0;this.shouldComputeCharChanges&&(Xe=[new Ro(n,d,n,S,k,we,k,We)]),r.push(new Eo(n,n,k,k,Xe))},a.prototype._mergeTrimWhitespaceCharChange=function(r,n,d,S,k,we,We){var Xe=r.length;if(Xe===0)return!1;var Qe=r[Xe-1];return Qe.originalEndLineNumber===0||Qe.modifiedEndLineNumber===0?!1:Qe.originalEndLineNumber+1===n&&Qe.modifiedEndLineNumber+1===k?(Qe.originalEndLineNumber=n,Qe.modifiedEndLineNumber=k,this.shouldComputeCharChanges&&Qe.charChanges&&Qe.charChanges.push(new Ro(n,d,n,S,k,we,k,We)),!0):!1},a}();function Ho(a,r){var n=to.q(a);return n===-1?r:n+1}function Fo(a,r){var n=to.D(a);return n===-1?r:n+2}function Io(a){if(a===0)return function(){return!0};var r=Date.now();return function(){return Date.now()-r<a}}var tn=e("LeU+"),un=function(){function a(r,n,d,S){this._uri=r,this._lines=n,this._eol=d,this._versionId=S,this._lineStarts=null}return a.prototype.dispose=function(){this._lines.length=0},a.prototype.getText=function(){return this._lines.join(this._eol)},a.prototype.onEvents=function(r){r.eol&&r.eol!==this._eol&&(this._eol=r.eol,this._lineStarts=null);for(var n=r.changes,d=0,S=n;d<S.length;d++){var k=S[d];this._acceptDeleteRange(k.range),this._acceptInsertText(new D.a(k.range.startLineNumber,k.range.startColumn),k.text)}this._versionId=r.versionId},a.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var r=this._eol.length,n=this._lines.length,d=new Uint32Array(n),S=0;S<n;S++)d[S]=this._lines[S].length+r;this._lineStarts=new tn.a(d)}},a.prototype._setLineText=function(r,n){this._lines[r]=n,this._lineStarts&&this._lineStarts.changeValue(r,this._lines[r].length+this._eol.length)},a.prototype._acceptDeleteRange=function(r){if(r.startLineNumber===r.endLineNumber){if(r.startColumn===r.endColumn)return;this._setLineText(r.startLineNumber-1,this._lines[r.startLineNumber-1].substring(0,r.startColumn-1)+this._lines[r.startLineNumber-1].substring(r.endColumn-1));return}this._setLineText(r.startLineNumber-1,this._lines[r.startLineNumber-1].substring(0,r.startColumn-1)+this._lines[r.endLineNumber-1].substring(r.endColumn-1)),this._lines.splice(r.startLineNumber,r.endLineNumber-r.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(r.startLineNumber,r.endLineNumber-r.startLineNumber)},a.prototype._acceptInsertText=function(r,n){if(n.length===0)return;var d=n.split(/\r\n|\r|\n/);if(d.length===1){this._setLineText(r.lineNumber-1,this._lines[r.lineNumber-1].substring(0,r.column-1)+d[0]+this._lines[r.lineNumber-1].substring(r.column-1));return}d[d.length-1]+=this._lines[r.lineNumber-1].substring(r.column-1),this._setLineText(r.lineNumber-1,this._lines[r.lineNumber-1].substring(0,r.column-1)+d[0]);for(var S=new Uint32Array(d.length-1),k=1;k<d.length;k++)this._lines.splice(r.lineNumber+k-1,0,d[k]),S[k-1]=d[k].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(r.lineNumber,S)},a}(),Vo=e("0JNc"),Cn=e("MXAL"),pn=function(){function a(r,n,d){for(var S=new Uint8Array(r*n),k=0,we=r*n;k<we;k++)S[k]=d;this._data=S,this.rows=r,this.cols=n}return a.prototype.get=function(r,n){return this._data[r*this.cols+n]},a.prototype.set=function(r,n,d){this._data[r*this.cols+n]=d},a}(),rn=function(){function a(r){for(var n=0,d=0,S=0,k=r.length;S<k;S++){var we=r[S],We=we[0],Xe=we[1],Qe=we[2];Xe>n&&(n=Xe),We>d&&(d=We),Qe>d&&(d=Qe)}n++,d++;for(var yt=new pn(d,n,0),S=0,k=r.length;S<k;S++){var It=r[S],We=It[0],Xe=It[1],Qe=It[2];yt.set(We,Xe,Qe)}this._states=yt,this._maxCharCode=n}return a.prototype.nextState=function(r,n){return n<0||n>=this._maxCharCode?0:this._states.get(r,n)},a}(),on=null;function dn(){return on===null&&(on=new rn([[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]])),on}var Uo=null;function Bo(){if(Uo===null){Uo=new Cn.a(0);for(var a=` <>'"\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`,r=0;r<a.length;r++)Uo.set(a.charCodeAt(r),1);for(var n=".,;",r=0;r<n.length;r++)Uo.set(n.charCodeAt(r),2)}return Uo}var St=function(){function a(){}return a._createLink=function(r,n,d,S,k){var we=k-1;do{var We=n.charCodeAt(we),Xe=r.get(We);if(Xe!==2)break;we--}while(we>S);if(S>0){var Qe=n.charCodeAt(S-1),yt=n.charCodeAt(we);(Qe===40&&yt===41||Qe===91&&yt===93||Qe===123&&yt===125)&&we--}return{range:{startLineNumber:d,startColumn:S+1,endLineNumber:d,endColumn:we+2},url:n.substring(S,we+1)}},a.computeLinks=function(r,n){n===void 0&&(n=dn());for(var d=Bo(),S=[],k=1,we=r.getLineCount();k<=we;k++){for(var We=r.getLineContent(k),Xe=We.length,Qe=0,yt=0,It=0,Wt=1,Pt=!1,ro=!1,eo=!1;Qe<Xe;){var Gt=!1,Jt=We.charCodeAt(Qe);if(Wt===13){var co=void 0;switch(Jt){case 40:Pt=!0,co=0;break;case 41:co=Pt?0:1;break;case 91:ro=!0,co=0;break;case 93:co=ro?0:1;break;case 123:eo=!0,co=0;break;case 125:co=eo?0:1;break;case 39:co=It===34||It===96?0:1;break;case 34:co=It===39||It===96?0:1;break;case 96:co=It===39||It===34?0:1;break;case 42:co=It===42?1:0;break;case 124:co=It===124?1:0;break;default:co=d.get(Jt)}co===1&&(S.push(a._createLink(d,We,k,yt,Qe)),Gt=!0)}else if(Wt===12){var co=void 0;Jt===91?(ro=!0,co=0):co=d.get(Jt),co===1?Gt=!0:Wt=13}else Wt=n.nextState(Wt,Jt),Wt===0&&(Gt=!0);Gt&&(Wt=1,Pt=!1,ro=!1,eo=!1,yt=Qe+1,It=Jt),Qe++}Wt===13&&S.push(a._createLink(d,We,k,yt,Xe))}return S},a}();function st(a){return!a||typeof a.getLineCount!="function"||typeof a.getLineContent!="function"?[]:St.computeLinks(a)}var rt=function(){function a(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}return a.prototype.navigateValueSet=function(r,n,d,S,k){if(r&&n){var we=this.doNavigateValueSet(n,k);if(we)return{range:r,value:we}}if(d&&S){var we=this.doNavigateValueSet(S,k);if(we)return{range:d,value:we}}return null},a.prototype.doNavigateValueSet=function(r,n){var d=this.numberReplace(r,n);return d!==null?d:this.textReplace(r,n)},a.prototype.numberReplace=function(r,n){var d=Math.pow(10,r.length-(r.lastIndexOf(".")+1)),S=Number(r),k=parseFloat(r);return!isNaN(S)&&!isNaN(k)&&S===k?S===0&&!n?null:(S=Math.floor(S*d),S+=n?d:-d,String(S/d)):null},a.prototype.textReplace=function(r,n){return this.valueSetsReplace(this._defaultValueSet,r,n)},a.prototype.valueSetsReplace=function(r,n,d){for(var S=null,k=0,we=r.length;S===null&&k<we;k++)S=this.valueSetReplace(r[k],n,d);return S},a.prototype.valueSetReplace=function(r,n,d){var S=r.indexOf(n);return S>=0?(S+=d?1:-1,S<0?S=r.length-1:S%=r.length,r[S]):null},a.INSTANCE=new a,a}(),Mt=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),be=function(a,r,n,d){function S(k){return k instanceof n?k:new n(function(we){we(k)})}return new(n||(n=Promise))(function(k,we){function We(yt){try{Qe(d.next(yt))}catch(It){we(It)}}function Xe(yt){try{Qe(d.throw(yt))}catch(It){we(It)}}function Qe(yt){yt.done?k(yt.value):S(yt.value).then(We,Xe)}Qe((d=d.apply(a,r||[])).next())})},M=function(a,r){var n={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},d,S,k,we;return we={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(we[Symbol.iterator]=function(){return this}),we;function We(Qe){return function(yt){return Xe([Qe,yt])}}function Xe(Qe){if(d)throw new TypeError("Generator is already executing.");for(;n;)try{if(d=1,S&&(k=Qe[0]&2?S.return:Qe[0]?S.throw||((k=S.return)&&k.call(S),0):S.next)&&!(k=k.call(S,Qe[1])).done)return k;(S=0,k)&&(Qe=[Qe[0]&2,k.value]);switch(Qe[0]){case 0:case 1:k=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,S=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(k=n.trys,k=k.length>0&&k[k.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!k||Qe[1]>k[0]&&Qe[1]<k[3])){n.label=Qe[1];break}if(Qe[0]===6&&n.label<k[1]){n.label=k[1],k=Qe;break}if(k&&n.label<k[2]){n.label=k[2],n.ops.push(Qe);break}k[2]&&n.ops.pop(),n.trys.pop();continue}Qe=r.call(a,n)}catch(yt){Qe=[6,yt],S=0}finally{d=k=0}if(Qe[0]&5)throw Qe[1];return{value:Qe[0]?Qe[1]:void 0,done:!0}}},j=function(a){Mt(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),r.prototype.getValue=function(){return this.getText()},r.prototype.getLinesContent=function(){return this._lines.slice(0)},r.prototype.getLineCount=function(){return this._lines.length},r.prototype.getLineContent=function(n){return this._lines[n-1]},r.prototype.getWordAtPosition=function(n,d){var S=Object(Vo.d)(n.column,Object(Vo.c)(d),this._lines[n.lineNumber-1],0);return S?new W.a(n.lineNumber,S.startColumn,n.lineNumber,S.endColumn):null},r.prototype.createWordIterator=function(n){var d=this,S,k=0,we,We=0,Xe=[],Qe=function(){if(We<Xe.length){var yt=we.substring(Xe[We].start,Xe[We].end);return We+=1,S?S.value=yt:S={done:!1,value:yt},S}else return k>=d._lines.length?Qt.c:(we=d._lines[k],Xe=d._wordenize(we,n),We=0,k+=1,Qe())};return{next:Qe}},r.prototype.getLineWords=function(n,d){for(var S=this._lines[n-1],k=this._wordenize(S,d),we=[],We=0,Xe=k;We<Xe.length;We++){var Qe=Xe[We];we.push({word:S.substring(Qe.start,Qe.end),startColumn:Qe.start+1,endColumn:Qe.end+1})}return we},r.prototype._wordenize=function(n,d){var S=[],k;for(d.lastIndex=0;(k=d.exec(n))&&!(k[0].length===0);)S.push({start:k.index,end:k.index+k[0].length});return S},r.prototype.getValueInRange=function(n){if(n=this._validateRange(n),n.startLineNumber===n.endLineNumber)return this._lines[n.startLineNumber-1].substring(n.startColumn-1,n.endColumn-1);var d=this._eol,S=n.startLineNumber-1,k=n.endLineNumber-1,we=[];we.push(this._lines[S].substring(n.startColumn-1));for(var We=S+1;We<k;We++)we.push(this._lines[We]);return we.push(this._lines[k].substring(0,n.endColumn-1)),we.join(d)},r.prototype.offsetAt=function(n){return n=this._validatePosition(n),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(n.lineNumber-2)+(n.column-1)},r.prototype.positionAt=function(n){n=Math.floor(n),n=Math.max(0,n),this._ensureLineStarts();var d=this._lineStarts.getIndexOf(n),S=this._lines[d.index].length;return{lineNumber:1+d.index,column:1+Math.min(d.remainder,S)}},r.prototype._validateRange=function(n){var d=this._validatePosition({lineNumber:n.startLineNumber,column:n.startColumn}),S=this._validatePosition({lineNumber:n.endLineNumber,column:n.endColumn});return d.lineNumber!==n.startLineNumber||d.column!==n.startColumn||S.lineNumber!==n.endLineNumber||S.column!==n.endColumn?{startLineNumber:d.lineNumber,startColumn:d.column,endLineNumber:S.lineNumber,endColumn:S.column}:n},r.prototype._validatePosition=function(n){if(!D.a.isIPosition(n))throw new Error("bad position");var d=n.lineNumber,S=n.column,k=!1;if(d<1)d=1,S=1,k=!0;else if(d>this._lines.length)d=this._lines.length,S=this._lines[d-1].length+1,k=!0;else{var we=this._lines[d-1].length+1;S<1?(S=1,k=!0):S>we&&(S=we,k=!0)}return k?{lineNumber:d,column:S}:n},r}(un),X=function(){function a(r,n){this._host=r,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}return a.prototype.dispose=function(){this._models=Object.create(null)},a.prototype._getModel=function(r){return this._models[r]},a.prototype._getModels=function(){var r=this,n=[];return Object.keys(this._models).forEach(function(d){return n.push(r._models[d])}),n},a.prototype.acceptNewModel=function(r){this._models[r.url]=new j(z.a.parse(r.url),r.lines,r.EOL,r.versionId)},a.prototype.acceptModelChanged=function(r,n){if(!this._models[r])return;var d=this._models[r];d.onEvents(n)},a.prototype.acceptRemovedModel=function(r){if(!this._models[r])return;delete this._models[r]},a.prototype.computeDiff=function(r,n,d,S){return be(this,void 0,void 0,function(){var k,we,We,Xe,Qe,yt,It;return M(this,function(Wt){return k=this._getModel(r),we=this._getModel(n),!k||!we?[2,null]:(We=k.getLinesContent(),Xe=we.getLinesContent(),Qe=new Wo(We,Xe,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:d,shouldMakePrettyDiff:!0,maxComputationTime:S}),yt=Qe.computeDiff(),It=yt.changes.length>0?!1:this._modelsAreIdentical(k,we),[2,{quitEarly:yt.quitEarly,identical:It,changes:yt.changes}])})})},a.prototype._modelsAreIdentical=function(r,n){var d=r.getLineCount(),S=n.getLineCount();if(d!==S)return!1;for(var k=1;k<=d;k++){var we=r.getLineContent(k),We=n.getLineContent(k);if(we!==We)return!1}return!0},a.prototype.computeMoreMinimalEdits=function(r,n){return be(this,void 0,void 0,function(){var d,S,k,we,We,Xe,Qe,yt,It,Wt,Pt,ro,eo,Gt,Jt,co,So,xo;return M(this,function(Po){if(d=this._getModel(r),!d)return[2,n];for(S=[],k=void 0,n=Object(dt.r)(n,function(Go,Xo){if(Go.range&&Xo.range)return W.a.compareRangesUsingStarts(Go.range,Xo.range);var an=Go.range?0:1,yn=Xo.range?0:1;return an-yn}),we=0,We=n;we<We.length;we++){if(Xe=We[we],Qe=Xe.range,yt=Xe.text,It=Xe.eol,typeof It=="number"&&(k=It),W.a.isEmpty(Qe)&&!yt)continue;if(Wt=d.getValueInRange(Qe),yt=yt.replace(/\r\n|\n|\r/g,d.eol),Wt===yt)continue;if(Math.max(yt.length,Wt.length)>a._diffLimit){S.push({range:Qe,text:yt});continue}for(Pt=Object(Ot.b)(Wt,yt,!1),ro=d.offsetAt(W.a.lift(Qe).getStartPosition()),eo=0,Gt=Pt;eo<Gt.length;eo++)Jt=Gt[eo],co=d.positionAt(ro+Jt.originalStart),So=d.positionAt(ro+Jt.originalStart+Jt.originalLength),xo={text:yt.substr(Jt.modifiedStart,Jt.modifiedLength),range:{startLineNumber:co.lineNumber,startColumn:co.column,endLineNumber:So.lineNumber,endColumn:So.column}},d.getValueInRange(xo.range)!==xo.text&&S.push(xo)}return typeof k=="number"&&S.push({eol:k,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),[2,S]})})},a.prototype.computeLinks=function(r){return be(this,void 0,void 0,function(){var n;return M(this,function(d){return n=this._getModel(r),n?[2,st(n)]:[2,null]})})},a.prototype.textualSuggest=function(r,n,d,S){return be(this,void 0,void 0,function(){var k,we,We,Xe,Qe,yt,It,Wt;return M(this,function(Pt){if(k=this._getModel(r),!k)return[2,null];for(we=[],We=new Set,Xe=new RegExp(d,S),Qe=k.getWordAtPosition(n,Xe),Qe&&We.add(k.getValueInRange(Qe)),yt=k.createWordIterator(Xe),It=yt.next();!It.done&&We.size<=a._suggestionsLimit;It=yt.next()){if(Wt=It.value,We.has(Wt))continue;if(We.add(Wt),!isNaN(Number(Wt)))continue;we.push(Wt)}return[2,we]})})},a.prototype.computeWordRanges=function(r,n,d,S){return be(this,void 0,void 0,function(){var k,we,We,Xe,Qe,yt,It,Wt,Pt;return M(this,function(ro){if(k=this._getModel(r),!k)return[2,Object.create(null)];for(we=new RegExp(d,S),We=Object.create(null),Xe=n.startLineNumber;Xe<n.endLineNumber;Xe++)for(Qe=k.getLineWords(Xe,we),yt=0,It=Qe;yt<It.length;yt++){if(Wt=It[yt],!isNaN(Number(Wt.word)))continue;Pt=We[Wt.word],Pt||(Pt=[],We[Wt.word]=Pt),Pt.push({startLineNumber:Xe,startColumn:Wt.startColumn,endLineNumber:Xe,endColumn:Wt.endColumn})}return[2,We]})})},a.prototype.navigateValueSet=function(r,n,d,S,k){return be(this,void 0,void 0,function(){var we,We,Xe,Qe,yt,It;return M(this,function(Wt){return we=this._getModel(r),we?(We=new RegExp(S,k),n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1}),Xe=we.getValueInRange(n),Qe=we.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},We),Qe?(yt=we.getValueInRange(Qe),It=rt.INSTANCE.navigateValueSet(n,Xe,Qe,yt,d),[2,It]):[2,null]):[2,null]})})},a.prototype.loadForeignModule=function(r,n,d){var S=this,k=function(Xe,Qe){return S._host.fhr(Xe,Qe)},we=Et.b(d,k),We={host:we,getMirrorModels:function(){return S._getModels()}};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(We,n),Promise.resolve(Et.c(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))},a.prototype.fmr=function(r,n){if(!this._foreignModule||typeof this._foreignModule[r]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+r));try{return Promise.resolve(this._foreignModule[r].apply(this._foreignModule,n))}catch(d){return Promise.reject(d)}},a._diffLimit=1e5,a._suggestionsLimit=1e4,a}();function Te(a){return new X(a,null)}typeof importScripts=="function"&&(ht.b.monaco=je());var Ae=e("G2kB"),Ne=e("e0rL"),lt=e("09fa"),ft=e("5Y4S"),At=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Ft=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},Ut=function(a,r){return function(n,d){r(n,d,a)}},Vt=function(a,r,n,d){function S(k){return k instanceof n?k:new n(function(we){we(k)})}return new(n||(n=Promise))(function(k,we){function We(yt){try{Qe(d.next(yt))}catch(It){we(It)}}function Xe(yt){try{Qe(d.throw(yt))}catch(It){we(It)}}function Qe(yt){yt.done?k(yt.value):S(yt.value).then(We,Xe)}Qe((d=d.apply(a,r||[])).next())})},oo=function(a,r){var n={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},d,S,k,we;return we={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(we[Symbol.iterator]=function(){return this}),we;function We(Qe){return function(yt){return Xe([Qe,yt])}}function Xe(Qe){if(d)throw new TypeError("Generator is already executing.");for(;n;)try{if(d=1,S&&(k=Qe[0]&2?S.return:Qe[0]?S.throw||((k=S.return)&&k.call(S),0):S.next)&&!(k=k.call(S,Qe[1])).done)return k;(S=0,k)&&(Qe=[Qe[0]&2,k.value]);switch(Qe[0]){case 0:case 1:k=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,S=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(k=n.trys,k=k.length>0&&k[k.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!k||Qe[1]>k[0]&&Qe[1]<k[3])){n.label=Qe[1];break}if(Qe[0]===6&&n.label<k[1]){n.label=k[1],k=Qe;break}if(k&&n.label<k[2]){n.label=k[2],n.ops.push(Qe);break}k[2]&&n.ops.pop(),n.trys.pop();continue}Qe=r.call(a,n)}catch(yt){Qe=[6,yt],S=0}finally{d=k=0}if(Qe[0]&5)throw Qe[1];return{value:Qe[0]?Qe[1]:void 0,done:!0}}},Zt=60*1e3,mo=5*60*1e3;function mt(a,r){var n=a.getModel(r);return n?!n.isTooLargeForSyncing():!1}var He=function(a){At(r,a);function r(n,d,S){var k=a.call(this)||this;return k._modelService=n,k._workerManager=k._register(new ot(k._modelService)),k._logService=S,k._register(gt.s.register("*",{provideLinks:function(we,We){return mt(k._modelService,we.uri)?k._workerManager.withWorker().then(function(Xe){return Xe.computeLinks(we.uri)}).then(function(Xe){return Xe&&{links:Xe}}):Promise.resolve({links:[]})}})),k._register(gt.d.register("*",new De(k._workerManager,d,k._modelService))),k}return r.prototype.dispose=function(){a.prototype.dispose.call(this)},r.prototype.canComputeDiff=function(n,d){return mt(this._modelService,n)&&mt(this._modelService,d)},r.prototype.computeDiff=function(n,d,S,k){return this._workerManager.withWorker().then(function(we){return we.computeDiff(n,d,S,k)})},r.prototype.computeMoreMinimalEdits=function(n,d){var S=this;if(Object(dt.q)(d)){if(!mt(this._modelService,n))return Promise.resolve(d);var k=ft.a.create(!0),we=this._workerManager.withWorker().then(function(We){return We.computeMoreMinimalEdits(n,d)});return we.finally(function(){return S._logService.trace("FORMAT#computeMoreMinimalEdits",n.toString(!0),k.elapsed())}),we}else return Promise.resolve(void 0)},r.prototype.canNavigateValueSet=function(n){return mt(this._modelService,n)},r.prototype.navigateValueSet=function(n,d,S){return this._workerManager.withWorker().then(function(k){return k.navigateValueSet(n,d,S)})},r.prototype.canComputeWordRanges=function(n){return mt(this._modelService,n)},r.prototype.computeWordRanges=function(n,d){return this._workerManager.withWorker().then(function(S){return S.computeWordRanges(n,d)})},r=Ft([Ut(0,Ae.a),Ut(1,Ne.a),Ut(2,lt.a)],r),r}(Rt.a),De=function(){function a(r,n,d){this._debugDisplayName="wordbasedCompletions",this._workerManager=r,this._configurationService=n,this._modelService=d}return a.prototype.provideCompletionItems=function(r,n){return Vt(this,void 0,void 0,function(){var d,S,k,we,We,Xe;return oo(this,function(Qe){switch(Qe.label){case 0:return d=this._configurationService.getValue(r.uri,n,"editor").wordBasedSuggestions,d?mt(this._modelService,r.uri)?(S=r.getWordAtPosition(n),k=S?new W.a(n.lineNumber,S.startColumn,n.lineNumber,S.endColumn):W.a.fromPositions(n),we=k.setEndPosition(n.lineNumber,n.column),[4,this._workerManager.withWorker()]):[2,void 0]:[2,void 0];case 1:return We=Qe.sent(),[4,We.textualSuggest(r.uri,n)];case 2:return Xe=Qe.sent(),Xe?[2,{suggestions:Xe.map(function(yt){return{kind:18,label:yt,insertText:yt,range:{insert:we,replace:k}}})}]:[2,void 0]}})})},a}(),ot=function(a){At(r,a);function r(n){var d=a.call(this)||this;d._modelService=n,d._editorWorkerClient=null,d._lastWorkerUsedTime=new Date().getTime();var S=d._register(new ut.c);return S.cancelAndSet(function(){return d._checkStopIdleWorker()},Math.round(mo/2)),d._register(d._modelService.onModelRemoved(function(k){return d._checkStopEmptyWorker()})),d}return r.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),a.prototype.dispose.call(this)},r.prototype._checkStopEmptyWorker=function(){if(!this._editorWorkerClient)return;var n=this._modelService.getModels();n.length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},r.prototype._checkStopIdleWorker=function(){if(!this._editorWorkerClient)return;var n=new Date().getTime()-this._lastWorkerUsedTime;n>mo&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},r.prototype.withWorker=function(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new me(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},r}(Rt.a),xt=function(a){At(r,a);function r(n,d,S){var k=a.call(this)||this;if(k._syncedModels=Object.create(null),k._syncedModelsLastUsedTime=Object.create(null),k._proxy=n,k._modelService=d,!S){var we=new ut.c;we.cancelAndSet(function(){return k._checkStopModelSync()},Math.round(Zt/2)),k._register(we)}return k}return r.prototype.dispose=function(){for(var n in this._syncedModels)Object(Rt.f)(this._syncedModels[n]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),a.prototype.dispose.call(this)},r.prototype.ensureSyncedResources=function(n){for(var d=0,S=n;d<S.length;d++){var k=S[d],we=k.toString();this._syncedModels[we]||this._beginModelSync(k),this._syncedModels[we]&&(this._syncedModelsLastUsedTime[we]=new Date().getTime())}},r.prototype._checkStopModelSync=function(){var n=new Date().getTime(),d=[];for(var S in this._syncedModelsLastUsedTime){var k=n-this._syncedModelsLastUsedTime[S];k>Zt&&d.push(S)}for(var we=0,We=d;we<We.length;we++){var Xe=We[we];this._stopModelSync(Xe)}},r.prototype._beginModelSync=function(n){var d=this,S=this._modelService.getModel(n);if(!S)return;if(S.isTooLargeForSyncing())return;var k=n.toString();this._proxy.acceptNewModel({url:S.uri.toString(),lines:S.getLinesContent(),EOL:S.getEOL(),versionId:S.getVersionId()});var we=new Rt.b;we.add(S.onDidChangeContent(function(We){d._proxy.acceptModelChanged(k.toString(),We)})),we.add(S.onWillDispose(function(){d._stopModelSync(k)})),we.add(Object(Rt.h)(function(){d._proxy.acceptRemovedModel(k)})),this._syncedModels[k]=we},r.prototype._stopModelSync=function(n){var d=this._syncedModels[n];delete this._syncedModels[n],delete this._syncedModelsLastUsedTime[n],Object(Rt.f)(d)},r}(Rt.a),pe=function(){function a(r){this._instance=r,this._proxyObj=Promise.resolve(this._instance)}return a.prototype.dispose=function(){this._instance.dispose()},a.prototype.getProxyObject=function(){return this._proxyObj},a}(),O=function(){function a(r){this._workerClient=r}return a.prototype.fhr=function(r,n){return this._workerClient.fhr(r,n)},a}(),me=function(a){At(r,a);function r(n,d,S){var k=a.call(this)||this;return k._modelService=n,k._keepIdleModels=d,k._workerFactory=new ae(S),k._worker=null,k._modelManager=null,k}return r.prototype.fhr=function(n,d){throw new Error("Not implemented!")},r.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new ze(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new O(this)))}catch(n){$e(n),this._worker=new pe(new X(new O(this),null))}return this._worker},r.prototype._getProxy=function(){var n=this;return this._getOrCreateWorker().getProxyObject().then(void 0,function(d){return $e(d),n._worker=new pe(new X(new O(n),null)),n._getOrCreateWorker().getProxyObject()})},r.prototype._getOrCreateModelManager=function(n){return this._modelManager||(this._modelManager=this._register(new xt(n,this._modelService,this._keepIdleModels))),this._modelManager},r.prototype._withSyncedResources=function(n){var d=this;return this._getProxy().then(function(S){return d._getOrCreateModelManager(S).ensureSyncedResources(n),S})},r.prototype.computeDiff=function(n,d,S,k){return this._withSyncedResources([n,d]).then(function(we){return we.computeDiff(n.toString(),d.toString(),S,k)})},r.prototype.computeMoreMinimalEdits=function(n,d){return this._withSyncedResources([n]).then(function(S){return S.computeMoreMinimalEdits(n.toString(),d)})},r.prototype.computeLinks=function(n){return this._withSyncedResources([n]).then(function(d){return d.computeLinks(n.toString())})},r.prototype.textualSuggest=function(n,d){var S=this;return this._withSyncedResources([n]).then(function(k){var we=S._modelService.getModel(n);if(!we)return null;var We=Fe.a.getWordDefinition(we.getLanguageIdentifier().id),Xe=We.source,Qe=Object(to.H)(We);return k.textualSuggest(n.toString(),d,Xe,Qe)})},r.prototype.computeWordRanges=function(n,d){var S=this;return this._withSyncedResources([n]).then(function(k){var we=S._modelService.getModel(n);if(!we)return Promise.resolve(null);var We=Fe.a.getWordDefinition(we.getLanguageIdentifier().id),Xe=We.source,Qe=Object(to.H)(We);return k.computeWordRanges(n.toString(),d,Xe,Qe)})},r.prototype.navigateValueSet=function(n,d,S){var k=this;return this._withSyncedResources([n]).then(function(we){var We=k._modelService.getModel(n);if(!We)return null;var Xe=Fe.a.getWordDefinition(We.getLanguageIdentifier().id),Qe=Xe.source,yt=Object(to.H)(Xe);return we.navigateValueSet(n.toString(),d,S,Qe,yt)})},r}(Rt.a),Be=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}();function Ze(a,r){return new at(a,r)}var at=function(a){Be(r,a);function r(n,d){var S=a.call(this,n,d.keepIdleModels||!1,d.label)||this;return S._foreignModuleId=d.moduleId,S._foreignModuleCreateData=d.createData||null,S._foreignModuleHost=d.host||null,S._foreignProxy=null,S}return r.prototype.fhr=function(n,d){if(!this._foreignModuleHost||typeof this._foreignModuleHost[n]!="function")return Promise.reject(new Error("Missing method "+n+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[n].apply(this._foreignModuleHost,d))}catch(S){return Promise.reject(S)}},r.prototype._getForeignProxy=function(){var n=this;return this._foreignProxy||(this._foreignProxy=this._getProxy().then(function(d){var S=n._foreignModuleHost?Et.c(n._foreignModuleHost):[];return d.loadForeignModule(n._foreignModuleId,n._foreignModuleCreateData,S).then(function(k){n._foreignModuleCreateData=null;for(var we=function(Wt,Pt){return d.fmr(Wt,Pt)},We=function(Wt,Pt){return function(){var ro=Array.prototype.slice.call(arguments,0);return Pt(Wt,ro)}},Xe={},Qe=0,yt=k;Qe<yt.length;Qe++){var It=yt[Qe];Xe[It]=We(It,we)}return Xe})})),this._foreignProxy},r.prototype.getProxy=function(){return this._getForeignProxy()},r.prototype.withSyncedResources=function(n){var d=this;return this._withSyncedResources(n).then(function(S){return d.getProxy()})},r}(me),_t=e("4bUh"),zt=e("baJR"),Xt=e("qNAo");function no(a){return Array.isArray(a)}function uo(a){return!no(a)}function go(a){return typeof a=="string"}function Ao(a){return!go(a)}function To(a){return!a}function wo(a,r){return a.ignoreCase&&r?r.toLowerCase():r}function No(a){return a.replace(/[&<>'"_]/g,"-")}function Qo(a,r){console.log(a.languageId+": "+r)}function Oo(a,r){return new Error(a.languageId+": "+r)}function Lo(a,r,n,d,S){var k=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,we=null;return r.replace(k,function(We,Xe,Qe,yt,It,Wt,Pt,ro,eo){return To(Qe)?To(yt)?!To(It)&&It<d.length?wo(a,d[It]):!To(Pt)&&a&&typeof a[Pt]=="string"?a[Pt]:(we===null&&(we=S.split("."),we.unshift(S)),!To(Wt)&&Wt<we.length?wo(a,we[Wt]):""):wo(a,n):"$"})}function vn(a,r){for(var n=r;n&&n.length>0;){var d=a.tokenizer[n];if(d)return d;var S=n.lastIndexOf(".");S<0?n=null:n=n.substr(0,S)}return null}function hn(a,r){for(var n=r;n&&n.length>0;){var d=a.stateNames[n];if(d)return!0;var S=n.lastIndexOf(".");S<0?n=null:n=n.substr(0,S)}return!1}var En=5,qo=function(){function a(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return a.create=function(r,n){return this._INSTANCE.create(r,n)},a.prototype.create=function(r,n){if(r!==null&&r.depth>=this._maxCacheDepth)return new xn(r,n);var d=xn.getStackElementId(r);d.length>0&&(d+="|"),d+=n;var S=this._entries[d];return S||(S=new xn(r,n),this._entries[d]=S,S)},a._INSTANCE=new a(En),a}(),xn=function(){function a(r,n){this.parent=r,this.state=n,this.depth=(this.parent?this.parent.depth:0)+1}return a.getStackElementId=function(r){for(var n="";r!==null;)n.length>0&&(n+="|"),n+=r.state,r=r.parent;return n},a._equals=function(r,n){for(;r!==null&&n!==null;){if(r===n)return!0;if(r.state!==n.state)return!1;r=r.parent,n=n.parent}return r===null&&n===null},a.prototype.equals=function(r){return a._equals(this,r)},a.prototype.push=function(r){return qo.create(this,r)},a.prototype.pop=function(){return this.parent},a.prototype.popall=function(){for(var r=this;r.parent;)r=r.parent;return r},a.prototype.switchTo=function(r){return qo.create(this.parent,r)},a}(),Un=function(){function a(r,n){this.modeId=r,this.state=n}return a.prototype.equals=function(r){return this.modeId===r.modeId&&this.state.equals(r.state)},a.prototype.clone=function(){var r=this.state.clone();return r===this.state?this:new a(this.modeId,this.state)},a}(),An=function(){function a(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return a.create=function(r,n){return this._INSTANCE.create(r,n)},a.prototype.create=function(r,n){if(n!==null)return new si(r,n);if(r!==null&&r.depth>=this._maxCacheDepth)return new si(r,n);var d=xn.getStackElementId(r),S=this._entries[d];return S||(S=new si(r,null),this._entries[d]=S,S)},a._INSTANCE=new a(En),a}(),si=function(){function a(r,n){this.stack=r,this.embeddedModeData=n}return a.prototype.clone=function(){var r=this.embeddedModeData?this.embeddedModeData.clone():null;return r===this.embeddedModeData?this:An.create(this.stack,this.embeddedModeData)},a.prototype.equals=function(r){return r instanceof a&&this.stack.equals(r.stack)?this.embeddedModeData===null&&r.embeddedModeData===null?!0:this.embeddedModeData===null||r.embeddedModeData===null?!1:this.embeddedModeData.equals(r.embeddedModeData):!1},a}(),ai=function(){function a(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return a.prototype.enterMode=function(r,n){this._language=n},a.prototype.emit=function(r,n){if(this._lastTokenType===n&&this._lastTokenLanguage===this._language)return;this._lastTokenType=n,this._lastTokenLanguage=this._language,this._tokens.push(new h.a(r,n,this._language))},a.prototype.nestedModeTokenize=function(r,n,d){var S=n.modeId,k=n.state,we=gt.B.get(S);if(!we)return this.enterMode(d,S),this.emit(d,""),k;var We=we.tokenize(r,k,d);return this._tokens=this._tokens.concat(We.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,We.endState},a.prototype.finalize=function(r){return new h.b(this._tokens,r)},a}(),Pn=function(){function a(r,n){this._modeService=r,this._theme=n,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return a.prototype.enterMode=function(r,n){this._currentLanguageId=this._modeService.getLanguageIdentifier(n).id},a.prototype.emit=function(r,n){var d=this._theme.match(this._currentLanguageId,n);if(this._lastTokenMetadata===d)return;this._lastTokenMetadata=d,this._tokens.push(r),this._tokens.push(d)},a._merge=function(r,n,d){var S=r!==null?r.length:0,k=n.length,we=d!==null?d.length:0;if(S===0&&k===0&&we===0)return new Uint32Array(0);if(S===0&&k===0)return d;if(k===0&&we===0)return r;var We=new Uint32Array(S+k+we);r!==null&&We.set(r);for(var Xe=0;Xe<k;Xe++)We[S+Xe]=n[Xe];return d!==null&&We.set(d,S+k),We},a.prototype.nestedModeTokenize=function(r,n,d){var S=n.modeId,k=n.state,we=gt.B.get(S);if(!we)return this.enterMode(d,S),this.emit(d,""),k;var We=we.tokenize2(r,k,d);return this._prependTokens=a._merge(this._prependTokens,this._tokens,We.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,We.endState},a.prototype.finalize=function(r){return new h.c(a._merge(this._prependTokens,this._tokens,null),r)},a}(),bi=function(){function a(r,n,d,S){var k=this;this._modeService=r,this._standaloneThemeService=n,this._modeId=d,this._lexer=S,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);var we=!1;this._tokenizationRegistryListener=gt.B.onDidChange(function(We){if(we)return;for(var Xe=!1,Qe=0,yt=We.changedLanguages.length;Qe<yt;Qe++){var It=We.changedLanguages[Qe];if(k._embeddedModes[It]){Xe=!0;break}}Xe&&(we=!0,gt.B.fire([k._modeId]),we=!1)})}return a.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()},a.prototype.getLoadStatus=function(){var r=[];for(var n in this._embeddedModes){var d=gt.B.get(n);if(d){if(d instanceof a){var S=d.getLoadStatus();S.loaded===!1&&r.push(S.promise)}continue}var k=gt.B.getPromise(n);k&&r.push(k)}return r.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(r).then(function(we){return})}},a.prototype.getInitialState=function(){var r=qo.create(null,this._lexer.start);return An.create(r,null)},a.prototype.tokenize=function(r,n,d){var S=new ai,k=this._tokenize(r,n,d,S);return S.finalize(k)},a.prototype.tokenize2=function(r,n,d){var S=new Pn(this._modeService,this._standaloneThemeService.getTheme().tokenTheme),k=this._tokenize(r,n,d,S);return S.finalize(k)},a.prototype._tokenize=function(r,n,d,S){return n.embeddedModeData?this._nestedTokenize(r,n,d,S):this._myTokenize(r,n,d,S)},a.prototype._findLeavingNestedModeOffset=function(r,n){var d=this._lexer.tokenizer[n.stack.state];if(!d&&(d=vn(this._lexer,n.stack.state),!d))throw Oo(this._lexer,"tokenizer state is not defined: "+n.stack.state);for(var S=-1,k=!1,we=0,We=d;we<We.length;we++){var Xe=We[we];if(!Ao(Xe.action)||Xe.action.nextEmbedded!=="@pop")continue;k=!0;var Qe=Xe.regex,yt=Xe.regex.source;yt.substr(0,4)==="^(?:"&&yt.substr(yt.length-1,1)===")"&&(Qe=new RegExp(yt.substr(4,yt.length-5),Qe.ignoreCase?"i":""));var It=r.search(Qe);if(It===-1||It!==0&&Xe.matchOnlyAtLineStart)continue;(S===-1||It<S)&&(S=It)}if(!k)throw Oo(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+n.stack.state);return S},a.prototype._nestedTokenize=function(r,n,d,S){var k=this._findLeavingNestedModeOffset(r,n);if(k===-1){var we=S.nestedModeTokenize(r,n.embeddedModeData,d);return An.create(n.stack,new Un(n.embeddedModeData.modeId,we))}var We=r.substring(0,k);We.length>0&&S.nestedModeTokenize(We,n.embeddedModeData,d);var Xe=r.substring(k);return this._myTokenize(Xe,n,d+k,S)},a.prototype._safeRuleName=function(r){return r?r.name:"(unknown)"},a.prototype._myTokenize=function(r,n,d,S){S.enterMode(d,this._modeId);for(var k=r.length,we=n.embeddedModeData,We=n.stack,Xe=0,Qe=null,yt=!0;yt||Xe<k;){var It=Xe,Wt=We.depth,Pt=Qe?Qe.groups.length:0,ro=We.state,eo=null,Gt=null,Jt=null,co=null,So=null;if(Qe){eo=Qe.matches;var xo=Qe.groups.shift();Gt=xo.matched,Jt=xo.action,co=Qe.rule,Qe.groups.length===0&&(Qe=null)}else{if(!yt&&Xe>=k)break;yt=!1;var Po=this._lexer.tokenizer[ro];if(!Po&&(Po=vn(this._lexer,ro),!Po))throw Oo(this._lexer,"tokenizer state is not defined: "+ro);for(var Go=r.substr(Xe),Xo=0,an=Po;Xo<an.length;Xo++){var yn=an[Xo];if((Xe===0||!yn.matchOnlyAtLineStart)&&(eo=Go.match(yn.regex),eo)){Gt=eo[0],Jt=yn.action;break}}}if(eo||(eo=[""],Gt=""),Jt||(Xe<k&&(eo=[r.charAt(Xe)],Gt=eo[0]),Jt=this._lexer.defaultToken),Gt===null)break;for(Xe+=Gt.length;uo(Jt)&&Ao(Jt)&&Jt.test;)Jt=Jt.test(Gt,eo,ro,Xe===k);var Zo=null;if(typeof Jt=="string"||Array.isArray(Jt))Zo=Jt;else if(Jt.group)Zo=Jt.group;else if(Jt.token!==null&&Jt.token!==void 0){if(Jt.tokenSubst?Zo=Lo(this._lexer,Jt.token,Gt,eo,ro):Zo=Jt.token,Jt.nextEmbedded)if(Jt.nextEmbedded==="@pop"){if(!we)throw Oo(this._lexer,"cannot pop embedded mode if not inside one");we=null}else{if(we)throw Oo(this._lexer,"cannot enter embedded mode from within an embedded mode");So=Lo(this._lexer,Jt.nextEmbedded,Gt,eo,ro)}if(Jt.goBack&&(Xe=Math.max(0,Xe-Jt.goBack)),Jt.switchTo&&typeof Jt.switchTo=="string"){var Yo=Lo(this._lexer,Jt.switchTo,Gt,eo,ro);if(Yo[0]==="@"&&(Yo=Yo.substr(1)),vn(this._lexer,Yo))We=We.switchTo(Yo);else throw Oo(this._lexer,"trying to switch to a state '"+Yo+"' that is undefined in rule: "+this._safeRuleName(co))}else{if(Jt.transform&&typeof Jt.transform=="function")throw Oo(this._lexer,"action.transform not supported");if(Jt.next)if(Jt.next==="@push"){if(We.depth>=this._lexer.maxStack)throw Oo(this._lexer,"maximum tokenizer stack size reached: ["+We.state+","+We.parent.state+",...]");We=We.push(ro)}else if(Jt.next==="@pop"){if(We.depth<=1)throw Oo(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(co));We=We.pop()}else if(Jt.next==="@popall")We=We.popall();else{var Yo=Lo(this._lexer,Jt.next,Gt,eo,ro);if(Yo[0]==="@"&&(Yo=Yo.substr(1)),vn(this._lexer,Yo))We=We.push(Yo);else throw Oo(this._lexer,"trying to set a next state '"+Yo+"' that is undefined in rule: "+this._safeRuleName(co))}}Jt.log&&typeof Jt.log=="string"&&Qo(this._lexer,this._lexer.languageId+": "+Lo(this._lexer,Jt.log,Gt,eo,ro))}if(Zo===null)throw Oo(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(co));if(Array.isArray(Zo)){if(Qe&&Qe.groups.length>0)throw Oo(this._lexer,"groups cannot be nested: "+this._safeRuleName(co));if(eo.length!==Zo.length+1)throw Oo(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(co));for(var mn=0,en=1;en<eo.length;en++)mn+=eo[en].length;if(mn!==Gt.length)throw Oo(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(co));Qe={rule:co,matches:eo,groups:[]};for(var en=0;en<Zo.length;en++)Qe.groups[en]={action:Zo[en],matched:eo[en+1]};Xe-=Gt.length;continue}else{if(Zo==="@rematch"&&(Xe-=Gt.length,Gt="",eo=null,Zo=""),Gt.length===0){if(k===0||Wt!==We.depth||ro!==We.state||(Qe?Qe.groups.length:0)!==Pt)continue;throw Oo(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(co))}var bn=null;if(go(Zo)&&Zo.indexOf("@brackets")===0){var Mn=Zo.substr("@brackets".length),Bn=Yr(this._lexer,Gt);if(!Bn)throw Oo(this._lexer,"@brackets token returned but no bracket defined as: "+Gt);bn=No(Bn.token+Mn)}else{var kn=Zo===""?"":Zo+this._lexer.tokenPostfix;bn=No(kn)}S.emit(It+d,bn)}if(So!==null){var Gn=this._modeService.getModeIdForLanguageName(So);Gn&&(So=Gn);var ri=this._getNestedEmbeddedModeData(So);if(Xe<k){var Go=r.substr(Xe);return this._nestedTokenize(Go,An.create(We,ri),d+Xe,S)}else return An.create(We,ri)}}return An.create(We,we)},a.prototype._getNestedEmbeddedModeData=function(r){var n=this._locateMode(r);if(n){var d=gt.B.get(n);if(d)return new Un(n,d.getInitialState())}return new Un(n||Tt.b,Tt.c)},a.prototype._locateMode=function(r){if(!r||!this._modeService.isRegisteredMode(r))return null;if(r===this._modeId)return r;var n=this._modeService.getModeId(r);return n&&(this._modeService.triggerMode(n),this._embeddedModes[n]=!0),n},a}();function Yr(a,r){if(!r)return null;r=wo(a,r);for(var n=a.brackets,d=0,S=n;d<S.length;d++){var k=S[d];if(k.open===r)return{token:k.token,bracketType:1};if(k.close===r)return{token:k.token,bracketType:-1}}return null}function oa(a,r,n,d){return new bi(a,r,n,d)}var zi=function(){function a(){}return a.colorizeElement=function(r,n,d,S){S=S||{};var k=S.theme||"vs",we=S.mimeType||d.getAttribute("lang")||d.getAttribute("data-lang");if(!we)return console.error("Mode not detected"),Promise.resolve();r.setTheme(k);var We=d.firstChild?d.firstChild.nodeValue:"";d.className+=" "+k;var Xe=function(Qe){d.innerHTML=Qe};return this.colorize(n,We||"",we,S).then(Xe,function(Qe){return console.error(Qe)})},a.colorize=function(r,n,d,S){var k=4;S&&typeof S.tabSize=="number"&&(k=S.tabSize),to.P(n)&&(n=n.substr(1));var we=n.split(/\r\n|\r|\n/),We=r.getModeId(d);if(!We)return Promise.resolve(Zr(we,k));r.triggerMode(We);var Xe=gt.B.get(We);if(Xe)return Ki(we,k,Xe);var Qe=gt.B.getPromise(We);return Qe?new Promise(function(yt,It){Qe.then(function(Wt){Ki(we,k,Wt).then(yt,It)},It)}):new Promise(function(yt,It){var Wt=null,Pt=null,ro=function(){Wt&&(Wt.dispose(),Wt=null),Pt&&(Pt.dispose(),Pt=null);var eo=gt.B.get(We);if(eo){Ki(we,k,eo).then(yt,It);return}yt(Zr(we,k))};Pt=new ut.e,Pt.cancelAndSet(ro,500),Wt=gt.B.onDidChange(function(eo){eo.changedLanguages.indexOf(We)>=0&&ro()})})},a.colorizeLine=function(r,n,d,S,k){k===void 0&&(k=4);var we=Xt.d.isBasicASCII(r,n),We=Xt.d.containsRTL(r,we,d),Xe=Object(zt.e)(new zt.c(!1,!0,r,!1,we,We,0,S,[],k,0,0,0,-1,"none",!1,!1,null));return Xe.html},a.colorizeModelLine=function(r,n,d){d===void 0&&(d=4);var S=r.getLineContent(n);r.forceTokenization(n);var k=r.getLineTokens(n),we=k.inflate();return this.colorizeLine(S,r.mightContainNonBasicASCII(),r.mightContainRTL(),we,d)},a}();function Ki(a,r,n){return new Promise(function(d,S){var k=function(){var we=Gi(a,r,n);if(n instanceof bi){var We=n.getLoadStatus();if(We.loaded===!1){We.promise.then(k,S);return}}d(we)};k()})}function Zr(a,r){var n=[],d=(0<<11|1<<14|2<<23)>>>0,S=new Uint32Array(2);S[0]=0,S[1]=d;for(var k=0,we=a.length;k<we;k++){var We=a[k];S[0]=We.length;var Xe=new _t.a(S,We),Qe=Xt.d.isBasicASCII(We,!0),yt=Xt.d.containsRTL(We,Qe,!0),It=Object(zt.e)(new zt.c(!1,!0,We,!1,Qe,yt,0,Xe,[],r,0,0,0,-1,"none",!1,!1,null));n=n.concat(It.html),n.push("<br/>")}return n.join("")}function Gi(a,r,n){for(var d=[],S=n.getInitialState(),k=0,we=a.length;k<we;k++){var We=a[k],Xe=n.tokenize2(We,S,0);_t.a.convertToEndOffset(Xe.tokens,We.length);var Qe=new _t.a(Xe.tokens,We),yt=Xt.d.isBasicASCII(We,!0),It=Xt.d.containsRTL(We,yt,!0),Wt=Object(zt.e)(new zt.c(!1,!0,We,!1,yt,It,0,Qe.inflate(),[],r,0,0,0,-1,"none",!1,!1,null));d=d.concat(Wt.html),d.push("<br/>"),S=Xe.endState}return d.join("")}var $o=e("uDWl"),li=e("S3by"),Dn=e("sFUC"),yr=e("iDAx"),Qr=e("0/Sa"),On=e("+7oY"),Qn=e("QDVR"),Xi=e("CRAX"),br=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Yi=function(){for(var a=0,r=0,n=arguments.length;r<n;r++)a+=arguments[r].length;for(var d=Array(a),S=0,r=0;r<n;r++)for(var k=arguments[r],we=0,We=k.length;we<We;we++,S++)d[S]=k[we];return d},di=function(){function a(r,n,d){r===void 0&&(r={}),n===void 0&&(n=[]),d===void 0&&(d=[]),this._contents=r,this._keys=n,this._overrides=d,this.isFrozen=!1}return Object.defineProperty(a.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),a.prototype.isEmpty=function(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0},a.prototype.getValue=function(r){return r?Object(On.d)(this.contents,r):this.contents},a.prototype.getOverrideValue=function(r,n){var d=this.getContentsForOverrideIdentifer(n);return d?r?Object(On.d)(d,r):d:void 0},a.prototype.override=function(r){var n=this.getContentsForOverrideIdentifer(r);if(!n||typeof n!="object"||!Object.keys(n).length)return this;for(var d={},S=0,k=dt.e(Yi(Object.keys(this.contents),Object.keys(n)));S<k.length;S++){var we=k[S],We=this.contents[we],Xe=n[we];Xe&&(typeof We=="object"&&typeof Xe=="object"?(We=Dt.c(We),this.mergeContents(We,Xe)):We=Xe),d[we]=We}return new a(d,this.keys,this.overrides)},a.prototype.merge=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];for(var d=Dt.c(this.contents),S=Dt.c(this.overrides),k=Yi(this.keys),we=0,We=r;we<We.length;we++){var Xe=We[we];this.mergeContents(d,Xe.contents);for(var Qe=function(Jt){var co=S.filter(function(So){return dt.g(So.identifiers,Jt.identifiers)})[0];co?yt.mergeContents(co.contents,Jt.contents):S.push(Dt.c(Jt))},yt=this,It=0,Wt=Xe.overrides;It<Wt.length;It++){var Pt=Wt[It];Qe(Pt)}for(var ro=0,eo=Xe.keys;ro<eo.length;ro++){var Gt=eo[ro];k.indexOf(Gt)===-1&&k.push(Gt)}}return new a(d,k,S)},a.prototype.freeze=function(){return this.isFrozen=!0,this},a.prototype.mergeContents=function(r,n){for(var d=0,S=Object.keys(n);d<S.length;d++){var k=S[d];if(k in r&&(Et.i(r[k])&&Et.i(n[k]))){this.mergeContents(r[k],n[k]);continue}r[k]=Dt.c(n[k])}},a.prototype.checkAndFreeze=function(r){return this.isFrozen&&!Object.isFrozen(r)?Dt.d(r):r},a.prototype.getContentsForOverrideIdentifer=function(r){for(var n=0,d=this.overrides;n<d.length;n++){var S=d[n];if(S.identifiers.indexOf(r)!==-1)return S.contents}return null},a.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},a.prototype.setValue=function(r,n){this.addKey(r),Object(On.b)(this.contents,r,n,function(d){throw new Error(d)})},a.prototype.removeValue=function(r){this.removeKey(r)&&Object(On.h)(this.contents,r)},a.prototype.addKey=function(r){for(var n=this.keys.length,d=0;d<n;d++)r.indexOf(this.keys[d])===0&&(n=d);this.keys.splice(n,1,r)},a.prototype.removeKey=function(r){var n=this.keys.indexOf(r);return n!==-1?(this.keys.splice(n,1),!0):!1},a}(),Cr=function(a){br(r,a);function r(){for(var n=this,d=Object(On.e)(),S=Object(On.c)(),k=[],we=0,We=Object.keys(d);we<We.length;we++){var Xe=We[we];Xi.b.test(Xe)&&k.push({identifiers:[Object(On.g)(Xe).trim()],keys:Object.keys(d[Xe]),contents:Object(On.i)(d[Xe],function(Qe){return console.error("Conflict in default settings file: "+Qe)})})}return n=a.call(this,d,S,k)||this,n}return r}(di),$r=function(){function a(r,n,d,S,k,we,We,Xe){d===void 0&&(d=new di),S===void 0&&(S=new di),k===void 0&&(k=new Qn.b),we===void 0&&(we=new di),We===void 0&&(We=new Qn.b),Xe===void 0&&(Xe=!0),this._defaultConfiguration=r,this._localUserConfiguration=n,this._remoteUserConfiguration=d,this._workspaceConfiguration=S,this._folderConfigurations=k,this._memoryConfiguration=we,this._memoryConfigurationByResource=We,this._freeze=Xe,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Qn.b,this._userConfiguration=null}return a.prototype.getValue=function(r,n,d){var S=this.getConsolidateConfigurationModel(n,d);return S.getValue(r)},a.prototype.updateValue=function(r,n,d){d===void 0&&(d={});var S;d.resource?(S=this._memoryConfigurationByResource.get(d.resource),S||(S=new di,this._memoryConfigurationByResource.set(d.resource,S))):S=this._memoryConfiguration,n===void 0?S.removeValue(r):S.setValue(r,n),d.resource||(this._workspaceConsolidatedConfiguration=null)},a.prototype.inspect=function(r,n,d){var S=this.getConsolidateConfigurationModel(n,d),k=this.getFolderConfigurationModelForResource(n.resource,d),we=n.resource?this._memoryConfigurationByResource.get(n.resource)||this._memoryConfiguration:this._memoryConfiguration,We=n.overrideIdentifier?this._defaultConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this._defaultConfiguration.freeze().getValue(r),Xe=n.overrideIdentifier?this.userConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this.userConfiguration.freeze().getValue(r),Qe=n.overrideIdentifier?this.localUserConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this.localUserConfiguration.freeze().getValue(r),yt=n.overrideIdentifier?this.remoteUserConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this.remoteUserConfiguration.freeze().getValue(r),It=d?n.overrideIdentifier?this._workspaceConfiguration.freeze().override(n.overrideIdentifier).getValue(r):this._workspaceConfiguration.freeze().getValue(r):void 0,Wt=k?n.overrideIdentifier?k.freeze().override(n.overrideIdentifier).getValue(r):k.freeze().getValue(r):void 0,Pt=n.overrideIdentifier?we.override(n.overrideIdentifier).getValue(r):we.getValue(r),ro=S.getValue(r),eo=dt.e(dt.m(S.overrides.map(function(Gt){return Gt.identifiers}))).filter(function(Gt){return S.getOverrideValue(r,Gt)!==void 0});return{defaultValue:We,userValue:Xe,userLocalValue:Qe,userRemoteValue:yt,workspaceValue:It,workspaceFolderValue:Wt,memoryValue:Pt,value:ro,default:We!==void 0?{value:this._defaultConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,user:Xe!==void 0?{value:this.userConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,userLocal:Qe!==void 0?{value:this.localUserConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,userRemote:yt!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,workspace:It!==void 0?{value:this._workspaceConfiguration.freeze().getValue(r),override:n.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,workspaceFolder:Wt!==void 0?{value:k==null?void 0:k.freeze().getValue(r),override:n.overrideIdentifier?k==null?void 0:k.freeze().getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,memory:Pt!==void 0?{value:we.getValue(r),override:n.overrideIdentifier?we.getOverrideValue(r,n.overrideIdentifier):void 0}:void 0,overrideIdentifiers:eo.length?eo:void 0}},Object.defineProperty(a.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(a.prototype,"localUserConfiguration",{get:function(){return this._localUserConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"remoteUserConfiguration",{get:function(){return this._remoteUserConfiguration},enumerable:!0,configurable:!0}),a.prototype.getConsolidateConfigurationModel=function(r,n){var d=this.getConsolidatedConfigurationModelForResource(r,n);return r.overrideIdentifier?d.override(r.overrideIdentifier):d},a.prototype.getConsolidatedConfigurationModelForResource=function(r,n){var d=r.resource,S=this.getWorkspaceConsolidatedConfiguration();if(n&&d){var k=n.getFolder(d);k&&(S=this.getFolderConsolidatedConfiguration(k.uri)||S);var we=this._memoryConfigurationByResource.get(d);we&&(S=S.merge(we))}return S},a.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},a.prototype.getFolderConsolidatedConfiguration=function(r){var n=this._foldersConsolidatedConfigurations.get(r);if(!n){var d=this.getWorkspaceConsolidatedConfiguration(),S=this._folderConfigurations.get(r);S?(n=d.merge(S),this._freeze&&(n=n.freeze()),this._foldersConsolidatedConfigurations.set(r,n)):n=d}return n},a.prototype.getFolderConfigurationModelForResource=function(r,n){if(n&&r){var d=n.getFolder(r);if(d)return this._folderConfigurations.get(d.uri)}return},a}(),wn=e("3/fG"),Zi=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Jr=function(a){Zi(r,a);function r(n,d,S,k){var we=a.call(this)||this;return we._contextKeyService=n,we._commandService=d,we._telemetryService=S,we._notificationService=k,we._onDidUpdateKeybindings=we._register(new R.a),we._currentChord=null,we._currentChordChecker=new ut.c,we._currentChordStatusMessage=null,we}return Object.defineProperty(r.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:R.b.None},enumerable:!0,configurable:!0}),r.prototype.dispose=function(){a.prototype.dispose.call(this)},r.prototype.getKeybindings=function(){return this._getResolver().getKeybindings()},r.prototype.lookupKeybinding=function(n){var d=this._getResolver().lookupPrimaryKeybinding(n);return d?d.resolvedKeybinding:void 0},r.prototype.softDispatch=function(n,d){var S=this.resolveKeyboardEvent(n);if(S.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;var k=S.getDispatchParts()[0];if(k===null)return null;var we=this._contextKeyService.getContext(d),We=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(we,We,k)},r.prototype._enterChordMode=function(n,d){var S=this;this._currentChord={keypress:n,label:d},this._currentChordStatusMessage=this._notificationService.status(wn.a("first.chord","({0}) was pressed. Waiting for second key of chord...",d));var k=Date.now();this._currentChordChecker.cancelAndSet(function(){if(!S._documentHasFocus()){S._leaveChordMode();return}Date.now()-k>5e3&&S._leaveChordMode()},500)},r.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},r.prototype._dispatch=function(n,d){return this._doDispatch(this.resolveKeyboardEvent(n),d)},r.prototype._doDispatch=function(n,d){var S=this,k=!1;if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var we=n.getDispatchParts()[0];if(we===null)return k;var We=this._contextKeyService.getContext(d),Xe=this._currentChord?this._currentChord.keypress:null,Qe=n.getLabel(),yt=this._getResolver().resolve(We,Xe,we);return yt&&yt.enterChord?(k=!0,this._enterChordMode(we,Qe),k):(this._currentChord&&((!yt||!yt.commandId)&&(this._notificationService.status(wn.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,Qe),{hideAfter:10*1e3}),k=!0)),this._leaveChordMode(),yt&&yt.commandId&&(yt.bubble||(k=!0),typeof yt.commandArgs=="undefined"?this._commandService.executeCommand(yt.commandId).then(void 0,function(It){return S._notificationService.warn(It)}):this._commandService.executeCommand(yt.commandId,yt.commandArgs).then(void 0,function(It){return S._notificationService.warn(It)}),this._telemetryService.publicLog2("workbenchActionExecuted",{id:yt.commandId,from:"keybinding"})),k)},r.prototype.mightProducePrintableCharacter=function(n){return n.ctrlKey||n.metaKey?!1:n.keyCode>=31&&n.keyCode<=56||n.keyCode>=21&&n.keyCode<=30},r}(Rt.a),_n=e("T8No"),Qi=function(){function a(r,n){this._defaultKeybindings=r,this._defaultBoundCommands=new Map;for(var d=0,S=r.length;d<S;d++){var k=r[d].command;k&&this._defaultBoundCommands.set(k,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=a.combine(r,n);for(var d=0,S=this._keybindings.length;d<S;d++){var we=this._keybindings[d];if(we.keypressParts.length===0)continue;this._addKeyPress(we.keypressParts[0],we)}}return a._isTargetedForRemoval=function(r,n,d,S,k){if(r.command!==S)return!1;if(n&&r.keypressParts[0]!==n)return!1;if(d&&r.keypressParts[1]!==d)return!1;if(k){if(!r.when)return!1;if(!k.equals(r.when))return!1}return!0},a.combine=function(r,n){r=r.slice(0);for(var d=[],S=0,k=n;S<k.length;S++){var we=k[S];if(!we.command||we.command.length===0||we.command.charAt(0)!=="-"){d.push(we);continue}for(var We=we.command.substr(1),Xe=we.keypressParts[0],Qe=we.keypressParts[1],yt=we.when,It=r.length-1;It>=0;It--)this._isTargetedForRemoval(r[It],Xe,Qe,We,yt)&&r.splice(It,1)}return r.concat(d)},a.prototype._addKeyPress=function(r,n){var d=this._map.get(r);if(typeof d=="undefined"){this._map.set(r,[n]),this._addToLookupMap(n);return}for(var S=d.length-1;S>=0;S--){var k=d[S];if(k.command===n.command)continue;var we=k.keypressParts.length>1,We=n.keypressParts.length>1;if(we&&We&&k.keypressParts[1]!==n.keypressParts[1])continue;a.whenIsEntirelyIncluded(k.when,n.when)&&this._removeFromLookupMap(k)}d.push(n),this._addToLookupMap(n)},a.prototype._addToLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);typeof n=="undefined"?(n=[r],this._lookupMap.set(r.command,n)):n.push(r)},a.prototype._removeFromLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);if(typeof n=="undefined")return;for(var d=0,S=n.length;d<S;d++)if(n[d]===r){n.splice(d,1);return}},a.whenIsEntirelyIncluded=function(r,n){return n?r?this._implies(r,n):!1:!0},a._implies=function(r,n){for(var d=r.negate(),S=function(It){return It instanceof _n.b?It.expr:[It]},k=S(d).concat(S(n)),we=0;we<k.length;we++)for(var We=k[we],Xe=We.negate(),Qe=we+1;Qe<k.length;Qe++){var yt=k[Qe];if(Xe.equals(yt))return!0}return!1},a.prototype.getKeybindings=function(){return this._keybindings},a.prototype.lookupPrimaryKeybinding=function(r){var n=this._lookupMap.get(r);return typeof n=="undefined"||n.length===0?null:n[n.length-1]},a.prototype.resolve=function(r,n,d){var S=null;if(n!==null){var k=this._map.get(n);if(typeof k=="undefined")return null;S=[];for(var we=0,We=k.length;we<We;we++){var Xe=k[we];Xe.keypressParts[1]===d&&S.push(Xe)}}else{var k=this._map.get(d);if(typeof k=="undefined")return null;S=k}var Qe=this._findCommand(r,S);return Qe?n===null&&Qe.keypressParts.length>1&&Qe.keypressParts[1]!==null?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:Qe.command,commandArgs:Qe.commandArgs,bubble:Qe.bubble}:null},a.prototype._findCommand=function(r,n){for(var d=n.length-1;d>=0;d--){var S=n[d];if(!a.contextMatchesRules(r,S.when))continue;return S}return null},a.contextMatchesRules=function(r,n){return n?n.evaluate(r):!0},a}(),qr=e("nrhi"),$i=function(){function a(r,n,d,S,k){this.resolvedKeybinding=r,this.keypressParts=r?Er(r.getDispatchParts()):[],this.bubble=n?n.charCodeAt(0)===94:!1,this.command=this.bubble?n.substr(1):n,this.commandArgs=d,this.when=S,this.isDefault=k}return a}();function Er(a){for(var r=[],n=0,d=a.length;n<d;n++){var S=a[n];if(!S)return r;r.push(S)}return r}var wr=e("i04g"),es=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),na=function(a){es(r,a);function r(n,d){var S=a.call(this)||this;if(d.length===0)throw Object(Ct.b)("parts");return S._os=n,S._parts=d,S}return r.prototype.getLabel=function(){var n=this;return wr.b.toLabel(this._os,this._parts,function(d){return n._getLabel(d)})},r.prototype.getAriaLabel=function(){var n=this;return wr.a.toLabel(this._os,this._parts,function(d){return n._getAriaLabel(d)})},r.prototype.isChord=function(){return this._parts.length>1},r.prototype.getParts=function(){var n=this;return this._parts.map(function(d){return n._getPart(d)})},r.prototype._getPart=function(n){return new B.d(n.ctrlKey,n.shiftKey,n.altKey,n.metaKey,this._getLabel(n),this._getAriaLabel(n))},r.prototype.getDispatchParts=function(){var n=this;return this._parts.map(function(d){return n._getDispatchPart(d)})},r}(B.c),ts=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),_r=function(a){ts(r,a);function r(n,d){return a.call(this,d,n.parts)||this}return r.prototype._keyCodeToUILabel=function(n){if(this._os===2)switch(n){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return B.b.toString(n)},r.prototype._getLabel=function(n){return n.isDuplicateModifierCase()?"":this._keyCodeToUILabel(n.keyCode)},r.prototype._getAriaLabel=function(n){return n.isDuplicateModifierCase()?"":B.b.toString(n.keyCode)},r.prototype._getDispatchPart=function(n){return r.getDispatchStr(n)},r.getDispatchStr=function(n){if(n.isModifierKey())return null;var d="";return n.ctrlKey&&(d+="ctrl+"),n.shiftKey&&(d+="shift+"),n.altKey&&(d+="alt+"),n.metaKey&&(d+="meta+"),d+=B.b.toString(n.keyCode),d},r}(na),Hn=e("sM1p"),Sr=e("EWX2"),Oi=e("A9l+"),os=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),ns=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},is=function(a,r){return function(n,d){r(n,d,a)}},rs=function(){for(var a=0,r=0,n=arguments.length;r<n;r++)a+=arguments[r].length;for(var d=Array(a),S=0,r=0;r<n;r++)for(var k=arguments[r],we=0,We=k.length;we<We;we++,S++)d[S]=k[we];return d},ia=function(){function a(r){this.model=r,this._onDispose=new R.a}return Object.defineProperty(a.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),a.prototype.dispose=function(){this._onDispose.fire()},a}();function ss(a,r,n){return Object(Dn.a)(a)?r(a):n(a)}var as=function(){function a(r){this.modelService=r}return a.prototype.setEditor=function(r){this.editor=r},a.prototype.createModelReference=function(r){var n=this,d=null;return this.editor&&(d=ss(this.editor,function(S){return n.findModel(S,r)},function(S){return n.findModel(S.getOriginalEditor(),r)||n.findModel(S.getModifiedEditor(),r)})),d?Promise.resolve(new Rt.c(new ia(d))):Promise.reject(new Error("Model not found"))},a.prototype.findModel=function(r,n){var d=this.modelService?this.modelService.getModel(n):r.getModel();return d&&d.uri.toString()!==n.toString()?null:d},a}(),ra=function(){function a(){}return a.prototype.show=function(){return a.NULL_PROGRESS_RUNNER},a.prototype.showWhile=function(r,n){return Promise.resolve(void 0)},a.NULL_PROGRESS_RUNNER={done:function(){},total:function(){},worked:function(){}},a}(),ls=function(){function a(){}return a}(),ds=function(){function a(){}return a.prototype.info=function(r){return this.notify({severity:li.a.Info,message:r})},a.prototype.warn=function(r){return this.notify({severity:li.a.Warning,message:r})},a.prototype.error=function(r){return this.notify({severity:li.a.Error,message:r})},a.prototype.notify=function(r){switch(r.severity){case li.a.Error:console.error(r.message);break;case li.a.Warning:console.warn(r.message);break;default:console.log(r.message);break}return a.NO_OP},a.prototype.status=function(r,n){return Rt.a.None},a.NO_OP=new Hn.b,a}(),cs=function(){function a(r){this._onWillExecuteCommand=new R.a,this._onDidExecuteCommand=new R.a,this._instantiationService=r,this._dynamicCommands=Object.create(null)}return a.prototype.addCommand=function(r){var n=this,d=r.id;return this._dynamicCommands[d]=r,Object(Rt.h)(function(){delete n._dynamicCommands[d]})},a.prototype.executeCommand=function(r){for(var n=[],d=1;d<arguments.length;d++)n[d-1]=arguments[d];var S=J.a.getCommand(r)||this._dynamicCommands[r];if(!S)return Promise.reject(new Error("command '"+r+"' not found"));try{this._onWillExecuteCommand.fire({commandId:r,args:n});var k=this._instantiationService.invokeFunction.apply(this._instantiationService,rs([S.handler],n));return this._onDidExecuteCommand.fire({commandId:r,args:n}),Promise.resolve(k)}catch(we){return Promise.reject(we)}},a}(),Lr=function(a){os(r,a);function r(n,d,S,k,we){var We=a.call(this,n,d,S,k)||this;return We._cachedResolver=null,We._dynamicKeybindings=[],We._register(ve.j(we,ve.d.KEY_DOWN,function(Xe){var Qe=new $o.a(Xe),yt=We._dispatch(Qe,Qe.target);yt&&(Qe.preventDefault(),Qe.stopPropagation())})),We}return r.prototype.addDynamicKeybinding=function(n,d,S,k){var we=this,We=Object(B.f)(d,ht.a),Xe=new Rt.b;We&&(this._dynamicKeybindings.push({keybinding:We,command:n,when:k,weight1:1e3,weight2:0}),Xe.add(Object(Rt.h)(function(){for(var yt=0;yt<we._dynamicKeybindings.length;yt++){var It=we._dynamicKeybindings[yt];if(It.command===n){we._dynamicKeybindings.splice(yt,1),we.updateResolver({source:1});return}}})));var Qe=this._commandService;if(Qe instanceof cs)Xe.add(Qe.addCommand({id:n,handler:S}));else throw new Error("Unknown command service!");return this.updateResolver({source:1}),Xe},r.prototype.updateResolver=function(n){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(n)},r.prototype._getResolver=function(){if(!this._cachedResolver){var n=this._toNormalizedKeybindingItems(qr.a.getDefaultKeybindings(),!0),d=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Qi(n,d)}return this._cachedResolver},r.prototype._documentHasFocus=function(){return document.hasFocus()},r.prototype._toNormalizedKeybindingItems=function(n,d){for(var S=[],k=0,we=0,We=n;we<We.length;we++){var Xe=We[we],Qe=Xe.when||void 0,yt=Xe.keybinding;if(!yt)S[k++]=new $i(void 0,Xe.command,Xe.commandArgs,Qe,d);else for(var It=this.resolveKeybinding(yt),Wt=0,Pt=It;Wt<Pt.length;Wt++){var ro=Pt[Wt];S[k++]=new $i(ro,Xe.command,Xe.commandArgs,Qe,d)}}return S},r.prototype.resolveKeybinding=function(n){return[new _r(n,ht.a)]},r.prototype.resolveKeyboardEvent=function(n){var d=new B.e(n.ctrlKey,n.shiftKey,n.altKey,n.metaKey,n.keyCode).toChord();return new _r(d,ht.a)},r}(Jr);function Mr(a){return a&&typeof a=="object"&&(!a.overrideIdentifier||typeof a.overrideIdentifier=="string")&&(!a.resource||a.resource instanceof z.a)}var Dr=function(){function a(){this._onDidChangeConfiguration=new R.a,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new $r(new Cr,new di)}return a.prototype.configuration=function(){return this._configuration},a.prototype.getValue=function(r,n){var d=typeof r=="string"?r:void 0,S=Mr(r)?r:Mr(n)?n:{};return this.configuration().getValue(d,S,void 0)},a.prototype.updateValue=function(r,n,d,S){return this.configuration().updateValue(r,n),Promise.resolve()},a.prototype.inspect=function(r,n){return n===void 0&&(n={}),this.configuration().inspect(r,n,void 0)},a}(),us=function(){function a(r){var n=this;this.configurationService=r,this._onDidChangeConfiguration=new R.a,this.configurationService.onDidChangeConfiguration(function(d){n._onDidChangeConfiguration.fire({affectedKeys:d.affectedKeys,affectsConfiguration:function(S,k){return d.affectsConfiguration(k)}})})}return a.prototype.getValue=function(r,n,d){var S=D.a.isIPosition(n)?n:null,k=S?typeof d=="string"?d:void 0:typeof n=="string"?n:void 0;return typeof k=="undefined"?this.configurationService.getValue():this.configurationService.getValue(k)},a}(),hs=function(){function a(r){this.configurationService=r}return a.prototype.getEOL=function(r,n){var d=this.configurationService.getValue("files.eol",{overrideIdentifier:n,resource:r});return d&&d!=="auto"?d:ht.d||ht.e?`
`:`\r
`},a=ns([is(0,On.a)],a),a}(),fs=function(){function a(){}return a.prototype.publicLog=function(r,n){return Promise.resolve(void 0)},a.prototype.publicLog2=function(r,n){return this.publicLog(r,n)},a}(),ms=function(){function a(){var r=z.a.from({scheme:a.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new Sr.b({uri:r,name:"",index:0})]}}return a.prototype.getWorkspace=function(){return this.workspace},a.prototype.getWorkspaceFolder=function(r){return r&&r.scheme===a.SCHEME?this.workspace.folders[0]:null},a.SCHEME="inmemory",a}();function ti(a,r,n){if(!r)return;if(!(a instanceof Dr))return;Object.keys(r).forEach(function(d){Object(yr.d)(d)&&a.updateValue("editor."+d,r[d]),n&&Object(yr.c)(d)&&a.updateValue("diffEditor."+d,r[d])})}var sa=function(){function a(r){this._modelService=r}return a.prototype.hasPreviewHandler=function(){return!1},a.prototype.apply=function(r,n){var d=new Map;if(r.edits)for(var S=0,k=r.edits;S<k.length;S++){var we=k[S];if(!gt.D.is(we))return Promise.reject(new Error("bad edit - only text edits are supported"));var We=this._modelService.getModel(we.resource);if(!We)return Promise.reject(new Error("bad edit - model not found"));var Xe=d.get(We);Xe||(Xe=[],d.set(We,Xe)),Xe.push(we.edit)}var Qe=0,yt=0;return d.forEach(function(It,Wt){Wt.pushStackElement(),Wt.pushEditOperations([],It.map(function(Pt){return Qr.a.replaceMove(W.a.lift(Pt.range),Pt.text)}),function(){return[]}),Wt.pushStackElement(),yt+=1,Qe+=It.length}),Promise.resolve({selection:void 0,ariaSummary:to.r(Oi.f.bulkEditServiceSummary,Qe,yt)})},a}(),Or=function(){function a(){}return a.prototype.getUriLabel=function(r,n){return r.scheme==="file"?r.fsPath:r.path},a}(),Tr=function(){function a(r){this._container=r,this.onLayout=R.b.None}return Object.defineProperty(a.prototype,"container",{get:function(){return this._container},enumerable:!0,configurable:!0}),a}(),ps=e("D3Dy"),gs=e("OBOq"),xr=e("nB0o"),Ar=e("lKfe"),Ci=e("ZlPH"),vs=e("cMOf"),Ti=e("HdwC"),ys=e("vATl"),aa=e("DTDp"),bs=e("WqXY"),Cs=e("GJhM"),ci=e("8HAY"),ui=e("sswD"),Vn=e("kYye"),gn=e("MD5Z"),Ln=e("t9D7"),Sn=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),xi=3,Ei=function(){function a(r,n,d,S){this.originalLineStart=r,this.originalLineEnd=n,this.modifiedLineStart=d,this.modifiedLineEnd=S}return a.prototype.getType=function(){return this.originalLineStart===0?1:this.modifiedLineStart===0?2:0},a}(),Ji=function(){function a(r){this.entries=r}return a}(),qi=function(a){Sn(r,a);function r(n){var d=a.call(this)||this;return d._width=0,d._diffEditor=n,d._isVisible=!1,d.shadow=Object(Ci.b)(document.createElement("div")),d.shadow.setClassName("diff-review-shadow"),d.actionBarContainer=Object(Ci.b)(document.createElement("div")),d.actionBarContainer.setClassName("diff-review-actions"),d._actionBar=d._register(new bs.a(d.actionBarContainer.domNode)),d._actionBar.push(new ci.a("diffreview.close",wn.a("label.close","Close"),"close-diff-review",!0,function(){return d.hide(),Promise.resolve(null)}),{label:!1,icon:!0}),d.domNode=Object(Ci.b)(document.createElement("div")),d.domNode.setClassName("diff-review monaco-editor-background"),d._content=Object(Ci.b)(document.createElement("div")),d._content.setClassName("diff-review-content"),d.scrollbar=d._register(new Cs.a(d._content.domNode,{})),d.domNode.domNode.appendChild(d.scrollbar.getDomNode()),d._register(n.onDidUpdateDiff(function(){if(!d._isVisible)return;d._diffs=d._compute(),d._render()})),d._register(n.getModifiedEditor().onDidChangeCursorPosition(function(){if(!d._isVisible)return;d._render()})),d._register(n.getOriginalEditor().onDidFocusEditorWidget(function(){d._isVisible&&d.hide()})),d._register(n.getModifiedEditor().onDidFocusEditorWidget(function(){d._isVisible&&d.hide()})),d._register(ve.o(d.domNode.domNode,"click",function(S){S.preventDefault();var k=ve.x(S.target,"diff-review-row");k&&d._goToRow(k)})),d._register(ve.o(d.domNode.domNode,"keydown",function(S){(S.equals(18)||S.equals(2048|18)||S.equals(512|18))&&(S.preventDefault(),d._goToRow(d._getNextRow())),(S.equals(16)||S.equals(2048|16)||S.equals(512|16))&&(S.preventDefault(),d._goToRow(d._getPrevRow())),(S.equals(9)||S.equals(2048|9)||S.equals(512|9)||S.equals(1024|9))&&(S.preventDefault(),d.hide()),(S.equals(10)||S.equals(3))&&(S.preventDefault(),d.accept())})),d._diffs=[],d._currentDiff=null,d}return r.prototype.prev=function(){var n=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var d=-1,S=0,k=this._diffs.length;S<k;S++)if(this._diffs[S]===this._currentDiff){d=S;break}n=this._diffs.length+d-1}else n=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;n=n%this._diffs.length,this._diffEditor.setPosition(new D.a(this._diffs[n].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())},r.prototype.next=function(){var n=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var d=-1,S=0,k=this._diffs.length;S<k;S++)if(this._diffs[S]===this._currentDiff){d=S;break}n=d+1}else n=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs.length===0)return;n=n%this._diffs.length,this._diffEditor.setPosition(new D.a(this._diffs[n].entries[0].modifiedLineStart,1)),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())},r.prototype.accept=function(){var n=-1,d=this._getCurrentFocusedRow();if(d){var S=parseInt(d.getAttribute("data-line"),10);isNaN(S)||(n=S)}this.hide(),n!==-1&&(this._diffEditor.setPosition(new D.a(n,1)),this._diffEditor.revealPosition(new D.a(n,1),1))},r.prototype.hide=function(){this._isVisible=!1,this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()},r.prototype._getPrevRow=function(){var n=this._getCurrentFocusedRow();return n?n.previousElementSibling?n.previousElementSibling:n:this._getFirstRow()},r.prototype._getNextRow=function(){var n=this._getCurrentFocusedRow();return n?n.nextElementSibling?n.nextElementSibling:n:this._getFirstRow()},r.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")},r.prototype._getCurrentFocusedRow=function(){var n=document.activeElement;return n&&/diff-review-row/.test(n.className)?n:null},r.prototype._goToRow=function(n){var d=this._getCurrentFocusedRow();n.tabIndex=0,n.focus(),d&&d!==n&&(d.tabIndex=-1),this.scrollbar.scanDomNode()},r.prototype.isVisible=function(){return this._isVisible},r.prototype.layout=function(n,d,S){this._width=d,this.shadow.setTop(n-6),this.shadow.setWidth(d),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(n),this.domNode.setWidth(d),this.domNode.setHeight(S),this._content.setHeight(S),this._content.setWidth(d),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))},r.prototype._compute=function(){var n=this._diffEditor.getLineChanges();if(!n||n.length===0)return[];var d=this._diffEditor.getOriginalEditor().getModel(),S=this._diffEditor.getModifiedEditor().getModel();return!d||!S?[]:r._mergeAdjacent(n,d.getLineCount(),S.getLineCount())},r._mergeAdjacent=function(n,d,S){if(!n||n.length===0)return[];for(var k=[],we=0,We=0,Xe=n.length;We<Xe;We++){var Qe=n[We],yt=Qe.originalStartLineNumber,It=Qe.originalEndLineNumber,Wt=Qe.modifiedStartLineNumber,Pt=Qe.modifiedEndLineNumber,ro=[],eo=0;{var Gt=It===0?yt:yt-1,Jt=Pt===0?Wt:Wt-1,co=1,So=1;if(We>0){var xo=n[We-1];xo.originalEndLineNumber===0?co=xo.originalStartLineNumber+1:co=xo.originalEndLineNumber+1,xo.modifiedEndLineNumber===0?So=xo.modifiedStartLineNumber+1:So=xo.modifiedEndLineNumber+1}var Po=Gt-xi+1,Go=Jt-xi+1;if(Po<co){var Xo=co-Po;Po=Po+Xo,Go=Go+Xo}if(Go<So){var Xo=So-Go;Po=Po+Xo,Go=Go+Xo}ro[eo++]=new Ei(Po,Gt,Go,Jt)}It!==0&&(ro[eo++]=new Ei(yt,It,0,0)),Pt!==0&&(ro[eo++]=new Ei(0,0,Wt,Pt));{var an=It===0?yt+1:It+1,yn=Pt===0?Wt+1:Pt+1,Zo=d,Yo=S;if(We+1<Xe){var mn=n[We+1];mn.originalEndLineNumber===0?Zo=mn.originalStartLineNumber:Zo=mn.originalStartLineNumber-1,mn.modifiedEndLineNumber===0?Yo=mn.modifiedStartLineNumber:Yo=mn.modifiedStartLineNumber-1}var en=an+xi-1,bn=yn+xi-1;if(en>Zo){var Xo=Zo-en;en=en+Xo,bn=bn+Xo}if(bn>Yo){var Xo=Yo-bn;en=en+Xo,bn=bn+Xo}ro[eo++]=new Ei(an,en,yn,bn)}k[we++]=new Ji(ro)}for(var Mn=k[0].entries,Bn=[],kn=0,We=1,Xe=k.length;We<Xe;We++){var Gn=k[We].entries,ri=Mn[Mn.length-1],Vi=Gn[0];if(ri.getType()===0&&Vi.getType()===0&&Vi.originalLineStart<=ri.originalLineEnd){Mn[Mn.length-1]=new Ei(ri.originalLineStart,Vi.originalLineEnd,ri.modifiedLineStart,Vi.modifiedLineEnd),Mn=Mn.concat(Gn.slice(1));continue}Bn[kn++]=new Ji(Mn),Mn=Gn}return Bn[kn++]=new Ji(Mn),Bn},r.prototype._findDiffIndex=function(n){for(var d=n.lineNumber,S=0,k=this._diffs.length;S<k;S++){var we=this._diffs[S].entries,We=we[we.length-1].modifiedLineEnd;if(d<=We)return S}return 0},r.prototype._render=function(){var n=this._diffEditor.getOriginalEditor().getOptions(),d=this._diffEditor.getModifiedEditor().getOptions(),S=this._diffEditor.getOriginalEditor().getModel(),k=this._diffEditor.getModifiedEditor().getModel(),we=S.getOptions(),We=k.getOptions();if(!this._isVisible||!S||!k){ve.t(this._content.domNode),this._currentDiff=null,this.scrollbar.scanDomNode();return}var Xe=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[Xe]===this._currentDiff)return;this._currentDiff=this._diffs[Xe];var Qe=this._diffs[Xe].entries,yt=document.createElement("div");yt.className="diff-review-table",yt.setAttribute("role","list"),Ti.a.applyFontInfoSlow(yt,d.get(34));for(var It=0,Wt=0,Pt=0,ro=0,eo=0,Gt=Qe.length;eo<Gt;eo++){var Jt=Qe[eo],co=Jt.originalLineStart,So=Jt.originalLineEnd,xo=Jt.modifiedLineStart,Po=Jt.modifiedLineEnd;co!==0&&(It===0||co<It)&&(It=co),So!==0&&(Wt===0||So>Wt)&&(Wt=So),xo!==0&&(Pt===0||xo<Pt)&&(Pt=xo),Po!==0&&(ro===0||Po>ro)&&(ro=Po)}var Go=document.createElement("div");Go.className="diff-review-row";var Xo=document.createElement("div");Xo.className="diff-review-cell diff-review-summary";var an=Wt-It+1,yn=ro-Pt+1;Xo.appendChild(document.createTextNode(Xe+1+"/"+this._diffs.length+": @@ -"+It+","+an+" +"+Pt+","+yn+" @@")),Go.setAttribute("data-line",String(Pt));var Zo=function(bn){return bn===0?wn.a("no_lines","no lines"):bn===1?wn.a("one_line","1 line"):wn.a("more_lines","{0} lines",bn)},Yo=Zo(an),mn=Zo(yn);Go.setAttribute("aria-label",wn.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}",Xe+1,this._diffs.length,It,Yo,Pt,mn)),Go.appendChild(Xo),Go.setAttribute("role","listitem"),yt.appendChild(Go);for(var en=Pt,eo=0,Gt=Qe.length;eo<Gt;eo++){var Jt=Qe[eo];r._renderSection(yt,Jt,en,this._width,n,S,we,d,k,We),Jt.modifiedLineStart!==0&&(en=Jt.modifiedLineEnd)}ve.t(this._content.domNode),this._content.domNode.appendChild(yt),this.scrollbar.scanDomNode()},r._renderSection=function(n,d,S,k,we,We,Xe,Qe,yt,It){var Wt=d.getType(),Pt="diff-review-row",ro="",eo="diff-review-spacer";switch(Wt){case 1:Pt="diff-review-row line-insert",ro=" char-insert",eo="diff-review-spacer insert-sign";break;case 2:Pt="diff-review-row line-delete",ro=" char-delete",eo="diff-review-spacer delete-sign";break}for(var Gt=d.originalLineStart,Jt=d.originalLineEnd,co=d.modifiedLineStart,So=d.modifiedLineEnd,xo=Math.max(So-co,Jt-Gt),Po=we.get(107),Go=Po.glyphMarginWidth+Po.lineNumbersWidth,Xo=Qe.get(107),an=10+Xo.glyphMarginWidth+Xo.lineNumbersWidth,yn=0;yn<=xo;yn++){var Zo=Gt===0?0:Gt+yn,Yo=co===0?0:co+yn,mn=document.createElement("div");mn.style.minWidth=k+"px",mn.className=Pt,mn.setAttribute("role","listitem"),Yo!==0&&(S=Yo),mn.setAttribute("data-line",String(S));var en=document.createElement("div");en.className="diff-review-cell",mn.appendChild(en);var bn=document.createElement("span");bn.style.width=Go+"px",bn.style.minWidth=Go+"px",bn.className="diff-review-line-number"+ro,Zo!==0?bn.appendChild(document.createTextNode(String(Zo))):bn.innerHTML="&#160;",en.appendChild(bn);var Mn=document.createElement("span");Mn.style.width=an+"px",Mn.style.minWidth=an+"px",Mn.style.paddingRight="10px",Mn.className="diff-review-line-number"+ro,Yo!==0?Mn.appendChild(document.createTextNode(String(Yo))):Mn.innerHTML="&#160;",en.appendChild(Mn);var Bn=document.createElement("span");Bn.className=eo,Bn.innerHTML="&#160;&#160;",en.appendChild(Bn);var kn=void 0;Yo!==0?(en.insertAdjacentHTML("beforeend",this._renderLine(yt,Qe,It.tabSize,Yo)),kn=yt.getLineContent(Yo)):(en.insertAdjacentHTML("beforeend",this._renderLine(We,we,Xe.tabSize,Zo)),kn=We.getLineContent(Zo)),kn.length===0&&(kn=wn.a("blankLine","blank"));var Gn="";switch(Wt){case 0:Gn=wn.a("equalLine","original {0}, modified {1}: {2}",Zo,Yo,kn);break;case 1:Gn=wn.a("insertLine","+ modified {0}: {1}",Yo,kn);break;case 2:Gn=wn.a("deleteLine","- original {0}: {1}",Zo,kn);break}mn.setAttribute("aria-label",Gn),n.appendChild(mn)}},r._renderLine=function(n,d,S,k){var we=n.getLineContent(k),We=d.get(34),Xe=(0<<11|1<<14|2<<23)>>>0,Qe=new Uint32Array(2);Qe[0]=we.length,Qe[1]=Xe;var yt=new _t.a(Qe,we),It=Xt.d.isBasicASCII(we,n.mightContainNonBasicASCII()),Wt=Xt.d.containsRTL(we,It,n.mightContainRTL()),Pt=Object(zt.e)(new zt.c(We.isMonospace&&!d.get(23),We.canUseHalfwidthRightwardsArrow,we,!1,It,Wt,0,yt,[],S,0,We.spaceWidth,We.middotWidth,d.get(88),d.get(74),d.get(69),d.get(35)!==T.d.OFF,null));return Pt.html},r}(Rt.a);Object(Ln.e)(function(a,r){var n=a.getColor(Vn.k);n&&r.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var d=a.getColor(gn.Vb);d&&r.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+d+" 0 -6px 6px -6px inset; }")});var er=function(a){Sn(r,a);function r(){return a.call(this,{id:"editor.action.diffReview.next",label:wn.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:_n.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return r.prototype.run=function(n,d){var S=Ir(n);S&&S.diffReviewNext()},r}(ui.b),Rr=function(a){Sn(r,a);function r(){return a.call(this,{id:"editor.action.diffReview.prev",label:wn.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:_n.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1024|65,weight:100}})||this}return r.prototype.run=function(n,d){var S=Ir(n);S&&S.diffReviewPrev()},r}(ui.b);function Ir(a){for(var r=a.get(ue.a),n=r.listDiffEditors(),d=0,S=n.length;d<S;d++){var k=n[d];if(k.hasWidgetFocus())return k}return null}Object(ui.f)(er),Object(ui.f)(Rr);var Es=e("erNZ"),Jo=e("tX9W"),Ai=e("MvK1"),ws=e("dBaI"),Rn=e("Cg/j"),wi=e("8HsV"),Xn=e("Uzvx"),zn=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Ri=function(a,r,n,d){function S(k){return k instanceof n?k:new n(function(we){we(k)})}return new(n||(n=Promise))(function(k,we){function We(yt){try{Qe(d.next(yt))}catch(It){we(It)}}function Xe(yt){try{Qe(d.throw(yt))}catch(It){we(It)}}function Qe(yt){yt.done?k(yt.value):S(yt.value).then(We,Xe)}Qe((d=d.apply(a,r||[])).next())})},tr=function(a,r){var n={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},d,S,k,we;return we={next:We(0),throw:We(1),return:We(2)},typeof Symbol=="function"&&(we[Symbol.iterator]=function(){return this}),we;function We(Qe){return function(yt){return Xe([Qe,yt])}}function Xe(Qe){if(d)throw new TypeError("Generator is already executing.");for(;n;)try{if(d=1,S&&(k=Qe[0]&2?S.return:Qe[0]?S.throw||((k=S.return)&&k.call(S),0):S.next)&&!(k=k.call(S,Qe[1])).done)return k;(S=0,k)&&(Qe=[Qe[0]&2,k.value]);switch(Qe[0]){case 0:case 1:k=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,S=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(k=n.trys,k=k.length>0&&k[k.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!k||Qe[1]>k[0]&&Qe[1]<k[3])){n.label=Qe[1];break}if(Qe[0]===6&&n.label<k[1]){n.label=k[1],k=Qe;break}if(k&&n.label<k[2]){n.label=k[2],n.ops.push(Qe);break}k[2]&&n.ops.pop(),n.trys.pop();continue}Qe=r.call(a,n)}catch(yt){Qe=[6,yt],S=0}finally{d=k=0}if(Qe[0]&5)throw Qe[1];return{value:Qe[0]?Qe[1]:void 0,done:!0}}},_i=function(a){zn(r,a);function r(n,d,S,k,we,We){var Xe=a.call(this)||this;Xe._viewZoneId=n,Xe._marginDomNode=d,Xe.editor=S,Xe.diff=k,Xe._contextMenuService=we,Xe._clipboardService=We,Xe._visibility=!1,Xe._marginDomNode.style.zIndex="10",Xe._diffActions=document.createElement("div"),Xe._diffActions.className="codicon codicon-lightbulb lightbulb-glyph",Xe._diffActions.style.position="absolute";var Qe=S.getOption(49),yt=S.getModel().getEOL();Xe._diffActions.style.right="0px",Xe._diffActions.style.visibility="hidden",Xe._diffActions.style.height=Qe+"px",Xe._diffActions.style.lineHeight=Qe+"px",Xe._marginDomNode.appendChild(Xe._diffActions);var It=[];It.push(new ci.a("diff.clipboard.copyDeletedContent",k.originalEndLineNumber>k.modifiedStartLineNumber?wn.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):wn.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,function(){return Ri(Xe,void 0,void 0,function(){return tr(this,function(Gt){switch(Gt.label){case 0:return[4,this._clipboardService.writeText(k.originalContent.join(yt)+yt)];case 1:return Gt.sent(),[2]}})})}));var Wt=0,Pt=void 0;k.originalEndLineNumber>k.modifiedStartLineNumber&&(Pt=new ci.a("diff.clipboard.copyDeletedLineContent",wn.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",k.originalStartLineNumber),void 0,!0,function(){return Ri(Xe,void 0,void 0,function(){return tr(this,function(Gt){switch(Gt.label){case 0:return[4,this._clipboardService.writeText(k.originalContent[Wt])];case 1:return Gt.sent(),[2]}})})}),It.push(Pt));var ro=S.getOption(68);ro||It.push(new ci.a("diff.inline.revertChange",wn.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,function(){return Ri(Xe,void 0,void 0,function(){var Gt,Gt;return tr(this,function(Jt){return k.modifiedEndLineNumber===0?(Gt=S.getModel().getLineMaxColumn(k.modifiedStartLineNumber),S.executeEdits("diffEditor",[{range:new W.a(k.modifiedStartLineNumber,Gt,k.modifiedStartLineNumber,Gt),text:yt+k.originalContent.join(yt)}])):(Gt=S.getModel().getLineMaxColumn(k.modifiedEndLineNumber),S.executeEdits("diffEditor",[{range:new W.a(k.modifiedStartLineNumber,1,k.modifiedEndLineNumber,Gt),text:k.originalContent.join(yt)}])),[2]})})}));var eo=function(Gt,Jt){Xe._contextMenuService.showContextMenu({getAnchor:function(){return{x:Gt,y:Jt}},getActions:function(){return Pt&&(Pt.label=wn.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",k.originalStartLineNumber+Wt)),It},autoSelectFirstItem:!0})};return Xe._register(ve.o(Xe._diffActions,"mousedown",function(Gt){var Jt=ve.C(Xe._diffActions),co=Jt.top,So=Jt.height,xo=Math.floor(Qe/3);Gt.preventDefault(),eo(Gt.posx,co+So+xo)})),Xe._register(S.onMouseMove(function(Gt){if(Gt.target.type===8||Gt.target.type===5){var Jt=Gt.target.detail.viewZoneId;Jt===Xe._viewZoneId?(Xe.visibility=!0,Wt=Xe._updateLightBulbPosition(Xe._marginDomNode,Gt.event.browserEvent.y,Qe)):Xe.visibility=!1}else Xe.visibility=!1})),Xe._register(S.onMouseDown(function(Gt){if(!Gt.event.rightButton)return;if(Gt.target.type===8||Gt.target.type===5){var Jt=Gt.target.detail.viewZoneId;Jt===Xe._viewZoneId&&(Gt.event.preventDefault(),Wt=Xe._updateLightBulbPosition(Xe._marginDomNode,Gt.event.browserEvent.y,Qe),eo(Gt.event.posx,Gt.event.posy+Qe))}})),Xe}return Object.defineProperty(r.prototype,"visibility",{get:function(){return this._visibility},set:function(n){this._visibility!==n&&(this._visibility=n,n?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")},enumerable:!0,configurable:!0}),r.prototype._updateLightBulbPosition=function(n,d,S){var k=ve.C(n).top,we=d-k,We=Math.floor(we/S),Xe=We*S;return this._diffActions.style.top=Xe+"px",We},r}(Rt.a),Ii=e("tTk5"),_s=e("o39E"),hi=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Ss=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},$n=function(a,r){return function(n,d){r(n,d,a)}},Jn=function(){function a(r,n){this._contextMenuService=r,this._clipboardService=n,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return a.prototype.getForeignViewZones=function(r){var n=this;return r.filter(function(d){return!n._zonesMap[String(d.id)]})},a.prototype.clean=function(r){var n=this;this._zones.length>0&&r.changeViewZones(function(d){for(var S=0,k=n._zones.length;S<k;S++)d.removeZone(n._zones[S])}),this._zones=[],this._zonesMap={},this._decorations=r.deltaDecorations(this._decorations,[])},a.prototype.apply=function(r,n,d,S){var k=this,we=S?ys.c.capture(r):null;r.changeViewZones(function(We){for(var Xe=0,Qe=k._zones.length;Xe<Qe;Xe++)We.removeZone(k._zones[Xe]);for(var Xe=0,yt=k.inlineDiffMargins.length;Xe<yt;Xe++)k.inlineDiffMargins[Xe].dispose();k._zones=[],k._zonesMap={},k.inlineDiffMargins=[];for(var Xe=0,It=d.zones.length;Xe<It;Xe++){var Wt=d.zones[Xe];Wt.suppressMouseDown=!0;var Pt=We.addZone(Wt);k._zones.push(Pt),k._zonesMap[String(Pt)]=!0,d.zones[Xe].diff&&Wt.marginDomNode&&k._clipboardService&&(Wt.suppressMouseDown=!1,k.inlineDiffMargins.push(new _i(Pt,Wt.marginDomNode,r,d.zones[Xe].diff,k._contextMenuService,k._clipboardService)))}}),we&&we.restore(r),this._decorations=r.deltaDecorations(this._decorations,d.decorations),n&&n.setZones(d.overviewZones)},a}(),Ls=0,or=function(a){hi(r,a);function r(n,d,S,k,we,We,Xe,Qe,yt,It,Wt){var Pt=a.call(this)||this;Pt._editorProgressService=Wt,Pt._onDidDispose=Pt._register(new R.a),Pt.onDidDispose=Pt._onDidDispose.event,Pt._onDidUpdateDiff=Pt._register(new R.a),Pt.onDidUpdateDiff=Pt._onDidUpdateDiff.event,Pt._lastOriginalWarning=null,Pt._lastModifiedWarning=null,Pt._editorWorkerService=k,Pt._codeEditorService=Xe,Pt._contextKeyService=Pt._register(we.createScoped(n)),Pt._contextKeyService.createKey("isInDiffEditor",!0),Pt._themeService=Qe,Pt._notificationService=yt,Pt.id=++Ls,Pt._state=0,Pt._updatingDiffProgress=null,Pt._domElement=n,d=d||{},Pt._renderSideBySide=!0,typeof d.renderSideBySide!="undefined"&&(Pt._renderSideBySide=d.renderSideBySide),Pt._maxComputationTime=5e3,typeof d.maxComputationTime!="undefined"&&(Pt._maxComputationTime=d.maxComputationTime),Pt._ignoreTrimWhitespace=!0,typeof d.ignoreTrimWhitespace!="undefined"&&(Pt._ignoreTrimWhitespace=d.ignoreTrimWhitespace),Pt._renderIndicators=!0,typeof d.renderIndicators!="undefined"&&(Pt._renderIndicators=d.renderIndicators),Pt._originalIsEditable=!1,typeof d.originalEditable!="undefined"&&(Pt._originalIsEditable=Boolean(d.originalEditable)),Pt._updateDecorationsRunner=Pt._register(new ut.d(function(){return Pt._updateDecorations()},0)),Pt._containerDomElement=document.createElement("div"),Pt._containerDomElement.className=r._getClassName(Pt._themeService.getTheme(),Pt._renderSideBySide),Pt._containerDomElement.style.position="relative",Pt._containerDomElement.style.height="100%",Pt._domElement.appendChild(Pt._containerDomElement),Pt._overviewViewportDomElement=Object(Ci.b)(document.createElement("div")),Pt._overviewViewportDomElement.setClassName("diffViewport"),Pt._overviewViewportDomElement.setPosition("absolute"),Pt._overviewDomElement=document.createElement("div"),Pt._overviewDomElement.className="diffOverview",Pt._overviewDomElement.style.position="absolute",Pt._overviewDomElement.appendChild(Pt._overviewViewportDomElement.domNode),Pt._register(ve.o(Pt._overviewDomElement,"mousedown",function(an){Pt.modifiedEditor.delegateVerticalScrollbarMouseDown(an)})),Pt._containerDomElement.appendChild(Pt._overviewDomElement),Pt._originalDomNode=document.createElement("div"),Pt._originalDomNode.className="editor original",Pt._originalDomNode.style.position="absolute",Pt._originalDomNode.style.height="100%",Pt._containerDomElement.appendChild(Pt._originalDomNode),Pt._modifiedDomNode=document.createElement("div"),Pt._modifiedDomNode.className="editor modified",Pt._modifiedDomNode.style.position="absolute",Pt._modifiedDomNode.style.height="100%",Pt._containerDomElement.appendChild(Pt._modifiedDomNode),Pt._beginUpdateDecorationsTimeout=-1,Pt._currentlyChangingViewZones=!1,Pt._diffComputationToken=0,Pt._originalEditorState=new Jn(It,S),Pt._modifiedEditorState=new Jn(It,S),Pt._isVisible=!0,Pt._isHandlingScrollEvent=!1,Pt._elementSizeObserver=Pt._register(new _s.a(Pt._containerDomElement,void 0,function(){return Pt._onDidContainerSizeChanged()})),d.automaticLayout&&Pt._elementSizeObserver.startObserving(),Pt._diffComputationResult=null;var ro=Pt._contextKeyService.createScoped();ro.createKey("isInDiffLeftEditor",!0);var eo=new wi.a;eo.set(_n.c,ro);var Gt=We.createChild(eo),Jt=Pt._contextKeyService.createScoped();Jt.createKey("isInDiffRightEditor",!0);var co=new wi.a;co.set(_n.c,Jt);var So=We.createChild(co);Pt.originalEditor=Pt._createLeftHandSideEditor(d,Gt),Pt.modifiedEditor=Pt._createRightHandSideEditor(d,So),Pt._originalOverviewRuler=null,Pt._modifiedOverviewRuler=null,Pt._reviewPane=new qi(Pt),Pt._containerDomElement.appendChild(Pt._reviewPane.domNode.domNode),Pt._containerDomElement.appendChild(Pt._reviewPane.shadow.domNode),Pt._containerDomElement.appendChild(Pt._reviewPane.actionBarContainer.domNode),Pt._enableSplitViewResizing=!0,typeof d.enableSplitViewResizing!="undefined"&&(Pt._enableSplitViewResizing=d.enableSplitViewResizing),Pt._renderSideBySide?Pt._setStrategy(new rr(Pt._createDataSource(),Pt._enableSplitViewResizing)):Pt._setStrategy(new Ni(Pt._createDataSource(),Pt._enableSplitViewResizing)),Pt._register(Qe.onThemeChange(function(an){Pt._strategy&&Pt._strategy.applyColors(an)&&Pt._updateDecorationsRunner.schedule(),Pt._containerDomElement.className=r._getClassName(Pt._themeService.getTheme(),Pt._renderSideBySide)}));for(var xo=ui.d.getDiffEditorContributions(),Po=0,Go=xo;Po<Go.length;Po++){var Xo=Go[Po];try{Pt._register(We.createInstance(Xo.ctor,Pt))}catch(an){Object(Ct.e)(an)}}return Pt._codeEditorService.addDiffEditor(Pt),Pt}return r.prototype._setState=function(n){if(this._state===n)return;this._state=n,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),this._state===1&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3))},r.prototype.hasWidgetFocus=function(){return ve.K(document.activeElement,this._domElement)},r.prototype.diffReviewNext=function(){this._reviewPane.next()},r.prototype.diffReviewPrev=function(){this._reviewPane.prev()},r._getClassName=function(n,d){var S="monaco-diff-editor monaco-editor-background ";return d&&(S+="side-by-side "),S+=Object(Ln.d)(n.type),S},r.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()},r.prototype._createLeftHandSideEditor=function(n,d){var S=this,k=this._createInnerEditor(d,this._originalDomNode,this._adjustOptionsForLeftHandSide(n,this._originalIsEditable));return this._register(k.onDidScrollChange(function(we){if(S._isHandlingScrollEvent)return;if(!we.scrollTopChanged&&!we.scrollLeftChanged&&!we.scrollHeightChanged)return;S._isHandlingScrollEvent=!0,S.modifiedEditor.setScrollPosition({scrollLeft:we.scrollLeft,scrollTop:we.scrollTop}),S._isHandlingScrollEvent=!1,S._layoutOverviewViewport()})),this._register(k.onDidChangeViewZones(function(){S._onViewZonesChanged()})),this._register(k.onDidChangeModelContent(function(){S._isVisible&&S._beginUpdateDecorationsSoon()})),k},r.prototype._createRightHandSideEditor=function(n,d){var S=this,k=this._createInnerEditor(d,this._modifiedDomNode,this._adjustOptionsForRightHandSide(n));return this._register(k.onDidScrollChange(function(we){if(S._isHandlingScrollEvent)return;if(!we.scrollTopChanged&&!we.scrollLeftChanged&&!we.scrollHeightChanged)return;S._isHandlingScrollEvent=!0,S.originalEditor.setScrollPosition({scrollLeft:we.scrollLeft,scrollTop:we.scrollTop}),S._isHandlingScrollEvent=!1,S._layoutOverviewViewport()})),this._register(k.onDidChangeViewZones(function(){S._onViewZonesChanged()})),this._register(k.onDidChangeConfiguration(function(we){we.hasChanged(34)&&k.getModel()&&S._onViewZonesChanged()})),this._register(k.onDidChangeModelContent(function(){S._isVisible&&S._beginUpdateDecorationsSoon()})),this._register(k.onDidChangeModelOptions(function(we){we.tabSize&&S._updateDecorationsRunner.schedule()})),k},r.prototype._createInnerEditor=function(n,d,S){return n.createInstance(xr.a,d,S,{})},r.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(),a.prototype.dispose.call(this)},r.prototype.getId=function(){return this.getEditorType()+":"+this.id},r.prototype.getEditorType=function(){return jt.a.IDiffEditor},r.prototype.getLineChanges=function(){return this._diffComputationResult?this._diffComputationResult.changes:null},r.prototype.getOriginalEditor=function(){return this.originalEditor},r.prototype.getModifiedEditor=function(){return this.modifiedEditor},r.prototype.updateOptions=function(n){var d=!1;typeof n.renderSideBySide!="undefined"&&(this._renderSideBySide!==n.renderSideBySide&&(this._renderSideBySide=n.renderSideBySide,d=!0)),typeof n.maxComputationTime!="undefined"&&(this._maxComputationTime=n.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());var S=!1;typeof n.ignoreTrimWhitespace!="undefined"&&(this._ignoreTrimWhitespace!==n.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=n.ignoreTrimWhitespace,S=!0)),typeof n.renderIndicators!="undefined"&&(this._renderIndicators!==n.renderIndicators&&(this._renderIndicators=n.renderIndicators,S=!0)),S&&this._beginUpdateDecorations(),typeof n.originalEditable!="undefined"&&(this._originalIsEditable=Boolean(n.originalEditable)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(n)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(n,this._originalIsEditable)),typeof n.enableSplitViewResizing!="undefined"&&(this._enableSplitViewResizing=n.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),d&&(this._renderSideBySide?this._setStrategy(new rr(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new Ni(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=r._getClassName(this._themeService.getTheme(),this._renderSideBySide))},r.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}},r.prototype.setModel=function(n){if(n&&(!n.original||!n.modified))throw new Error(n.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(n?n.original:null),this.modifiedEditor.setModel(n?n.modified:null),this._updateDecorationsRunner.cancel(),n&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),n&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()},r.prototype.getDomNode=function(){return this._domElement},r.prototype.getVisibleColumnFromPosition=function(n){return this.modifiedEditor.getVisibleColumnFromPosition(n)},r.prototype.getPosition=function(){return this.modifiedEditor.getPosition()},r.prototype.setPosition=function(n){this.modifiedEditor.setPosition(n)},r.prototype.revealLine=function(n,d){d===void 0&&(d=0),this.modifiedEditor.revealLine(n,d)},r.prototype.revealLineInCenter=function(n,d){d===void 0&&(d=0),this.modifiedEditor.revealLineInCenter(n,d)},r.prototype.revealLineInCenterIfOutsideViewport=function(n,d){d===void 0&&(d=0),this.modifiedEditor.revealLineInCenterIfOutsideViewport(n,d)},r.prototype.revealPosition=function(n,d){d===void 0&&(d=0),this.modifiedEditor.revealPosition(n,d)},r.prototype.revealPositionInCenter=function(n,d){d===void 0&&(d=0),this.modifiedEditor.revealPositionInCenter(n,d)},r.prototype.revealPositionInCenterIfOutsideViewport=function(n,d){d===void 0&&(d=0),this.modifiedEditor.revealPositionInCenterIfOutsideViewport(n,d)},r.prototype.getSelection=function(){return this.modifiedEditor.getSelection()},r.prototype.getSelections=function(){return this.modifiedEditor.getSelections()},r.prototype.setSelection=function(n){this.modifiedEditor.setSelection(n)},r.prototype.setSelections=function(n){this.modifiedEditor.setSelections(n)},r.prototype.revealLines=function(n,d,S){S===void 0&&(S=0),this.modifiedEditor.revealLines(n,d,S)},r.prototype.revealLinesInCenter=function(n,d,S){S===void 0&&(S=0),this.modifiedEditor.revealLinesInCenter(n,d,S)},r.prototype.revealLinesInCenterIfOutsideViewport=function(n,d,S){S===void 0&&(S=0),this.modifiedEditor.revealLinesInCenterIfOutsideViewport(n,d,S)},r.prototype.revealRange=function(n,d,S,k){d===void 0&&(d=0),S===void 0&&(S=!1),k===void 0&&(k=!0),this.modifiedEditor.revealRange(n,d,S,k)},r.prototype.revealRangeInCenter=function(n,d){d===void 0&&(d=0),this.modifiedEditor.revealRangeInCenter(n,d)},r.prototype.revealRangeInCenterIfOutsideViewport=function(n,d){d===void 0&&(d=0),this.modifiedEditor.revealRangeInCenterIfOutsideViewport(n,d)},r.prototype.revealRangeAtTop=function(n,d){d===void 0&&(d=0),this.modifiedEditor.revealRangeAtTop(n,d)},r.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()},r.prototype.saveViewState=function(){var n=this.originalEditor.saveViewState(),d=this.modifiedEditor.saveViewState();return{original:n,modified:d}},r.prototype.restoreViewState=function(n){if(n.original&&n.modified){var d=n;this.originalEditor.restoreViewState(d.original),this.modifiedEditor.restoreViewState(d.modified)}},r.prototype.layout=function(n){this._elementSizeObserver.observe(n)},r.prototype.focus=function(){this.modifiedEditor.focus()},r.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()},r.prototype.trigger=function(n,d,S){this.modifiedEditor.trigger(n,d,S)},r.prototype.changeDecorations=function(n){return this.modifiedEditor.changeDecorations(n)},r.prototype._onDidContainerSizeChanged=function(){this._doLayout()},r.prototype._getReviewHeight=function(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0},r.prototype._layoutOverviewRulers=function(){if(!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;var n=this._elementSizeObserver.getHeight(),d=this._getReviewHeight(),S=r.ENTIRE_DIFF_OVERVIEW_WIDTH-2*r.ONE_OVERVIEW_WIDTH,k=this.modifiedEditor.getLayoutInfo();k&&(this._originalOverviewRuler.setLayout({top:0,width:r.ONE_OVERVIEW_WIDTH,right:S+r.ONE_OVERVIEW_WIDTH,height:n-d}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:r.ONE_OVERVIEW_WIDTH,height:n-d}))},r.prototype._onViewZonesChanged=function(){if(this._currentlyChangingViewZones)return;this._updateDecorationsRunner.schedule()},r.prototype._beginUpdateDecorationsSoon=function(){var n=this;this._beginUpdateDecorationsTimeout!==-1&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(function(){return n._beginUpdateDecorations()},r.UPDATE_DIFF_DECORATIONS_DELAY)},r._equals=function(n,d){return!n&&!d?!0:!n||!d?!1:n.toString()===d.toString()},r.prototype._beginUpdateDecorations=function(){var n=this;this._beginUpdateDecorationsTimeout=-1;var d=this.originalEditor.getModel(),S=this.modifiedEditor.getModel();if(!d||!S)return;this._diffComputationToken++;var k=this._diffComputationToken;if(this._setState(1),!this._editorWorkerService.canComputeDiff(d.uri,S.uri)){(!r._equals(d.uri,this._lastOriginalWarning)||!r._equals(S.uri,this._lastModifiedWarning))&&(this._lastOriginalWarning=d.uri,this._lastModifiedWarning=S.uri,this._notificationService.warn(wn.a("diff.tooLarge","Cannot compare files because one file is too large.")));return}this._editorWorkerService.computeDiff(d.uri,S.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(function(we){k===n._diffComputationToken&&d===n.originalEditor.getModel()&&S===n.modifiedEditor.getModel()&&(n._setState(2),n._diffComputationResult=we,n._updateDecorationsRunner.schedule(),n._onDidUpdateDiff.fire())},function(we){k===n._diffComputationToken&&d===n.originalEditor.getModel()&&S===n.modifiedEditor.getModel()&&(n._setState(2),n._diffComputationResult=null,n._updateDecorationsRunner.schedule())})},r.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)},r.prototype._updateDecorations=function(){if(!this.originalEditor.getModel()||!this.modifiedEditor.getModel()||!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;var n=this._diffComputationResult?this._diffComputationResult.changes:[],d=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),S=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),k=this._strategy.getEditorsDiffDecorations(n,this._ignoreTrimWhitespace,this._renderIndicators,d,S,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,k.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,k.modified,!0)}finally{this._currentlyChangingViewZones=!1}},r.prototype._adjustOptionsForSubEditor=function(n){var d=Dt.c(n||{});return d.inDiffEditor=!0,d.wordWrap="off",d.wordWrapMinified=!1,d.automaticLayout=!1,d.scrollbar=d.scrollbar||{},d.scrollbar.vertical="visible",d.folding=!1,d.codeLens=!1,d.fixedOverflowWidgets=!0,d.minimap||(d.minimap={}),d.minimap.enabled=!1,d},r.prototype._adjustOptionsForLeftHandSide=function(n,d){var S=this._adjustOptionsForSubEditor(n);return S.readOnly=!d,S.extraEditorClassName="original-in-monaco-diff-editor",S},r.prototype._adjustOptionsForRightHandSide=function(n){var d=this._adjustOptionsForSubEditor(n);return d.revealHorizontalRightPadding=T.e.revealHorizontalRightPadding.defaultValue+r.ENTIRE_DIFF_OVERVIEW_WIDTH,d.scrollbar.verticalHasArrows=!1,d.extraEditorClassName="modified-in-monaco-diff-editor",d},r.prototype.doLayout=function(){this._elementSizeObserver.observe(),this._doLayout()},r.prototype._doLayout=function(){var n=this._elementSizeObserver.getWidth(),d=this._elementSizeObserver.getHeight(),S=this._getReviewHeight(),k=this._strategy.layout();this._originalDomNode.style.width=k+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=n-k+"px",this._modifiedDomNode.style.left=k+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=d-S+"px",this._overviewDomElement.style.width=r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=n-r.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(r.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:k,height:d-S}),this.modifiedEditor.layout({width:n-k-r.ENTIRE_DIFF_OVERVIEW_WIDTH,height:d-S}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(d-S,n,S),this._layoutOverviewViewport()},r.prototype._layoutOverviewViewport=function(){var n=this._computeOverviewViewport();n?(this._overviewViewportDomElement.setTop(n.top),this._overviewViewportDomElement.setHeight(n.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))},r.prototype._computeOverviewViewport=function(){var n=this.modifiedEditor.getLayoutInfo();if(!n)return null;var d=this.modifiedEditor.getScrollTop(),S=this.modifiedEditor.getScrollHeight(),k=Math.max(0,n.height),we=Math.max(0,k-2*0),We=S>0?we/S:0,Xe=Math.max(0,Math.floor(n.height*We)),Qe=Math.floor(d*We);return{height:Xe,top:Qe}},r.prototype._createDataSource=function(){var n=this;return{getWidth:function(){return n._elementSizeObserver.getWidth()},getHeight:function(){return n._elementSizeObserver.getHeight()-n._getReviewHeight()},getContainerDomNode:function(){return n._containerDomElement},relayoutEditors:function(){n._doLayout()},getOriginalEditor:function(){return n.originalEditor},getModifiedEditor:function(){return n.modifiedEditor}}},r.prototype._setStrategy=function(n){this._strategy&&this._strategy.dispose(),this._strategy=n,n.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},r.prototype._getLineChangeAtOrBeforeLineNumber=function(n,d){var S=this._diffComputationResult?this._diffComputationResult.changes:[];if(S.length===0||n<d(S[0]))return null;for(var k=0,we=S.length-1;k<we;){var We=Math.floor((k+we)/2),Xe=d(S[We]),Qe=We+1<=we?d(S[We+1]):1073741824;n<Xe?we=We-1:n>=Qe?k=We+1:(k=We,we=We)}return S[k]},r.prototype._getEquivalentLineForOriginalLineNumber=function(n){var d=this._getLineChangeAtOrBeforeLineNumber(n,function(Qe){return Qe.originalStartLineNumber});if(!d)return n;var S=d.originalStartLineNumber+(d.originalEndLineNumber>0?-1:0),k=d.modifiedStartLineNumber+(d.modifiedEndLineNumber>0?-1:0),we=d.originalEndLineNumber>0?d.originalEndLineNumber-d.originalStartLineNumber+1:0,We=d.modifiedEndLineNumber>0?d.modifiedEndLineNumber-d.modifiedStartLineNumber+1:0,Xe=n-S;return Xe<=we?k+Math.min(Xe,We):k+We-we+Xe},r.prototype._getEquivalentLineForModifiedLineNumber=function(n){var d=this._getLineChangeAtOrBeforeLineNumber(n,function(Qe){return Qe.modifiedStartLineNumber});if(!d)return n;var S=d.originalStartLineNumber+(d.originalEndLineNumber>0?-1:0),k=d.modifiedStartLineNumber+(d.modifiedEndLineNumber>0?-1:0),we=d.originalEndLineNumber>0?d.originalEndLineNumber-d.originalStartLineNumber+1:0,We=d.modifiedEndLineNumber>0?d.modifiedEndLineNumber-d.modifiedStartLineNumber+1:0,Xe=n-k;return Xe<=We?S+Math.min(Xe,we):S+we-We+Xe},r.prototype.getDiffLineInformationForOriginal=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(n)}:null},r.prototype.getDiffLineInformationForModified=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(n)}:null},r.ONE_OVERVIEW_WIDTH=15,r.ENTIRE_DIFF_OVERVIEW_WIDTH=30,r.UPDATE_DIFF_DECORATIONS_DELAY=200,r=Ss([$n(3,it.a),$n(4,_n.c),$n(5,Rn.a),$n(6,ue.a),$n(7,Ln.c),$n(8,Hn.a),$n(9,Xn.a),$n(10,Ii.a)],r),r}(Rt.a),Nr=function(a){hi(r,a);function r(n){var d=a.call(this)||this;return d._dataSource=n,d._insertColor=null,d._removeColor=null,d}return r.prototype.applyColors=function(n){var d=(n.getColor(gn.j)||gn.g).transparent(2),S=(n.getColor(gn.l)||gn.h).transparent(2),k=!d.equals(this._insertColor)||!S.equals(this._removeColor);return this._insertColor=d,this._removeColor=S,k},r.prototype.getEditorsDiffDecorations=function(n,d,S,k,we,We,Xe){we=we.sort(function(Wt,Pt){return Wt.afterLineNumber-Pt.afterLineNumber}),k=k.sort(function(Wt,Pt){return Wt.afterLineNumber-Pt.afterLineNumber});var Qe=this._getViewZones(n,k,we,We,Xe,S),yt=this._getOriginalEditorDecorations(n,d,S,We,Xe),It=this._getModifiedEditorDecorations(n,d,S,We,Xe);return{original:{decorations:yt.decorations,overviewZones:yt.overviewZones,zones:Qe.original},modified:{decorations:It.decorations,overviewZones:It.overviewZones,zones:Qe.modified}}},r}(Rt.a),nr=function(){function a(r){this._source=r,this._index=-1,this.current=null,this.advance()}return a.prototype.advance=function(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null},a}(),ir=function(){function a(r,n,d,S,k){this.lineChanges=r,this.originalForeignVZ=n,this.originalLineHeight=d,this.modifiedForeignVZ=S,this.modifiedLineHeight=k}return a.prototype.getViewZones=function(){for(var r={original:[],modified:[]},n=0,d=0,S=0,k=0,we=0,We=0,Xe=function(Zo,Yo){return Zo.afterLineNumber-Yo.afterLineNumber},Qe=function(Zo,Yo){if(Yo.domNode===null&&Zo.length>0){var mn=Zo[Zo.length-1];if(mn.afterLineNumber===Yo.afterLineNumber&&mn.domNode===null){mn.heightInLines+=Yo.heightInLines;return}}Zo.push(Yo)},yt=new nr(this.modifiedForeignVZ),It=new nr(this.originalForeignVZ),Wt=0,Pt=this.lineChanges.length;Wt<=Pt;Wt++){var ro=Wt<Pt?this.lineChanges[Wt]:null;ro!==null?(S=ro.originalStartLineNumber+(ro.originalEndLineNumber>0?-1:0),k=ro.modifiedStartLineNumber+(ro.modifiedEndLineNumber>0?-1:0),d=ro.originalEndLineNumber>0?ro.originalEndLineNumber-ro.originalStartLineNumber+1:0,n=ro.modifiedEndLineNumber>0?ro.modifiedEndLineNumber-ro.modifiedStartLineNumber+1:0,we=Math.max(ro.originalStartLineNumber,ro.originalEndLineNumber),We=Math.max(ro.modifiedStartLineNumber,ro.modifiedEndLineNumber)):(S+=1e7+d,k+=1e7+n,we=S,We=k);for(var eo=[],Gt=[];yt.current&&yt.current.afterLineNumber<=We;){var Jt=void 0;yt.current.afterLineNumber<=k?Jt=S-k+yt.current.afterLineNumber:Jt=we;var co=null;ro&&ro.modifiedStartLineNumber<=yt.current.afterLineNumber&&yt.current.afterLineNumber<=ro.modifiedEndLineNumber&&(co=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),eo.push({afterLineNumber:Jt,heightInLines:yt.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:co}),yt.advance()}for(;It.current&&It.current.afterLineNumber<=we;){var Jt=void 0;It.current.afterLineNumber<=S?Jt=k-S+It.current.afterLineNumber:Jt=We,Gt.push({afterLineNumber:Jt,heightInLines:It.current.height/this.originalLineHeight,domNode:null}),It.advance()}if(ro!==null&&fi(ro)){var So=this._produceOriginalFromDiff(ro,d,n);So&&eo.push(So)}if(ro!==null&&oi(ro)){var So=this._produceModifiedFromDiff(ro,d,n);So&&Gt.push(So)}var xo=0,Po=0;for(eo=eo.sort(Xe),Gt=Gt.sort(Xe);xo<eo.length&&Po<Gt.length;){var Go=eo[xo],Xo=Gt[Po],an=Go.afterLineNumber-S,yn=Xo.afterLineNumber-k;an<yn?(Qe(r.original,Go),xo++):yn<an?(Qe(r.modified,Xo),Po++):Go.shouldNotShrink?(Qe(r.original,Go),xo++):Xo.shouldNotShrink?(Qe(r.modified,Xo),Po++):Go.heightInLines>=Xo.heightInLines?(Go.heightInLines-=Xo.heightInLines,Po++):(Xo.heightInLines-=Go.heightInLines,xo++)}for(;xo<eo.length;)Qe(r.original,eo[xo]),xo++;for(;Po<Gt.length;)Qe(r.modified,Gt[Po]),Po++}return{original:a._ensureDomNodes(r.original),modified:a._ensureDomNodes(r.modified)}},a._ensureDomNodes=function(r){return r.map(function(n){return n.domNode||(n.domNode=Os()),n})},a}();function Yn(a,r,n,d,S){return{range:new W.a(a,r,n,d),options:S}}var Tn={charDelete:Jo.a.register({className:"char-delete"}),charDeleteWholeLine:Jo.a.register({className:"char-delete",isWholeLine:!0}),charInsert:Jo.a.register({className:"char-insert"}),charInsertWholeLine:Jo.a.register({className:"char-insert",isWholeLine:!0}),lineInsert:Jo.a.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:Jo.a.register({className:"line-insert",linesDecorationsClassName:"insert-sign codicon codicon-add",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:Jo.a.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:Jo.a.register({className:"line-delete",linesDecorationsClassName:"delete-sign codicon codicon-remove",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:Jo.a.register({marginClassName:"line-delete"})},rr=function(a){hi(r,a);function r(n,d){var S=a.call(this,n)||this;return S._disableSash=d===!1,S._sashRatio=null,S._sashPosition=null,S._startSashPosition=null,S._sash=S._register(new vs.a(S._dataSource.getContainerDomNode(),S)),S._disableSash&&(S._sash.state=0),S._sash.onDidStart(function(){return S.onSashDragStart()}),S._sash.onDidChange(function(k){return S.onSashDrag(k)}),S._sash.onDidEnd(function(){return S.onSashDragEnd()}),S._sash.onDidReset(function(){return S.onSashReset()}),S}return r.prototype.setEnableSplitViewResizing=function(n){var d=n===!1;this._disableSash!==d&&(this._disableSash=d,this._sash.state=this._disableSash?0:3)},r.prototype.layout=function(n){n===void 0&&(n=this._sashRatio);var d=this._dataSource.getWidth(),S=d-or.ENTIRE_DIFF_OVERVIEW_WIDTH,k=Math.floor((n||.5)*S),we=Math.floor(.5*S);return k=this._disableSash?we:k||we,S>r.MINIMUM_EDITOR_WIDTH*2?(k<r.MINIMUM_EDITOR_WIDTH&&(k=r.MINIMUM_EDITOR_WIDTH),k>S-r.MINIMUM_EDITOR_WIDTH&&(k=S-r.MINIMUM_EDITOR_WIDTH)):k=we,this._sashPosition!==k&&(this._sashPosition=k,this._sash.layout()),this._sashPosition},r.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},r.prototype.onSashDrag=function(n){var d=this._dataSource.getWidth(),S=d-or.ENTIRE_DIFF_OVERVIEW_WIDTH,k=this.layout((this._startSashPosition+(n.currentX-n.startX))/S);this._sashRatio=k/S,this._dataSource.relayoutEditors()},r.prototype.onSashDragEnd=function(){this._sash.layout()},r.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},r.prototype.getVerticalSashTop=function(n){return 0},r.prototype.getVerticalSashLeft=function(n){return this._sashPosition},r.prototype.getVerticalSashHeight=function(n){return this._dataSource.getHeight()},r.prototype._getViewZones=function(n,d,S,k,we){var We=new Ms(n,d,k.getOption(49),S,we.getOption(49));return We.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,d,S,k,we){for(var We=String(this._removeColor),Xe={decorations:[],overviewZones:[]},Qe=k.getModel(),yt=0,It=n.length;yt<It;yt++){var Wt=n[yt];if(oi(Wt)&&(Xe.decorations.push({range:new W.a(Wt.originalStartLineNumber,1,Wt.originalEndLineNumber,1073741824),options:S?Tn.lineDeleteWithSign:Tn.lineDelete}),(!fi(Wt)||!Wt.charChanges)&&Xe.decorations.push(Yn(Wt.originalStartLineNumber,1,Wt.originalEndLineNumber,1073741824,Tn.charDeleteWholeLine)),Xe.overviewZones.push(new Ai.a(Wt.originalStartLineNumber,Wt.originalEndLineNumber,We)),Wt.charChanges))for(var Pt=0,ro=Wt.charChanges.length;Pt<ro;Pt++){var eo=Wt.charChanges[Pt];if(oi(eo))if(d)for(var Gt=eo.originalStartLineNumber;Gt<=eo.originalEndLineNumber;Gt++){var Jt=void 0,co=void 0;Gt===eo.originalStartLineNumber?Jt=eo.originalStartColumn:Jt=Qe.getLineFirstNonWhitespaceColumn(Gt),Gt===eo.originalEndLineNumber?co=eo.originalEndColumn:co=Qe.getLineLastNonWhitespaceColumn(Gt),Xe.decorations.push(Yn(Gt,Jt,Gt,co,Tn.charDelete))}else Xe.decorations.push(Yn(eo.originalStartLineNumber,eo.originalStartColumn,eo.originalEndLineNumber,eo.originalEndColumn,Tn.charDelete))}}return Xe},r.prototype._getModifiedEditorDecorations=function(n,d,S,k,we){for(var We=String(this._insertColor),Xe={decorations:[],overviewZones:[]},Qe=we.getModel(),yt=0,It=n.length;yt<It;yt++){var Wt=n[yt];if(fi(Wt)&&(Xe.decorations.push({range:new W.a(Wt.modifiedStartLineNumber,1,Wt.modifiedEndLineNumber,1073741824),options:S?Tn.lineInsertWithSign:Tn.lineInsert}),(!oi(Wt)||!Wt.charChanges)&&Xe.decorations.push(Yn(Wt.modifiedStartLineNumber,1,Wt.modifiedEndLineNumber,1073741824,Tn.charInsertWholeLine)),Xe.overviewZones.push(new Ai.a(Wt.modifiedStartLineNumber,Wt.modifiedEndLineNumber,We)),Wt.charChanges))for(var Pt=0,ro=Wt.charChanges.length;Pt<ro;Pt++){var eo=Wt.charChanges[Pt];if(fi(eo))if(d)for(var Gt=eo.modifiedStartLineNumber;Gt<=eo.modifiedEndLineNumber;Gt++){var Jt=void 0,co=void 0;Gt===eo.modifiedStartLineNumber?Jt=eo.modifiedStartColumn:Jt=Qe.getLineFirstNonWhitespaceColumn(Gt),Gt===eo.modifiedEndLineNumber?co=eo.modifiedEndColumn:co=Qe.getLineLastNonWhitespaceColumn(Gt),Xe.decorations.push(Yn(Gt,Jt,Gt,co,Tn.charInsert))}else Xe.decorations.push(Yn(eo.modifiedStartLineNumber,eo.modifiedStartColumn,eo.modifiedEndLineNumber,eo.modifiedEndColumn,Tn.charInsert))}}return Xe},r.MINIMUM_EDITOR_WIDTH=100,r}(Nr),Ms=function(a){hi(r,a);function r(n,d,S,k,we){return a.call(this,n,d,S,k,we)||this}return r.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null},r.prototype._produceOriginalFromDiff=function(n,d,S){return S>d?{afterLineNumber:Math.max(n.originalStartLineNumber,n.originalEndLineNumber),heightInLines:S-d,domNode:null}:null},r.prototype._produceModifiedFromDiff=function(n,d,S){return d>S?{afterLineNumber:Math.max(n.modifiedStartLineNumber,n.modifiedEndLineNumber),heightInLines:d-S,domNode:null}:null},r}(ir),Ni=function(a){hi(r,a);function r(n,d){var S=a.call(this,n)||this;return S.decorationsLeft=n.getOriginalEditor().getLayoutInfo().decorationsLeft,S._register(n.getOriginalEditor().onDidLayoutChange(function(k){S.decorationsLeft!==k.decorationsLeft&&(S.decorationsLeft=k.decorationsLeft,n.relayoutEditors())})),S}return r.prototype.setEnableSplitViewResizing=function(n){},r.prototype._getViewZones=function(n,d,S,k,we,We){var Xe=new Ds(n,d,S,k,we,We);return Xe.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,d,S,k,we){for(var We=String(this._removeColor),Xe={decorations:[],overviewZones:[]},Qe=0,yt=n.length;Qe<yt;Qe++){var It=n[Qe];oi(It)&&(Xe.decorations.push({range:new W.a(It.originalStartLineNumber,1,It.originalEndLineNumber,1073741824),options:Tn.lineDeleteMargin}),Xe.overviewZones.push(new Ai.a(It.originalStartLineNumber,It.originalEndLineNumber,We)))}return Xe},r.prototype._getModifiedEditorDecorations=function(n,d,S,k,we){for(var We=String(this._insertColor),Xe={decorations:[],overviewZones:[]},Qe=we.getModel(),yt=0,It=n.length;yt<It;yt++){var Wt=n[yt];if(fi(Wt))if(Xe.decorations.push({range:new W.a(Wt.modifiedStartLineNumber,1,Wt.modifiedEndLineNumber,1073741824),options:S?Tn.lineInsertWithSign:Tn.lineInsert}),Xe.overviewZones.push(new Ai.a(Wt.modifiedStartLineNumber,Wt.modifiedEndLineNumber,We)),Wt.charChanges)for(var Pt=0,ro=Wt.charChanges.length;Pt<ro;Pt++){var eo=Wt.charChanges[Pt];if(fi(eo))if(d)for(var Gt=eo.modifiedStartLineNumber;Gt<=eo.modifiedEndLineNumber;Gt++){var Jt=void 0,co=void 0;Gt===eo.modifiedStartLineNumber?Jt=eo.modifiedStartColumn:Jt=Qe.getLineFirstNonWhitespaceColumn(Gt),Gt===eo.modifiedEndLineNumber?co=eo.modifiedEndColumn:co=Qe.getLineLastNonWhitespaceColumn(Gt),Xe.decorations.push(Yn(Gt,Jt,Gt,co,Tn.charInsert))}else Xe.decorations.push(Yn(eo.modifiedStartLineNumber,eo.modifiedStartColumn,eo.modifiedEndLineNumber,eo.modifiedEndColumn,Tn.charInsert))}else Xe.decorations.push(Yn(Wt.modifiedStartLineNumber,1,Wt.modifiedEndLineNumber,1073741824,Tn.charInsertWholeLine))}return Xe},r.prototype.layout=function(){return Math.max(5,this.decorationsLeft)},r}(Nr),Ds=function(a){hi(r,a);function r(n,d,S,k,we,We){var Xe=a.call(this,n,d,k.getOption(49),S,we.getOption(49))||this;return Xe.originalModel=k.getModel(),Xe.modifiedEditorOptions=we.getOptions(),Xe.modifiedEditorTabSize=we.getModel().getOptions().tabSize,Xe.renderIndicators=We,Xe}return r.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var n=document.createElement("div");return n.className="inline-added-margin-view-zone",n},r.prototype._produceOriginalFromDiff=function(n,d,S){var k=document.createElement("div");return k.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(n.originalStartLineNumber,n.originalEndLineNumber),heightInLines:S,domNode:document.createElement("div"),marginDomNode:k}},r.prototype._produceModifiedFromDiff=function(n,d,S){var k=[];if(n.charChanges)for(var we=0,We=n.charChanges.length;we<We;we++){var Xe=n.charChanges[we];oi(Xe)&&k.push(new Xt.a(new W.a(Xe.originalStartLineNumber,Xe.originalStartColumn,Xe.originalEndLineNumber,Xe.originalEndColumn),"char-delete",0))}for(var Qe=Object(Es.a)(1e4),yt=[],It=this.modifiedEditorOptions.get(107),Wt=this.modifiedEditorOptions.get(34),Pt=It.decorationsWidth,ro=this.modifiedEditorOptions.get(49),eo=Wt.typicalHalfwidthCharacterWidth,Gt=0,Jt=[],co=n.originalStartLineNumber;co<=n.originalEndLineNumber;co++)if(Gt=Math.max(Gt,this._renderOriginalLine(co-n.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,co,k,Qe)),Jt.push(this.originalModel.getLineContent(co)),this.renderIndicators){var So=co-n.originalStartLineNumber;yt=yt.concat(['<div class="delete-sign codicon codicon-remove" style="position:absolute;top:'+So*ro+"px;width:"+Pt+"px;height:"+ro+'px;right:0;"></div>'])}Gt+=this.modifiedEditorOptions.get(79);var xo=document.createElement("div");xo.className="view-lines line-delete",xo.innerHTML=Qe.build(),Ti.a.applyFontInfoSlow(xo,Wt);var Po=document.createElement("div");return Po.className="inline-deleted-margin-view-zone",Po.innerHTML=yt.join(""),Ti.a.applyFontInfoSlow(Po,Wt),{shouldNotShrink:!0,afterLineNumber:n.modifiedEndLineNumber===0?n.modifiedStartLineNumber:n.modifiedStartLineNumber-1,heightInLines:d,minWidthInPx:Gt*eo,domNode:xo,marginDomNode:Po,diff:{originalStartLineNumber:n.originalStartLineNumber,originalEndLineNumber:n.originalEndLineNumber,modifiedStartLineNumber:n.modifiedStartLineNumber,modifiedEndLineNumber:n.modifiedEndLineNumber,originalContent:Jt}}},r.prototype._renderOriginalLine=function(n,d,S,k,we,We,Xe){var Qe=d.getLineTokens(we),yt=Qe.getLineContent(),It=S.get(34),Wt=ws.a.filter(We,we,1,yt.length+1);Xe.appendASCIIString('<div class="view-line'),We.length===0&&Xe.appendASCIIString(" char-delete"),Xe.appendASCIIString('" style="top:'),Xe.appendASCIIString(String(n*S.get(49))),Xe.appendASCIIString('px;width:1000000px;">');var Pt=Xt.d.isBasicASCII(yt,d.mightContainNonBasicASCII()),ro=Xt.d.containsRTL(yt,Pt,d.mightContainRTL()),eo=Object(zt.d)(new zt.c(It.isMonospace&&!S.get(23),It.canUseHalfwidthRightwardsArrow,yt,!1,Pt,ro,0,Qe,Wt,k,0,It.spaceWidth,It.middotWidth,S.get(88),S.get(74),S.get(69),S.get(35)!==T.d.OFF,null),Xe);Xe.appendASCIIString("</div>");var Gt=eo.characterMapping.getAbsoluteOffsets();return Gt.length>0?Gt[Gt.length-1]:0},r}(ir);function fi(a){return a.modifiedEndLineNumber>0}function oi(a){return a.originalEndLineNumber>0}function Os(){var a=document.createElement("div");return a.className="diagonal-fill",a}Object(Ln.e)(function(a,r){var n=a.getColor(gn.j);n&&(r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var d=a.getColor(gn.l);d&&(r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+d+"; }"),r.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+d+"; }"),r.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+d+"; }"));var S=a.getColor(gn.k);S&&r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+(a.type==="hc"?"dashed":"solid")+" "+S+"; }");var k=a.getColor(gn.m);k&&r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+(a.type==="hc"?"dashed":"solid")+" "+k+"; }");var we=a.getColor(gn.Vb);we&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+we+"; }");var We=a.getColor(gn.i);We&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+We+"; }")});var Ts=e("9Y+e"),Si=e("scqD"),Kn=e("fjLI"),ni=e("bexQ"),mi=e("R3nR"),xs=e("9XeP"),sr=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),ar=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},sn=function(a,r){return function(n,d){r(n,d,a)}},As=function(){for(var a=0,r=0,n=arguments.length;r<n;r++)a+=arguments[r].length;for(var d=Array(a),S=0,r=0;r<n;r++)for(var k=arguments[r],we=0,We=k.length;we<We;we++,S++)d[S]=k[we];return d},Rs=0,jr=!1;function Is(){if(jr)return;jr=!0,gs.b(document.body)}var ji=function(a){sr(r,a);function r(n,d,S,k,we,We,Xe,Qe,yt,It){var Wt=this;return d=d||{},d.ariaLabel=d.ariaLabel||Oi.g.editorViewAccessibleLabel,d.ariaLabel=d.ariaLabel+";"+(ps.i?Oi.g.accessibilityHelpMessageIE:Oi.g.accessibilityHelpMessage),Wt=a.call(this,n,d,{},S,k,we,We,Qe,yt,It)||this,Xe instanceof Lr?Wt._standaloneKeybindingService=Xe:Wt._standaloneKeybindingService=null,Is(),Wt}return r.prototype.addCommand=function(n,d,S){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var k="DYNAMIC_"+ ++Rs,we=_n.a.deserialize(S);return this._standaloneKeybindingService.addDynamicKeybinding(k,n,d,we),k},r.prototype.createContextKey=function(n,d){return this._contextKeyService.createKey(n,d)},r.prototype.addAction=function(n){var d=this;if(typeof n.id!="string"||typeof n.label!="string"||typeof n.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"),Rt.a.None;var S=n.id,k=n.label,we=_n.a.and(_n.a.equals("editorId",this.getId()),_n.a.deserialize(n.precondition)),We=n.keybindings,Xe=_n.a.and(we,_n.a.deserialize(n.keybindingContext)),Qe=n.contextMenuGroupId||null,yt=n.contextMenuOrder||0,It=function(So){for(var xo=[],Po=1;Po<arguments.length;Po++)xo[Po-1]=arguments[Po];return Promise.resolve(n.run.apply(n,As([d],xo)))},Wt=new Rt.b,Pt=this.getId()+":"+S;if(Wt.add(J.a.registerCommand(Pt,It)),Qe){var ro={command:{id:Pt,title:k},when:we,group:Qe,order:yt};Wt.add(Kn.c.appendMenuItem(7,ro))}if(Array.isArray(We))for(var eo=0,Gt=We;eo<Gt.length;eo++){var Jt=Gt[eo];Wt.add(this._standaloneKeybindingService.addDynamicKeybinding(Pt,Jt,It,Xe))}var co=new Ts.a(Pt,k,k,we,It,this._contextKeyService);return this._actions[S]=co,Wt.add(Object(Rt.h)(function(){delete d._actions[S]})),Wt},r=ar([sn(2,Rn.a),sn(3,ue.a),sn(4,J.b),sn(5,_n.c),sn(6,ni.a),sn(7,Ln.c),sn(8,Hn.a),sn(9,mi.b)],r),r}(xr.a),lr=function(a){sr(r,a);function r(n,d,S,k,we,We,Xe,Qe,yt,It,Wt,Pt,ro){var eo=this;ti(Pt,d,!1);var Gt=It.registerEditorContainer(n);d=d||{},typeof d.theme=="string"&&It.setTheme(d.theme);var Jt=d.model;delete d.model,eo=a.call(this,n,d,k,we,We,Xe,Qe,It,Wt,ro)||this,eo._contextViewService=yt,eo._configurationService=Pt,eo._register(S),eo._register(Gt);var co;if(typeof Jt=="undefined"?(co=self.monaco.editor.createModel(d.value||"",d.language||"text/plain"),eo._ownsModel=!0):(co=Jt,eo._ownsModel=!1),eo._attachModel(co),co){var So={oldModelUrl:null,newModelUrl:co.uri};eo._onDidChangeModel.fire(So)}return eo}return r.prototype.dispose=function(){a.prototype.dispose.call(this)},r.prototype.updateOptions=function(n){ti(this._configurationService,n,!1),a.prototype.updateOptions.call(this,n)},r.prototype._attachModel=function(n){a.prototype._attachModel.call(this,n),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)},r.prototype._postDetachModelCleanup=function(n){a.prototype._postDetachModelCleanup.call(this,n),n&&this._ownsModel&&(n.dispose(),this._ownsModel=!1)},r=ar([sn(3,Rn.a),sn(4,ue.a),sn(5,J.b),sn(6,_n.c),sn(7,ni.a),sn(8,Xn.b),sn(9,Si.a),sn(10,Hn.a),sn(11,On.a),sn(12,mi.b)],r),r}(ji),Ns=function(a){sr(r,a);function r(n,d,S,k,we,We,Xe,Qe,yt,It,Wt,Pt,ro,eo,Gt){var Jt=this;ti(Pt,d,!0);var co=It.registerEditorContainer(n);return d=d||{},typeof d.theme=="string"&&(d.theme=It.setTheme(d.theme)),Jt=a.call(this,n,d,Gt,Qe,we,k,yt,It,Wt,ro,eo)||this,Jt._contextViewService=Xe,Jt._configurationService=Pt,Jt._register(S),Jt._register(co),Jt._contextViewService.setContainer(Jt._containerDomElement),Jt}return r.prototype.dispose=function(){a.prototype.dispose.call(this)},r.prototype.updateOptions=function(n){ti(this._configurationService,n,!0),a.prototype.updateOptions.call(this,n)},r.prototype._createInnerEditor=function(n,d,S){return n.createInstance(ji,d,S)},r.prototype.getOriginalEditor=function(){return a.prototype.getOriginalEditor.call(this)},r.prototype.getModifiedEditor=function(){return a.prototype.getModifiedEditor.call(this)},r.prototype.addCommand=function(n,d,S){return this.getModifiedEditor().addCommand(n,d,S)},r.prototype.createContextKey=function(n,d){return this.getModifiedEditor().createContextKey(n,d)},r.prototype.addAction=function(n){return this.getModifiedEditor().addAction(n)},r=ar([sn(3,Rn.a),sn(4,_n.c),sn(5,ni.a),sn(6,Xn.b),sn(7,it.a),sn(8,ue.a),sn(9,Si.a),sn(10,Hn.a),sn(11,On.a),sn(12,Xn.a),sn(13,Ii.a),sn(14,Object(Rn.d)(xs.a))],r),r}(or),js=e("x/UI"),Ps=e("WBhO"),Pi=function(){function a(r){this._languageIdentifier=r}return a.prototype.getId=function(){return this._languageIdentifier.language},a}(),dr=e("MrjW"),cr=e("l2gE"),ki="text/plain",Pr="application/unknown",Fi=[],kr=[],Fr=[];function pi(a,r){r===void 0&&(r=!1);var n=ur(a);Fi.push(n),n.userConfigured?Fr.push(n):kr.push(n),r&&!n.userConfigured&&Fi.forEach(function(d){if(d.mime===n.mime||d.userConfigured)return;n.extension&&d.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&d.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&d.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&d.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>")})}function ur(a){return{id:a.id,mime:a.mime,filename:a.filename,extension:a.extension,filepattern:a.filepattern,firstline:a.firstline,userConfigured:a.userConfigured,filenameLowercase:a.filename?a.filename.toLowerCase():void 0,extensionLowercase:a.extension?a.extension.toLowerCase():void 0,filepatternLowercase:a.filepattern?a.filepattern.toLowerCase():void 0,filepatternOnPath:a.filepattern?a.filepattern.indexOf(dr.posix.sep)>=0:!1}}function Li(a,r){var n;if(a)switch(a.scheme){case Ce.b.file:n=a.fsPath;break;case Ce.b.data:var d=he.a.parseMetaData(a);n=d.get(he.a.META_DATA_LABEL);break;default:n=a.path}if(!n)return[Pr];n=n.toLowerCase();var S=Object(dr.basename)(n),k=Wr(n,S,Fr);if(k)return[k,ki];var we=Wr(n,S,kr);if(we)return[we,ki];if(r){var We=ii(r);if(We)return[We,ki]}return[Pr]}function Wr(a,r,n){for(var d=null,S=null,k=null,we=n.length-1;we>=0;we--){var We=n[we];if(r===We.filenameLowercase){d=We;break}if(We.filepattern&&(!S||We.filepattern.length>S.filepattern.length)){var Xe=We.filepatternOnPath?a:r;Object(cr.a)(We.filepatternLowercase,Xe)&&(S=We)}We.extension&&((!k||We.extension.length>k.extension.length)&&(Object(to.m)(r,We.extensionLowercase)&&(k=We)))}return d?d.mime:S?S.mime:k?k.mime:null}function ii(a){if(Object(to.P)(a)&&(a=a.substr(1)),a.length>0)for(var r=Fi.length-1;r>=0;r--){var n=Fi[r];if(!n.firstline)continue;var d=a.match(n.firstline);if(d&&d.length>0)return n.mime}return null}var gi=e("MqQJ"),hr=e("ic2d"),ks=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),qn=Object.prototype.hasOwnProperty,Fs=function(a){ks(r,a);function r(n,d){n===void 0&&(n=!0),d===void 0&&(d=!1);var S=a.call(this)||this;return S._onDidChange=S._register(new R.a),S.onDidChange=S._onDidChange.event,S._warnOnOverwrite=d,S._nextLanguageId2=1,S._languageIdToLanguage=[],S._languageToLanguageId=Object.create(null),S._languages={},S._mimeTypesMap={},S._nameMap={},S._lowercaseNameMap={},n&&(S._initializeFromRegistry(),S._register(gi.a.onDidChangeLanguages(function(k){return S._initializeFromRegistry()}))),S}return r.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var n=gi.a.getLanguages();this._registerLanguages(n)},r.prototype._registerLanguages=function(n){for(var d=this,S=0,k=n;S<k.length;S++){var we=k[S];this._registerLanguage(we)}this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(function(We){var Xe=d._languages[We];Xe.name&&(d._nameMap[Xe.name]=Xe.identifier),Xe.aliases.forEach(function(Qe){d._lowercaseNameMap[Qe.toLowerCase()]=Xe.identifier}),Xe.mimetypes.forEach(function(Qe){d._mimeTypesMap[Qe]=Xe.identifier})}),hr.a.as(Xi.a.Configuration).registerOverrideIdentifiers(gi.a.getLanguages().map(function(We){return We.id})),this._onDidChange.fire()},r.prototype._getLanguageId=function(n){if(this._languageToLanguageId[n])return this._languageToLanguageId[n];var d=this._nextLanguageId2++;return this._languageIdToLanguage[d]=n,this._languageToLanguageId[n]=d,d},r.prototype._registerLanguage=function(n){var d=n.id,S;if(qn.call(this._languages,d))S=this._languages[d];else{var k=this._getLanguageId(d);S={identifier:new gt.r(d,k),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[d]=S}this._mergeLanguage(S,n)},r.prototype._mergeLanguage=function(n,d){var S,k=d.id,we=null;if(Array.isArray(d.mimetypes)&&d.mimetypes.length>0&&((S=n.mimetypes).push.apply(S,d.mimetypes),we=d.mimetypes[0]),we||(we="text/x-"+k,n.mimetypes.push(we)),Array.isArray(d.extensions))for(var We=0,Xe=d.extensions;We<Xe.length;We++){var Qe=Xe[We];pi({id:k,mime:we,extension:Qe},this._warnOnOverwrite),n.extensions.push(Qe)}if(Array.isArray(d.filenames))for(var yt=0,It=d.filenames;yt<It.length;yt++){var Wt=It[yt];pi({id:k,mime:we,filename:Wt},this._warnOnOverwrite),n.filenames.push(Wt)}if(Array.isArray(d.filenamePatterns))for(var Pt=0,ro=d.filenamePatterns;Pt<ro.length;Pt++){var eo=ro[Pt];pi({id:k,mime:we,filepattern:eo},this._warnOnOverwrite)}if(typeof d.firstLine=="string"&&d.firstLine.length>0){var Gt=d.firstLine;Gt.charAt(0)!=="^"&&(Gt="^"+Gt);try{var Jt=new RegExp(Gt);to.I(Jt)||pi({id:k,mime:we,firstline:Jt},this._warnOnOverwrite)}catch(an){Object(Ct.e)(an)}}n.aliases.push(k);var co=null;if(typeof d.aliases!="undefined"&&Array.isArray(d.aliases)&&(d.aliases.length===0?co=[null]:co=d.aliases),co!==null)for(var So=0,xo=co;So<xo.length;So++){var Po=xo[So];if(!Po||Po.length===0)continue;n.aliases.push(Po)}var Go=co!==null&&co.length>0;if(!(Go&&co[0]===null)){var Xo=(Go?co[0]:null)||k;(Go||!n.name)&&(n.name=Xo)}d.configuration&&n.configurationFiles.push(d.configuration)},r.prototype.isRegisteredMode=function(n){return qn.call(this._mimeTypesMap,n)?!0:qn.call(this._languages,n)},r.prototype.getModeIdForLanguageNameLowercase=function(n){return qn.call(this._lowercaseNameMap,n)?this._lowercaseNameMap[n].language:null},r.prototype.extractModeIds=function(n){var d=this;return n?n.split(",").map(function(S){return S.trim()}).map(function(S){return qn.call(d._mimeTypesMap,S)?d._mimeTypesMap[S].language:S}).filter(function(S){return qn.call(d._languages,S)}):[]},r.prototype.getLanguageIdentifier=function(n){if(n===Tt.b||n===0)return Tt.a;var d;if(typeof n=="string")d=n;else if(d=this._languageIdToLanguage[n],!d)return null;return qn.call(this._languages,d)?this._languages[d].identifier:null},r.prototype.getModeIdsFromFilepathOrFirstLine=function(n,d){if(!n&&!d)return[];var S=Li(n,d);return this.extractModeIds(S.join(","))},r}(Rt.a),Ws=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Br=function(a){Ws(r,a);function r(n,d){var S=a.call(this)||this;return S._onDidChange=S._register(new R.a),S.onDidChange=S._onDidChange.event,S._selector=d,S.languageIdentifier=S._selector(),S._register(n(function(){return S._evaluate()})),S}return r.prototype._evaluate=function(){var n=this._selector();if(n.id===this.languageIdentifier.id)return;this.languageIdentifier=n,this._onDidChange.fire(this.languageIdentifier)},r}(Rt.a),Bs=function(){function a(r){var n=this;r===void 0&&(r=!1),this._onDidCreateMode=new R.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new R.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Fs(!0,r),this._registry.onDidChange(function(){return n._onLanguagesMaybeChanged.fire()})}return a.prototype.isRegisteredMode=function(r){return this._registry.isRegisteredMode(r)},a.prototype.getModeIdForLanguageName=function(r){return this._registry.getModeIdForLanguageNameLowercase(r)},a.prototype.getModeIdByFilepathOrFirstLine=function(r,n){var d=this._registry.getModeIdsFromFilepathOrFirstLine(r,n);return Object(dt.l)(d,null)},a.prototype.getModeId=function(r){var n=this._registry.extractModeIds(r);return Object(dt.l)(n,null)},a.prototype.getLanguageIdentifier=function(r){return this._registry.getLanguageIdentifier(r)},a.prototype.create=function(r){var n=this;return new Br(this.onLanguagesMaybeChanged,function(){var d=n.getModeId(r);return n._createModeAndGetLanguageIdentifier(d)})},a.prototype.createByFilepathOrFirstLine=function(r,n){var d=this;return new Br(this.onLanguagesMaybeChanged,function(){var S=d.getModeIdByFilepathOrFirstLine(r,n);return d._createModeAndGetLanguageIdentifier(S)})},a.prototype._createModeAndGetLanguageIdentifier=function(r){var n=this.getLanguageIdentifier(r||"plaintext")||Tt.a;return this._getOrCreateMode(n.language),n},a.prototype.triggerMode=function(r){var n=this.getModeId(r);this._getOrCreateMode(n||"plaintext")},a.prototype._getOrCreateMode=function(r){if(!this._instantiatedModes.hasOwnProperty(r)){var n=this.getLanguageIdentifier(r)||Tt.a;this._instantiatedModes[r]=new Pi(n),this._onDidCreateMode.fire(this._instantiatedModes[r])}return this._instantiatedModes[r]},a}(),Ur=e("QRHv"),vi=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Us=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},Wi=function(a,r){return function(n,d){r(n,d,a)}};function Bi(a){return a.toString()}var U=function(){function a(r,n,d){this._modelEventListeners=new Rt.b,this.model=r,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(r.onWillDispose(function(){return n(r)})),this._modelEventListeners.add(r.onDidChangeLanguage(function(S){return d(r,S)}))}return a.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},a.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},a.prototype.setLanguage=function(r){var n=this;this._disposeLanguageSelection(),this._languageSelection=r,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return n.model.setMode(r.languageIdentifier)}),this.model.setMode(r.languageIdentifier)},a}(),o=ht.d||ht.e?1:2,t=function(a){vi(r,a);function r(n,d,S,k){var we=a.call(this)||this;return we._onModelAdded=we._register(new R.a),we.onModelAdded=we._onModelAdded.event,we._onModelRemoved=we._register(new R.a),we.onModelRemoved=we._onModelRemoved.event,we._onModelModeChanged=we._register(new R.a),we.onModelModeChanged=we._onModelModeChanged.event,we._configurationService=n,we._resourcePropertiesService=d,we._models={},we._modelCreationOptionsByLanguageAndResource=Object.create(null),we._configurationServiceSubscription=we._configurationService.onDidChangeConfiguration(function(We){return we._updateModelOptions()}),we._updateModelOptions(),we._register(new i(we,S,n,k)),we}return r._readModelOptions=function(n,d){var S=T.c.tabSize;if(n.editor&&typeof n.editor.tabSize!="undefined"){var k=parseInt(n.editor.tabSize,10);isNaN(k)||(S=k),S<1&&(S=1)}var we=S;if(n.editor&&typeof n.editor.indentSize!="undefined"&&n.editor.indentSize!=="tabSize"){var We=parseInt(n.editor.indentSize,10);isNaN(We)||(we=We),we<1&&(we=1)}var Xe=T.c.insertSpaces;n.editor&&typeof n.editor.insertSpaces!="undefined"&&(Xe=n.editor.insertSpaces==="false"?!1:Boolean(n.editor.insertSpaces));var Qe=o,yt=n.eol;yt===`\r
`?Qe=2:yt===`
`&&(Qe=1);var It=T.c.trimAutoWhitespace;n.editor&&typeof n.editor.trimAutoWhitespace!="undefined"&&(It=n.editor.trimAutoWhitespace==="false"?!1:Boolean(n.editor.trimAutoWhitespace));var Wt=T.c.detectIndentation;n.editor&&typeof n.editor.detectIndentation!="undefined"&&(Wt=n.editor.detectIndentation==="false"?!1:Boolean(n.editor.detectIndentation));var Pt=T.c.largeFileOptimizations;return n.editor&&typeof n.editor.largeFileOptimizations!="undefined"&&(Pt=n.editor.largeFileOptimizations==="false"?!1:Boolean(n.editor.largeFileOptimizations)),{isForSimpleWidget:d,tabSize:S,indentSize:we,insertSpaces:Xe,detectIndentation:Wt,defaultEOL:Qe,trimAutoWhitespace:It,largeFileOptimizations:Pt}},r.prototype.getCreationOptions=function(n,d,S){var k=this._modelCreationOptionsByLanguageAndResource[n+d];if(!k){var we=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:d}),We=this._resourcePropertiesService.getEOL(d,n);k=r._readModelOptions({editor:we,eol:We},S),this._modelCreationOptionsByLanguageAndResource[n+d]=k}return k},r.prototype._updateModelOptions=function(){var n=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var d=Object.keys(this._models),S=0,k=d.length;S<k;S++){var we=d[S],We=this._models[we],Xe=We.model.getLanguageIdentifier().language,Qe=We.model.uri,yt=n[Xe+Qe],It=this.getCreationOptions(Xe,Qe,We.model.isForSimpleWidget);r._setModelOptionsForModel(We.model,It,yt)}},r._setModelOptionsForModel=function(n,d,S){if(S&&S.defaultEOL!==d.defaultEOL&&n.getLineCount()===1&&n.setEOL(d.defaultEOL===1?0:1),S&&S.detectIndentation===d.detectIndentation&&S.insertSpaces===d.insertSpaces&&S.tabSize===d.tabSize&&S.indentSize===d.indentSize&&S.trimAutoWhitespace===d.trimAutoWhitespace)return;d.detectIndentation?(n.detectIndentation(d.insertSpaces,d.tabSize),n.updateOptions({trimAutoWhitespace:d.trimAutoWhitespace})):n.updateOptions({insertSpaces:d.insertSpaces,tabSize:d.tabSize,indentSize:d.indentSize,trimAutoWhitespace:d.trimAutoWhitespace})},r.prototype.dispose=function(){this._configurationServiceSubscription.dispose(),a.prototype.dispose.call(this)},r.prototype._createModelData=function(n,d,S,k){var we=this,We=this.getCreationOptions(d.language,S,k),Xe=new Jo.b(n,We,d,S),Qe=Bi(Xe.uri);if(this._models[Qe])throw new Error("ModelService: Cannot add model because it already exists!");var yt=new U(Xe,function(It){return we._onWillDispose(It)},function(It,Wt){return we._onDidChangeLanguage(It,Wt)});return this._models[Qe]=yt,yt},r.prototype.createModel=function(n,d,S,k){k===void 0&&(k=!1);var we;return d?(we=this._createModelData(n,d.languageIdentifier,S,k),this.setMode(we.model,d)):we=this._createModelData(n,gi.b,S,k),this._onModelAdded.fire(we.model),we.model},r.prototype.setMode=function(n,d){if(!d)return;var S=this._models[Bi(n.uri)];if(!S)return;S.setLanguage(d)},r.prototype.getModels=function(){for(var n=[],d=Object.keys(this._models),S=0,k=d.length;S<k;S++){var we=d[S];n.push(this._models[we].model)}return n},r.prototype.getModel=function(n){var d=Bi(n),S=this._models[d];return S?S.model:null},r.prototype._onWillDispose=function(n){var d=Bi(n.uri),S=this._models[d];delete this._models[d],S.dispose(),delete this._modelCreationOptionsByLanguageAndResource[n.getLanguageIdentifier().language+n.uri],this._onModelRemoved.fire(n)},r.prototype._onDidChangeLanguage=function(n,d){var S=d.oldLanguage,k=n.getLanguageIdentifier().language,we=this.getCreationOptions(S,n.uri,n.isForSimpleWidget),We=this.getCreationOptions(k,n.uri,n.isForSimpleWidget);r._setModelOptionsForModel(n,We,we),this._onModelModeChanged.fire({model:n,oldModeId:S})},r=Us([Wi(0,On.a),Wi(1,Ne.b),Wi(2,Ln.c),Wi(3,lt.a)],r),r}(Rt.a),i=function(a){vi(r,a);function r(n,d,S,k){var we=a.call(this)||this;we._configurationService=S,we._watchers=Object.create(null),we._semanticStyling=we._register(new m(d,k));var We=function(yt){var It=S.getValue(r.SETTING_ID,{overrideIdentifier:yt.getLanguageIdentifier().language,resource:yt.uri});return It&&It.enabled},Xe=function(yt){we._watchers[yt.uri.toString()]=new qe(yt,d,we._semanticStyling)},Qe=function(yt,It){It.dispose(),delete we._watchers[yt.uri.toString()]};return we._register(n.onModelAdded(function(yt){We(yt)&&Xe(yt)})),we._register(n.onModelRemoved(function(yt){var It=we._watchers[yt.uri.toString()];It&&Qe(yt,It)})),we._configurationService.onDidChangeConfiguration(function(yt){if(yt.affectsConfiguration(r.SETTING_ID))for(var It=0,Wt=n.getModels();It<Wt.length;It++){var Pt=Wt[It],ro=we._watchers[Pt.uri.toString()];We(Pt)?ro||Xe(Pt):ro&&Qe(Pt,ro)}}),we}return r.SETTING_ID="editor.semanticHighlighting",r}(Rt.a),m=function(a){vi(r,a);function r(n,d){var S=a.call(this)||this;return S._themeService=n,S._logService=d,S._caches=new WeakMap,S._themeService&&S._register(S._themeService.onThemeChange(function(){S._caches=new WeakMap})),S}return r.prototype.get=function(n){return this._caches.has(n)||this._caches.set(n,new Re(n.getLegend(),this._themeService,this._logService)),this._caches.get(n)},r}(Rt.a),E=function(){function a(r,n,d){this.tokenTypeIndex=r,this.tokenModifierSet=n,this.metadata=d,this.next=null}return a}(),te=function(){function a(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=a._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<a._SIZES.length?2/3*this._currentLength:0),this._elements=[],a._nullOutEntries(this._elements,this._currentLength)}return a._nullOutEntries=function(r,n){for(var d=0;d<n;d++)r[d]=null},a.prototype._hashFunc=function(r,n){return((r<<5)-r+n|0)%this._currentLength},a.prototype.get=function(r,n){for(var d=this._hashFunc(r,n),S=this._elements[d];S;){if(S.tokenTypeIndex===r&&S.tokenModifierSet===n)return S;S=S.next}return null},a.prototype.add=function(r,n,d){if(this._elementsCount++,this._growCount!==0&&this._elementsCount>=this._growCount){var S=this._elements;this._currentLengthIndex++,this._currentLength=a._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<a._SIZES.length?2/3*this._currentLength:0),this._elements=[],a._nullOutEntries(this._elements,this._currentLength);for(var k=0,we=S;k<we.length;k++)for(var We=we[k],Xe=We;Xe;){var Qe=Xe.next;Xe.next=null,this._add(Xe),Xe=Qe}}this._add(new E(r,n,d))},a.prototype._add=function(r){var n=this._hashFunc(r.tokenTypeIndex,r.tokenModifierSet);r.next=this._elements[n],this._elements[n]=r},a._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143],a}(),Re=function(){function a(r,n,d){this._legend=r,this._themeService=n,this._logService=d,this._hashTable=new te}return a.prototype.getMetadata=function(r,n){var d=this._hashTable.get(r,n),S;if(d)S=d.metadata;else{for(var k=this._legend.tokenTypes[r],we=[],We=n,Xe=0;We>0&&Xe<this._legend.tokenModifiers.length;Xe++)We&1&&we.push(this._legend.tokenModifiers[Xe]),We=We>>1;var Qe=this._themeService.getTheme().getTokenStyleMetadata(k,we);if(typeof Qe=="undefined")S=2147483647;else{if(S=0,typeof Qe.italic!="undefined"){var yt=(Qe.italic?1:0)<<11;S|=yt|1}if(typeof Qe.bold!="undefined"){var It=(Qe.bold?2:0)<<11;S|=It|2}if(typeof Qe.underline!="undefined"){var Wt=(Qe.underline?4:0)<<11;S|=Wt|4}if(Qe.foreground){var Pt=Qe.foreground<<14;S|=Pt|8}S===0&&(S=2147483647)}this._hashTable.add(r,n,S)}if(this._logService.getLevel()===lt.b.Trace){var ro=this._legend.tokenTypes[r],eo=n?" "+this._legend.tokenModifiers.filter(function(Gt,Jt){return n&1<<Jt}).join(" "):"";this._logService.trace("tokenStyleMetadata "+(d?"[CACHED] ":"")+ro+eo+": foreground "+gt.A.getForeground(S)+", fontStyle "+gt.A.getFontStyle(S).toString(2))}return S},a}(),Le=function(){function a(r,n,d){this._provider=r,this.resultId=n,this.data=d}return a.prototype.dispose=function(){this._provider.releaseDocumentSemanticTokens(this.resultId)},a}(),qe=function(a){vi(r,a);function r(n,d,S){var k=a.call(this)||this;return k._isDisposed=!1,k._model=n,k._semanticStyling=S,k._fetchSemanticTokens=k._register(new ut.d(function(){return k._fetchSemanticTokensNow()},300)),k._currentResponse=null,k._currentRequestCancellationTokenSource=null,k._register(k._model.onDidChangeContent(function(we){k._fetchSemanticTokens.isScheduled()||k._fetchSemanticTokens.schedule()})),k._register(gt.l.onDidChange(function(we){return k._fetchSemanticTokens.schedule()})),d&&k._register(d.onThemeChange(function(we){k._setSemanticTokens(null,null,null,[]),k._fetchSemanticTokens.schedule()})),k._fetchSemanticTokens.schedule(0),k}return r.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,a.prototype.dispose.call(this)},r.prototype._fetchSemanticTokensNow=function(){var n=this;if(this._currentRequestCancellationTokenSource)return;var d=this._getSemanticColoringProvider();if(!d)return;this._currentRequestCancellationTokenSource=new $.b;var S=[],k=this._model.onDidChangeContent(function(Qe){S.push(Qe)}),we=this._semanticStyling.get(d),We=this._currentResponse&&this._currentResponse.resultId||null,Xe=Promise.resolve(d.provideDocumentSemanticTokens(this._model,We,this._currentRequestCancellationTokenSource.token));Xe.then(function(Qe){n._currentRequestCancellationTokenSource=null,k.dispose(),n._setSemanticTokens(d,Qe||null,we,S)},function(Qe){(!Qe||typeof Qe.message!="string"||Qe.message.indexOf("busy")===-1)&&Ct.e(Qe),n._currentRequestCancellationTokenSource=null,k.dispose(),S.length>0&&(n._fetchSemanticTokens.isScheduled()||n._fetchSemanticTokens.schedule())})},r._isSemanticTokens=function(n){return n&&!!n.data},r._isSemanticTokensEdits=function(n){return n&&Array.isArray(n.edits)},r._copy=function(n,d,S,k,we){for(var We=0;We<we;We++)S[k+We]=n[d+We]},r.prototype._setSemanticTokens=function(n,d,S,k){var we=this._currentResponse;if(this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._isDisposed){n&&d&&n.releaseDocumentSemanticTokens(d.resultId);return}if(!n||!d||!S){this._model.setSemanticTokens(null);return}if(r._isSemanticTokensEdits(d)){if(!we){this._model.setSemanticTokens(null);return}if(d.edits.length===0)d={resultId:d.resultId,data:we.data};else{for(var We=0,Xe=0,Qe=d.edits;Xe<Qe.length;Xe++){var yt=Qe[Xe];We+=(yt.data?yt.data.length:0)-yt.deleteCount}for(var It=we.data,Wt=new Uint32Array(It.length+We),Pt=It.length,ro=Wt.length,eo=d.edits.length-1;eo>=0;eo--){var yt=d.edits[eo],Gt=Pt-(yt.start+yt.deleteCount);Gt>0&&(r._copy(It,Pt-Gt,Wt,ro-Gt,Gt),ro-=Gt),yt.data&&(r._copy(yt.data,0,Wt,ro-yt.data.length,yt.data.length),ro-=yt.data.length),Pt=yt.start}Pt>0&&r._copy(It,0,Wt,0,Pt),d={resultId:d.resultId,data:Wt}}}if(r._isSemanticTokens(d)){this._currentResponse=new Le(n,d.resultId,d.data);for(var It=d.data,Jt=d.data.length/5|0,co=Math.max(Math.ceil(Jt/1024),400),So=[],xo=0,Po=1,Go=0;xo<Jt;){var Xo=xo,an=Math.min(Xo+co,Jt);if(an<Jt){for(var yn=an;yn-1>Xo&&It[5*yn]===0;)yn--;if(yn-1===Xo){for(var Zo=an;Zo+1<Jt&&It[5*Zo]===0;)Zo++;an=Zo}else an=yn}for(var Wt=new Uint32Array((an-Xo)*4),Yo=0,mn=0;xo<an;){var en=5*xo,bn=It[en],Mn=It[en+1],Bn=Po+bn,kn=bn===0?Go+Mn:Mn,Gn=It[en+2],ri=It[en+3],Vi=It[en+4],Aa=S.getMetadata(ri,Vi);Aa!==2147483647&&(mn===0&&(mn=Bn),Wt[Yo]=Bn-mn,Wt[Yo+1]=kn,Wt[Yo+2]=kn+Gn,Wt[Yo+3]=Aa,Yo+=4),Po=Bn,Go=kn,xo++}Yo!==Wt.length&&(Wt=Wt.subarray(0,Yo));var qd=new Ur.a(mn,new Ur.c(Wt));So.push(qd)}if(k.length>0){for(var qs=0,Ra=k;qs<Ra.length;qs++)for(var ec=Ra[qs],ea=0,Ia=So;ea<Ia.length;ea++)for(var tc=Ia[ea],ta=0,Na=ec.changes;ta<Na.length;ta++){var ja=Na[ta];tc.applyEdit(ja.range,ja.text)}this._fetchSemanticTokens.isScheduled()||this._fetchSemanticTokens.schedule()}this._model.setSemanticTokens(So);return}this._model.setSemanticTokens(null)},r.prototype._getSemanticColoringProvider=function(){var n=gt.l.ordered(this._model);return n.length>0?n[0]:null},r}(Rt.a),ct=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),wt=function(a){ct(r,a);function r(){var n=a.call(this)||this;return n._onCodeEditorAdd=n._register(new R.a),n.onCodeEditorAdd=n._onCodeEditorAdd.event,n._onCodeEditorRemove=n._register(new R.a),n.onCodeEditorRemove=n._onCodeEditorRemove.event,n._onDiffEditorAdd=n._register(new R.a),n._onDiffEditorRemove=n._register(new R.a),n._codeEditors=Object.create(null),n._diffEditors=Object.create(null),n}return r.prototype.addCodeEditor=function(n){this._codeEditors[n.getId()]=n,this._onCodeEditorAdd.fire(n)},r.prototype.removeCodeEditor=function(n){delete this._codeEditors[n.getId()]&&this._onCodeEditorRemove.fire(n)},r.prototype.listCodeEditors=function(){var n=this;return Object.keys(this._codeEditors).map(function(d){return n._codeEditors[d]})},r.prototype.addDiffEditor=function(n){this._diffEditors[n.getId()]=n,this._onDiffEditorAdd.fire(n)},r.prototype.removeDiffEditor=function(n){delete this._diffEditors[n.getId()]&&this._onDiffEditorRemove.fire(n)},r.prototype.listDiffEditors=function(){var n=this;return Object.keys(this._diffEditors).map(function(d){return n._diffEditors[d]})},r.prototype.getFocusedCodeEditor=function(){for(var n=null,d=this.listCodeEditors(),S=0,k=d;S<k.length;S++){var we=k[S];if(we.hasTextFocus())return we;we.hasWidgetFocus()&&(n=we)}return n},r}(Rt.a),tt=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),kt=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},Bt=function(a,r){return function(n,d){r(n,d,a)}},Ht=function(){function a(r,n,d){this._parent=r,this._editorId=n,this.styleSheet=d,this._refCount=0}return a.prototype.ref=function(){this._refCount++},a.prototype.unref=function(){var r;this._refCount--,this._refCount===0&&((r=this.styleSheet.parentNode)===null||r===void 0||r.removeChild(this.styleSheet),this._parent._removeEditorStyleSheets(this._editorId))},a}(),qt=function(){function a(r){this.styleSheet=r}return a.prototype.ref=function(){},a.prototype.unref=function(){},a}(),$t=function(a){tt(r,a);function r(n,d){d===void 0&&(d=null);var S=a.call(this)||this;return S._decorationOptionProviders=new Map,S._editorStyleSheets=new Map,S._globalStyleSheet=d?new qt(d):null,S._themeService=n,S}return r.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new qt(ve.w())),this._globalStyleSheet},r.prototype._getOrCreateStyleSheet=function(n){if(!n)return this._getOrCreateGlobalStyleSheet();var d=n.getContainerDomNode();if(!ve.N(d))return this._getOrCreateGlobalStyleSheet();var S=n.getId();if(!this._editorStyleSheets.has(S)){var k=new Ht(this,S,ve.w(d));this._editorStyleSheets.set(S,k)}return this._editorStyleSheets.get(S)},r.prototype._removeEditorStyleSheets=function(n){this._editorStyleSheets.delete(n)},r.prototype.registerDecorationType=function(n,d,S,k){var we=this._decorationOptionProviders.get(n);if(!we){var We=this._getOrCreateStyleSheet(k),Xe={styleSheet:We.styleSheet,key:n,parentTypeKey:S,options:d||Object.create(null)};S?we=new io(this._themeService,We,Xe):we=new yo(this._themeService,We,Xe),this._decorationOptionProviders.set(n,we)}we.refCount++},r.prototype.removeDecorationType=function(n){var d=this._decorationOptionProviders.get(n);d&&(d.refCount--,d.refCount<=0&&(this._decorationOptionProviders.delete(n),d.dispose(),this.listCodeEditors().forEach(function(S){return S.removeDecorations(n)})))},r.prototype.resolveDecorationOptions=function(n,d){var S=this._decorationOptionProviders.get(n);if(!S)throw new Error("Unknown decoration type key: "+n);return S.getOptions(this,d)},r=kt([Bt(0,Ln.c)],r),r}(wt),io=function(){function a(r,n,d){this._styleSheet=n,this._styleSheet.ref(),this._parentTypeKey=d.parentTypeKey,this.refCount=0,this._beforeContentRules=new bo(3,d,r),this._afterContentRules=new bo(4,d,r)}return a.prototype.getOptions=function(r,n){var d=r.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(d.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(d.afterContentClassName=this._afterContentRules.className),d},a.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()},a}(),yo=function(){function a(r,n,d){var S=this;this._disposables=new Rt.b,this._styleSheet=n,this._styleSheet.ref(),this.refCount=0;var k=function(It){var Wt=new bo(It,d,r);return S._disposables.add(Wt),Wt.hasContent?Wt.className:void 0},we=function(It){var Wt=new bo(It,d,r);return S._disposables.add(Wt),Wt.hasContent?{className:Wt.className,hasLetterSpacing:Wt.hasLetterSpacing}:null};this.className=k(0);var We=we(1);We&&(this.inlineClassName=We.className,this.inlineClassNameAffectsLetterSpacing=We.hasLetterSpacing),this.beforeContentClassName=k(3),this.afterContentClassName=k(4),this.glyphMarginClassName=k(2);var Xe=d.options;this.isWholeLine=Boolean(Xe.isWholeLine),this.stickiness=Xe.rangeBehavior;var Qe=Xe.light&&Xe.light.overviewRulerColor||Xe.overviewRulerColor,yt=Xe.dark&&Xe.dark.overviewRulerColor||Xe.overviewRulerColor;(typeof Qe!="undefined"||typeof yt!="undefined")&&(this.overviewRuler={color:Qe||yt,darkColor:yt||Qe,position:Xe.overviewRulerLane||pt.d.Center})}return a.prototype.getOptions=function(r,n){return n?{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},a.prototype.dispose=function(){this._disposables.dispose(),this._styleSheet.unref()},a}(),po={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};"},bo=function(){function a(r,n,d){var S=this;this._theme=d.getTheme(),this._ruleType=r,this._providerArgs=n,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var k=vo.getClassName(this._providerArgs.key,r);this._providerArgs.parentTypeKey&&(k=k+" "+vo.getClassName(this._providerArgs.parentTypeKey,r)),this._className=k,this._unThemedSelector=vo.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,r),this._buildCSS(),this._usesThemeColors?this._themeListener=d.onThemeChange(function(we){S._theme=d.getTheme(),S._removeCSS(),S._buildCSS()}):this._themeListener=null}return a.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(a.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),a.prototype._buildCSS=function(){var r=this._providerArgs.options,n,d,S;switch(this._ruleType){case 0:n=this.getCSSTextForModelDecorationClassName(r),d=this.getCSSTextForModelDecorationClassName(r.light),S=this.getCSSTextForModelDecorationClassName(r.dark);break;case 1:n=this.getCSSTextForModelDecorationInlineClassName(r),d=this.getCSSTextForModelDecorationInlineClassName(r.light),S=this.getCSSTextForModelDecorationInlineClassName(r.dark);break;case 2:n=this.getCSSTextForModelDecorationGlyphMarginClassName(r),d=this.getCSSTextForModelDecorationGlyphMarginClassName(r.light),S=this.getCSSTextForModelDecorationGlyphMarginClassName(r.dark);break;case 3:n=this.getCSSTextForModelDecorationContentClassName(r.before),d=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.before),S=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.before);break;case 4:n=this.getCSSTextForModelDecorationContentClassName(r.after),d=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.after),S=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var k=this._providerArgs.styleSheet.sheet,we=!1;n.length>0&&(k.insertRule(this._unThemedSelector+" {"+n+"}",0),we=!0),d.length>0&&(k.insertRule(".vs"+this._unThemedSelector+" {"+d+"}",0),we=!0),S.length>0&&(k.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+S+"}",0),we=!0),this._hasContent=we},a.prototype._removeCSS=function(){ve.O(this._unThemedSelector,this._providerArgs.styleSheet)},a.prototype.getCSSTextForModelDecorationClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["backgroundColor"],n),this.collectCSSText(r,["outline","outlineColor","outlineStyle","outlineWidth"],n),this.collectBorderSettingsCSSText(r,n),n.join("")},a.prototype.getCSSTextForModelDecorationInlineClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],n),r.letterSpacing&&(this._hasLetterSpacing=!0),n.join("")},a.prototype.getCSSTextForModelDecorationContentClassName=function(r){if(!r)return"";var n=[];if(typeof r!="undefined"){if(this.collectBorderSettingsCSSText(r,n),typeof r.contentIconPath!="undefined"&&n.push(to.r(po.contentIconPath,ve.r(z.a.revive(r.contentIconPath)))),typeof r.contentText=="string"){var d=r.contentText.match(/^.*$/m)[0],S=d.replace(/['\\]/g,"\\$&");n.push(to.r(po.contentText,S))}this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],n),this.collectCSSText(r,["width","height"],n)&&n.push("display:inline-block;")}return n.join("")},a.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(r){if(!r)return"";var n=[];return typeof r.gutterIconPath!="undefined"&&(n.push(to.r(po.gutterIconPath,ve.r(z.a.revive(r.gutterIconPath)))),typeof r.gutterIconSize!="undefined"&&n.push(to.r(po.gutterIconSize,r.gutterIconSize))),n.join("")},a.prototype.collectBorderSettingsCSSText=function(r,n){return this.collectCSSText(r,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],n)?(n.push(to.r("box-sizing: border-box;")),!0):!1},a.prototype.collectCSSText=function(r,n,d){for(var S=d.length,k=0,we=n;k<we.length;k++){var We=we[k],Xe=this.resolveValue(r[We]);typeof Xe=="string"&&d.push(to.r(po[We],Xe))}return d.length!==S},a.prototype.resolveValue=function(r){if(Object(jt.c)(r)){this._usesThemeColors=!0;var n=this._theme.getColor(r.id);return n?n.toString():"transparent"}return r},a}(),vo=function(){function a(){}return a.getClassName=function(r,n){return"ced-"+r+"-"+n},a.getSelector=function(r,n,d){var S=".monaco-editor ."+this.getClassName(r,d);return n&&(S=S+"."+this.getClassName(n,d)),d===3?S+="::before":d===4&&(S+="::after"),S},a}(),Co=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Mo=function(a){Co(r,a);function r(){return a!==null&&a.apply(this,arguments)||this}return r.prototype.getActiveCodeEditor=function(){return null},r.prototype.openCodeEditor=function(n,d,S){return d?Promise.resolve(this.doOpenEditor(d,n)):Promise.resolve(null)},r.prototype.doOpenEditor=function(n,d){var S=this.findModel(n,d.resource);if(!S){if(d.resource){var k=d.resource.scheme;if(k===Ce.b.http||k===Ce.b.https)return Object(ve.ab)(d.resource.toString()),n}return null}var we=d.options?d.options.selection:null;if(we)if(typeof we.endLineNumber=="number"&&typeof we.endColumn=="number")n.setSelection(we),n.revealRangeInCenter(we,1);else{var We={lineNumber:we.startLineNumber,column:we.startColumn};n.setPosition(We),n.revealPositionInCenter(We,1)}return n},r.prototype.findModel=function(n,d){var S=n.getModel();return S&&S.uri.toString()!==d.toString()?null:S},r}($t),Ko=e("zrhQ"),zo=function(){function a(r,n,d,S,k){this.token=r,this.index=n,this.fontStyle=d,this.foreground=S,this.background=k}return a}();function ko(a){if(!a||!Array.isArray(a))return[];for(var r=[],n=0,d=0,S=a.length;d<S;d++){var k=a[d],we=-1;if(typeof k.fontStyle=="string"){we=0;for(var We=k.fontStyle.split(" "),Xe=0,Qe=We.length;Xe<Qe;Xe++){var yt=We[Xe];switch(yt){case"italic":we=we|1;break;case"bold":we=we|2;break;case"underline":we=we|4;break}}}var It=null;typeof k.foreground=="string"&&(It=k.foreground);var Wt=null;typeof k.background=="string"&&(Wt=k.background),r[n++]=new zo(k.token||"",d,we,It,Wt)}return r}function fn(a,r){a.sort(function(Jt,co){var So=Fn(Jt.token,co.token);return So!==0?So:Jt.index-co.index});for(var n=0,d="000000",S="ffffff";a.length>=1&&a[0].token==="";){var k=a.shift();k.fontStyle!==-1&&(n=k.fontStyle),k.foreground!==null&&(d=k.foreground),k.background!==null&&(S=k.background)}for(var we=new ln,We=0,Xe=r;We<Xe.length;We++){var Qe=Xe[We];we.getId(Qe)}for(var yt=we.getId(d),It=we.getId(S),Wt=new Ui(n,yt,It),Pt=new fr(Wt),ro=0,eo=a.length;ro<eo;ro++){var Gt=a[ro];Pt.insert(Gt.token,Gt.fontStyle,we.getId(Gt.foreground),we.getId(Gt.background))}return new Nn(we,Pt)}var In=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,ln=function(){function a(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}return a.prototype.getId=function(r){if(r===null)return 0;var n=r.match(In);if(!n)throw new Error("Illegal value for token color: "+r);r=n[1].toUpperCase();var d=this._color2id.get(r);return d||(d=++this._lastColorId,this._color2id.set(r,d),this._id2color[d]=Ko.a.fromHex("#"+r),d)},a.prototype.getColorMap=function(){return this._id2color.slice(0)},a}(),Nn=function(){function a(r,n){this._colorMap=r,this._root=n,this._cache=new Map}return a.createFromRawTokenTheme=function(r,n){return this.createFromParsedTokenTheme(ko(r),n)},a.createFromParsedTokenTheme=function(r,n){return fn(r,n)},a.prototype.getColorMap=function(){return this._colorMap.getColorMap()},a.prototype._match=function(r){return this._root.match(r)},a.prototype.match=function(r,n){var d=this._cache.get(n);if(typeof d=="undefined"){var S=this._match(n),k=Wn(n);d=(S.metadata|k<<8)>>>0,this._cache.set(n,d)}return(d|r<<0)>>>0},a}(),cn=/\b(comment|string|regex|regexp)\b/;function Wn(a){var r=a.match(cn);if(!r)return 0;switch(r[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 Fn(a,r){return a<r?-1:a>r?1:0}var Ui=function(){function a(r,n,d){this._fontStyle=r,this._foreground=n,this._background=d,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return a.prototype.clone=function(){return new a(this._fontStyle,this._foreground,this._background)},a.prototype.acceptOverwrite=function(r,n,d){r!==-1&&(this._fontStyle=r),n!==0&&(this._foreground=n),d!==0&&(this._background=d),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},a}(),fr=function(){function a(r){this._mainRule=r,this._children=new Map}return a.prototype.match=function(r){if(r==="")return this._mainRule;var n=r.indexOf("."),d,S;n===-1?(d=r,S=""):(d=r.substring(0,n),S=r.substring(n+1));var k=this._children.get(d);return typeof k!="undefined"?k.match(S):this._mainRule},a.prototype.insert=function(r,n,d,S){if(r===""){this._mainRule.acceptOverwrite(n,d,S);return}var k=r.indexOf("."),we,We;k===-1?(we=r,We=""):(we=r.substring(0,k),We=r.substring(k+1));var Xe=this._children.get(we);typeof Xe=="undefined"&&(Xe=new a(this._mainRule.clone()),this._children.set(we,Xe)),Xe.insert(We,n,d,S)},a}();function Hr(a){for(var r=[],n=1,d=a.length;n<d;n++){var S=a[n];r[n]=".mtk"+n+" { color: "+S+"; }"}return r.push(".mtki { font-style: italic; }"),r.push(".mtkb { font-weight: bold; }"),r.push(".mtku { text-decoration: underline; text-underline-position: under; }"),r.join(`
`)}var Zn,yi,Hi,Pa={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:(Zn={},Zn[gn.o]="#FFFFFE",Zn[gn.x]="#000000",Zn[gn.F]="#E5EBF1",Zn[Vn.h]="#D3D3D3",Zn[Vn.a]="#939393",Zn[gn.M]="#ADD6FF4D",Zn)},ka={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:(yi={},yi[gn.o]="#1E1E1E",yi[gn.x]="#D4D4D4",yi[gn.F]="#3A3D41",yi[Vn.h]="#404040",yi[Vn.a]="#707070",yi[gn.M]="#ADD6FF26",yi)},Fa={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:(Hi={},Hi[gn.o]="#000000",Hi[gn.x]="#FFFFFF",Hi[Vn.h]="#FFFFFF",Hi[Vn.a]="#FFFFFF",Hi)},Wa=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Mi="vs",Vr="vs-dark",mr="hc-black",Ba=hr.a.as(gn.a.ColorContribution),Ua=hr.a.as(Ln.a.ThemingContribution),la=function(){function a(r,n){this.themeData=n;var d=n.base;r.length>0?(this.id=d+" "+r,this.themeName=r):(this.id=d,this.themeName=d),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(a.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),a.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},a.prototype.getColors=function(){if(!this.colors){var r=new Map;for(var n in this.themeData.colors)r.set(n,Ko.a.fromHex(this.themeData.colors[n]));if(this.themeData.inherit){var d=Vs(this.themeData.base);for(var n in d.colors)r.has(n)||r.set(n,Ko.a.fromHex(d.colors[n]))}this.colors=r}return this.colors},a.prototype.getColor=function(r,n){var d=this.getColors().get(r);return d||(n!==!1?this.getDefault(r):void 0)},a.prototype.getDefault=function(r){var n=this.defaultColors[r];return n||(n=Ba.resolveDefaultColor(r,this),this.defaultColors[r]=n,n)},a.prototype.defines=function(r){return Object.prototype.hasOwnProperty.call(this.getColors(),r)},Object.defineProperty(a.prototype,"type",{get:function(){switch(this.base){case Mi:return"light";case mr:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var r=[],n=[];if(this.themeData.inherit){var d=Vs(this.themeData.base);r=d.rules,d.encodedTokensColors&&(n=d.encodedTokensColors)}r=r.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(n=this.themeData.encodedTokensColors),this._tokenTheme=Nn.createFromRawTokenTheme(r,n)}return this._tokenTheme},enumerable:!0,configurable:!0}),a.prototype.getTokenStyleMetadata=function(r,n){return},a}();function Hs(a){return a===Mi||a===Vr||a===mr}function Vs(a){switch(a){case Mi:return Pa;case Vr:return ka;case mr:return Fa}}function zs(a){var r=Vs(a);return new la(a,r)}var Ha=function(a){Wa(r,a);function r(){var n=a.call(this)||this;return n._onThemeChange=n._register(new R.a),n.onThemeChange=n._onThemeChange.event,n._environment=Object.create(null),n._knownThemes=new Map,n._knownThemes.set(Mi,zs(Mi)),n._knownThemes.set(Vr,zs(Vr)),n._knownThemes.set(mr,zs(mr)),n._css="",n._globalStyleElement=null,n._styleElements=[],n.setTheme(Mi),n}return r.prototype.registerEditorContainer=function(n){return ve.N(n)?this._registerShadowDomContainer(n):this._registerRegularEditorContainer()},r.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=ve.w(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),Rt.a.None},r.prototype._registerShadowDomContainer=function(n){var d=this,S=ve.w(n);return S.className="monaco-colors",S.innerHTML=this._css,this._styleElements.push(S),{dispose:function(){for(var k=0;k<d._styleElements.length;k++)if(d._styleElements[k]===S){d._styleElements.splice(k,1);return}}}},r.prototype.defineTheme=function(n,d){if(!/^[a-z0-9\-]+$/i.test(n))throw new Error("Illegal theme name!");if(!Hs(d.base)&&!Hs(n))throw new Error("Illegal theme base!");this._knownThemes.set(n,new la(n,d)),Hs(n)&&this._knownThemes.forEach(function(S){S.base===n&&S.notifyBaseUpdated()}),this._theme&&this._theme.themeName===n&&this.setTheme(n)},r.prototype.getTheme=function(){return this._theme},r.prototype.setTheme=function(n){var d=this,S;if(this._knownThemes.has(n)?S=this._knownThemes.get(n):S=this._knownThemes.get(Mi),this._theme===S)return S.id;this._theme=S;var k=[],we={},We={addRule:function(yt){we[yt]||(k.push(yt),we[yt]=!0)}};Ua.getThemingParticipants().forEach(function(yt){return yt(S,We,d._environment)});var Xe=S.tokenTheme,Qe=Xe.getColorMap();return We.addRule(Hr(Qe)),this._css=k.join(`
`),this._styleElements.forEach(function(yt){return yt.innerHTML=d._css}),gt.B.setColorMap(Qe),this._onThemeChange.fire(S),S.id},r.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}},r}(Rt.a),zr=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Va=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},za=function(a,r){return function(n,d){r(n,d,a)}},Kr="data-keybinding-context",Ks=function(){function a(r,n){this._id=r,this._parent=n,this._value=Object.create(null),this._value._contextId=r}return a.prototype.setValue=function(r,n){return this._value[r]!==n?(this._value[r]=n,!0):!1},a.prototype.removeValue=function(r){return r in this._value?(delete this._value[r],!0):!1},a.prototype.getValue=function(r){var n=this._value[r];return typeof n=="undefined"&&this._parent?this._parent.getValue(r):n},a}(),Gr=function(a){zr(r,a);function r(){return a.call(this,-1,null)||this}return r.prototype.setValue=function(n,d){return!1},r.prototype.removeValue=function(n){return!1},r.prototype.getValue=function(n){return},r.INSTANCE=new r,r}(Ks),Ka=function(a){zr(r,a);function r(n,d,S){var k=a.call(this,n,null)||this;return k._configurationService=d,k._values=new Map,k._listener=k._configurationService.onDidChangeConfiguration(function(we){if(we.source===6){var We=Object(Qn.d)(k._values);k._values.clear(),S.fire(new ca(We))}else{for(var Xe=[],Qe=0,yt=we.affectedKeys;Qe<yt.length;Qe++){var It=yt[Qe],Wt="config."+It;k._values.has(Wt)&&(k._values.delete(Wt),Xe.push(Wt))}S.fire(new ca(Xe))}}),k}return r.prototype.dispose=function(){this._listener.dispose()},r.prototype.getValue=function(n){if(n.indexOf(r._keyPrefix)!==0)return a.prototype.getValue.call(this,n);if(this._values.has(n))return this._values.get(n);var d=n.substr(r._keyPrefix.length),S=this._configurationService.getValue(d),k=void 0;switch(typeof S){case"number":case"boolean":case"string":k=S;break}return this._values.set(n,k),k},r.prototype.setValue=function(n,d){return a.prototype.setValue.call(this,n,d)},r.prototype.removeValue=function(n){return a.prototype.removeValue.call(this,n)},r._keyPrefix="config.",r}(Ks),Ga=function(){function a(r,n,d){this._service=r,this._key=n,this._defaultValue=d,this.reset()}return a.prototype.set=function(r){this._service.setContext(this._key,r)},a.prototype.reset=function(){typeof this._defaultValue=="undefined"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},a.prototype.get=function(){return this._service.getContextKeyValue(this._key)},a}(),da=function(){function a(r){this.key=r}return a.prototype.affectsSome=function(r){return r.has(this.key)},a}(),ca=function(){function a(r){this.keys=r}return a.prototype.affectsSome=function(r){for(var n=0,d=this.keys;n<d.length;n++){var S=d[n];if(r.has(S))return!0}return!1},a}(),Xa=function(){function a(r){this.events=r}return a.prototype.affectsSome=function(r){for(var n=0,d=this.events;n<d.length;n++){var S=d[n];if(S.affectsSome(r))return!0}return!1},a}(),ua=function(){function a(r){this._onDidChangeContext=new R.e({merge:function(n){return new Xa(n)}}),this._isDisposed=!1,this._myContextId=r}return a.prototype.createKey=function(r,n){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Ga(this,r,n)},Object.defineProperty(a.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext.event},enumerable:!0,configurable:!0}),a.prototype.bufferChangeEvents=function(r){this._onDidChangeContext.pause();try{r()}finally{this._onDidChangeContext.resume()}},a.prototype.createScoped=function(r){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Za(this,r)},a.prototype.contextMatchesRules=function(r){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var n=this.getContextValuesContainer(this._myContextId),d=Qi.contextMatchesRules(n,r);return d},a.prototype.getContextKeyValue=function(r){return this._isDisposed?void 0:this.getContextValuesContainer(this._myContextId).getValue(r)},a.prototype.setContext=function(r,n){if(this._isDisposed)return;var d=this.getContextValuesContainer(this._myContextId);if(!d)return;d.setValue(r,n)&&this._onDidChangeContext.fire(new da(r))},a.prototype.removeContext=function(r){if(this._isDisposed)return;this.getContextValuesContainer(this._myContextId).removeValue(r)&&this._onDidChangeContext.fire(new da(r))},a.prototype.getContext=function(r){return this._isDisposed?Gr.INSTANCE:this.getContextValuesContainer(Qa(r))},a}(),Ya=function(a){zr(r,a);function r(n){var d=a.call(this,0)||this;d._contexts=new Map,d._toDispose=new Rt.b,d._lastContextId=0;var S=new Ka(d._myContextId,n,d._onDidChangeContext);return d._contexts.set(d._myContextId,S),d._toDispose.add(S),d}return r.prototype.dispose=function(){this._isDisposed=!0,this._toDispose.dispose()},r.prototype.getContextValuesContainer=function(n){return this._isDisposed?Gr.INSTANCE:this._contexts.get(n)||Gr.INSTANCE},r.prototype.createChildContext=function(n){if(n===void 0&&(n=this._myContextId),this._isDisposed)throw new Error("ContextKeyService has been disposed");var d=++this._lastContextId;return this._contexts.set(d,new Ks(d,this.getContextValuesContainer(n))),d},r.prototype.disposeContext=function(n){this._isDisposed||this._contexts.delete(n)},r=Va([za(0,On.a)],r),r}(ua),Za=function(a){zr(r,a);function r(n,d){var S=a.call(this,n.createChildContext())||this;return S._parent=n,d&&(S._domNode=d,S._domNode.setAttribute(Kr,String(S._myContextId))),S}return r.prototype.dispose=function(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(Kr),this._domNode=void 0)},Object.defineProperty(r.prototype,"onDidChangeContext",{get:function(){return R.b.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)},enumerable:!0,configurable:!0}),r.prototype.getContextValuesContainer=function(n){return this._isDisposed?Gr.INSTANCE:this._parent.getContextValuesContainer(n)},r.prototype.createChildContext=function(n){if(n===void 0&&(n=this._myContextId),this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(n)},r.prototype.disposeContext=function(n){if(this._isDisposed)return;this._parent.disposeContext(n)},r}(ua);function Qa(a){for(;a;){if(a.hasAttribute(Kr)){var r=a.getAttribute(Kr);return r?parseInt(r,10):NaN}a=a.parentElement}return 0}J.a.registerCommand(_n.e,function(a,r,n){a.get(_n.c).createKey(String(r),n)});var oc=e("eizg"),$a=e("2gzu"),Ja=e("ptcw"),ha=e("4y0V"),qa=e("XSiN"),el=function(){function a(r,n,d,S,k){this.contextViewService=r,this.telemetryService=n,this.notificationService=d,this.keybindingService=S,this.themeService=k,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}return a.prototype.configure=function(r){this.options=r},a.prototype.showContextMenu=function(r){var n=this,d=r.getActions();if(!d.length)return;this.focusToReturn=document.activeElement;var S;this.contextViewService.showContextView({getAnchor:function(){return r.getAnchor()},canRelayout:!1,anchorAlignment:r.anchorAlignment,render:function(k){var we=r.getMenuClassName?r.getMenuClassName():"";we&&(k.className+=" "+we),n.options.blockMouse&&(n.block=k.appendChild(Object(ve.a)(".context-view-block")));var We=new Rt.b,Xe=r.actionRunner||new ci.b;return Xe.onDidBeforeRun(n.onActionRun,n,We),Xe.onDidRun(n.onDidActionRun,n,We),S=new $a.a(k,d,{actionViewItemProvider:r.getActionViewItem,context:r.getActionsContext?r.getActionsContext():null,actionRunner:Xe,getKeyBinding:r.getKeyBinding?r.getKeyBinding:function(Qe){return n.keybindingService.lookupKeybinding(Qe.id)}}),We.add(Object(Ja.c)(S,n.themeService)),S.onDidCancel(function(){return n.contextViewService.hideContextView(!0)},null,We),S.onDidBlur(function(){return n.contextViewService.hideContextView(!0)},null,We),Object(ha.a)(window,ve.d.BLUR)(function(){n.contextViewService.hideContextView(!0)},null,We),Object(ha.a)(window,ve.d.MOUSE_DOWN)(function(Qe){if(Qe.defaultPrevented)return;var yt=new qa.b(Qe),It=yt.target;if(yt.rightButton)return;for(;It;){if(It===k)return;It=It.parentElement}n.contextViewService.hideContextView(!0)},null,We),Object(Rt.e)(We,S)},focus:function(){S&&S.focus(!!r.autoSelectFirstItem)},onHide:function(k){r.onHide&&r.onHide(!!k),n.block&&(Object(ve.R)(n.block),n.block=null),n.focusToReturn&&n.focusToReturn.focus()}})},a.prototype.onActionRun=function(r){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:r.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()},a.prototype.onDidActionRun=function(r){r.error&&this.notificationService&&this.notificationService.error(r.error)},a}(),Gs=e("XXUj"),tl=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),ol=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},pr=function(a,r){return function(n,d){r(n,d,a)}},nl=function(a){tl(r,a);function r(n,d,S,k,we){var We=a.call(this)||this;return We._onDidContextMenu=We._register(new R.a),We.contextMenuHandler=new el(S,n,d,k,we),We}return r.prototype.configure=function(n){this.contextMenuHandler.configure(n)},r.prototype.showContextMenu=function(n){this.contextMenuHandler.showContextMenu(n),this._onDidContextMenu.fire()},r=ol([pr(0,Gs.a),pr(1,Hn.a),pr(2,Xn.b),pr(3,ni.a),pr(4,Ln.c)],r),r}(Rt.a),nc=e("TT2d"),il=e("nuFA"),rl=e("CjF5"),sl=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}();function fa(a,r,n){var d=n.offset+n.size;return n.position===0?r<=a-d?d:r<=n.offset?n.offset-r:Math.max(a-r,0):r<=n.offset?n.offset-r:r<=a-d?d:0}var al=function(a){sl(r,a);function r(n){var d=a.call(this)||this;return d.container=null,d.delegate=null,d.toDisposeOnClean=Rt.a.None,d.toDisposeOnSetContainer=Rt.a.None,d.view=ve.a(".context-view"),ve.J(d.view),d.setContainer(n),d._register(Object(Rt.h)(function(){return d.setContainer(null)})),d}return r.prototype.setContainer=function(n){var d=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),n){this.container=n,this.container.appendChild(this.view);var S=new Rt.b;r.BUBBLE_UP_EVENTS.forEach(function(k){S.add(ve.o(d.container,k,function(we){d.onDOMEvent(we,!1)}))}),r.BUBBLE_DOWN_EVENTS.forEach(function(k){S.add(ve.o(d.container,k,function(we){d.onDOMEvent(we,!0)},!0))}),this.toDisposeOnSetContainer=S}},r.prototype.show=function(n){this.isVisible()&&this.hide(),ve.t(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",ve.X(this.view),this.toDisposeOnClean=n.render(this.view)||Rt.a.None,this.delegate=n,this.doLayout(),this.delegate.focus&&this.delegate.focus()},r.prototype.layout=function(){if(!this.isVisible())return;if(this.delegate.canRelayout===!1&&!(ht.c&&rl.a.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()},r.prototype.doLayout=function(){if(!this.isVisible())return;var n=this.delegate.getAnchor(),d;if(ve.L(n)){var S=ve.C(n);d={top:S.top,left:S.left,width:S.width,height:S.height}}else d={top:n.y,left:n.x,width:n.width||1,height:n.height||2};var k=ve.H(this.view),we=ve.G(this.view),We=this.delegate.anchorPosition||0,Xe=this.delegate.anchorAlignment||0,Qe={offset:d.top-window.pageYOffset,size:d.height,position:We===0?0:1},yt;Xe===0?yt={offset:d.left,size:0,position:0}:yt={offset:d.left+d.width,size:0,position:1};var It=fa(window.innerHeight,we,Qe)+window.pageYOffset;il.a.intersects({start:It,end:It+we},{start:Qe.offset,end:Qe.offset+Qe.size})&&(yt.size=d.width,Xe===1&&(yt.offset=d.left));var Wt=fa(window.innerWidth,k,yt);ve.Q(this.view,"top","bottom","left","right"),ve.f(this.view,We===0?"bottom":"top"),ve.f(this.view,Xe===0?"left":"right");var Pt=ve.C(this.container);this.view.style.top=It-Pt.top+"px",this.view.style.left=Wt-Pt.left+"px",this.view.style.width="initial"},r.prototype.hide=function(n){var d=this.delegate;this.delegate=null,(d==null?void 0:d.onHide)&&d.onHide(n),this.toDisposeOnClean.dispose(),ve.J(this.view)},r.prototype.isVisible=function(){return!!this.delegate},r.prototype.onDOMEvent=function(n,d){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(n,document.activeElement):d&&!ve.K(n.target,this.container)&&this.hide())},r.prototype.dispose=function(){this.hide(),a.prototype.dispose.call(this)},r.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],r.BUBBLE_DOWN_EVENTS=["click"],r}(Rt.a),ma=Object(Rn.c)("layoutService"),ll=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),dl=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},cl=function(a,r){return function(n,d){r(n,d,a)}},ul=function(a){ll(r,a);function r(n){var d=a.call(this)||this;return d.layoutService=n,d.contextView=d._register(new al(n.container)),d.layout(),d._register(n.onLayout(function(){return d.layout()})),d}return r.prototype.setContainer=function(n){this.contextView.setContainer(n)},r.prototype.showContextView=function(n){this.contextView.show(n)},r.prototype.layout=function(){this.contextView.layout()},r.prototype.hideContextView=function(n){this.contextView.hide(n)},r=dl([cl(0,ma)],r),r}(Rt.a),hl=Object(Rn.c)("dialogService"),Xs=e("vl9R");function fl(a){return{data:a,incoming:Object.create(null),outgoing:Object.create(null)}}var ml=function(){function a(r){this._hashFn=r,this._nodes=Object.create(null)}return a.prototype.roots=function(){var r=[];return Object(Xs.c)(this._nodes,function(n){Object(Et.f)(n.value.outgoing)&&r.push(n.value)}),r},a.prototype.insertEdge=function(r,n){var d=this.lookupOrInsertNode(r),S=this.lookupOrInsertNode(n);d.outgoing[this._hashFn(n)]=S,S.incoming[this._hashFn(r)]=d},a.prototype.removeNode=function(r){var n=this._hashFn(r);delete this._nodes[n],Object(Xs.c)(this._nodes,function(d){delete d.value.outgoing[n],delete d.value.incoming[n]})},a.prototype.lookupOrInsertNode=function(r){var n=this._hashFn(r),d=this._nodes[n];return d||(d=fl(r),this._nodes[n]=d),d},a.prototype.isEmpty=function(){for(var r in this._nodes)return!1;return!0},a.prototype.toString=function(){var r=[];return Object(Xs.c)(this._nodes,function(n){r.push(n.key+", (incoming)["+Object.keys(n.value.incoming).join(", ")+"], (outgoing)["+Object.keys(n.value.outgoing).join(",")+"]")}),r.join(`
`)},a}(),gr=e("r0BQ"),pa=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Ys=function(){for(var a=0,r=0,n=arguments.length;r<n;r++)a+=arguments[r].length;for(var d=Array(a),S=0,r=0;r<n;r++)for(var k=arguments[r],we=0,We=k.length;we<We;we++,S++)d[S]=k[we];return d},ga=!1,pl=typeof Proxy=="function",va=function(a){pa(r,a);function r(n){var d=a.call(this,"cyclic dependency between services")||this;return d.message=n.toString(),d}return r}(Error),ya=function(){function a(r,n,d){r===void 0&&(r=new wi.a),n===void 0&&(n=!1),this._services=r,this._strict=n,this._parent=d,this._services.set(Rn.a,this)}return a.prototype.createChild=function(r){return new a(r,this._strict,this)},a.prototype.invokeFunction=function(r){for(var n=this,d=[],S=1;S<arguments.length;S++)d[S-1]=arguments[S];var k=Zs.traceInvocation(r),we=!1;try{var We={get:function(Xe,Qe){if(we)throw Object(Ct.c)("service accessor is only valid during the invocation of its target method");var yt=n._getOrCreateServiceInstance(Xe,k);if(!yt&&Qe!==Rn.d)throw new Error("[invokeFunction] unknown service '"+Xe+"'");return yt}};return r.apply(void 0,Ys([We],d))}finally{we=!0,k.stop()}},a.prototype.createInstance=function(r){for(var n=[],d=1;d<arguments.length;d++)n[d-1]=arguments[d];var S,k;return r instanceof gr.a?(S=Zs.traceCreation(r.ctor),k=this._createInstance(r.ctor,r.staticArguments.concat(n),S)):(S=Zs.traceCreation(r),k=this._createInstance(r,n,S)),S.stop(),k},a.prototype._createInstance=function(r,n,d){n===void 0&&(n=[]);for(var S=Rn.b.getServiceDependencies(r).sort(function(Wt,Pt){return Wt.index-Pt.index}),k=[],we=0,We=S;we<We.length;we++){var Xe=We[we],Qe=this._getOrCreateServiceInstance(Xe.id,d);if(!Qe&&this._strict&&!Xe.optional)throw new Error("[createInstance] "+r.name+" depends on UNKNOWN service "+Xe.id+".");k.push(Qe)}var yt=S.length>0?S[0].index:n.length;if(n.length!==yt){console.warn("[createInstance] First service dependency of "+r.name+" at position "+(yt+1)+" conflicts with "+n.length+" static arguments");var It=yt-n.length;It>0?n=n.concat(new Array(It)):n=n.slice(0,yt)}return new(r.bind.apply(r,Ys([void 0],Ys(n,k))))},a.prototype._setServiceInstance=function(r,n){if(this._services.get(r)instanceof gr.a)this._services.set(r,n);else if(this._parent)this._parent._setServiceInstance(r,n);else throw new Error("illegalState - setting UNKNOWN service instance")},a.prototype._getServiceInstanceOrDescriptor=function(r){var n=this._services.get(r);return!n&&this._parent?this._parent._getServiceInstanceOrDescriptor(r):n},a.prototype._getOrCreateServiceInstance=function(r,n){var d=this._getServiceInstanceOrDescriptor(r);return d instanceof gr.a?this._createAndCacheServiceInstance(r,d,n.branch(r,!0)):(n.branch(r,!1),d)},a.prototype._createAndCacheServiceInstance=function(r,n,d){for(var S=new ml(function(co){return co.id.toString()}),k=0,we=[{id:r,desc:n,_trace:d}];we.length;){var We=we.pop();if(S.lookupOrInsertNode(We),k++>150)throw new va(S);for(var Xe=0,Qe=Rn.b.getServiceDependencies(We.desc.ctor);Xe<Qe.length;Xe++){var yt=Qe[Xe],It=this._getServiceInstanceOrDescriptor(yt.id);if(!It&&!yt.optional&&console.warn("[createInstance] "+r+" depends on "+yt.id+" which is NOT registered."),It instanceof gr.a){var Wt={id:yt.id,desc:It,_trace:We._trace.branch(yt.id,!0)};S.insertEdge(We,Wt),we.push(Wt)}}}for(;;){var Pt=S.roots();if(Pt.length===0){if(!S.isEmpty())throw new va(S);break}for(var ro=0,eo=Pt;ro<eo.length;ro++){var Gt=eo[ro].data,Jt=this._createServiceInstanceWithOwner(Gt.id,Gt.desc.ctor,Gt.desc.staticArguments,Gt.desc.supportsDelayedInstantiation,Gt._trace);this._setServiceInstance(Gt.id,Jt),S.removeNode(Gt)}}return this._getServiceInstanceOrDescriptor(r)},a.prototype._createServiceInstanceWithOwner=function(r,n,d,S,k){if(d===void 0&&(d=[]),this._services.get(r)instanceof gr.a)return this._createServiceInstance(n,d,S,k);if(this._parent)return this._parent._createServiceInstanceWithOwner(r,n,d,S,k);throw new Error("illegalState - creating UNKNOWN service instance "+n.name)},a.prototype._createServiceInstance=function(r,n,d,S){var k=this;if(n===void 0&&(n=[]),!d||!pl)return this._createInstance(r,n,S);var we=new ut.b(function(){return k._createInstance(r,n,S)});return new Proxy(Object.create(null),{get:function(We,Xe){if(Xe in We)return We[Xe];var Qe=we.getValue(),yt=Qe[Xe];return typeof yt!="function"||(yt=yt.bind(Qe),We[Xe]=yt),yt},set:function(We,Xe,Qe){return we.getValue()[Xe]=Qe,!0}})},a}(),Zs=function(){function a(r,n){this.type=r,this.name=n,this._start=Date.now(),this._dep=[]}return a.traceInvocation=function(r){return ga?new a(1,r.name||r.toString().substring(0,42).replace(/\n/g,"")):a._None},a.traceCreation=function(r){return ga?new a(0,r.name):a._None},a.prototype.branch=function(r,n){var d=new a(2,r.toString());return this._dep.push([r,n,d]),d},a.prototype.stop=function(){var r=Date.now()-this._start;a._totals+=r;var n=!1;function d(k,we){for(var We=[],Xe=new Array(k+1).join(" "),Qe=0,yt=we._dep;Qe<yt.length;Qe++){var It=yt[Qe],Wt=It[0],Pt=It[1],ro=It[2];if(Pt&&ro){n=!0,We.push(Xe+"CREATES -> "+Wt);var eo=d(k+1,ro);eo&&We.push(eo)}else We.push(Xe+"uses -> "+Wt)}return We.join(`
`)}var S=[(this.type===0?"CREATE":"CALL")+" "+this.name,""+d(1,this),"DONE, took "+r.toFixed(2)+"ms (grand total "+a._totals.toFixed(2)+"ms)"];(r>2||n)&&console.log(S.join(`
`))},a._None=new(function(r){pa(n,r);function n(){return r.call(this,-1,null)||this}return n.prototype.stop=function(){},n.prototype.branch=function(){return this},n}(a)),a._totals=0,a}(),gl=e("R8sh"),ba=e("k9mg"),ei=e("tADe"),Di;(function(a){function r(S,k,we){return S[k]?S[k][we]:void 0}a.get=r;function n(S,k,we,We){S[k]||(S[k]=Object.create(null)),S[k][we]=We}a.set=n;function d(S,k,we){return S[k]&&S[k][we]?(delete S[k][we],Object(Et.f)(S[k])&&delete S[k],!0):!1}a.remove=d})(Di||(Di={}));var vl=function(){function a(r){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=r,this._subscription=r.onMarkerChanged(this._update,this)}return a.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},a.prototype._update=function(r){if(!this._data)return;for(var n=0,d=r;n<d.length;n++){var S=d[n],k=S.toString(),we=this._data[k];we&&this._substract(we);var We=this._resourceStats(S);this._add(We),this._data[k]=We}},a.prototype._resourceStats=function(r){var n={errors:0,warnings:0,infos:0,unknowns:0};if(r.scheme===Ce.b.inMemory||r.scheme===Ce.b.walkThrough||r.scheme===Ce.b.walkThroughSnippet)return n;for(var d=0,S=this._service.read({resource:r});d<S.length;d++){var k=S[d].severity;k===ei.c.Error?n.errors+=1:k===ei.c.Warning?n.warnings+=1:k===ei.c.Info?n.infos+=1:n.unknowns+=1}return n},a.prototype._substract=function(r){this.errors-=r.errors,this.warnings-=r.warnings,this.infos-=r.infos,this.unknowns-=r.unknowns},a.prototype._add=function(r){this.errors+=r.errors,this.warnings+=r.warnings,this.infos+=r.infos,this.unknowns+=r.unknowns},a}(),yl=function(){function a(){this._onMarkerChanged=new R.a,this._onMarkerChangedEvent=R.b.debounce(this._onMarkerChanged.event,a._debouncer,0),this._byResource=Object.create(null),this._byOwner=Object.create(null),this._stats=new vl(this)}return a.prototype.dispose=function(){this._stats.dispose()},Object.defineProperty(a.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent},enumerable:!0,configurable:!0}),a.prototype.remove=function(r,n){for(var d=0,S=n||[];d<S.length;d++){var k=S[d];this.changeOne(r,k,[])}},a.prototype.changeOne=function(r,n,d){if(Object(dt.p)(d)){var S=Di.remove(this._byResource,n.toString(),r),k=Di.remove(this._byOwner,r,n.toString());if(S!==k)throw new Error("invalid marker service state");S&&k&&this._onMarkerChanged.fire([n])}else{for(var we=[],We=0,Xe=d;We<Xe.length;We++){var Qe=Xe[We],yt=a._toMarker(r,n,Qe);yt&&we.push(yt)}Di.set(this._byResource,n.toString(),r,we),Di.set(this._byOwner,r,n.toString(),we),this._onMarkerChanged.fire([n])}},a._toMarker=function(r,n,d){var S=d.code,k=d.severity,we=d.message,We=d.source,Xe=d.startLineNumber,Qe=d.startColumn,yt=d.endLineNumber,It=d.endColumn,Wt=d.relatedInformation,Pt=d.tags;return we?(Xe=Xe>0?Xe:1,Qe=Qe>0?Qe:1,yt=yt>=Xe?yt:Xe,It=It>0?It:Qe,{resource:n,owner:r,code:S,severity:k,message:we,source:We,startLineNumber:Xe,startColumn:Qe,endLineNumber:yt,endColumn:It,relatedInformation:Wt,tags:Pt}):void 0},a.prototype.read=function(r){r===void 0&&(r=Object.create(null));var n=r.owner,d=r.resource,S=r.severities,k=r.take;if((!k||k<0)&&(k=-1),n&&d){var we=Di.get(this._byResource,d.toString(),n);if(we){for(var We=[],Xe=0,Qe=we;Xe<Qe.length;Xe++){var yt=Qe[Xe];if(a._accept(yt,S)){var It=We.push(yt);if(k>0&&It===k)break}}return We}else return[]}else if(!n&&!d){var We=[];for(var Wt in this._byResource)for(var Pt in this._byResource[Wt])for(var ro=0,eo=this._byResource[Wt][Pt];ro<eo.length;ro++){var we=eo[ro];if(a._accept(we,S)){var It=We.push(we);if(k>0&&It===k)return We}}return We}else{var Gt=n?this._byOwner[n]:d?this._byResource[d.toString()]:void 0;if(!Gt)return[];var We=[];for(var Jt in Gt)for(var co=0,So=Gt[Jt];co<So.length;co++){var we=So[co];if(a._accept(we,S)){var It=We.push(we);if(k>0&&It===k)return We}}return We}},a._accept=function(r,n){return n===void 0||(n&r.severity)===r.severity},a._debouncer=function(r,n){r||(a._dedupeMap=Object.create(null),r=[]);for(var d=0,S=n;d<S.length;d++){var k=S[d];a._dedupeMap[k.toString()]===void 0&&(a._dedupeMap[k.toString()]=!0,r.push(k))}return r},a}(),Ca=e("A+jI"),Ea=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},Qs=function(a,r){return function(n,d){r(n,d,a)}},bl=function(){function a(r){this._commandService=r}return a.prototype.createMenu=function(r,n){return new Cl(r,this._commandService,n)},a=Ea([Qs(0,J.b)],a),a}(),Cl=function(){function a(r,n,d){var S=this;this._id=r,this._commandService=n,this._contextKeyService=d,this._onDidChange=new R.a,this._dispoables=new Rt.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(R.b.debounce(R.b.filter(Kn.c.onDidChangeMenu,function(k){return k===S._id}),function(){},50)(this._build,this)),this._dispoables.add(R.b.debounce(this._contextKeyService.onDidChangeContext,function(k,we){return k||we.affectsSome(S._contextKeys)},50)(function(k){return k&&S._onDidChange.fire(void 0)},this))}return a.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},a.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var r=Kn.c.getMenuItems(this._id),n;r.sort(a._compareMenuItems);for(var d=0,S=r;d<S.length;d++){var k=S[d],we=k.group||"";(!n||n[0]!==we)&&(n=[we,[]],this._menuGroups.push(n)),n[1].push(k),a._fillInKbExprKeys(k.when,this._contextKeys),Object(Kn.e)(k)&&k.command.precondition&&a._fillInKbExprKeys(k.command.precondition,this._contextKeys),Object(Kn.e)(k)&&k.command.toggled&&a._fillInKbExprKeys(k.command.toggled,this._contextKeys)}this._onDidChange.fire(this)},a.prototype.getActions=function(r){for(var n=[],d=0,S=this._menuGroups;d<S.length;d++){for(var k=S[d],we=k[0],We=k[1],Xe=[],Qe=0,yt=We;Qe<yt.length;Qe++){var It=yt[Qe];if(this._contextKeyService.contextMatchesRules(It.when)){var Wt=Object(Kn.e)(It)?new Kn.b(It.command,It.alt,r,this._contextKeyService,this._commandService):new Kn.d(It);Xe.push(Wt)}}Xe.length>0&&n.push([we,Xe])}return n},a._fillInKbExprKeys=function(r,n){if(r)for(var d=0,S=r.keys();d<S.length;d++){var k=S[d];n.add(k)}},a._compareMenuItems=function(r,n){var d=r.group,S=n.group;if(d!==S){if(d){if(!S)return-1}else return 1;if(d==="navigation")return-1;if(S==="navigation")return 1;var k=d.localeCompare(S);if(k!==0)return k}var we=r.order||0,We=n.order||0;return we<We?-1:we>We?1:a._compareTitles(Object(Kn.e)(r)?r.command.title:r.title,Object(Kn.e)(n)?n.command.title:n.title)},a._compareTitles=function(r,n){var d=typeof r=="string"?r:r.value,S=typeof n=="string"?n:n.value;return d.localeCompare(S)},a=Ea([Qs(1,J.b),Qs(2,_n.c)],a),a}(),El=e("79sc"),wa=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),wl=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},_a=function(a,r){return function(n,d){r(n,d,a)}};function vr(a){return a.toString()}var _l=function(a){wa(r,a);function r(n){var d=a.call(this)||this;return d.model=n,d._markersData=new Map,d._register(Object(Rt.h)(function(){d.model.deltaDecorations(Object(Qn.d)(d._markersData),[]),d._markersData.clear()})),d}return r.prototype.update=function(n,d){var S=Object(Qn.d)(this._markersData);this._markersData.clear();for(var k=this.model.deltaDecorations(S,d),we=0;we<k.length;we++)this._markersData.set(k[we],n[we])},r.prototype.getMarker=function(n){return this._markersData.get(n.id)},r}(Rt.a),Sl=function(a){wa(r,a);function r(n,d){var S=a.call(this)||this;return S._markerService=d,S._onDidChangeMarker=S._register(new R.a),S._markerDecorations=new Map,n.getModels().forEach(function(k){return S._onModelAdded(k)}),S._register(n.onModelAdded(S._onModelAdded,S)),S._register(n.onModelRemoved(S._onModelRemoved,S)),S._register(S._markerService.onMarkerChanged(S._handleMarkerChange,S)),S}return r.prototype.dispose=function(){a.prototype.dispose.call(this),this._markerDecorations.forEach(function(n){return n.dispose()}),this._markerDecorations.clear()},r.prototype.getMarker=function(n,d){var S=this._markerDecorations.get(vr(n.uri));return S?Object(Et.o)(S.getMarker(d)):null},r.prototype._handleMarkerChange=function(n){var d=this;n.forEach(function(S){var k=d._markerDecorations.get(vr(S));k&&d._updateDecorations(k)})},r.prototype._onModelAdded=function(n){var d=new _l(n);this._markerDecorations.set(vr(n.uri),d),this._updateDecorations(d)},r.prototype._onModelRemoved=function(n){var d=this,S=this._markerDecorations.get(vr(n.uri));S&&(S.dispose(),this._markerDecorations.delete(vr(n.uri))),(n.uri.scheme===Ce.b.inMemory||n.uri.scheme===Ce.b.internal||n.uri.scheme===Ce.b.vscode)&&(this._markerService&&this._markerService.read({resource:n.uri}).map(function(k){return k.owner}).forEach(function(k){return d._markerService.remove(k,[n.uri])}))},r.prototype._updateDecorations=function(n){var d=this,S=this._markerService.read({resource:n.model.uri,take:500}),k=S.map(function(we){return{range:d._createDecorationRange(n.model,we),options:d._createDecorationOption(we)}});n.update(S,k),this._onDidChangeMarker.fire(n.model)},r.prototype._createDecorationRange=function(n,d){var S=W.a.lift(d);if(d.severity===ei.c.Hint&&!this._hasMarkerTag(d,1)&&!this._hasMarkerTag(d,2)&&(S=S.setEndPosition(S.startLineNumber,S.startColumn+2)),S=n.validateRange(S),S.isEmpty()){var k=n.getWordAtPosition(S.getStartPosition());if(k)S=new W.a(S.startLineNumber,k.startColumn,S.endLineNumber,k.endColumn);else{var we=n.getLineLastNonWhitespaceColumn(S.startLineNumber)||n.getLineMaxColumn(S.startLineNumber);we===1||(S.endColumn>=we?S=new W.a(S.startLineNumber,we-1,S.endLineNumber,we):S=new W.a(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn+1))}}else if(d.endColumn===Number.MAX_VALUE&&d.startColumn===1&&S.startLineNumber===S.endLineNumber){var We=n.getLineFirstNonWhitespaceColumn(d.startLineNumber);We<S.endColumn&&(S=new W.a(S.startLineNumber,We,S.endLineNumber,S.endColumn),d.startColumn=We)}return S},r.prototype._createDecorationOption=function(n){var d,S=void 0,k,we=void 0,We;switch(n.severity){case ei.c.Hint:this._hasMarkerTag(n,2)?d=void 0:this._hasMarkerTag(n,1)?d="squiggly-unnecessary":d="squiggly-hint",k=0;break;case ei.c.Warning:d="squiggly-warning",S=Object(Ln.f)(Vn.r),k=20,We={color:Object(Ln.f)(gn.Jb),position:pt.c.Inline};break;case ei.c.Info:d="squiggly-info",S=Object(Ln.f)(Vn.q),k=10;break;case ei.c.Error:default:d="squiggly-error",S=Object(Ln.f)(Vn.p),k=30,We={color:Object(Ln.f)(gn.Gb),position:pt.c.Inline};break}return n.tags&&(n.tags.indexOf(1)!==-1&&(we="squiggly-inline-unnecessary"),n.tags.indexOf(2)!==-1&&(we="squiggly-inline-deprecated")),{stickiness:1,className:d,showIfCollapsed:!0,overviewRuler:{color:S,position:pt.d.Right},minimap:We,zIndex:k,inlineClassName:we}},r.prototype._hasMarkerTag=function(n,d){return n.tags?n.tags.indexOf(d)>=0:!1},r=wl([_a(0,Ae.a),_a(1,ei.b)],r),r}(Rt.a),Ll=e("9fML"),Ml=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),Dl=function(a,r,n,d){var S=arguments.length,k=S<3?r:d===null?d=Object.getOwnPropertyDescriptor(r,n):d,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(a,r,n,d);else for(var We=a.length-1;We>=0;We--)(we=a[We])&&(k=(S<3?we(k):S>3?we(r,n,k):we(r,n))||k);return S>3&&k&&Object.defineProperty(r,n,k),k},Sa=function(a,r){return function(n,d){r(n,d,a)}},Ol=function(a){Ml(r,a);function r(n,d){var S=a.call(this)||this;S._contextKeyService=n,S._configurationService=d,S._accessibilitySupport=0,S._onDidChangeScreenReaderOptimized=new R.a,S._accessibilityModeEnabledContext=mi.a.bindTo(S._contextKeyService);var k=function(){return S._accessibilityModeEnabledContext.set(S.isScreenReaderOptimized())};return S._register(S._configurationService.onDidChangeConfiguration(function(we){we.affectsConfiguration("editor.accessibilitySupport")&&(k(),S._onDidChangeScreenReaderOptimized.fire())})),k(),S.onDidChangeScreenReaderOptimized(function(){return k()}),S}return Object.defineProperty(r.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),r.prototype.isScreenReaderOptimized=function(){var n=this._configurationService.getValue("editor.accessibilitySupport");return n==="on"||n==="auto"&&this._accessibilitySupport===2},r.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},r=Dl([Sa(0,_n.c),Sa(1,On.a)],r),r}(Rt.a),Tl=function(){var a=function(r,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,S){d.__proto__=S}||function(d,S){for(var k in S)S.hasOwnProperty(k)&&(d[k]=S[k])},a(r,n)};return function(r,n){a(r,n);function d(){this.constructor=r}r.prototype=n===null?Object.create(n):(d.prototype=n.prototype,new d)}}(),nn;(function(a){var r=new wi.a,n=function(){function We(Xe,Qe){this._serviceId=Xe,this._factory=Qe,this._value=null}return Object.defineProperty(We.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),We.prototype.get=function(Xe){if(!this._value){if(Xe&&(this._value=Xe[this._serviceId.toString()]),this._value||(this._value=this._factory(Xe)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");r.set(this._serviceId,this._value)}return this._value},We}();a.LazyStaticService=n;var d=[];function S(We,Xe){var Qe=new n(We,Xe);return d.push(Qe),Qe}function k(We){for(var Xe=new wi.a,Qe=0,yt=Object(Ll.a)();Qe<yt.length;Qe++){var It=yt[Qe],Wt=It[0],Pt=It[1];Xe.set(Wt,Pt)}for(var ro in We)We.hasOwnProperty(ro)&&Xe.set(Object(Rn.c)(ro),We[ro]);d.forEach(function(Gt){return Xe.set(Gt.id,Gt.get(We))});var eo=new ya(Xe,!0);return Xe.set(Rn.a,eo),[Xe,eo]}a.init=k,a.instantiationService=S(Rn.a,function(){return new ya(r,!0)});var we=new Dr;a.configurationService=S(On.a,function(){return we}),a.resourceConfigurationService=S(Ne.a,function(){return new us(we)}),a.resourcePropertiesService=S(Ne.b,function(){return new hs(we)}),a.contextService=S(Sr.a,function(){return new ms}),a.labelService=S(gl.a,function(){return new Or}),a.telemetryService=S(Gs.a,function(){return new fs}),a.dialogService=S(hl,function(){return new ls}),a.notificationService=S(Hn.a,function(){return new ds}),a.markerService=S(ei.b,function(){return new yl}),a.modeService=S(Ps.a,function(We){return new Bs}),a.standaloneThemeService=S(Si.a,function(){return new Ha}),a.logService=S(lt.a,function(){return new lt.c}),a.modelService=S(Ae.a,function(We){return new t(a.configurationService.get(We),a.resourcePropertiesService.get(We),a.standaloneThemeService.get(We),a.logService.get(We))}),a.markerDecorationsService=S(El.a,function(We){return new Sl(a.modelService.get(We),a.markerService.get(We))}),a.codeEditorService=S(ue.a,function(We){return new Mo(a.standaloneThemeService.get(We))}),a.editorProgressService=S(Ii.a,function(){return new ra}),a.storageService=S(Ca.a,function(){return new Ca.b}),a.editorWorkerService=S(it.a,function(We){return new He(a.modelService.get(We),a.resourceConfigurationService.get(We),a.logService.get(We))})})(nn||(nn={}));var xl=function(a){Tl(r,a);function r(n,d){var S=a.call(this)||this,k=nn.init(d),we=k[0],We=k[1];S._serviceCollection=we,S._instantiationService=We;var Xe=S.get(On.a),Qe=S.get(Hn.a),yt=S.get(Gs.a),It=S.get(Ln.c),Wt=function(co,So){var xo=null;return d&&(xo=d[co.toString()]),xo||(xo=So()),S._serviceCollection.set(co,xo),xo},Pt=Wt(_n.c,function(){return S._register(new Ya(Xe))});Wt(mi.b,function(){return new Ol(Pt,Xe)}),Wt(ba.a,function(){return new ba.b(It)});var ro=Wt(J.b,function(){return new cs(S._instantiationService)}),eo=Wt(ni.a,function(){return S._register(new Lr(Pt,ro,yt,Qe,n))}),Gt=Wt(ma,function(){return new Tr(n)}),Jt=Wt(Xn.b,function(){return S._register(new ul(Gt))});return Wt(Xn.a,function(){var co=new nl(yt,Qe,Jt,eo,It);return co.configure({blockMouse:!1}),S._register(co)}),Wt(Kn.a,function(){return new bl(ro)}),Wt(js.a,function(){return new sa(nn.modelService.get(Ae.a))}),S}return r.prototype.get=function(n){var d=this._serviceCollection.get(n);if(!d)throw new Error("Missing service "+n);return d},r.prototype.set=function(n,d){this._serviceCollection.set(n,d)},r.prototype.has=function(n){return this._serviceCollection.has(n)},r}(Rt.a);function La(a,r,n){var d=new xl(a,r),S=null;d.has(et.a)||(S=new as(nn.modelService.get()),d.set(et.a,S)),d.has(b.a)||d.set(b.a,new nt(d.get(ue.a),d.get(J.b)));var k=n(d);return S&&S.setEditor(k),k}function Al(a,r,n){return La(a,n||{},function(d){return new lr(a,r,d,d.get(Rn.a),d.get(ue.a),d.get(J.b),d.get(_n.c),d.get(ni.a),d.get(Xn.b),d.get(Si.a),d.get(Hn.a),d.get(On.a),d.get(mi.b))})}function Rl(a){return nn.codeEditorService.get().onCodeEditorAdd(function(r){a(r)})}function Il(a,r,n){return La(a,n||{},function(d){return new Ns(a,r,d,d.get(Rn.a),d.get(_n.c),d.get(ni.a),d.get(Xn.b),d.get(it.a),d.get(ue.a),d.get(Si.a),d.get(Hn.a),d.get(On.a),d.get(Xn.a),d.get(Ii.a),null)})}function Nl(a,r){return new lo(a,r)}function Ma(a,r,n){return nn.modelService.get().createModel(a,r,n)}function jl(a,r,n){if(a=a||"",!r){var d=a.indexOf(`
`),S=a;return d!==-1&&(S=a.substring(0,d)),Ma(a,nn.modeService.get().createByFilepathOrFirstLine(n||null,S),n)}return Ma(a,nn.modeService.get().create(r),n)}function Pl(a,r){nn.modelService.get().setMode(a,nn.modeService.get().create(r))}function kl(a,r,n){a&&nn.markerService.get().changeOne(r,a.uri,n)}function Fl(a){return nn.markerService.get().read(a)}function Wl(a){return nn.modelService.get().getModel(a)}function Bl(){return nn.modelService.get().getModels()}function Ul(a){return nn.modelService.get().onModelAdded(a)}function Hl(a){return nn.modelService.get().onModelRemoved(a)}function Vl(a){return nn.modelService.get().onModelModeChanged(function(r){a({model:r.model,oldLanguage:r.oldModeId})})}function zl(a){return Ze(nn.modelService.get(),a)}function Kl(a,r){return zi.colorizeElement(nn.standaloneThemeService.get(),nn.modeService.get(),a,r)}function Gl(a,r,n){return zi.colorize(nn.modeService.get(),a,r,n)}function Xl(a,r,n){return n===void 0&&(n=4),zi.colorizeModelLine(a,r,n)}function Yl(a){var r=gt.B.get(a);return r||{getInitialState:function(){return Tt.c},tokenize:function(n,d,S){return Object(Tt.d)(a,n,d,S)}}}function Zl(a,r){var n=nn.modeService.get();n.triggerMode(r);for(var d=Yl(r),S=a.split(/\r\n|\r|\n/),k=[],we=d.getInitialState(),We=0,Xe=S.length;We<Xe;We++){var Qe=S[We],yt=d.tokenize(Qe,we,0);k[We]=yt.tokens,we=yt.endState}return k}function Ql(a,r){nn.standaloneThemeService.get().defineTheme(a,r)}function $l(a){nn.standaloneThemeService.get().setTheme(a)}function Jl(){Object(Ti.b)()}function ql(){return{create:Al,onDidCreateEditor:Rl,createDiffEditor:Il,createDiffNavigator:Nl,createModel:jl,setModelLanguage:Pl,setModelMarkers:kl,getModelMarkers:Fl,getModels:Bl,getModel:Wl,onDidCreateModel:Ul,onWillDisposeModel:Hl,onDidChangeModelLanguage:Vl,createWebWorker:zl,colorizeElement:Kl,colorize:Gl,colorizeModelLine:Xl,tokenize:Zl,defineTheme:Ql,setTheme:$l,remeasureFonts:Jl,AccessibilitySupport:y,ContentWidgetPositionPreference:g,CursorChangeReason:u,DefaultEndOfLine:s,EditorAutoIndentStrategy:c,EditorOption:p,EndOfLinePreference:_,EndOfLineSequence:L,MinimapPosition:K,MouseTargetType:H,OverlayWidgetPositionPreference:V,OverviewRulerLane:de,RenderLineNumbersType:_e,RenderMinimap:Se,ScrollbarVisibility:Pe,ScrollType:Ie,TextEditorCursorBlinkingStyle:ie,TextEditorCursorStyle:q,TrackedRangeStickiness:ce,WrappingIndent:Z,ConfigurationChangedEvent:T.a,BareFontInfo:so.a,FontInfo:so.b,TextModelResolvedOptions:pt.e,FindMatch:pt.b,EditorType:jt.a,EditorOptions:T.e}}function ed(a,r){if(!r)return!1;if(!Array.isArray(r))return!1;for(var n=0,d=r;n<d.length;n++){var S=d[n];if(!a(S))return!1}return!0}function Da(a,r){return typeof a=="boolean"?a:r}function Oa(a,r){return typeof a=="string"?a:r}function td(a){for(var r={},n=0,d=a;n<d.length;n++){var S=d[n];r[S]=!0}return r}function Ta(a,r){r===void 0&&(r=!1),r&&(a=a.map(function(d){return d.toLowerCase()}));var n=td(a);return r?function(d){return n[d.toLowerCase()]!==void 0&&n.hasOwnProperty(d.toLowerCase())}:function(d){return n[d]!==void 0&&n.hasOwnProperty(d)}}function $s(a,r){for(var n=0;r.indexOf("@")>=0&&n<5;)n++,r=r.replace(/@(\w+)/g,function(d,S){var k="";if(typeof a[S]=="string")k=a[S];else if(a[S]&&a[S]instanceof RegExp)k=a[S].source;else throw a[S]===void 0?Oo(a,"language definition does not contain attribute '"+S+"', used at: "+r):Oo(a,"attribute reference '"+S+"' must be a string, used at: "+r);return To(k)?"":"(?:"+k+")"});return new RegExp(r,a.ignoreCase?"i":"")}function od(a,r,n,d){if(d<0)return a;if(d<r.length)return r[d];if(d>=100){d=d-100;var S=n.split(".");if(S.unshift(n),d<S.length)return S[d]}return null}function nd(a,r,n,d){var S=-1,k=n,we=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);we&&(we[3]&&(S=parseInt(we[3]),we[2]&&(S=S+100)),k=we[4]);var We="~",Xe=k;!k||k.length===0?(We="!=",Xe=""):/^\w*$/.test(Xe)?We="==":(we=k.match(/^(@|!@|~|!~|==|!=)(.*)$/),we&&(We=we[1],Xe=we[2]));var Qe;if((We==="~"||We==="!~")&&/^(\w|\|)*$/.test(Xe)){var yt=Ta(Xe.split("|"),a.ignoreCase);Qe=function(Gt){return We==="~"?yt(Gt):!yt(Gt)}}else if(We==="@"||We==="!@"){var It=a[Xe];if(!It)throw Oo(a,"the @ match target '"+Xe+"' is not defined, in rule: "+r);if(!ed(function(Gt){return typeof Gt=="string"},It))throw Oo(a,"the @ match target '"+Xe+"' must be an array of strings, in rule: "+r);var Wt=Ta(It,a.ignoreCase);Qe=function(Gt){return We==="@"?Wt(Gt):!Wt(Gt)}}else if(We==="~"||We==="!~")if(Xe.indexOf("$")<0){var Pt=$s(a,"^"+Xe+"$");Qe=function(Gt){return We==="~"?Pt.test(Gt):!Pt.test(Gt)}}else Qe=function(Gt,Jt,co,So){var xo=$s(a,"^"+Lo(a,Xe,Jt,co,So)+"$");return xo.test(Gt)};else if(Xe.indexOf("$")<0){var ro=wo(a,Xe);Qe=function(Gt){return We==="=="?Gt===ro:Gt!==ro}}else{var eo=wo(a,Xe);Qe=function(Gt,Jt,co,So,xo){var Po=Lo(a,eo,Jt,co,So);return We==="=="?Gt===Po:Gt!==Po}}return S===-1?{name:n,value:d,test:function(Gt,Jt,co,So){return Qe(Gt,Gt,Jt,co,So)}}:{name:n,value:d,test:function(Gt,Jt,co,So){var xo=od(Gt,Jt,co,S);return Qe(xo||"",Gt,Jt,co,So)}}}function Js(a,r,n){if(n){if(typeof n=="string")return n;if(n.token||n.token===""){if(typeof n.token!="string")throw Oo(a,"a 'token' attribute must be of type string, in rule: "+r);var d={token:n.token};if(n.token.indexOf("$")>=0&&(d.tokenSubst=!0),typeof n.bracket=="string")if(n.bracket==="@open")d.bracket=1;else if(n.bracket==="@close")d.bracket=-1;else throw Oo(a,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+r);if(n.next){if(typeof n.next!="string")throw Oo(a,"the next state must be a string value in rule: "+r);var S=n.next;if(!/^(@pop|@push|@popall)$/.test(S)&&(S[0]==="@"&&(S=S.substr(1)),S.indexOf("$")<0&&!hn(a,Lo(a,S,"",[],""))))throw Oo(a,"the next state '"+n.next+"' is not defined in rule: "+r);d.next=S}return typeof n.goBack=="number"&&(d.goBack=n.goBack),typeof n.switchTo=="string"&&(d.switchTo=n.switchTo),typeof n.log=="string"&&(d.log=n.log),typeof n.nextEmbedded=="string"&&(d.nextEmbedded=n.nextEmbedded,a.usesEmbedded=!0),d}else if(Array.isArray(n)){for(var k=[],we=0,We=n.length;we<We;we++)k[we]=Js(a,r,n[we]);return{group:k}}else if(n.cases){var Xe=[];for(var Qe in n.cases)if(n.cases.hasOwnProperty(Qe)){var yt=Js(a,r,n.cases[Qe]);Qe==="@default"||Qe==="@"||Qe===""?Xe.push({test:void 0,value:yt,name:Qe}):Qe==="@eos"?Xe.push({test:function(Wt,Pt,ro,eo){return eo},value:yt,name:Qe}):Xe.push(nd(a,r,Qe,yt))}var It=a.defaultToken;return{test:function(Wt,Pt,ro,eo){for(var Gt=0,Jt=Xe;Gt<Jt.length;Gt++){var co=Jt[Gt],So=!co.test||co.test(Wt,Pt,ro,eo);if(So)return co.value}return It}}}else throw Oo(a,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+r)}else return{token:""}}var id=function(){function a(r){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=r}return a.prototype.setRegex=function(r,n){var d;if(typeof n=="string")d=n;else if(n instanceof RegExp)d=n.source;else throw Oo(r,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=d.length>0&&d[0]==="^",this.name=this.name+": "+d,this.regex=$s(r,"^(?:"+(this.matchOnlyAtLineStart?d.substr(1):d)+")")},a.prototype.setAction=function(r,n){this.action=Js(r,this.name,n)},a}();function rd(a,r){if(!r||typeof r!="object")throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=a,n.noThrow=!1,n.maxStack=100,n.start=typeof r.start=="string"?r.start:null,n.ignoreCase=Da(r.ignoreCase,!1),n.tokenPostfix=Oa(r.tokenPostfix,"."+n.languageId),n.defaultToken=Oa(r.defaultToken,"source"),n.usesEmbedded=!1;var d=r;d.languageId=a,d.ignoreCase=n.ignoreCase,d.noThrow=n.noThrow,d.usesEmbedded=n.usesEmbedded,d.stateNames=r.tokenizer,d.defaultToken=n.defaultToken;function S(Wt,Pt,ro){for(var eo=0,Gt=ro;eo<Gt.length;eo++){var Jt=Gt[eo],co=Jt.include;if(co){if(typeof co!="string")throw Oo(n,"an 'include' attribute must be a string at: "+Wt);if(co[0]==="@"&&(co=co.substr(1)),!r.tokenizer[co])throw Oo(n,"include target '"+co+"' is not defined at: "+Wt);S(Wt+"."+co,Pt,r.tokenizer[co])}else{var So=new id(Wt);if(Array.isArray(Jt)&&Jt.length>=1&&Jt.length<=3)if(So.setRegex(d,Jt[0]),Jt.length>=3)if(typeof Jt[1]=="string")So.setAction(d,{token:Jt[1],next:Jt[2]});else if(typeof Jt[1]=="object"){var xo=Jt[1];xo.next=Jt[2],So.setAction(d,xo)}else throw Oo(n,"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: "+Wt);else So.setAction(d,Jt[1]);else{if(!Jt.regex)throw Oo(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+Wt);Jt.name&&(typeof Jt.name=="string"&&(So.name=Jt.name)),Jt.matchOnlyAtStart&&(So.matchOnlyAtLineStart=Da(Jt.matchOnlyAtLineStart,!1)),So.setRegex(d,Jt.regex),So.setAction(d,Jt.action)}Pt.push(So)}}}if(!r.tokenizer||typeof r.tokenizer!="object")throw Oo(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(var k in r.tokenizer)if(r.tokenizer.hasOwnProperty(k)){n.start||(n.start=k);var we=r.tokenizer[k];n.tokenizer[k]=new Array,S("tokenizer."+k,n.tokenizer[k],we)}if(n.usesEmbedded=d.usesEmbedded,r.brackets){if(!Array.isArray(r.brackets))throw Oo(n,"the 'brackets' attribute must be defined as an array")}else r.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];for(var We=[],Xe=0,Qe=r.brackets;Xe<Qe.length;Xe++){var yt=Qe[Xe],It=yt;if(It&&Array.isArray(It)&&It.length===3&&(It={token:It[2],open:It[0],close:It[1]}),It.open===It.close)throw Oo(n,"open and close brackets in a 'brackets' attribute must be different: "+It.open+`
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof It.open=="string"&&typeof It.token=="string"&&typeof It.close=="string")We.push({token:It.token+n.tokenPostfix,open:wo(n,It.open),close:wo(n,It.close)});else throw Oo(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return n.brackets=We,n.noThrow=!0,n}function sd(a){gi.a.registerLanguage(a)}function ad(){var a=[];return a=a.concat(gi.a.getLanguages()),a}function ld(a){var r=nn.modeService.get().getLanguageIdentifier(a);return r?r.id:0}function dd(a,r){var n=nn.modeService.get().onDidCreateMode(function(d){d.getId()===a&&(n.dispose(),r())});return n}function cd(a,r){var n=nn.modeService.get().getLanguageIdentifier(a);if(!n)throw new Error("Cannot set configuration for unknown language "+a);return Fe.a.register(n,r)}var ud=function(){function a(r){this._actual=r}return a.prototype.getInitialState=function(){return this._actual.getInitialState()},a.prototype.tokenize=function(r,n,d){throw new Error("Not supported!")},a.prototype.tokenize2=function(r,n){var d=this._actual.tokenizeEncoded(r,n);return new h.c(d.tokens,d.endState)},a}(),hd=function(){function a(r,n,d){this._standaloneThemeService=r,this._languageIdentifier=n,this._actual=d}return a.prototype.getInitialState=function(){return this._actual.getInitialState()},a.prototype._toClassicTokens=function(r,n,d){for(var S=[],k=0,we=0,We=r.length;we<We;we++){var Xe=r[we],Qe=Xe.startIndex;we===0?Qe=0:Qe<k&&(Qe=k),S[we]=new h.a(Qe+d,Xe.scopes,n),k=Qe}return S},a.prototype.tokenize=function(r,n,d){var S=this._actual.tokenize(r,n),k=this._toClassicTokens(S.tokens,this._languageIdentifier.language,d),we;return S.endState.equals(n)?we=n:we=S.endState,new h.b(k,we)},a.prototype._toBinaryTokens=function(r,n){for(var d=this._languageIdentifier.id,S=this._standaloneThemeService.getTheme().tokenTheme,k=[],we=0,We=0,Xe=0,Qe=r.length;Xe<Qe;Xe++){var yt=r[Xe],It=S.match(d,yt.scopes);if(we>0&&k[we-1]===It)continue;var Wt=yt.startIndex;Xe===0?Wt=0:Wt<We&&(Wt=We),k[we++]=Wt+n,k[we++]=It,We=Wt}for(var Pt=new Uint32Array(we),Xe=0;Xe<we;Xe++)Pt[Xe]=k[Xe];return Pt},a.prototype.tokenize2=function(r,n,d){var S=this._actual.tokenize(r,n),k=this._toBinaryTokens(S.tokens,d),we;return S.endState.equals(n)?we=n:we=S.endState,new h.c(k,we)},a}();function fd(a){return"tokenizeEncoded"in a}function xa(a){return a&&typeof a.then=="function"}function md(a,r){var n=nn.modeService.get().getLanguageIdentifier(a);if(!n)throw new Error("Cannot set tokens provider for unknown language "+a);var d=function(S){return fd(S)?new ud(S):new hd(nn.standaloneThemeService.get(),n,S)};return xa(r)?gt.B.registerPromise(a,r.then(function(S){return d(S)})):gt.B.register(a,d(r))}function pd(a,r){var n=function(d){return oa(nn.modeService.get(),nn.standaloneThemeService.get(),a,rd(a,d))};return xa(r)?gt.B.registerPromise(a,r.then(function(d){return n(d)})):gt.B.register(a,n(r))}function gd(a,r){return gt.u.register(a,r)}function vd(a,r){return gt.v.register(a,r)}function yd(a,r){return gt.x.register(a,r)}function bd(a,r){return gt.p.register(a,{provideHover:function(n,d,S){var k=n.getWordAtPosition(d);return Promise.resolve(r.provideHover(n,d,S)).then(function(we){return we?(!we.range&&k&&(we.range=new W.a(d.lineNumber,k.startColumn,d.lineNumber,k.endColumn)),we.range||(we.range=new W.a(d.lineNumber,d.column,d.lineNumber,d.column)),we):void 0})}})}function Cd(a,r){return gt.m.register(a,r)}function Ed(a,r){return gt.i.register(a,r)}function wd(a,r){return gt.f.register(a,r)}function _d(a,r){return gt.q.register(a,r)}function Sd(a,r){return gt.C.register(a,r)}function Ld(a,r){return gt.b.register(a,r)}function Md(a,r){return gt.a.register(a,{provideCodeActions:function(n,d,S,k){var we=nn.markerService.get().read({resource:n.uri}).filter(function(We){return W.a.areIntersectingOrTouching(We,d)});return r.provideCodeActions(n,d,{markers:we,only:S.only},k)}})}function Dd(a,r){return gt.g.register(a,r)}function Od(a,r){return gt.j.register(a,r)}function Td(a,r){return gt.t.register(a,r)}function xd(a,r){return gt.s.register(a,r)}function Ad(a,r){return gt.d.register(a,r)}function Rd(a,r){return gt.c.register(a,r)}function Id(a,r){return gt.o.register(a,r)}function Nd(a,r){return gt.e.register(a,r)}function jd(a,r){return gt.w.register(a,r)}function Pd(a,r){return gt.l.register(a,r)}function kd(a,r){return gt.k.register(a,r)}function Fd(){return{register:sd,getLanguages:ad,onLanguage:dd,getEncodedLanguageId:ld,setLanguageConfiguration:cd,setTokensProvider:md,setMonarchTokensProvider:pd,registerReferenceProvider:gd,registerRenameProvider:vd,registerCompletionItemProvider:Ad,registerSignatureHelpProvider:yd,registerHoverProvider:bd,registerDocumentSymbolProvider:Cd,registerDocumentHighlightProvider:Ed,registerDefinitionProvider:wd,registerImplementationProvider:_d,registerTypeDefinitionProvider:Sd,registerCodeLensProvider:Ld,registerCodeActionProvider:Md,registerDocumentFormattingEditProvider:Dd,registerDocumentRangeFormattingEditProvider:Od,registerOnTypeFormattingEditProvider:Td,registerLinkProvider:xd,registerColorProvider:Rd,registerFoldingRangeProvider:Id,registerDeclarationProvider:Nd,registerSelectionRangeProvider:jd,registerDocumentSemanticTokensProvider:Pd,registerDocumentRangeSemanticTokensProvider:kd,DocumentHighlightKind:l,CompletionItemKind:f,CompletionItemTag:v,CompletionItemInsertTextRule:w,SymbolKind:se,SymbolTag:ee,IndentAction:I,CompletionTriggerKind:C,SignatureHelpTriggerKind:ke,FoldingRangeKind:gt.n}}var Xr=self;T.e.wrappingIndent.defaultValue=0,T.e.glyphMargin.defaultValue=!1,T.e.autoIndent.defaultValue=3,T.e.overviewRulerLanes.defaultValue=2;var jn=je();jn.editor=ql(),jn.languages=Fd();var Wd=jn.CancellationTokenSource,Bd=jn.Emitter,Ud=jn.KeyCode,Hd=jn.KeyMod,Vd=jn.Position,zd=jn.Range,Kd=jn.Selection,Gd=jn.SelectionDirection,Xd=jn.MarkerSeverity,Yd=jn.MarkerTag,Zd=jn.Uri,Qd=jn.Token,$d=jn.editor,Jd=jn.languages;Xr.monaco=jn,typeof Xr.require!="undefined"&&typeof Xr.require.config=="function"&&Xr.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"]})},"9B1q":function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return e.e(300).then(e.bind(null,"v7Iz"))}})},"9XAT":function(Lt,N,e){"use strict";e.r(N),e.d(N,"LanguageServiceDefaultsImpl",function(){return R});var T=e("M/lh"),le=e.n(T);"use strict";var $=monaco.Emitter,R=function(){function w(f,v,C){this._onDidChange=new $,this._languageId=f,this.setDiagnosticsOptions(v),this.setModeConfiguration(C)}return Object.defineProperty(w.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),w.prototype.setDiagnosticsOptions=function(f){this._diagnosticsOptions=f||Object.create(null),this._onDidChange.fire(this)},w.prototype.setModeConfiguration=function(f){this._modeConfiguration=f||Object.create(null),this._onDidChange.fire(this)},w}(),B={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"}},z={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},D=new R("css",B,z),W=new R("scss",B,z),x=new R("less",B,z);function h(){return{cssDefaults:D,lessDefaults:x,scssDefaults:W}}monaco.languages.css=h();function y(){return e.e(288).then(e.bind(null,"20/g"))}monaco.languages.onLanguage("less",function(){y().then(function(w){return w.setupMode(x)})}),monaco.languages.onLanguage("scss",function(){y().then(function(w){return w.setupMode(W)})}),monaco.languages.onLanguage("css",function(){y().then(function(w){return w.setupMode(D)})})},"9XeP":function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("Cg/j"),le=Object(T.c)("clipboardService")},"9Y+e":function(Lt,N,e){"use strict";e.d(N,"a",function(){return T});var T=function(){function le($,R,B,z,D,W){this.id=$,this.label=R,this.alias=B,this._precondition=z,this._run=D,this._contextKeyService=W}return le.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},le.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var $=this._run();return $||Promise.resolve(void 0)},le}()},"9fML":function(Lt,N,e){"use strict";e.d(N,"b",function(){return $}),e.d(N,"a",function(){return R});var T=e("r0BQ"),le=[];function $(B,z,D){le.push([B,new T.a(z,[],D)])}function R(){return le}},"9o5J":function(Lt,N,e){"use strict";e.d(N,"b",function(){return W}),e.d(N,"a",function(){return h}),e.d(N,"c",function(){return y});var T=e("3/fG"),le=e("MI8n"),$=e("gslv"),R=e("pmY6"),B=e("N0LK"),z=e("nD70"),D=e("aokT"),W=function(){function w(f,v,C,g){this.isProviderFirst=f,this.parent=v,this._range=C,this._rangeCallback=g,this.id=z.b.nextId()}return Object.defineProperty(w.prototype,"uri",{get:function(){return this.parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"range",{get:function(){return this._range},set:function(f){this._range=f,this._rangeCallback(this)},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"ariaMessage",{get:function(){return Object(T.a)("aria.oneReference","symbol in {0} on line {1} at column {2}",Object($.b)(this.uri),this.range.startLineNumber,this.range.startColumn)},enumerable:!0,configurable:!0}),w}(),x=function(){function w(f){this._modelReference=f}return w.prototype.dispose=function(){this._modelReference.dispose()},w.prototype.preview=function(f,v){v===void 0&&(v=8);var C=this._modelReference.object.textEditorModel;if(!C)return;var g=f.startLineNumber,u=f.startColumn,s=f.endLineNumber,l=f.endColumn,c=C.getWordUntilPosition({lineNumber:g,column:u-v}),p=new D.a(g,c.startColumn,g,u),_=new D.a(s,l,s,1073741824),L=C.getValueInRange(p).replace(/^\s+/,""),I=C.getValueInRange(f),P=C.getValueInRange(_).replace(/\s+$/,"");return{value:L+I+P,highlight:{start:L.length,end:L.length+I.length}}},w}(),h=function(){function w(f,v){this.parent=f,this.uri=v,this.children=[]}return w.prototype.dispose=function(){Object(R.f)(this._preview),this._preview=void 0},Object.defineProperty(w.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"ariaMessage",{get:function(){var f=this.children.length;return f===1?Object(T.a)("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object($.b)(this.uri),this.uri.fsPath):Object(T.a)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",f,Object($.b)(this.uri),this.uri.fsPath)},enumerable:!0,configurable:!0}),w.prototype.resolve=function(f){var v=this;return this._resolved?Promise.resolve(this):Promise.resolve(f.createModelReference(this.uri).then(function(C){var g=C.object;if(!g)throw C.dispose(),new Error;return v._preview=new x(C),v._resolved=!0,v},function(C){return v.children.length=0,v._resolved=!0,v._loadFailure=C,v}))},w}(),y=function(){function w(f,v){var C=this;this._disposables=new R.b,this.groups=[],this.references=[],this._onDidChangeReferenceRange=new le.a,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=f,this._title=v;var g=f[0];f.sort(w._compareReferences);for(var u,s=0,l=f;s<l.length;s++){var c=l[s];if((!u||u.uri.toString()!==c.uri.toString())&&(u=new h(this,c.uri),this.groups.push(u)),u.children.length===0||!D.a.equalsRange(c.range,u.children[u.children.length-1].range)){var p=new W(g===c,u,c.targetSelectionRange||c.range,function(_){return C._onDidChangeReferenceRange.fire(_)});this.references.push(p),u.children.push(p)}}}return w.prototype.dispose=function(){Object(R.f)(this.groups),this._disposables.dispose(),this._onDidChangeReferenceRange.dispose(),this.groups.length=0},w.prototype.clone=function(){return new w(this._links,this._title)},Object.defineProperty(w.prototype,"title",{get:function(){return this._title},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"isEmpty",{get:function(){return this.groups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"ariaMessage",{get:function(){return this.isEmpty?Object(T.a)("aria.result.0","No results found"):this.references.length===1?Object(T.a)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?Object(T.a)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(T.a)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)},enumerable:!0,configurable:!0}),w.prototype.nextOrPreviousReference=function(f,v){var C=f.parent,g=C.children.indexOf(f),u=C.children.length,s=C.parent.groups.length;return s===1||v&&g+1<u||!v&&g>0?(v?g=(g+1)%u:g=(g+u-1)%u,C.children[g]):(g=C.parent.groups.indexOf(C),v?(g=(g+1)%s,C.parent.groups[g].children[0]):(g=(g+s-1)%s,C.parent.groups[g].children[C.parent.groups[g].children.length-1]))},w.prototype.nearestReference=function(f,v){var C=this.references.map(function(g,u){return{idx:u,prefixLen:B.c(g.uri.toString(),f.toString()),offsetDist:Math.abs(g.range.startLineNumber-v.lineNumber)*100+Math.abs(g.range.startColumn-v.column)}}).sort(function(g,u){return g.prefixLen>u.prefixLen?-1:g.prefixLen<u.prefixLen?1:g.offsetDist<u.offsetDist?-1:g.offsetDist>u.offsetDist?1:0})[0];return C?this.references[C.idx]:void 0},w.prototype.referenceAt=function(f,v){for(var C=0,g=this.references;C<g.length;C++){var u=g[C];if(u.uri.toString()===f.toString()&&D.a.containsPosition(u.range,v))return u}return},w.prototype.firstReference=function(){for(var f=0,v=this.references;f<v.length;f++){var C=v[f];if(C.isProviderFirst)return C}return this.references[0]},w._compareReferences=function(f,v){return B.e(f.uri.toString(),v.uri.toString())||D.a.compareRangesUsingStarts(f.range,v.range)},w}()},"A+jI":function(Lt,N,e){"use strict";e.d(N,"a",function(){return z}),e.d(N,"c",function(){return D}),e.d(N,"b",function(){return W});var T=e("Cg/j"),le=e("MI8n"),$=e("pmY6"),R=e("746U"),B=function(){var x=function(h,y){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,f){w.__proto__=f}||function(w,f){for(var v in f)f.hasOwnProperty(v)&&(w[v]=f[v])},x(h,y)};return function(h,y){x(h,y);function w(){this.constructor=h}h.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}}(),z=Object(T.c)("storageService"),D;(function(x){x[x.NONE=0]="NONE",x[x.SHUTDOWN=1]="SHUTDOWN"})(D||(D={}));var W=function(x){B(h,x);function h(){var y=x!==null&&x.apply(this,arguments)||this;return y._onDidChangeStorage=y._register(new le.a),y.onDidChangeStorage=y._onDidChangeStorage.event,y._onWillSaveState=y._register(new le.a),y.onWillSaveState=y._onWillSaveState.event,y.globalCache=new Map,y.workspaceCache=new Map,y}return h.prototype.getCache=function(y){return y===0?this.globalCache:this.workspaceCache},h.prototype.get=function(y,w,f){var v=this.getCache(w).get(y);return Object(R.l)(v)?f:v},h.prototype.getBoolean=function(y,w,f){var v=this.getCache(w).get(y);return Object(R.l)(v)?f:v==="true"},h.prototype.store=function(y,w,f){if(Object(R.l)(w))return this.remove(y,f);var v=String(w),C=this.getCache(f).get(y);return C===v||(this.getCache(f).set(y,v),this._onDidChangeStorage.fire({scope:f,key:y})),Promise.resolve()},h.prototype.remove=function(y,w){var f=this.getCache(w).delete(y);return f&&this._onDidChangeStorage.fire({scope:w,key:y}),Promise.resolve()},h}($.a)},"A9l+":function(Lt,N,e){"use strict";e.d(N,"a",function(){return le}),e.d(N,"c",function(){return $}),e.d(N,"b",function(){return R}),e.d(N,"d",function(){return B}),e.d(N,"e",function(){return z}),e.d(N,"g",function(){return D}),e.d(N,"h",function(){return W}),e.d(N,"f",function(){return x});var T=e("3/fG"),le;(function(h){h.noSelection=T.a("noSelection","No selection"),h.singleSelectionRange=T.a("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),h.singleSelection=T.a("singleSelection","Line {0}, Column {1}"),h.multiSelectionRange=T.a("multiSelectionRange","{0} selections ({1} characters selected)"),h.multiSelection=T.a("multiSelection","{0} selections"),h.emergencyConfOn=T.a("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),h.openingDocs=T.a("openingDocs","Now opening the Editor Accessibility documentation page."),h.readonlyDiffEditor=T.a("readonlyDiffEditor"," in a read-only pane of a diff editor."),h.editableDiffEditor=T.a("editableDiffEditor"," in a pane of a diff editor."),h.readonlyEditor=T.a("readonlyEditor"," in a read-only code editor"),h.editableEditor=T.a("editableEditor"," in a code editor"),h.changeConfigToOnMac=T.a("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),h.changeConfigToOnWinLinux=T.a("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),h.auto_on=T.a("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),h.auto_off=T.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."),h.tabFocusModeOnMsg=T.a("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),h.tabFocusModeOnMsgNoKb=T.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."),h.tabFocusModeOffMsg=T.a("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),h.tabFocusModeOffMsgNoKb=T.a("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),h.openDocMac=T.a("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),h.openDocWinLinux=T.a("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),h.outroMsg=T.a("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),h.showAccessibilityHelpAction=T.a("showAccessibilityHelpAction","Show Accessibility Help")})(le||(le={}));var $;(function(h){h.inspectTokensAction=T.a("inspectTokens","Developer: Inspect Tokens")})($||($={}));var R;(function(h){h.gotoLineLabelValidLineAndColumn=T.a("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}"),h.gotoLineLabelValidLine=T.a("gotoLineLabelValidLine","Go to line {0}"),h.gotoLineLabelEmptyWithLineLimit=T.a("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to"),h.gotoLineLabelEmptyWithLineAndColumnLimit=T.a("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to"),h.gotoLineAriaLabel=T.a("gotoLineAriaLabel","Current Line: {0}. Go to line {1}."),h.gotoLineActionInput=T.a("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),h.gotoLineActionLabel=T.a("gotoLineActionLabel","Go to Line...")})(R||(R={}));var B;(function(h){h.ariaLabelEntryWithKey=T.a("ariaLabelEntryWithKey","{0}, {1}, commands"),h.ariaLabelEntry=T.a("ariaLabelEntry","{0}, commands"),h.quickCommandActionInput=T.a("quickCommandActionInput","Type the name of an action you want to execute"),h.quickCommandActionLabel=T.a("quickCommandActionLabel","Command Palette")})(B||(B={}));var z;(function(h){h.entryAriaLabel=T.a("entryAriaLabel","{0}, symbols"),h.quickOutlineActionInput=T.a("quickOutlineActionInput","Type the name of an identifier you wish to navigate to"),h.quickOutlineActionLabel=T.a("quickOutlineActionLabel","Go to Symbol..."),h._symbols_=T.a("symbols","symbols ({0})"),h._modules_=T.a("modules","modules ({0})"),h._class_=T.a("class","classes ({0})"),h._interface_=T.a("interface","interfaces ({0})"),h._method_=T.a("method","methods ({0})"),h._function_=T.a("function","functions ({0})"),h._property_=T.a("property","properties ({0})"),h._variable_=T.a("variable","variables ({0})"),h._variable2_=T.a("variable2","variables ({0})"),h._constructor_=T.a("_constructor","constructors ({0})"),h._call_=T.a("call","calls ({0})")})(z||(z={}));var D;(function(h){h.editorViewAccessibleLabel=T.a("editorViewAccessibleLabel","Editor content"),h.accessibilityHelpMessageIE=T.a("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."),h.accessibilityHelpMessage=T.a("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(D||(D={}));var W;(function(h){h.toggleHighContrast=T.a("toggleHighContrast","Toggle High Contrast Theme")})(W||(W={}));var x;(function(h){h.bulkEditServiceSummary=T.a("bulkEditServiceSummary","Made {0} edits in {1} files")})(x||(x={}))},AKMP:function(Lt,N,e){"use strict";e.d(N,"b",function(){return W}),e.d(N,"a",function(){return x});var T=e("EffR"),le=e("MNsG"),$=e("D3Dy"),R=e("51f4"),B=e("XSiN"),z=e("pmY6"),D=e("CjF5");function W(h,y){var w=new B.b(y);return w.preventDefault(),{leftButton:w.leftButton,buttons:w.buttons,posx:w.posx,posy:w.posy}}var x=function(){function h(){this._hooks=new z.b,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}return h.prototype.dispose=function(){this.stopMonitoring(!1),this._hooks.dispose()},h.prototype.stopMonitoring=function(y){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;var w=this._onStopCallback;this._onStopCallback=null,y&&w&&w()},h.prototype.isMonitoring=function(){return!!this._mouseMoveEventMerger},h.prototype.startMonitoring=function(y,w,f,v,C){var g=this;if(this.isMonitoring())return;this._mouseMoveEventMerger=f,this._mouseMoveCallback=v,this._onStopCallback=C;var u=R.a.getSameOriginWindowChain(),s=le.c&&D.a.pointerEvents?"pointermove":"mousemove",l=le.c&&D.a.pointerEvents?"pointerup":"mouseup",c=u.map(function(A){return A.window.document}),p=T.E(y);p&&c.unshift(p);for(var _=0,L=c;_<L.length;_++){var I=L[_];this._hooks.add(T.m(I,s,function(A){if(!$.i&&A.buttons!==w){g.stopMonitoring(!0);return}g._mouseMoveCallback(A)},function(A,Q){return g._mouseMoveEventMerger(A,Q)})),this._hooks.add(T.j(I,l,function(A){return g.stopMonitoring(!0)}))}if(R.a.hasDifferentOriginAncestor()){var P=u[u.length-1];this._hooks.add(T.j(P.window.document,"mouseout",function(A){var Q=new B.b(A);Q.target.tagName.toLowerCase()==="html"&&g.stopMonitoring(!0)})),this._hooks.add(T.j(P.window.document,"mouseover",function(A){var Q=new B.b(A);Q.target.tagName.toLowerCase()==="html"&&g.stopMonitoring(!0)})),this._hooks.add(T.j(P.window.document.body,"mouseleave",function(A){g.stopMonitoring(!0)}))}},h}()},AbCa:function(Lt,N,e){},AhDq:function(Lt,N,e){"use strict";e.r(N),e.d(N,"GotoLineEntry",function(){return f}),e.d(N,"GotoLineAction",function(){return v});var T=e("C9rm"),le=e.n(T),$=e("N0LK"),R=e("Rpxm"),B=e("sFUC"),z=e("sswD"),D=e("cGHE"),W=e("aokT"),x=e("wQH0"),h=e("rzPn"),y=e("A9l+"),w=function(){var C=function(g,u){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var c in l)l.hasOwnProperty(c)&&(s[c]=l[c])},C(g,u)};return function(g,u){C(g,u);function s(){this.constructor=g}g.prototype=u===null?Object.create(u):(s.prototype=u.prototype,new s)}}(),f=function(C){w(g,C);function g(u,s,l){var c=C.call(this)||this;return c.editor=s,c.decorator=l,c.parseResult=c.parseInput(u),c}return g.prototype.parseInput=function(u){var s=u.split(",").map(function(I){return parseInt(I,10)}).filter(function(I){return!isNaN(I)}),l;s.length===0?l=new D.a(-1,-1):s.length===1?l=new D.a(s[0],1):l=new D.a(s[0],s[1]);var c;if(Object(B.a)(this.editor))c=this.editor.getModel();else{var p=this.editor.getModel();c=p?p.modified:null}var _=c?c.validatePosition(l).equals(l):!1,L;return _?l.column&&l.column>1?L=$.r(y.b.gotoLineLabelValidLineAndColumn,l.lineNumber,l.column):L=$.r(y.b.gotoLineLabelValidLine,l.lineNumber):l.lineNumber<1||l.lineNumber>(c?c.getLineCount():0)?L=$.r(y.b.gotoLineLabelEmptyWithLineLimit,c?c.getLineCount():0):L=$.r(y.b.gotoLineLabelEmptyWithLineAndColumnLimit,c?c.getLineMaxColumn(l.lineNumber):0),{position:l,isValid:_,label:L}},g.prototype.getLabel=function(){return this.parseResult.label},g.prototype.getAriaLabel=function(){var u=this.editor.getPosition(),s=u?u.lineNumber:0;return $.r(y.b.gotoLineAriaLabel,s,this.parseResult.label)},g.prototype.run=function(u,s){return u===1?this.runOpen():this.runPreview()},g.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var u=this.toSelection();return this.editor.setSelection(u),this.editor.revealRangeInCenter(u,0),this.editor.focus(),!0},g.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var u=this.toSelection();return this.editor.revealRangeInCenter(u,0),this.decorator.decorateLine(u,this.editor),!1},g.prototype.toSelection=function(){return new W.a(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},g}(R.a),v=function(C){w(g,C);function g(){return C.call(this,y.b.gotoLineActionInput,{id:"editor.action.gotoLine",label:y.b.gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:x.a.focus,primary:2048|37,mac:{primary:256|37},weight:100}})||this}return g.prototype.run=function(u,s){var l=this;this._show(this.getController(s),{getModel:function(c){return new R.c([new f(c,s,l.getController(s))])},getAutoFocus:function(c){return{autoFocusFirstEntry:c.length>0}}})},g}(h.a);Object(z.f)(v)},ApJL:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return e.e(296).then(e.bind(null,"AoeA"))}})},BEdG:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.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 e.e(347).then(e.bind(null,"aH2L"))}})},BFtn:function(Lt,N,e){"use strict";e.d(N,"a",function(){return T}),e.d(N,"b",function(){return $});function T(R,B){for(var z=R.getCount(),D=R.findTokenIndexAtOffset(B),W=R.getLanguageId(D),x=D;x+1<z&&R.getLanguageId(x+1)===W;)x++;for(var h=D;h>0&&R.getLanguageId(h-1)===W;)h--;return new le(R,W,h,x+1,R.getStartOffset(h),R.getEndOffset(x))}var le=function(){function R(B,z,D,W,x,h){this._actual=B,this.languageId=z,this._firstTokenIndex=D,this._lastTokenIndex=W,this.firstCharOffset=x,this._lastCharOffset=h}return R.prototype.getLineContent=function(){var B=this._actual.getLineContent();return B.substring(this.firstCharOffset,this._lastCharOffset)},R.prototype.getActualLineContentBefore=function(B){var z=this._actual.getLineContent();return z.substring(0,this.firstCharOffset+B)},R.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},R.prototype.findTokenIndexAtOffset=function(B){return this._actual.findTokenIndexAtOffset(B+this.firstCharOffset)-this._firstTokenIndex},R.prototype.getStandardTokenType=function(B){return this._actual.getStandardTokenType(B+this._firstTokenIndex)},R}();function $(R){return(R&7)!==0}},BUKB:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return e.e(343).then(e.bind(null,"xT+r"))}})},BjKj:function(Lt,N,e){},"C/vA":function(Lt,N,e){"use strict";e.d(N,"a",function(){return T});function T(le){var $=this,R=!1,B;return function(){return R||(R=!0,B=le.apply($,arguments)),B}}},"C1Q+":function(Lt,N,e){"use strict";e.d(N,"f",function(){return jt}),e.d(N,"e",function(){return it}),e.d(N,"b",function(){return et}),e.d(N,"g",function(){return ut}),e.d(N,"h",function(){return Ct}),e.d(N,"d",function(){return ht}),e.d(N,"c",function(){return Et}),e.d(N,"a",function(){return Yt});var T=function(){function Nt(bt){this.executor=bt,this._didRun=!1}return Nt.prototype.getValue=function(){if(!this._didRun)try{this._value=this.executor()}catch(bt){this._error=bt}finally{this._didRun=!0}if(this._error)throw this._error;return this._value},Object.defineProperty(Nt.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),Nt}(),le=e("pmY6"),$=e("N0LK"),R=e("sswD"),B=e("x/UI"),z=e("wQH0"),D=e("hJVp"),W=e("6OMU"),x=e("/cxE"),h=e("NR8r"),y=e("Cg/j"),w=e("EffR"),f=e("WqXY"),v=e("8HAY"),C=e("cGHE"),g=e("twdY"),u=e("nlbu"),s=e("Uzvx"),l=e("bexQ"),c=function(){var Nt=function(bt,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ye,ze){Ye.__proto__=ze}||function(Ye,ze){for(var Ke in ze)ze.hasOwnProperty(Ke)&&(Ye[Ke]=ze[Ke])},Nt(bt,$e)};return function(bt,$e){Nt(bt,$e);function Ye(){this.constructor=bt}bt.prototype=$e===null?Object.create($e):(Ye.prototype=$e.prototype,new Ye)}}(),p=function(){return p=Object.assign||function(Nt){for(var bt,$e=1,Ye=arguments.length;$e<Ye;$e++){bt=arguments[$e];for(var ze in bt)Object.prototype.hasOwnProperty.call(bt,ze)&&(Nt[ze]=bt[ze])}return Nt},p.apply(this,arguments)},_=function(Nt,bt,$e,Ye){var ze=arguments.length,Ke=ze<3?bt:Ye===null?Ye=Object.getOwnPropertyDescriptor(bt,$e):Ye,ge;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ke=Reflect.decorate(Nt,bt,$e,Ye);else for(var G=Nt.length-1;G>=0;G--)(ge=Nt[G])&&(Ke=(ze<3?ge(Ke):ze>3?ge(bt,$e,Ke):ge(bt,$e))||Ke);return ze>3&&Ke&&Object.defineProperty(bt,$e,Ke),Ke},L=function(Nt,bt){return function($e,Ye){bt($e,Ye,Nt)}},I=function(Nt,bt,$e,Ye){function ze(Ke){return Ke instanceof $e?Ke:new $e(function(ge){ge(Ke)})}return new($e||($e=Promise))(function(Ke,ge){function G(ae){try{Y(Ye.next(ae))}catch(Fe){ge(Fe)}}function oe(ae){try{Y(Ye.throw(ae))}catch(Fe){ge(Fe)}}function Y(ae){ae.done?Ke(ae.value):ze(ae.value).then(G,oe)}Y((Ye=Ye.apply(Nt,bt||[])).next())})},P=function(Nt,bt){var $e={label:0,sent:function(){if(Ke[0]&1)throw Ke[1];return Ke[1]},trys:[],ops:[]},Ye,ze,Ke,ge;return ge={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function G(Y){return function(ae){return oe([Y,ae])}}function oe(Y){if(Ye)throw new TypeError("Generator is already executing.");for(;$e;)try{if(Ye=1,ze&&(Ke=Y[0]&2?ze.return:Y[0]?ze.throw||((Ke=ze.return)&&Ke.call(ze),0):ze.next)&&!(Ke=Ke.call(ze,Y[1])).done)return Ke;(ze=0,Ke)&&(Y=[Y[0]&2,Ke.value]);switch(Y[0]){case 0:case 1:Ke=Y;break;case 4:return $e.label++,{value:Y[1],done:!1};case 5:$e.label++,ze=Y[1],Y=[0];continue;case 7:Y=$e.ops.pop(),$e.trys.pop();continue;default:if(!(Ke=$e.trys,Ke=Ke.length>0&&Ke[Ke.length-1])&&(Y[0]===6||Y[0]===2)){$e=0;continue}if(Y[0]===3&&(!Ke||Y[1]>Ke[0]&&Y[1]<Ke[3])){$e.label=Y[1];break}if(Y[0]===6&&$e.label<Ke[1]){$e.label=Ke[1],Ke=Y;break}if(Ke&&$e.label<Ke[2]){$e.label=Ke[2],$e.ops.push(Y);break}Ke[2]&&$e.ops.pop(),$e.trys.pop();continue}Y=bt.call(Nt,$e)}catch(ae){Y=[6,ae],ze=0}finally{Ye=Ke=0}if(Y[0]&5)throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}},A=function(){for(var Nt=0,bt=0,$e=arguments.length;bt<$e;bt++)Nt+=arguments[bt].length;for(var Ye=Array(Nt),ze=0,bt=0;bt<$e;bt++)for(var Ke=arguments[bt],ge=0,G=Ke.length;ge<G;ge++,ze++)Ye[ze]=Ke[ge];return Ye},Q=function(Nt){c(bt,Nt);function bt($e,Ye){var ze=Nt.call(this,$e.command?$e.command.id:$e.title,$e.title,void 0,!$e.disabled,Ye)||this;return ze.action=$e,ze}return bt}(v.a),K=function(Nt){c(bt,Nt);function bt($e,Ye,ze,Ke){var ge=Nt.call(this)||this;return ge._editor=$e,ge._delegate=Ye,ge._contextMenuService=ze,ge._visible=!1,ge._showingActions=ge._register(new le.d),ge._keybindingResolver=new H({getKeybindings:function(){return Ke.getKeybindings()}}),ge}return Object.defineProperty(bt.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),bt.prototype.show=function($e,Ye,ze,Ke){return I(this,void 0,void 0,function(){var ge,G,oe,Y,ae=this;return P(this,function(Fe){if(ge=Ke.includeDisabledActions?Ye.allActions:Ye.validActions,!ge.length)return this._visible=!1,[2];if(!this._editor.getDomNode())throw this._visible=!1,Object(x.a)();return this._visible=!0,this._showingActions.value=Ye,G=this.getMenuActions($e,ge),oe=C.a.isIPosition(ze)?this._toCoords(ze):ze||{x:0,y:0},Y=this._keybindingResolver.getResolver(),this._contextMenuService.showContextMenu({getAnchor:function(){return oe},getActions:function(){return G},onHide:function(){ae._visible=!1,ae._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:function(dt){return dt instanceof Q?Y(dt.action):void 0}}),[2]})})},bt.prototype.getMenuActions=function($e,Ye){var ze=this,Ke,ge,G=function(Qt){return new Q(Qt,function(){return ze._delegate.onSelectCodeAction(Qt)})},oe=Ye.map(G),Y=this._editor.getModel();if(Y&&oe.length)for(var ae=0,Fe=g.a.all(Y);ae<Fe.length;ae++){var dt=Fe[ae];if(dt._getAdditionalMenuItems){var Ot=dt._getAdditionalMenuItems({trigger:$e.type,only:(ge=(Ke=$e.filter)===null||Ke===void 0?void 0:Ke.include)===null||ge===void 0?void 0:ge.value},Ye);Ot.length&&oe.push.apply(oe,A([new f.d],Ot.map(function(Qt){return G({title:Qt.title,command:Qt})})))}}return oe},bt.prototype._toCoords=function($e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition($e,1),this._editor.render();var Ye=this._editor.getScrolledVisiblePosition($e),ze=Object(w.C)(this._editor.getDomNode()),Ke=ze.left+Ye.left,ge=ze.top+Ye.top+Ye.height;return{x:Ke,y:ge}},bt=_([L(2,s.a),L(3,l.a)],bt),bt}(le.a),H=function(){function Nt(bt){this._keybindingProvider=bt}return Nt.prototype.getResolver=function(){var bt=this,$e=new T(function(){return bt._keybindingProvider.getKeybindings().filter(function(Ye){return Nt.codeActionCommands.indexOf(Ye.command)>=0}).filter(function(Ye){return Ye.resolvedKeybinding}).map(function(Ye){var ze=Ye.commandArgs;return Ye.command===D.d?ze={kind:u.b.SourceOrganizeImports.value}:Ye.command===D.b&&(ze={kind:u.b.SourceFixAll.value}),p({resolvedKeybinding:Ye.resolvedKeybinding},u.a.fromUser(ze,{kind:u.b.None,apply:"never"}))})});return function(Ye){if(Ye.kind){var ze=bt.bestKeybindingForCodeAction(Ye,$e.getValue());return ze==null?void 0:ze.resolvedKeybinding}return}},Nt.prototype.bestKeybindingForCodeAction=function(bt,$e){if(!bt.kind)return;var Ye=new u.b(bt.kind);return $e.filter(function(ze){return ze.kind.contains(Ye)}).filter(function(ze){return ze.preferred?bt.isPreferred:!0}).reduceRight(function(ze,Ke){return ze?ze.kind.contains(Ke.kind)?Ke:ze:Ke},void 0)},Nt.codeActionCommands=[D.e,D.a,D.f,D.d,D.b],Nt}(),V=e("AKMP"),de=e("MI8n"),_e=e("MNXI"),Se=e("tX9W"),Ie=e("3/fG"),Pe=e("t9D7"),Ve=e("MD5Z"),ke=e("pg8w"),se=function(){var Nt=function(bt,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ye,ze){Ye.__proto__=ze}||function(Ye,ze){for(var Ke in ze)ze.hasOwnProperty(Ke)&&(Ye[Ke]=ze[Ke])},Nt(bt,$e)};return function(bt,$e){Nt(bt,$e);function Ye(){this.constructor=bt}bt.prototype=$e===null?Object.create($e):(Ye.prototype=$e.prototype,new Ye)}}(),ee=function(Nt,bt,$e,Ye){var ze=arguments.length,Ke=ze<3?bt:Ye===null?Ye=Object.getOwnPropertyDescriptor(bt,$e):Ye,ge;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ke=Reflect.decorate(Nt,bt,$e,Ye);else for(var G=Nt.length-1;G>=0;G--)(ge=Nt[G])&&(Ke=(ze<3?ge(Ke):ze>3?ge(bt,$e,Ke):ge(bt,$e))||Ke);return ze>3&&Ke&&Object.defineProperty(bt,$e,Ke),Ke},ie=function(Nt,bt){return function($e,Ye){bt($e,Ye,Nt)}},q;(function(Nt){Nt.Hidden={type:0};var bt=function(){function $e(Ye,ze,Ke,ge){this.actions=Ye,this.trigger=ze,this.editorPosition=Ke,this.widgetPosition=ge,this.type=1}return $e}();Nt.Showing=bt})(q||(q={}));var ce=function(Nt){se(bt,Nt);function bt($e,Ye,ze,Ke){var ge=Nt.call(this)||this;return ge._editor=$e,ge._quickFixActionId=Ye,ge._preferredFixActionId=ze,ge._keybindingService=Ke,ge._onClick=ge._register(new de.a),ge.onClick=ge._onClick.event,ge._state=q.Hidden,ge._domNode=document.createElement("div"),ge._domNode.className="codicon codicon-lightbulb",ge._editor.addContentWidget(ge),ge._register(ge._editor.onDidChangeModelContent(function(G){var oe=ge._editor.getModel();(ge.state.type!==1||!oe||ge.state.editorPosition.lineNumber>=oe.getLineCount())&&ge.hide()})),ke.b.ignoreTarget(ge._domNode),ge._register(w.n(ge._domNode,function(G){if(ge.state.type!==1)return;ge._editor.focus(),G.preventDefault();var oe=w.C(ge._domNode),Y=oe.top,ae=oe.height,Fe=ge._editor.getOption(49),dt=Math.floor(Fe/3);ge.state.widgetPosition.position!==null&&ge.state.widgetPosition.position.lineNumber<ge.state.editorPosition.lineNumber&&(dt+=Fe),ge._onClick.fire({x:G.posx,y:Y+ae+dt,actions:ge.state.actions,trigger:ge.state.trigger})})),ge._register(w.j(ge._domNode,"mouseenter",function(G){if((G.buttons&1)!==1)return;ge.hide();var oe=new V.a;oe.startMonitoring(G.target,G.buttons,V.b,function(){},function(){oe.dispose()})})),ge._register(ge._editor.onDidChangeConfiguration(function(G){G.hasChanged(47)&&!ge._editor.getOption(47).enabled&&ge.hide()})),ge._updateLightBulbTitle(),ge._register(ge._keybindingService.onDidUpdateKeybindings(ge._updateLightBulbTitle,ge)),ge}return bt.prototype.dispose=function(){Nt.prototype.dispose.call(this),this._editor.removeContentWidget(this)},bt.prototype.getId=function(){return"LightBulbWidget"},bt.prototype.getDomNode=function(){return this._domNode},bt.prototype.getPosition=function(){return this._state.type===1?this._state.widgetPosition:null},bt.prototype.update=function($e,Ye,ze){var Ke=this;if($e.validActions.length<=0)return this.hide();var ge=this._editor.getOptions();if(!ge.get(47).enabled)return this.hide();var G=ze.lineNumber,oe=ze.column,Y=this._editor.getModel();if(!Y)return this.hide();var ae=Y.getOptions().tabSize,Fe=ge.get(34),dt=Y.getLineContent(G),Ot=Se.b.computeIndentLevel(dt,ae),Qt=Fe.spaceWidth*Ot>22,to=function(ho){return ho>2&&Ke._editor.getTopForLineNumber(ho)===Ke._editor.getTopForLineNumber(ho-1)},fo=G;if(!Qt){if(G>1&&!to(G-1))fo-=1;else if(!to(G+1))fo+=1;else if(oe*Fe.spaceWidth<22)return this.hide()}this.state=new q.Showing($e,Ye,ze,{position:{lineNumber:fo,column:1},preference:bt._posPref}),w.Y(this._domNode,"codicon-lightbulb-autofix",$e.hasAutoFix),this._editor.layoutContentWidget(this)},bt.prototype.hide=function(){this.state=q.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(bt.prototype,"state",{get:function(){return this._state},set:function($e){this._state=$e,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),bt.prototype._updateLightBulbTitle=function(){if(this.state.type===1&&this.state.actions.hasAutoFix){var $e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if($e){this.title=Ie.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",$e.getLabel());return}}var Ye=this._keybindingService.lookupKeybinding(this._quickFixActionId);Ye?this.title=Ie.a("quickFixWithKb","Show Fixes ({0})",Ye.getLabel()):this.title=Ie.a("quickFix","Show Fixes")},Object.defineProperty(bt.prototype,"title",{set:function($e){this._domNode.title=$e},enumerable:!0,configurable:!0}),bt._posPref=[0],bt=ee([ie(3,l.a)],bt),bt}(le.a);Object(Pe.e)(function(Nt,bt){var $e=Nt.getColor(Ve.J);$e&&bt.addRule(`
.monaco-editor .contentWidgets .codicon-lightbulb {
color: `+$e+`;
}`);var Ye=Nt.getColor(Ve.I);Ye&&bt.addRule(`
.monaco-editor .contentWidgets .codicon-lightbulb-autofix {
color: `+Ye+`;
}`)});var Z=function(){var Nt=function(bt,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ye,ze){Ye.__proto__=ze}||function(Ye,ze){for(var Ke in ze)ze.hasOwnProperty(Ke)&&(Ye[Ke]=ze[Ke])},Nt(bt,$e)};return function(bt,$e){Nt(bt,$e);function Ye(){this.constructor=bt}bt.prototype=$e===null?Object.create($e):(Ye.prototype=$e.prototype,new Ye)}}(),ye=function(Nt,bt,$e,Ye){var ze=arguments.length,Ke=ze<3?bt:Ye===null?Ye=Object.getOwnPropertyDescriptor(bt,$e):Ye,ge;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ke=Reflect.decorate(Nt,bt,$e,Ye);else for(var G=Nt.length-1;G>=0;G--)(ge=Nt[G])&&(Ke=(ze<3?ge(Ke):ze>3?ge(bt,$e,Ke):ge(bt,$e))||Ke);return ze>3&&Ke&&Object.defineProperty(bt,$e,Ke),Ke},je=function(Nt,bt){return function($e,Ye){bt($e,Ye,Nt)}},Ge=function(Nt,bt,$e,Ye){function ze(Ke){return Ke instanceof $e?Ke:new $e(function(ge){ge(Ke)})}return new($e||($e=Promise))(function(Ke,ge){function G(ae){try{Y(Ye.next(ae))}catch(Fe){ge(Fe)}}function oe(ae){try{Y(Ye.throw(ae))}catch(Fe){ge(Fe)}}function Y(ae){ae.done?Ke(ae.value):ze(ae.value).then(G,oe)}Y((Ye=Ye.apply(Nt,bt||[])).next())})},ue=function(Nt,bt){var $e={label:0,sent:function(){if(Ke[0]&1)throw Ke[1];return Ke[1]},trys:[],ops:[]},Ye,ze,Ke,ge;return ge={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function G(Y){return function(ae){return oe([Y,ae])}}function oe(Y){if(Ye)throw new TypeError("Generator is already executing.");for(;$e;)try{if(Ye=1,ze&&(Ke=Y[0]&2?ze.return:Y[0]?ze.throw||((Ke=ze.return)&&Ke.call(ze),0):ze.next)&&!(Ke=Ke.call(ze,Y[1])).done)return Ke;(ze=0,Ke)&&(Y=[Y[0]&2,Ke.value]);switch(Y[0]){case 0:case 1:Ke=Y;break;case 4:return $e.label++,{value:Y[1],done:!1};case 5:$e.label++,ze=Y[1],Y=[0];continue;case 7:Y=$e.ops.pop(),$e.trys.pop();continue;default:if(!(Ke=$e.trys,Ke=Ke.length>0&&Ke[Ke.length-1])&&(Y[0]===6||Y[0]===2)){$e=0;continue}if(Y[0]===3&&(!Ke||Y[1]>Ke[0]&&Y[1]<Ke[3])){$e.label=Y[1];break}if(Y[0]===6&&$e.label<Ke[1]){$e.label=Ke[1],Ke=Y;break}if(Ke&&$e.label<Ke[2]){$e.label=Ke[2],$e.ops.push(Y);break}Ke[2]&&$e.ops.pop(),$e.trys.pop();continue}Y=bt.call(Nt,$e)}catch(ae){Y=[6,ae],ze=0}finally{Ye=Ke=0}if(Y[0]&5)throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}},ve=function(Nt){Z(bt,Nt);function bt($e,Ye,ze,Ke,ge){var G=Nt.call(this)||this;return G._editor=$e,G.delegate=Ke,G._activeCodeActions=G._register(new le.d),G._codeActionWidget=new T(function(){return G._register(ge.createInstance(K,G._editor,{onSelectCodeAction:function(oe){return Ge(G,void 0,void 0,function(){return ue(this,function(Y){return this.delegate.applyCodeAction(oe,!0),[2]})})}}))}),G._lightBulbWidget=new T(function(){var oe=G._register(ge.createInstance(ce,G._editor,Ye,ze));return G._register(oe.onClick(function(Y){return G.showCodeActionList(Y.trigger,Y.actions,Y,{includeDisabledActions:!1})})),oe}),G}return bt.prototype.update=function($e){var Ye,ze,Ke;return Ge(this,void 0,void 0,function(){var ge,G,oe,Y,ae;return ue(this,function(Fe){switch(Fe.label){case 0:if($e.type!==1)return(Ye=this._lightBulbWidget.rawValue)===null||Ye===void 0||Ye.hide(),[2];Fe.label=1;case 1:return Fe.trys.push([1,3,,4]),[4,$e.actions];case 2:return ge=Fe.sent(),[3,4];case 3:return G=Fe.sent(),Object(x.e)(G),[2];case 4:if(this._lightBulbWidget.getValue().update(ge,$e.trigger,$e.position),!($e.trigger.type===2))return[3,11];if(!((ze=$e.trigger.filter)===null||ze===void 0?void 0:ze.include))return[3,10];if(oe=this.tryGetValidActionToApply($e.trigger,ge),!oe)return[3,9];Fe.label=5;case 5:return Fe.trys.push([5,,7,8]),[4,this.delegate.applyCodeAction(oe,!1)];case 6:return Fe.sent(),[3,8];case 7:return ge.dispose(),[7];case 8:return[2];case 9:if($e.trigger.context&&(Y=this.getInvalidActionThatWouldHaveBeenApplied($e.trigger,ge),Y&&Y.disabled))return h.a.get(this._editor).showMessage(Y.disabled,$e.trigger.context.position),ge.dispose(),[2];Fe.label=10;case 10:return ae=!!((Ke=$e.trigger.filter)===null||Ke===void 0?void 0:Ke.include),$e.trigger.context&&(!ge.allActions.length||!ae&&!ge.validActions.length)?(h.a.get(this._editor).showMessage($e.trigger.context.notAvailableMessage,$e.trigger.context.position),this._activeCodeActions.value=ge,ge.dispose(),[2]):(this._activeCodeActions.value=ge,this._codeActionWidget.getValue().show($e.trigger,ge,$e.position,{includeDisabledActions:ae}),[3,12]);case 11:this._codeActionWidget.getValue().isVisible?ge.dispose():this._activeCodeActions.value=ge,Fe.label=12;case 12:return[2]}})})},bt.prototype.getInvalidActionThatWouldHaveBeenApplied=function($e,Ye){return Ye.allActions.length&&($e.autoApply==="first"&&Ye.validActions.length===0||$e.autoApply==="ifSingle"&&Ye.allActions.length===1)?Object(W.h)(Ye.allActions,function(ze){return ze.disabled}):void 0},bt.prototype.tryGetValidActionToApply=function($e,Ye){return Ye.validActions.length&&($e.autoApply==="first"&&Ye.validActions.length>0||$e.autoApply==="ifSingle"&&Ye.validActions.length===1)?Ye.validActions[0]:void 0},bt.prototype.showCodeActionList=function($e,Ye,ze,Ke){return Ge(this,void 0,void 0,function(){return ue(this,function(ge){return this._codeActionWidget.getValue().show($e,Ye,ze,Ke),[2]})})},bt=ye([je(4,y.a)],bt),bt}(le.a),Ee=e("nnTU"),xe=e("T8No"),Ce=e("tADe"),he=e("sM1p"),J=e("tTk5"),b=e("XXUj"),F=e("X+cX"),re=e("aokT"),ne=e("gslv"),fe=function(){var Nt=function(bt,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ye,ze){Ye.__proto__=ze}||function(Ye,ze){for(var Ke in ze)ze.hasOwnProperty(Ke)&&(Ye[Ke]=ze[Ke])},Nt(bt,$e)};return function(bt,$e){Nt(bt,$e);function Ye(){this.constructor=bt}bt.prototype=$e===null?Object.create($e):(Ye.prototype=$e.prototype,new Ye)}}(),Oe=new xe.d("supportedCodeAction",""),Me=function(Nt){fe(bt,Nt);function bt($e,Ye,ze,Ke){Ke===void 0&&(Ke=250);var ge=Nt.call(this)||this;return ge._editor=$e,ge._markerService=Ye,ge._signalChange=ze,ge._delay=Ke,ge._autoTriggerTimer=ge._register(new F.e),ge._register(ge._markerService.onMarkerChanged(function(G){return ge._onMarkerChanges(G)})),ge._register(ge._editor.onDidChangeCursorPosition(function(){return ge._onCursorChange()})),ge}return bt.prototype.trigger=function($e){var Ye=this._getRangeOfSelectionUnlessWhitespaceEnclosed($e);return this._createEventAndSignalChange($e,Ye)},bt.prototype._onMarkerChanges=function($e){var Ye=this,ze=this._editor.getModel();if(!ze)return;$e.some(function(Ke){return Object(ne.e)(Ke,ze.uri)})&&this._autoTriggerTimer.cancelAndSet(function(){Ye.trigger({type:1})},this._delay)},bt.prototype._onCursorChange=function(){var $e=this;this._autoTriggerTimer.cancelAndSet(function(){$e.trigger({type:1})},this._delay)},bt.prototype._getRangeOfMarker=function($e){var Ye=this._editor.getModel();if(!Ye)return;for(var ze=0,Ke=this._markerService.read({resource:Ye.uri});ze<Ke.length;ze++){var ge=Ke[ze],G=Ye.validateRange(ge);if(re.a.intersectRanges(G,$e))return re.a.lift(G)}return},bt.prototype._getRangeOfSelectionUnlessWhitespaceEnclosed=function($e){if(!this._editor.hasModel())return;var Ye=this._editor.getModel(),ze=this._editor.getSelection();if(ze.isEmpty()&&$e.type===1){var Ke=ze.getPosition(),ge=Ke.lineNumber,G=Ke.column,oe=Ye.getLineContent(ge);if(oe.length===0)return;if(G===1){if(/\s/.test(oe[0]))return}else if(G===Ye.getLineMaxColumn(ge)){if(/\s/.test(oe[oe.length-1]))return}else if(/\s/.test(oe[G-2])&&/\s/.test(oe[G-1]))return}return ze},bt.prototype._createEventAndSignalChange=function($e,Ye){var ze=this._editor.getModel();if(!Ye||!ze){this._signalChange(void 0);return}var Ke=this._getRangeOfMarker(Ye),ge=Ke?Ke.getStartPosition():Ye.getStartPosition(),G={trigger:$e,selection:Ye,position:ge};return this._signalChange(G),G},bt}(le.a),Ue;(function(Nt){Nt.Empty={type:0};var bt=function(){function $e(Ye,ze,Ke,ge){this.trigger=Ye,this.rangeOrSelection=ze,this.position=Ke,this.actions=ge,this.type=1}return $e}();Nt.Triggered=bt})(Ue||(Ue={}));var Je=function(Nt){fe(bt,Nt);function bt($e,Ye,ze,Ke){var ge=Nt.call(this)||this;return ge._editor=$e,ge._markerService=Ye,ge._progressService=Ke,ge._codeActionOracle=ge._register(new le.d),ge._state=Ue.Empty,ge._onDidChangeState=ge._register(new de.a),ge.onDidChangeState=ge._onDidChangeState.event,ge._supportedCodeActions=Oe.bindTo(ze),ge._register(ge._editor.onDidChangeModel(function(){return ge._update()})),ge._register(ge._editor.onDidChangeModelLanguage(function(){return ge._update()})),ge._register(g.a.onDidChange(function(){return ge._update()})),ge._update(),ge}return bt.prototype.dispose=function(){Nt.prototype.dispose.call(this),this.setState(Ue.Empty,!0)},bt.prototype._update=function(){var $e=this;this._codeActionOracle.value=void 0,this.setState(Ue.Empty);var Ye=this._editor.getModel();if(Ye&&g.a.has(Ye)&&!this._editor.getOption(68)){for(var ze=[],Ke=0,ge=g.a.all(Ye);Ke<ge.length;Ke++){var G=ge[Ke];Array.isArray(G.providedCodeActionKinds)&&ze.push.apply(ze,G.providedCodeActionKinds)}this._supportedCodeActions.set(ze.join(" ")),this._codeActionOracle.value=new Me(this._editor,this._markerService,function(oe){if(!oe){$e.setState(Ue.Empty);return}var Y=Object(F.f)(function(ae){return Object(D.c)(Ye,oe.selection,oe.trigger,ae)});$e._progressService&&oe.trigger.type===2&&$e._progressService.showWhile(Y,250),$e.setState(new Ue.Triggered(oe.trigger,oe.selection,oe.position,Y))},void 0),this._codeActionOracle.value.trigger({type:1})}else this._supportedCodeActions.reset()},bt.prototype.trigger=function($e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger($e)},bt.prototype.setState=function($e,Ye){if($e===this._state)return;this._state.type===1&&this._state.actions.cancel(),this._state=$e,Ye||this._onDidChangeState.fire($e)},bt}(le.a),nt=function(){var Nt=function(bt,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ye,ze){Ye.__proto__=ze}||function(Ye,ze){for(var Ke in ze)ze.hasOwnProperty(Ke)&&(Ye[Ke]=ze[Ke])},Nt(bt,$e)};return function(bt,$e){Nt(bt,$e);function Ye(){this.constructor=bt}bt.prototype=$e===null?Object.create($e):(Ye.prototype=$e.prototype,new Ye)}}(),vt=function(Nt,bt,$e,Ye){var ze=arguments.length,Ke=ze<3?bt:Ye===null?Ye=Object.getOwnPropertyDescriptor(bt,$e):Ye,ge;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ke=Reflect.decorate(Nt,bt,$e,Ye);else for(var G=Nt.length-1;G>=0;G--)(ge=Nt[G])&&(Ke=(ze<3?ge(Ke):ze>3?ge(bt,$e,Ke):ge(bt,$e))||Ke);return ze>3&&Ke&&Object.defineProperty(bt,$e,Ke),Ke},Rt=function(Nt,bt){return function($e,Ye){bt($e,Ye,Nt)}},Dt=function(Nt,bt,$e,Ye){function ze(Ke){return Ke instanceof $e?Ke:new $e(function(ge){ge(Ke)})}return new($e||($e=Promise))(function(Ke,ge){function G(ae){try{Y(Ye.next(ae))}catch(Fe){ge(Fe)}}function oe(ae){try{Y(Ye.throw(ae))}catch(Fe){ge(Fe)}}function Y(ae){ae.done?Ke(ae.value):ze(ae.value).then(G,oe)}Y((Ye=Ye.apply(Nt,bt||[])).next())})},Kt=function(Nt,bt){var $e={label:0,sent:function(){if(Ke[0]&1)throw Ke[1];return Ke[1]},trys:[],ops:[]},Ye,ze,Ke,ge;return ge={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(ge[Symbol.iterator]=function(){return this}),ge;function G(Y){return function(ae){return oe([Y,ae])}}function oe(Y){if(Ye)throw new TypeError("Generator is already executing.");for(;$e;)try{if(Ye=1,ze&&(Ke=Y[0]&2?ze.return:Y[0]?ze.throw||((Ke=ze.return)&&Ke.call(ze),0):ze.next)&&!(Ke=Ke.call(ze,Y[1])).done)return Ke;(ze=0,Ke)&&(Y=[Y[0]&2,Ke.value]);switch(Y[0]){case 0:case 1:Ke=Y;break;case 4:return $e.label++,{value:Y[1],done:!1};case 5:$e.label++,ze=Y[1],Y=[0];continue;case 7:Y=$e.ops.pop(),$e.trys.pop();continue;default:if(!(Ke=$e.trys,Ke=Ke.length>0&&Ke[Ke.length-1])&&(Y[0]===6||Y[0]===2)){$e=0;continue}if(Y[0]===3&&(!Ke||Y[1]>Ke[0]&&Y[1]<Ke[3])){$e.label=Y[1];break}if(Y[0]===6&&$e.label<Ke[1]){$e.label=Ke[1],Ke=Y;break}if(Ke&&$e.label<Ke[2]){$e.label=Ke[2],$e.ops.push(Y);break}Ke[2]&&$e.ops.pop(),$e.trys.pop();continue}Y=bt.call(Nt,$e)}catch(ae){Y=[6,ae],ze=0}finally{Ye=Ke=0}if(Y[0]&5)throw Y[1];return{value:Y[0]?Y[1]:void 0,done:!0}}},ao=function(){for(var Nt=0,bt=0,$e=arguments.length;bt<$e;bt++)Nt+=arguments[bt].length;for(var Ye=Array(Nt),ze=0,bt=0;bt<$e;bt++)for(var Ke=arguments[bt],ge=0,G=Ke.length;ge<G;ge++,ze++)Ye[ze]=Ke[ge];return Ye};function lo(Nt){return xe.a.regex(Oe.keys()[0],new RegExp("(\\s|^)"+Object($.p)(Nt.value)+"\\b"))}var so={type:"object",required:["kind"],defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:Ie.a("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:Ie.a("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[Ie.a("args.schema.apply.first","Always apply the first returned code action."),Ie.a("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),Ie.a("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:Ie.a("args.schema.preferred","Controls if only preferred code actions should be returned.")}}},jt=function(Nt){nt(bt,Nt);function bt($e,Ye,ze,Ke,ge){var G=Nt.call(this)||this;return G._instantiationService=ge,G._editor=$e,G._model=G._register(new Je(G._editor,Ye,ze,Ke)),G._register(G._model.onDidChangeState(function(oe){return G.update(oe)})),G._ui=new T(function(){return G._register(new ve($e,it.Id,Yt.Id,{applyCodeAction:function(oe,Y){return Dt(G,void 0,void 0,function(){return Kt(this,function(ae){switch(ae.label){case 0:return ae.trys.push([0,,2,3]),[4,this._applyCodeAction(oe)];case 1:return ae.sent(),[3,3];case 2:return Y&&this._trigger({type:1,filter:{}}),[7];case 3:return[2]}})})}},G._instantiationService))}),G}return bt.get=function($e){return $e.getContribution(bt.ID)},bt.prototype.update=function($e){this._ui.getValue().update($e)},bt.prototype.showCodeActions=function($e,Ye,ze){return this._ui.getValue().showCodeActionList($e,Ye,ze,{includeDisabledActions:!1})},bt.prototype.manualTriggerAtCurrentPosition=function($e,Ye,ze){if(!this._editor.hasModel())return;h.a.get(this._editor).closeMessage();var Ke=this._editor.getPosition();this._trigger({type:2,filter:Ye,autoApply:ze,context:{notAvailableMessage:$e,position:Ke}})},bt.prototype._trigger=function($e){return this._model.trigger($e)},bt.prototype._applyCodeAction=function($e){return this._instantiationService.invokeFunction(pt,$e,this._editor)},bt.ID="editor.contrib.quickFixController",bt=vt([Rt(1,Ce.b),Rt(2,xe.c),Rt(3,J.a),Rt(4,y.a)],bt),bt}(le.a);function pt(Nt,bt,$e){return Dt(this,void 0,void 0,function(){var Ye,ze,Ke,ge,G,oe;return Kt(this,function(Y){switch(Y.label){case 0:return Ye=Nt.get(B.a),ze=Nt.get(Ee.b),Ke=Nt.get(b.a),ge=Nt.get(he.a),Ke.publicLog2("codeAction.applyCodeAction",{codeActionTitle:bt.title,codeActionKind:bt.kind,codeActionIsPreferred:!!bt.isPreferred}),bt.edit?[4,Ye.apply(bt.edit,{editor:$e})]:[3,2];case 1:Y.sent(),Y.label=2;case 2:if(!bt.command)return[3,6];Y.label=3;case 3:return Y.trys.push([3,5,,6]),[4,ze.executeCommand.apply(ze,ao([bt.command.id],bt.command.arguments||[]))];case 4:return Y.sent(),[3,6];case 5:return G=Y.sent(),oe=gt(G),ge.error(typeof oe=="string"?oe:Ie.a("applyCodeActionFailed","An unknown error occurred while applying the code action")),[3,6];case 6:return[2]}})})}function gt(Nt){return typeof Nt=="string"?Nt:Nt instanceof Error&&typeof Nt.message=="string"?Nt.message:void 0}function Tt(Nt,bt,$e,Ye){if(Nt.hasModel()){var ze=jt.get(Nt);ze&&ze.manualTriggerAtCurrentPosition(bt,$e,Ye)}}var it=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:bt.Id,label:Ie.a("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:xe.a.and(z.a.writable,z.a.hasCodeActionsProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:2048|84,weight:100}})||this}return bt.prototype.run=function($e,Ye){return Tt(Ye,Ie.a("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)},bt.Id="editor.action.quickFix",bt}(R.b),et=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:D.a,precondition:xe.a.and(z.a.writable,z.a.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:so}]}})||this}return bt.prototype.runEditorCommand=function($e,Ye,ze){var Ke=u.a.fromUser(ze,{kind:u.b.Empty,apply:"ifSingle"});return Tt(Ye,typeof(ze==null?void 0:ze.kind)=="string"?Ke.preferred?Ie.a("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",ze.kind):Ie.a("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",ze.kind):Ke.preferred?Ie.a("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):Ie.a("editor.action.codeAction.noneMessage","No code actions available"),{include:Ke.kind,includeSourceActions:!0,onlyIncludePreferredActions:Ke.preferred},Ke.apply)},bt}(R.c),ut=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:D.e,label:Ie.a("refactor.label","Refactor..."),alias:"Refactor...",precondition:xe.a.and(z.a.writable,z.a.hasCodeActionsProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:2048|1024|48,mac:{primary:256|1024|48},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:xe.a.and(z.a.writable,lo(u.b.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:so}]}})||this}return bt.prototype.run=function($e,Ye,ze){var Ke=u.a.fromUser(ze,{kind:u.b.Refactor,apply:"never"});return Tt(Ye,typeof(ze==null?void 0:ze.kind)=="string"?Ke.preferred?Ie.a("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",ze.kind):Ie.a("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",ze.kind):Ke.preferred?Ie.a("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):Ie.a("editor.action.refactor.noneMessage","No refactorings available"),{include:u.b.Refactor.contains(Ke.kind)?Ke.kind:u.b.None,onlyIncludePreferredActions:Ke.preferred},Ke.apply)},bt}(R.b),Ct=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:D.f,label:Ie.a("source.label","Source Action..."),alias:"Source Action...",precondition:xe.a.and(z.a.writable,z.a.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:xe.a.and(z.a.writable,lo(u.b.Source))},description:{description:"Source Action...",args:[{name:"args",schema:so}]}})||this}return bt.prototype.run=function($e,Ye,ze){var Ke=u.a.fromUser(ze,{kind:u.b.Source,apply:"never"});return Tt(Ye,typeof(ze==null?void 0:ze.kind)=="string"?Ke.preferred?Ie.a("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",ze.kind):Ie.a("editor.action.source.noneMessage.kind","No source actions for '{0}' available",ze.kind):Ke.preferred?Ie.a("editor.action.source.noneMessage.preferred","No preferred source actions available"):Ie.a("editor.action.source.noneMessage","No source actions available"),{include:u.b.Source.contains(Ke.kind)?Ke.kind:u.b.None,includeSourceActions:!0,onlyIncludePreferredActions:Ke.preferred},Ke.apply)},bt}(R.b),ht=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:D.d,label:Ie.a("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:xe.a.and(z.a.writable,lo(u.b.SourceOrganizeImports)),kbOpts:{kbExpr:z.a.editorTextFocus,primary:1024|512|45,weight:100}})||this}return bt.prototype.run=function($e,Ye){return Tt(Ye,Ie.a("editor.action.organize.noneMessage","No organize imports action available"),{include:u.b.SourceOrganizeImports,includeSourceActions:!0},"ifSingle")},bt}(R.b),Et=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:D.b,label:Ie.a("fixAll.label","Fix All"),alias:"Fix All",precondition:xe.a.and(z.a.writable,lo(u.b.SourceFixAll))})||this}return bt.prototype.run=function($e,Ye){return Tt(Ye,Ie.a("fixAll.noneMessage","No fix all action available"),{include:u.b.SourceFixAll,includeSourceActions:!0},"ifSingle")},bt}(R.b),Yt=function(Nt){nt(bt,Nt);function bt(){return Nt.call(this,{id:bt.Id,label:Ie.a("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:xe.a.and(z.a.writable,lo(u.b.QuickFix)),kbOpts:{kbExpr:z.a.editorTextFocus,primary:512|1024|84,mac:{primary:2048|512|84},weight:100}})||this}return bt.prototype.run=function($e,Ye){return Tt(Ye,Ie.a("editor.action.autoFix.noneMessage","No auto fixes available"),{include:u.b.QuickFix,onlyIncludePreferredActions:!0},"ifSingle")},bt.Id="editor.action.autoFix",bt}(R.b)},C6rC:function(Lt,N,e){},C9rm:function(Lt,N,e){},CClx:function(Lt,N,e){},CHaL:function(Lt,N,e){},CRAX:function(Lt,N,e){"use strict";e.d(N,"a",function(){return D}),e.d(N,"b",function(){return s});var T=e("3/fG"),le=e("MI8n"),$=e("ic2d"),R=e("746U"),B=e("3Rsk"),z=e("QDVR"),D={Configuration:"base.contributions.configuration"},W={properties:{},patternProperties:{}},x={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},y={properties:{},patternProperties:{}},w={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},v="vscode://schemas/settings/resourceLanguage",C=$.a.as(B.a.JSONContribution),g=function(){function _(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new le.a,this._onDidUpdateConfiguration=new le.a,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:T.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={},C.registerSchema(v,this.resourceLanguageSettingsSchema)}return _.prototype.registerConfiguration=function(L,I){I===void 0&&(I=!0),this.registerConfigurations([L],I)},_.prototype.registerConfigurations=function(L,I){var P=this;I===void 0&&(I=!0);var A=[];L.forEach(function(Q){A.push.apply(A,P.validateAndRegisterProperties(Q,I)),P.configurationContributors.push(Q),P.registerJSONConfiguration(Q)}),C.registerSchema(v,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(A)},_.prototype.registerOverrideIdentifiers=function(L){for(var I=0,P=L;I<P.length;I++){var A=P[I];this.overrideIdentifiers.add(A)}this.updateOverridePropertyPatternKey()},_.prototype.validateAndRegisterProperties=function(L,I,P){I===void 0&&(I=!0),P===void 0&&(P=3),P=R.l(L.scope)?P:L.scope;var A=[],Q=L.properties;if(Q)for(var K in Q){if(I&&p(K)){delete Q[K];continue}var H=Q[K],V=H.default;if(R.k(V)&&(H.default=l(H.type)),s.test(K)?H.scope=void 0:H.scope=R.l(H.scope)?P:H.scope,Q[K].hasOwnProperty("included")&&!Q[K].included){this.excludedConfigurationProperties[K]=Q[K],delete Q[K];continue}else this.configurationProperties[K]=Q[K];A.push(K)}var de=L.allOf;if(de)for(var _e=0,Se=de;_e<Se.length;_e++){var Ie=Se[_e];A.push.apply(A,this.validateAndRegisterProperties(Ie,I,P))}return A},_.prototype.getConfigurationProperties=function(){return this.configurationProperties},_.prototype.registerJSONConfiguration=function(L){var I=this,P=function(A){var Q=A.properties;if(Q)for(var K in Q){W.properties[K]=Q[K];switch(Q[K].scope){case 1:x.properties[K]=Q[K];break;case 2:h.properties[K]=Q[K];break;case 6:y.properties[K]=Q[K];break;case 3:w.properties[K]=Q[K];break;case 4:f.properties[K]=Q[K];break;case 5:f.properties[K]=Q[K],I.resourceLanguageSettingsSchema.properties[K]=Q[K];break}}var H=A.allOf;H&&H.forEach(P)};P(L)},_.prototype.updateOverridePropertyPatternKey=function(){for(var L,I=0,P=Object(z.e)(this.overrideIdentifiers);I<P.length;I++){var A=P[I],Q="["+A+"]",K={type:"object",description:T.a("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:T.a("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:v,default:(L=this.defaultOverridesConfigurationNode.properties[Q])===null||L===void 0?void 0:L.default};W.properties[Q]=K,x.properties[Q]=K,h.properties[Q]=K,y.properties[Q]=K,w.properties[Q]=K,f.properties[Q]=K}this._onDidSchemaChange.fire()},_}(),u="\\[.*\\]$",s=new RegExp(u);function l(_){var L=Array.isArray(_)?_[0]:_;switch(L){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var c=new g;$.a.add(D.Configuration,c);function p(_){return s.test(_)?T.a("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",_):c.getConfigurationProperties()[_]!==void 0?T.a("config.property.duplicate","Cannot register '{0}'. This property is already registered.",_):null}},CZ1j:function(Lt,N,e){"use strict";e.d(N,"b",function(){return T}),e.d(N,"a",function(){return le});function T($){return $<0?0:$>255?255:$|0}function le($){return $<0?0:$>4294967295?4294967295:$|0}},CdFp:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return e.e(291).then(e.bind(null,"6Xso"))}})},"Cg/j":function(Lt,N,e){"use strict";e.d(N,"b",function(){return T}),e.d(N,"a",function(){return le}),e.d(N,"c",function(){return R}),e.d(N,"d",function(){return B});var T;(function(z){z.serviceIds=new Map,z.DI_TARGET="$di$target",z.DI_DEPENDENCIES="$di$dependencies";function D(W){return W[z.DI_DEPENDENCIES]||[]}z.getServiceDependencies=D})(T||(T={}));var le=R("instantiationService");function $(z,D,W,x){D[T.DI_TARGET]===D?D[T.DI_DEPENDENCIES].push({id:z,index:W,optional:x}):(D[T.DI_DEPENDENCIES]=[{id:z,index:W,optional:x}],D[T.DI_TARGET]=D)}function R(z){if(T.serviceIds.has(z))return T.serviceIds.get(z);var D=function(W,x,h){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");$(D,W,h,!1)};return D.toString=function(){return z},T.serviceIds.set(z,D),D}function B(z){return function(D,W,x){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");$(z,D,x,!0)}}},CjF5:function(Lt,N,e){"use strict";e.d(N,"a",function(){return $});var T=e("D3Dy"),le=e("MNsG"),$={clipboard:{writeText:le.f||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:le.f||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(T.i)return!1;if(T.e){var R=navigator.userAgent.indexOf("Edge/"),B=parseInt(navigator.userAgent.substring(R+5,navigator.userAgent.indexOf(".",R)),10);if(!B||B>=12&&B<=16)return!1}return!0}()},keyboard:function(){return le.f||T.l?0:navigator.keyboard||T.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)}},CjOT:function(Lt,N,e){},Comh:function(Lt,N,e){"use strict";e.d(N,"b",function(){return R}),e.d(N,"a",function(){return B});var T=e("N0LK"),le=e("cGHE"),$=e("aokT"),R=function(){function z(D,W,x,h,y){this.value=D,this.selectionStart=W,this.selectionEnd=x,this.selectionStartPosition=h,this.selectionEndPosition=y}return z.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},z.readFromTextArea=function(D){return new z(D.getValue(),D.getSelectionStart(),D.getSelectionEnd(),null,null)},z.prototype.collapseSelection=function(){return new z(this.value,this.value.length,this.value.length,null,null)},z.prototype.writeToTextArea=function(D,W,x){W.setValue(D,this.value),x&&W.setSelectionRange(D,this.selectionStart,this.selectionEnd)},z.prototype.deduceEditorPosition=function(D){if(D<=this.selectionStart){var W=this.value.substring(D,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,W,-1)}if(D>=this.selectionEnd){var W=this.value.substring(this.selectionEnd,D);return this._finishDeduceEditorPosition(this.selectionEndPosition,W,1)}var x=this.value.substring(this.selectionStart,D);if(x.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,x,1);var h=this.value.substring(D,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,h,-1)},z.prototype._finishDeduceEditorPosition=function(D,W,x){for(var h=0,y=-1;(y=W.indexOf(`
`,y+1))!==-1;)h++;return[D,x*W.length,h]},z.selectedText=function(D){return new z(D,0,D.length,null,null)},z.deduceInput=function(D,W,x){if(!D)return{text:"",replaceCharCnt:0};var h=D.value,y=D.selectionStart,w=D.selectionEnd,f=W.value,v=W.selectionStart,C=W.selectionEnd,g=h.substring(w),u=f.substring(C),s=T.d(g,u);f=f.substring(0,f.length-s),h=h.substring(0,h.length-s);var l=h.substring(0,y),c=f.substring(0,v),p=T.c(l,c);if(f=f.substring(p),h=h.substring(p),v-=p,y-=p,C-=p,w-=p,x&&v===C&&h.length>0){var _=null;if(v===f.length?T.N(f,h)&&(_=f.substring(h.length)):T.m(f,h)&&(_=f.substring(0,f.length-h.length)),_!==null&&_.length>0&&(/\uFE0F/.test(_)||T.g(_)))return{text:_,replaceCharCnt:0}}if(v===C){if(h===f&&y===0&&w===h.length&&v===f.length&&f.indexOf(`
`)===-1&&T.h(f))return{text:"",replaceCharCnt:0};var L=l.length-p;return{text:f,replaceCharCnt:L}}var I=w-y;return{text:f,replaceCharCnt:I}},z.EMPTY=new z("",0,0,null,null),z}(),B=function(){function z(){}return z._getPageOfLine=function(D,W){return Math.floor((D-1)/W)},z._getRangeForPage=function(D,W){var x=D*W,h=x+1,y=x+W;return new $.a(h,1,y+1,1)},z.fromEditorSelection=function(D,W,x,h,y){var w=z._getPageOfLine(x.startLineNumber,h),f=z._getRangeForPage(w,h),v=z._getPageOfLine(x.endLineNumber,h),C=z._getRangeForPage(v,h),g=f.intersectRanges(new $.a(1,1,x.startLineNumber,x.startColumn)),u=W.getValueInRange(g,1),s=W.getLineCount(),l=W.getLineMaxColumn(s),c=C.intersectRanges(new $.a(x.endLineNumber,x.endColumn,s,l)),p=W.getValueInRange(c,1),_;if(w===v||w+1===v)_=W.getValueInRange(x,1);else{var L=f.intersectRanges(x),I=C.intersectRanges(x);_=W.getValueInRange(L,1)+String.fromCharCode(8230)+W.getValueInRange(I,1)}if(y){var P=500;u.length>P&&(u=u.substring(u.length-P,u.length)),p.length>P&&(p=p.substring(0,P)),_.length>2*P&&(_=_.substring(0,P)+String.fromCharCode(8230)+_.substring(_.length-P,_.length))}return new R(u+_+p,u.length,u.length+_.length,new le.a(x.startLineNumber,x.startColumn),new le.a(x.endLineNumber,x.endColumn))},z}()},CxEt:function(Lt,N,e){"use strict";e.r(N);var T=e("sswD"),le=e("C1Q+");Object(T.h)(le.f.ID,le.f),Object(T.f)(le.e),Object(T.f)(le.g),Object(T.f)(le.h),Object(T.f)(le.d),Object(T.f)(le.a),Object(T.f)(le.c),Object(T.g)(new le.b)},D3Dy:function(Lt,N,e){"use strict";e.d(N,"c",function(){return $}),e.d(N,"b",function(){return R}),e.d(N,"o",function(){return B}),e.d(N,"a",function(){return z}),e.d(N,"i",function(){return W}),e.d(N,"e",function(){return x}),e.d(N,"f",function(){return h}),e.d(N,"h",function(){return y}),e.d(N,"m",function(){return w}),e.d(N,"d",function(){return f}),e.d(N,"k",function(){return v}),e.d(N,"n",function(){return C}),e.d(N,"j",function(){return g}),e.d(N,"g",function(){return u}),e.d(N,"l",function(){return s});var T=e("MI8n"),le=function(){function l(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new T.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return l.prototype.getZoomLevel=function(){return this._zoomLevel},l.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},l.prototype.getPixelRatio=function(){var c=document.createElement("canvas").getContext("2d"),p=window.devicePixelRatio||1,_=c.webkitBackingStorePixelRatio||c.mozBackingStorePixelRatio||c.msBackingStorePixelRatio||c.oBackingStorePixelRatio||c.backingStorePixelRatio||1;return p/_},l.INSTANCE=new l,l}();function $(){return le.INSTANCE.getZoomLevel()}function R(){return le.INSTANCE.getTimeSinceLastZoomLevelChanged()}function B(l){return le.INSTANCE.onDidChangeZoomLevel(l)}function z(){return le.INSTANCE.getPixelRatio()}var D=navigator.userAgent,W=D.indexOf("Trident")>=0,x=D.indexOf("Edge/")>=0,h=W||x,y=D.indexOf("Firefox")>=0,w=D.indexOf("AppleWebKit")>=0,f=D.indexOf("Chrome")>=0,v=!f&&D.indexOf("Safari")>=0,C=!f&&!v&&w,g=D.indexOf("iPad")>=0||v&&navigator.maxTouchPoints>0,u=x&&D.indexOf("WebView/")>=0,s=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},DTDp:function(Lt,N,e){},Dvnd:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return e.e(309).then(e.bind(null,"y0OK"))}})},"E+ie":function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return e.e(299).then(e.bind(null,"p+q7"))}})},E4kL:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return e.e(348).then(e.bind(null,"EaLm"))}})},EIAu:function(Lt,N,e){"use strict";e.d(N,"b",function(){return B}),e.d(N,"a",function(){return g});var T=e("N0LK"),le=e("aokT"),$=function(){function u(s,l,c,p,_,L){this.languageIdentifier=s,this.index=l,this.open=c,this.close=p,this.forwardRegex=_,this.reversedRegex=L,this._openSet=u._toSet(this.open),this._closeSet=u._toSet(this.close)}return u.prototype.isOpen=function(s){return this._openSet.has(s)},u.prototype.isClose=function(s){return this._closeSet.has(s)},u._toSet=function(s){for(var l=new Set,c=0,p=s;c<p.length;c++){var _=p[c];l.add(_)}return l},u}();function R(u){var s=u.length;u=u.map(function(Se){return[Se[0].toLowerCase(),Se[1].toLowerCase()]});for(var l=[],c=0;c<s;c++)l[c]=c;for(var p=function(Se,Ie){var Pe=Se[0],Ve=Se[1],ke=Ie[0],se=Ie[1];return Pe===ke||Pe===se||Ve===ke||Ve===se},_=function(Se,Ie){for(var Pe=Math.min(Se,Ie),Ve=Math.max(Se,Ie),ke=0;ke<s;ke++)l[ke]===Ve&&(l[ke]=Pe)},c=0;c<s;c++)for(var L=u[c],I=c+1;I<s;I++){var P=u[I];p(L,P)&&_(l[c],l[I])}for(var A=[],Q=0;Q<s;Q++){for(var K=[],H=[],c=0;c<s;c++)if(l[c]===Q){var V=u[c],de=V[0],_e=V[1];K.push(de),H.push(_e)}K.length>0&&A.push({open:K,close:H})}return A}var B=function(){function u(s,l){var c=R(l);this.brackets=c.map(function(V,de){return new $(s,de,V.open,V.close,x(V.open,V.close,c,de),h(V.open,V.close,c,de))}),this.forwardRegex=y(this.brackets),this.reversedRegex=w(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(var p=0,_=this.brackets;p<_.length;p++){for(var L=_[p],I=0,P=L.open;I<P.length;I++){var A=P[I];this.textIsBracket[A]=L,this.textIsOpenBracket[A]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,A.length)}for(var Q=0,K=L.close;Q<K.length;Q++){var H=K[Q];this.textIsBracket[H]=L,this.textIsOpenBracket[H]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,H.length)}}}return u}();function z(u,s,l,c){for(var p=0,_=s.length;p<_;p++){if(p===l)continue;for(var L=s[p],I=0,P=L.open;I<P.length;I++){var A=P[I];A.indexOf(u)>=0&&c.push(A)}for(var Q=0,K=L.close;Q<K.length;Q++){var H=K[Q];H.indexOf(u)>=0&&c.push(H)}}}function D(u,s){return u.length-s.length}function W(u){if(u.length<=1)return u;for(var s=[],l=new Set,c=0,p=u;c<p.length;c++){var _=p[c];if(l.has(_))continue;s.push(_),l.add(_)}return s}function x(u,s,l,c){var p=[];p=p.concat(u),p=p.concat(s);for(var _=0,L=p.length;_<L;_++)z(p[_],l,c,p);return p=W(p),p.sort(D),p.reverse(),v(p)}function h(u,s,l,c){var p=[];p=p.concat(u),p=p.concat(s);for(var _=0,L=p.length;_<L;_++)z(p[_],l,c,p);return p=W(p),p.sort(D),p.reverse(),v(p.map(C))}function y(u){for(var s=[],l=0,c=u;l<c.length;l++){for(var p=c[l],_=0,L=p.open;_<L.length;_++){var I=L[_];s.push(I)}for(var P=0,A=p.close;P<A.length;P++){var Q=A[P];s.push(Q)}}return s=W(s),v(s)}function w(u){for(var s=[],l=0,c=u;l<c.length;l++){for(var p=c[l],_=0,L=p.open;_<L.length;_++){var I=L[_];s.push(I)}for(var P=0,A=p.close;P<A.length;P++){var Q=A[P];s.push(Q)}}return s=W(s),v(s.map(C))}function f(u){var s=/^[\w ]+$/.test(u);return u=T.p(u),s?"\\b"+u+"\\b":u}function v(u){var s="("+u.map(f).join(")|(")+")";return T.l(s,!0)}var C=function(){function u(c){for(var p="",_=c.length-1;_>=0;_--)p+=c.charAt(_);return p}var s=null,l=null;return function(p){return s!==p&&(s=p,l=u(s)),l}}(),g=function(){function u(){}return u._findPrevBracketInText=function(s,l,c,p){var _=c.match(s);if(!_)return null;var L=c.length-(_.index||0),I=_[0].length,P=p+L;return new le.a(l,P-I+1,l,P+1)},u.findPrevBracketInRange=function(s,l,c,p,_){var L=C(c),I=L.substring(c.length-_,c.length-p);return this._findPrevBracketInText(s,l,I,p)},u.findNextBracketInText=function(s,l,c,p){var _=c.match(s);if(!_)return null;var L=_.index||0,I=_[0].length;if(I===0)return null;var P=p+L;return new le.a(l,P+1,l,P+1+I)},u.findNextBracketInRange=function(s,l,c,p,_){var L=c.substring(p,_);return this.findNextBracketInText(s,l,L,p)},u}()},EOst:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return e.e(345).then(e.bind(null,"87dK"))}})},"EPS+":function(Lt,N,e){},EWX2:function(Lt,N,e){"use strict";e.d(N,"a",function(){return B}),e.d(N,"b",function(){return x});var T=e("bY76"),le=e("gslv"),$=e("Cg/j"),R=e("QDVR"),B=Object($.c)("contextService"),z;(function(h){function y(w){return w&&typeof w=="object"&&typeof w.id=="string"&&Array.isArray(w.folders)}h.isIWorkspace=y})(z||(z={}));var D;(function(h){function y(w){return w&&typeof w=="object"&&T.a.isUri(w.uri)&&typeof w.name=="string"&&typeof w.toResource=="function"}h.isIWorkspaceFolder=y})(D||(D={}));var W=function(){function h(y,w,f){w===void 0&&(w=[]),f===void 0&&(f=null),this._id=y,this._configuration=f,this._foldersMap=R.c.forPaths(),this.folders=w}return Object.defineProperty(h.prototype,"folders",{get:function(){return this._folders},set:function(y){this._folders=y,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"configuration",{get:function(){return this._configuration},set:function(y){this._configuration=y},enumerable:!0,configurable:!0}),h.prototype.getFolder=function(y){return y&&this._foldersMap.findSubstr(y.with({scheme:y.scheme,authority:y.authority,path:y.path}).toString())||null},h.prototype.updateFoldersMap=function(){this._foldersMap=R.c.forPaths();for(var y=0,w=this.folders;y<w.length;y++){var f=w[y];this._foldersMap.set(f.uri.toString(),f)}},h.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}},h}(),x=function(){function h(y,w){this.raw=w,this.uri=y.uri,this.index=y.index,this.name=y.name}return h.prototype.toResource=function(y){return le.f(this.uri,y)},h.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},h}()},EffR:function(Lt,N,e){"use strict";e.d(N,"t",function(){return g}),e.d(N,"R",function(){return u}),e.d(N,"M",function(){return s}),e.d(N,"I",function(){return _}),e.d(N,"f",function(){return L}),e.d(N,"g",function(){return I}),e.d(N,"P",function(){return P}),e.d(N,"Q",function(){return A}),e.d(N,"Y",function(){return Q}),e.d(N,"j",function(){return H}),e.d(N,"o",function(){return _e}),e.d(N,"n",function(){return Se}),e.d(N,"h",function(){return Ie}),e.d(N,"i",function(){return Pe}),e.d(N,"k",function(){return Ve}),e.d(N,"l",function(){return ke}),e.d(N,"U",function(){return ie}),e.d(N,"W",function(){return q}),e.d(N,"m",function(){return Ge}),e.d(N,"z",function(){return ue}),e.d(N,"y",function(){return ve}),e.d(N,"b",function(){return xe}),e.d(N,"F",function(){return Ce}),e.d(N,"C",function(){return he}),e.d(N,"e",function(){return J}),e.d(N,"H",function(){return b}),e.d(N,"B",function(){return F}),e.d(N,"A",function(){return re}),e.d(N,"G",function(){return ne}),e.d(N,"K",function(){return fe}),e.d(N,"x",function(){return Oe}),e.d(N,"N",function(){return Ue}),e.d(N,"E",function(){return Je}),e.d(N,"w",function(){return nt}),e.d(N,"v",function(){return Kt}),e.d(N,"O",function(){return ao}),e.d(N,"L",function(){return lo}),e.d(N,"d",function(){return so}),e.d(N,"c",function(){return jt}),e.d(N,"V",function(){return pt}),e.d(N,"T",function(){return gt}),e.d(N,"Z",function(){return it}),e.d(N,"q",function(){return et}),e.d(N,"a",function(){return Et}),e.d(N,"X",function(){return Yt}),e.d(N,"J",function(){return Nt}),e.d(N,"S",function(){return $e}),e.d(N,"D",function(){return Ye}),e.d(N,"u",function(){return ze}),e.d(N,"ab",function(){return Ke}),e.d(N,"p",function(){return ge}),e.d(N,"s",function(){return G}),e.d(N,"r",function(){return oe});var T=e("D3Dy"),le=e("4y0V"),$=e("uDWl"),R=e("XSiN"),B=e("X+cX"),z=e("/cxE"),D=e("MI8n"),W=e("pmY6"),x=e("MNsG"),h=e("6OMU"),y=e("tYmi"),w=e("CjF5"),f=function(){var Y=function(ae,Fe){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(dt,Ot){dt.__proto__=Ot}||function(dt,Ot){for(var Qt in Ot)Ot.hasOwnProperty(Qt)&&(dt[Qt]=Ot[Qt])},Y(ae,Fe)};return function(ae,Fe){Y(ae,Fe);function dt(){this.constructor=ae}ae.prototype=Fe===null?Object.create(Fe):(dt.prototype=Fe.prototype,new dt)}}(),v=function(){return v=Object.assign||function(Y){for(var ae,Fe=1,dt=arguments.length;Fe<dt;Fe++){ae=arguments[Fe];for(var Ot in ae)Object.prototype.hasOwnProperty.call(ae,Ot)&&(Y[Ot]=ae[Ot])}return Y},v.apply(this,arguments)},C=function(){for(var Y=0,ae=0,Fe=arguments.length;ae<Fe;ae++)Y+=arguments[ae].length;for(var dt=Array(Y),Ot=0,ae=0;ae<Fe;ae++)for(var Qt=arguments[ae],to=0,fo=Qt.length;to<fo;to++,Ot++)dt[Ot]=Qt[to];return dt};function g(Y){for(;Y.firstChild;)Y.removeChild(Y.firstChild)}function u(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function s(Y){for(;Y;){if(Y===document.body)return!0;Y=Y.parentNode||Y.host}return!1}var l=new(function(){function Y(){this._lastStart=-1,this._lastEnd=-1}return Y.prototype._findClassName=function(ae,Fe){var dt=ae.className;if(!dt){this._lastStart=-1;return}Fe=Fe.trim();var Ot=dt.length,Qt=Fe.length;if(Qt===0){this._lastStart=-1;return}if(Ot<Qt){this._lastStart=-1;return}if(dt===Fe){this._lastStart=0,this._lastEnd=Ot;return}for(var to=-1,fo;(to=dt.indexOf(Fe,to+1))>=0;){if(fo=to+Qt,(to===0||dt.charCodeAt(to-1)===32)&&dt.charCodeAt(fo)===32){this._lastStart=to,this._lastEnd=fo+1;return}if(to>0&&dt.charCodeAt(to-1)===32&&fo===Ot){this._lastStart=to-1,this._lastEnd=fo;return}if(to===0&&fo===Ot){this._lastStart=0,this._lastEnd=fo;return}}this._lastStart=-1},Y.prototype.hasClass=function(ae,Fe){return this._findClassName(ae,Fe),this._lastStart!==-1},Y.prototype.addClasses=function(ae){for(var Fe=this,dt=[],Ot=1;Ot<arguments.length;Ot++)dt[Ot-1]=arguments[Ot];dt.forEach(function(Qt){return Qt.split(" ").forEach(function(to){return Fe.addClass(ae,to)})})},Y.prototype.addClass=function(ae,Fe){ae.className?(this._findClassName(ae,Fe),this._lastStart===-1&&(ae.className=ae.className+" "+Fe)):ae.className=Fe},Y.prototype.removeClass=function(ae,Fe){if(this._findClassName(ae,Fe),this._lastStart===-1)return;ae.className=ae.className.substring(0,this._lastStart)+ae.className.substring(this._lastEnd)},Y.prototype.removeClasses=function(ae){for(var Fe=this,dt=[],Ot=1;Ot<arguments.length;Ot++)dt[Ot-1]=arguments[Ot];dt.forEach(function(Qt){return Qt.split(" ").forEach(function(to){return Fe.removeClass(ae,to)})})},Y.prototype.toggleClass=function(ae,Fe,dt){this._findClassName(ae,Fe),this._lastStart!==-1&&(dt===void 0||!dt)&&this.removeClass(ae,Fe),this._lastStart===-1&&(dt===void 0||dt)&&this.addClass(ae,Fe)},Y}()),c=new(function(){function Y(){}return Y.prototype.hasClass=function(ae,Fe){return Boolean(Fe)&&ae.classList&&ae.classList.contains(Fe)},Y.prototype.addClasses=function(ae){for(var Fe=this,dt=[],Ot=1;Ot<arguments.length;Ot++)dt[Ot-1]=arguments[Ot];dt.forEach(function(Qt){return Qt.split(" ").forEach(function(to){return Fe.addClass(ae,to)})})},Y.prototype.addClass=function(ae,Fe){Fe&&ae.classList&&ae.classList.add(Fe)},Y.prototype.removeClass=function(ae,Fe){Fe&&ae.classList&&ae.classList.remove(Fe)},Y.prototype.removeClasses=function(ae){for(var Fe=this,dt=[],Ot=1;Ot<arguments.length;Ot++)dt[Ot-1]=arguments[Ot];dt.forEach(function(Qt){return Qt.split(" ").forEach(function(to){return Fe.removeClass(ae,to)})})},Y.prototype.toggleClass=function(ae,Fe,dt){ae.classList&&ae.classList.toggle(Fe,dt)},Y}()),p=T.i?l:c,_=p.hasClass.bind(p),L=p.addClass.bind(p),I=p.addClasses.bind(p),P=p.removeClass.bind(p),A=p.removeClasses.bind(p),Q=p.toggleClass.bind(p),K=function(){function Y(ae,Fe,dt,Ot){this._node=ae,this._type=Fe,this._handler=dt,this._options=Ot||!1,this._node.addEventListener(this._type,this._handler,this._options)}return Y.prototype.dispose=function(){if(!this._handler)return;this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null},Y}();function H(Y,ae,Fe,dt){return new K(Y,ae,Fe,dt)}function V(Y){return function(ae){return Y(new R.b(ae))}}function de(Y){return function(ae){return Y(new $.a(ae))}}var _e=function(ae,Fe,dt,Ot){var Qt=dt;return Fe==="click"||Fe==="mousedown"?Qt=V(dt):(Fe==="keydown"||Fe==="keypress"||Fe==="keyup")&&(Qt=de(dt)),H(ae,Fe,Qt,Ot)},Se=function(ae,Fe,dt){var Ot=V(Fe);return Ie(ae,Ot,dt)};function Ie(Y,ae,Fe){return H(Y,x.c&&w.a.pointerEvents?so.POINTER_DOWN:so.MOUSE_DOWN,ae,Fe)}function Pe(Y,ae,Fe){return H(Y,x.c&&w.a.pointerEvents?so.POINTER_UP:so.MOUSE_UP,ae,Fe)}function Ve(Y,ae){return H(Y,"mouseout",function(Fe){for(var dt=Fe.relatedTarget;dt&&dt!==Y;)dt=dt.parentNode;if(dt===Y)return;ae(Fe)})}function ke(Y,ae){return H(Y,"pointerout",function(Fe){for(var dt=Fe.relatedTarget;dt&&dt!==Y;)dt=dt.parentNode;if(dt===Y)return;ae(Fe)})}var se=null;function ee(Y){if(!se){var ae=function(Fe){return setTimeout(function(){return Fe(new Date().getTime())},0)};se=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||ae}return se.call(self,Y)}var ie,q,ce=function(){function Y(ae,Fe){Fe===void 0&&(Fe=0),this._runner=ae,this.priority=Fe,this._canceled=!1}return Y.prototype.dispose=function(){this._canceled=!0},Y.prototype.execute=function(){if(this._canceled)return;try{this._runner()}catch(ae){Object(z.e)(ae)}},Y.sort=function(ae,Fe){return Fe.priority-ae.priority},Y}();(function(){var Y=[],ae=null,Fe=!1,dt=!1,Ot=function(){for(Fe=!1,ae=Y,Y=[],dt=!0;ae.length>0;){ae.sort(ce.sort);var Qt=ae.shift();Qt.execute()}dt=!1};q=function(Qt,to){to===void 0&&(to=0);var fo=new ce(Qt,to);return Y.push(fo),Fe||(Fe=!0,ee(Ot)),fo},ie=function(Qt,to){if(dt){var fo=new ce(Qt,to);return ae.push(fo),fo}else return q(Qt,to)}})();var Z=16,ye=function(Y,ae){return ae},je=function(Y){f(ae,Y);function ae(Fe,dt,Ot,Qt,to){Qt===void 0&&(Qt=ye),to===void 0&&(to=Z);var fo=Y.call(this)||this,ho=null,_o=0,Do=fo._register(new B.e),Ro=function(){_o=new Date().getTime(),Ot(ho),ho=null};return fo._register(H(Fe,dt,function(jo){ho=Qt(ho,jo);var Eo=new Date().getTime()-_o;Eo>=to?(Do.cancel(),Ro()):Do.setIfNotSet(Ro,to-Eo)})),fo}return ae}(W.a);function Ge(Y,ae,Fe,dt,Ot){return new je(Y,ae,Fe,dt,Ot)}function ue(Y){return document.defaultView.getComputedStyle(Y,null)}function ve(Y){if(Y!==document.body)return new xe(Y.clientWidth,Y.clientHeight);if(x.c&&window.visualViewport){var ae=window.visualViewport.width,Fe=window.visualViewport.height-(T.l?20+4:0);return new xe(ae,Fe)}if(window.innerWidth&&window.innerHeight)return new xe(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new xe(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new xe(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var Ee=function(){function Y(){}return Y.convertToPixels=function(ae,Fe){return parseFloat(Fe)||0},Y.getDimension=function(ae,Fe,dt){var Ot=ue(ae),Qt="0";return Ot&&(Ot.getPropertyValue?Qt=Ot.getPropertyValue(Fe):Qt=Ot.getAttribute(dt)),Y.convertToPixels(ae,Qt)},Y.getBorderLeftWidth=function(ae){return Y.getDimension(ae,"border-left-width","borderLeftWidth")},Y.getBorderRightWidth=function(ae){return Y.getDimension(ae,"border-right-width","borderRightWidth")},Y.getBorderTopWidth=function(ae){return Y.getDimension(ae,"border-top-width","borderTopWidth")},Y.getBorderBottomWidth=function(ae){return Y.getDimension(ae,"border-bottom-width","borderBottomWidth")},Y.getPaddingLeft=function(ae){return Y.getDimension(ae,"padding-left","paddingLeft")},Y.getPaddingRight=function(ae){return Y.getDimension(ae,"padding-right","paddingRight")},Y.getPaddingTop=function(ae){return Y.getDimension(ae,"padding-top","paddingTop")},Y.getPaddingBottom=function(ae){return Y.getDimension(ae,"padding-bottom","paddingBottom")},Y.getMarginLeft=function(ae){return Y.getDimension(ae,"margin-left","marginLeft")},Y.getMarginTop=function(ae){return Y.getDimension(ae,"margin-top","marginTop")},Y.getMarginRight=function(ae){return Y.getDimension(ae,"margin-right","marginRight")},Y.getMarginBottom=function(ae){return Y.getDimension(ae,"margin-bottom","marginBottom")},Y}(),xe=function(){function Y(ae,Fe){this.width=ae,this.height=Fe}return Y}();function Ce(Y){for(var ae=Y.offsetParent,Fe=Y.offsetTop,dt=Y.offsetLeft;(Y=Y.parentNode)!==null&&Y!==document.body&&Y!==document.documentElement;){Fe-=Y.scrollTop;var Ot=Me(Y)?null:ue(Y);Ot&&(dt-=Ot.direction!=="rtl"?Y.scrollLeft:-Y.scrollLeft),Y===ae&&(dt+=Ee.getBorderLeftWidth(Y),Fe+=Ee.getBorderTopWidth(Y),Fe+=Y.offsetTop,dt+=Y.offsetLeft,ae=Y.offsetParent)}return{left:dt,top:Fe}}function he(Y){var ae=Y.getBoundingClientRect();return{left:ae.left+J.scrollX,top:ae.top+J.scrollY,width:ae.width,height:ae.height}}var J=new(function(){function Y(){}return Object.defineProperty(Y.prototype,"scrollX",{get:function(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"scrollY",{get:function(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),Y}());function b(Y){var ae=Ee.getMarginLeft(Y)+Ee.getMarginRight(Y);return Y.offsetWidth+ae}function F(Y){var ae=Ee.getBorderLeftWidth(Y)+Ee.getBorderRightWidth(Y),Fe=Ee.getPaddingLeft(Y)+Ee.getPaddingRight(Y);return Y.offsetWidth-ae-Fe}function re(Y){var ae=Ee.getBorderTopWidth(Y)+Ee.getBorderBottomWidth(Y),Fe=Ee.getPaddingTop(Y)+Ee.getPaddingBottom(Y);return Y.offsetHeight-ae-Fe}function ne(Y){var ae=Ee.getMarginTop(Y)+Ee.getMarginBottom(Y);return Y.offsetHeight+ae}function fe(Y,ae){for(;Y;){if(Y===ae)return!0;Y=Y.parentNode}return!1}function Oe(Y,ae,Fe){for(;Y&&Y.nodeType===Y.ELEMENT_NODE;){if(_(Y,ae))return Y;if(Fe){if(typeof Fe=="string"){if(_(Y,Fe))return null}else if(Y===Fe)return null}Y=Y.parentNode}return null}function Me(Y){return Y&&!!Y.host&&!!Y.mode}function Ue(Y){return!!Je(Y)}function Je(Y){for(;Y.parentNode;){if(Y===document.body)return null;Y=Y.parentNode}return Me(Y)?Y:null}function nt(Y){Y===void 0&&(Y=document.getElementsByTagName("head")[0]);var ae=document.createElement("style");return ae.type="text/css",ae.media="screen",Y.appendChild(ae),ae}var vt=null;function Rt(){return vt||(vt=nt()),vt}function Dt(Y){return Y&&Y.sheet&&Y.sheet.rules?Y.sheet.rules:Y&&Y.sheet&&Y.sheet.cssRules?Y.sheet.cssRules:[]}function Kt(Y,ae,Fe){if(Fe===void 0&&(Fe=Rt()),!Fe||!ae)return;Fe.sheet.insertRule(Y+"{"+ae+"}",0)}function ao(Y,ae){if(ae===void 0&&(ae=Rt()),!ae)return;for(var Fe=Dt(ae),dt=[],Ot=0;Ot<Fe.length;Ot++){var Qt=Fe[Ot];Qt.selectorText.indexOf(Y)!==-1&&dt.push(Ot)}for(var Ot=dt.length-1;Ot>=0;Ot--)ae.sheet.deleteRule(dt[Ot])}function lo(Y){return typeof HTMLElement=="object"?Y instanceof HTMLElement:Y&&typeof Y=="object"&&Y.nodeType===1&&typeof Y.nodeName=="string"}var so={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:T.m?"webkitAnimationStart":"animationstart",ANIMATION_END:T.m?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:T.m?"webkitAnimationIteration":"animationiteration"},jt={stop:function(Y,ae){Y.preventDefault?Y.preventDefault():Y.returnValue=!1,ae&&(Y.stopPropagation?Y.stopPropagation():Y.cancelBubble=!0)}};function pt(Y){for(var ae=[],Fe=0;Y&&Y.nodeType===Y.ELEMENT_NODE;Fe++)ae[Fe]=Y.scrollTop,Y=Y.parentNode;return ae}function gt(Y,ae){for(var Fe=0;Y&&Y.nodeType===Y.ELEMENT_NODE;Fe++)Y.scrollTop!==ae[Fe]&&(Y.scrollTop=ae[Fe]),Y=Y.parentNode}var Tt=function(Y){f(ae,Y);function ae(Fe){var dt=Y.call(this)||this;dt._onDidFocus=dt._register(new D.a),dt.onDidFocus=dt._onDidFocus.event,dt._onDidBlur=dt._register(new D.a),dt.onDidBlur=dt._onDidBlur.event;var Ot=fe(document.activeElement,Fe),Qt=!1,to=function(){Qt=!1,Ot||(Ot=!0,dt._onDidFocus.fire())},fo=function(){Ot&&(Qt=!0,window.setTimeout(function(){Qt&&(Qt=!1,Ot=!1,dt._onDidBlur.fire())},0))};return dt._refreshStateHandler=function(){var ho=fe(document.activeElement,Fe);ho!==Ot&&(Ot?fo():to())},dt._register(Object(le.a)(Fe,so.FOCUS,!0)(to)),dt._register(Object(le.a)(Fe,so.BLUR,!0)(fo)),dt}return ae}(W.a);function it(Y){return new Tt(Y)}function et(Y){for(var ae=[],Fe=1;Fe<arguments.length;Fe++)ae[Fe-1]=arguments[Fe];return ae.forEach(function(dt){return Y.appendChild(dt)}),ae[ae.length-1]}var ut=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/,Ct;(function(Y){Y.HTML="http://www.w3.org/1999/xhtml",Y.SVG="http://www.w3.org/2000/svg"})(Ct||(Ct={}));function ht(Y,ae,Fe){for(var dt=[],Ot=3;Ot<arguments.length;Ot++)dt[Ot-3]=arguments[Ot];var Qt=ut.exec(ae);if(!Qt)throw new Error("Bad use of emmet");Fe=v({},Fe||{});var to=Qt[1]||"div",fo;return Y!==Ct.HTML?fo=document.createElementNS(Y,to):fo=document.createElement(to),Qt[3]&&(fo.id=Qt[3]),Qt[4]&&(fo.className=Qt[4].replace(/\./g," ").trim()),Object.keys(Fe).forEach(function(ho){var _o=Fe[ho];if(typeof _o=="undefined")return;/^on\w+$/.test(ho)?fo[ho]=_o:ho==="selected"?_o&&fo.setAttribute(ho,"true"):fo.setAttribute(ho,_o)}),Object(h.d)(dt).forEach(function(ho){ho instanceof Node?fo.appendChild(ho):fo.appendChild(document.createTextNode(ho))}),fo}function Et(Y,ae){for(var Fe=[],dt=2;dt<arguments.length;dt++)Fe[dt-2]=arguments[dt];return ht.apply(void 0,C([Ct.HTML,Y,ae],Fe))}Et.SVG=function(Y,ae){for(var Fe=[],dt=2;dt<arguments.length;dt++)Fe[dt-2]=arguments[dt];return ht.apply(void 0,C([Ct.SVG,Y,ae],Fe))};function Yt(){for(var Y=[],ae=0;ae<arguments.length;ae++)Y[ae]=arguments[ae];for(var Fe=0,dt=Y;Fe<dt.length;Fe++){var Ot=dt[Fe];Ot.style.display="",Ot.removeAttribute("aria-hidden")}}function Nt(){for(var Y=[],ae=0;ae<arguments.length;ae++)Y[ae]=arguments[ae];for(var Fe=0,dt=Y;Fe<dt.length;Fe++){var Ot=dt[Fe];Ot.style.display="none",Ot.setAttribute("aria-hidden","true")}}function bt(Y,ae){for(;Y&&Y.nodeType===Y.ELEMENT_NODE;){if(Y instanceof HTMLElement&&Y.hasAttribute(ae))return Y;Y=Y.parentNode}return null}function $e(Y){if(!Y||!Y.hasAttribute("tabIndex"))return;if(document.activeElement===Y){var ae=bt(Y.parentElement,"tabIndex");ae&&ae.focus()}Y.removeAttribute("tabindex")}function Ye(Y){return Array.prototype.slice.call(document.getElementsByTagName(Y),0)}function ze(Y){var ae=window.devicePixelRatio*Y;return Math.max(1,Math.floor(ae))/window.devicePixelRatio}function Ke(Y){if(x.f||T.g)window.open(Y);else{var ae=window.open();ae&&(ae.opener=null,ae.location.href=Y)}}function ge(Y){var ae=function(){Y(),Fe=q(ae)},Fe=q(ae);return Object(W.h)(function(){return Fe.dispose()})}y.a.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");function G(Y){return Y&&(y.b.vscodeRemote===Y.scheme?y.a.rewrite(Y):Y)}function oe(Y){return Y?"url('"+G(Y).toString(!0).replace(/'/g,"%27")+"')":"url('')"}},EzsQ:function(Lt,N,e){},FWmy:function(Lt,N,e){"use strict";e.d(N,"a",function(){return T});function T(le,$){if(!le)throw new Error($?"Assertion failed ("+$+")":"Assertion Failed")}},FvUK:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return e.e(310).then(e.bind(null,"OfHX"))}})},G2kB:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le}),e.d(N,"b",function(){return $});var T=e("Cg/j"),le=Object(T.c)("modelService");function $(R){return!R.isTooLargeForSyncing()&&!R.isForSimpleWidget}},G300:function(Lt,N,e){"use strict";e.d(N,"a",function(){return D});var T=e("EffR"),le=e("uDWl"),$=e("XSiN"),R=e("pmY6"),B=e("pg8w"),z=function(){var W=function(x,h){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var f in w)w.hasOwnProperty(f)&&(y[f]=w[f])},W(x,h)};return function(x,h){W(x,h);function y(){this.constructor=x}x.prototype=h===null?Object.create(h):(y.prototype=h.prototype,new y)}}(),D=function(W){z(x,W);function x(){return W!==null&&W.apply(this,arguments)||this}return x.prototype.onclick=function(h,y){this._register(T.j(h,T.d.CLICK,function(w){return y(new $.b(w))}))},x.prototype.onmousedown=function(h,y){this._register(T.j(h,T.d.MOUSE_DOWN,function(w){return y(new $.b(w))}))},x.prototype.onmouseover=function(h,y){this._register(T.j(h,T.d.MOUSE_OVER,function(w){return y(new $.b(w))}))},x.prototype.onnonbubblingmouseout=function(h,y){this._register(T.k(h,function(w){return y(new $.b(w))}))},x.prototype.onkeydown=function(h,y){this._register(T.j(h,T.d.KEY_DOWN,function(w){return y(new le.a(w))}))},x.prototype.onkeyup=function(h,y){this._register(T.j(h,T.d.KEY_UP,function(w){return y(new le.a(w))}))},x.prototype.oninput=function(h,y){this._register(T.j(h,T.d.INPUT,y))},x.prototype.onblur=function(h,y){this._register(T.j(h,T.d.BLUR,y))},x.prototype.onfocus=function(h,y){this._register(T.j(h,T.d.FOCUS,y))},x.prototype.ignoreGesture=function(h){B.b.ignoreTarget(h)},x}(R.a)},GJhM:function(Lt,N,e){"use strict";e.d(N,"b",function(){return Ie}),e.d(N,"c",function(){return Pe}),e.d(N,"a",function(){return Ve});var T=e("eq1K"),le=e("D3Dy"),$=e("EffR"),R=e("ZlPH"),B=e("XSiN"),z=e("AKMP"),D=e("G300"),W=e("X+cX"),x=function(){var se=function(ee,ie){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ce){q.__proto__=ce}||function(q,ce){for(var Z in ce)ce.hasOwnProperty(Z)&&(q[Z]=ce[Z])},se(ee,ie)};return function(ee,ie){se(ee,ie);function q(){this.constructor=ee}ee.prototype=ie===null?Object.create(ie):(q.prototype=ie.prototype,new q)}}(),h=11,y=function(se){x(ee,se);function ee(ie){var q=se.call(this)||this;return q._onActivate=ie.onActivate,q.bgDomNode=document.createElement("div"),q.bgDomNode.className="arrow-background",q.bgDomNode.style.position="absolute",q.bgDomNode.style.width=ie.bgWidth+"px",q.bgDomNode.style.height=ie.bgHeight+"px",typeof ie.top!="undefined"&&(q.bgDomNode.style.top="0px"),typeof ie.left!="undefined"&&(q.bgDomNode.style.left="0px"),typeof ie.bottom!="undefined"&&(q.bgDomNode.style.bottom="0px"),typeof ie.right!="undefined"&&(q.bgDomNode.style.right="0px"),q.domNode=document.createElement("div"),q.domNode.className=ie.className,q.domNode.style.position="absolute",q.domNode.style.width=h+"px",q.domNode.style.height=h+"px",typeof ie.top!="undefined"&&(q.domNode.style.top=ie.top+"px"),typeof ie.left!="undefined"&&(q.domNode.style.left=ie.left+"px"),typeof ie.bottom!="undefined"&&(q.domNode.style.bottom=ie.bottom+"px"),typeof ie.right!="undefined"&&(q.domNode.style.right=ie.right+"px"),q._mouseMoveMonitor=q._register(new z.a),q.onmousedown(q.bgDomNode,function(ce){return q._arrowMouseDown(ce)}),q.onmousedown(q.domNode,function(ce){return q._arrowMouseDown(ce)}),q._mousedownRepeatTimer=q._register(new W.c),q._mousedownScheduleRepeatTimer=q._register(new W.e),q}return ee.prototype._arrowMouseDown=function(ie){var q=this,ce=function(){q._mousedownRepeatTimer.cancelAndSet(function(){return q._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(ce,200),this._mouseMoveMonitor.startMonitoring(ie.target,ie.buttons,z.b,function(Z){},function(){q._mousedownRepeatTimer.cancel(),q._mousedownScheduleRepeatTimer.cancel()}),ie.preventDefault()},ee}(D.a),w=e("pmY6"),f=function(){var se=function(ee,ie){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ce){q.__proto__=ce}||function(q,ce){for(var Z in ce)ce.hasOwnProperty(Z)&&(q[Z]=ce[Z])},se(ee,ie)};return function(ee,ie){se(ee,ie);function q(){this.constructor=ee}ee.prototype=ie===null?Object.create(ie):(q.prototype=ie.prototype,new q)}}(),v=function(se){f(ee,se);function ee(ie,q,ce){var Z=se.call(this)||this;return Z._visibility=ie,Z._visibleClassName=q,Z._invisibleClassName=ce,Z._domNode=null,Z._isVisible=!1,Z._isNeeded=!1,Z._shouldBeVisible=!1,Z._revealTimer=Z._register(new W.e),Z}return ee.prototype.applyVisibilitySetting=function(ie){return this._visibility===2?!1:this._visibility===3?!0:ie},ee.prototype.setShouldBeVisible=function(ie){var q=this.applyVisibilitySetting(ie);this._shouldBeVisible!==q&&(this._shouldBeVisible=q,this.ensureVisibility())},ee.prototype.setIsNeeded=function(ie){this._isNeeded!==ie&&(this._isNeeded=ie,this.ensureVisibility())},ee.prototype.setDomNode=function(ie){this._domNode=ie,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)},ee.prototype.ensureVisibility=function(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)},ee.prototype._reveal=function(){var ie=this;if(this._isVisible)return;this._isVisible=!0,this._revealTimer.setIfNotSet(function(){ie._domNode&&ie._domNode.setClassName(ie._visibleClassName)},0)},ee.prototype._hide=function(ie){if(this._revealTimer.cancel(),!this._isVisible)return;this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(ie?" fade":""))},ee}(w.a),C=e("MNsG"),g=function(){var se=function(ee,ie){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ce){q.__proto__=ce}||function(q,ce){for(var Z in ce)ce.hasOwnProperty(Z)&&(q[Z]=ce[Z])},se(ee,ie)};return function(ee,ie){se(ee,ie);function q(){this.constructor=ee}ee.prototype=ie===null?Object.create(ie):(q.prototype=ie.prototype,new q)}}(),u=140,s=function(se){g(ee,se);function ee(ie){var q=se.call(this)||this;return q._lazyRender=ie.lazyRender,q._host=ie.host,q._scrollable=ie.scrollable,q._scrollbarState=ie.scrollbarState,q._visibilityController=q._register(new v(ie.visibility,"visible scrollbar "+ie.extraScrollbarClassName,"invisible scrollbar "+ie.extraScrollbarClassName)),q._visibilityController.setIsNeeded(q._scrollbarState.isNeeded()),q._mouseMoveMonitor=q._register(new z.a),q._shouldRender=!0,q.domNode=Object(R.b)(document.createElement("div")),q.domNode.setAttribute("role","presentation"),q.domNode.setAttribute("aria-hidden","true"),q._visibilityController.setDomNode(q.domNode),q.domNode.setPosition("absolute"),q.onmousedown(q.domNode.domNode,function(ce){return q._domNodeMouseDown(ce)}),q}return ee.prototype._createArrow=function(ie){var q=this._register(new y(ie));this.domNode.domNode.appendChild(q.bgDomNode),this.domNode.domNode.appendChild(q.domNode)},ee.prototype._createSlider=function(ie,q,ce,Z){var ye=this;this.slider=Object(R.b)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(ie),this.slider.setLeft(q),typeof ce=="number"&&this.slider.setWidth(ce),typeof Z=="number"&&this.slider.setHeight(Z),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(je){je.leftButton&&(je.preventDefault(),ye._sliderMouseDown(je,function(){}))}),this.onclick(this.slider.domNode,function(je){je.leftButton&&je.stopPropagation()})},ee.prototype._onElementSize=function(ie){return this._scrollbarState.setVisibleSize(ie)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},ee.prototype._onElementScrollSize=function(ie){return this._scrollbarState.setScrollSize(ie)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},ee.prototype._onElementScrollPosition=function(ie){return this._scrollbarState.setScrollPosition(ie)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender},ee.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)},ee.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)},ee.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())},ee.prototype._domNodeMouseDown=function(ie){if(ie.target!==this.domNode.domNode)return;this._onMouseDown(ie)},ee.prototype.delegateMouseDown=function(ie){var q=this.domNode.domNode.getClientRects()[0].top,ce=q+this._scrollbarState.getSliderPosition(),Z=q+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),ye=this._sliderMousePosition(ie);ce<=ye&&ye<=Z?ie.leftButton&&(ie.preventDefault(),this._sliderMouseDown(ie,function(){})):this._onMouseDown(ie)},ee.prototype._onMouseDown=function(ie){var q,ce;if(ie.target===this.domNode.domNode&&typeof ie.browserEvent.offsetX=="number"&&typeof ie.browserEvent.offsetY=="number")q=ie.browserEvent.offsetX,ce=ie.browserEvent.offsetY;else{var Z=$.C(this.domNode.domNode);q=ie.posx-Z.left,ce=ie.posy-Z.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(q,ce))),ie.leftButton&&(ie.preventDefault(),this._sliderMouseDown(ie,function(){}))},ee.prototype._sliderMouseDown=function(ie,q){var ce=this,Z=this._sliderMousePosition(ie),ye=this._sliderOrthogonalMousePosition(ie),je=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(ie.target,ie.buttons,z.b,function(Ge){var ue=ce._sliderOrthogonalMousePosition(Ge),ve=Math.abs(ue-ye);if(C.h&&ve>u){ce._setDesiredScrollPositionNow(je.getScrollPosition());return}var Ee=ce._sliderMousePosition(Ge),xe=Ee-Z;ce._setDesiredScrollPositionNow(je.getDesiredScrollPositionFromDelta(xe))},function(){ce.slider.toggleClassName("active",!1),ce._host.onDragEnd(),q()}),this._host.onDragStart()},ee.prototype._setDesiredScrollPositionNow=function(ie){var q={};this.writeScrollPosition(q,ie),this._scrollable.setScrollPositionNow(q)},ee}(D.a),l=20,c=function(){function se(ee,ie,q,ce,Z,ye){this._scrollbarSize=Math.round(ie),this._oppositeScrollbarSize=Math.round(q),this._arrowSize=Math.round(ee),this._visibleSize=ce,this._scrollSize=Z,this._scrollPosition=ye,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return se.prototype.clone=function(){return new se(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)},se.prototype.setVisibleSize=function(ee){var ie=Math.round(ee);return this._visibleSize!==ie?(this._visibleSize=ie,this._refreshComputedValues(),!0):!1},se.prototype.setScrollSize=function(ee){var ie=Math.round(ee);return this._scrollSize!==ie?(this._scrollSize=ie,this._refreshComputedValues(),!0):!1},se.prototype.setScrollPosition=function(ee){var ie=Math.round(ee);return this._scrollPosition!==ie?(this._scrollPosition=ie,this._refreshComputedValues(),!0):!1},se._computeValues=function(ee,ie,q,ce,Z){var ye=Math.max(0,q-ee),je=Math.max(0,ye-2*ie),Ge=ce>0&&ce>q;if(!Ge)return{computedAvailableSize:Math.round(ye),computedIsNeeded:Ge,computedSliderSize:Math.round(je),computedSliderRatio:0,computedSliderPosition:0};var ue=Math.round(Math.max(l,Math.floor(q*je/ce))),ve=(je-ue)/(ce-q),Ee=Z*ve;return{computedAvailableSize:Math.round(ye),computedIsNeeded:Ge,computedSliderSize:Math.round(ue),computedSliderRatio:ve,computedSliderPosition:Math.round(Ee)}},se.prototype._refreshComputedValues=function(){var ee=se._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=ee.computedAvailableSize,this._computedIsNeeded=ee.computedIsNeeded,this._computedSliderSize=ee.computedSliderSize,this._computedSliderRatio=ee.computedSliderRatio,this._computedSliderPosition=ee.computedSliderPosition},se.prototype.getArrowSize=function(){return this._arrowSize},se.prototype.getScrollPosition=function(){return this._scrollPosition},se.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},se.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},se.prototype.isNeeded=function(){return this._computedIsNeeded},se.prototype.getSliderSize=function(){return this._computedSliderSize},se.prototype.getSliderPosition=function(){return this._computedSliderPosition},se.prototype.getDesiredScrollPositionFromOffset=function(ee){if(!this._computedIsNeeded)return 0;var ie=ee-this._arrowSize-this._computedSliderSize/2;return Math.round(ie/this._computedSliderRatio)},se.prototype.getDesiredScrollPositionFromDelta=function(ee){if(!this._computedIsNeeded)return 0;var ie=this._computedSliderPosition+ee;return Math.round(ie/this._computedSliderRatio)},se}(),p=function(){var se=function(ee,ie){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ce){q.__proto__=ce}||function(q,ce){for(var Z in ce)ce.hasOwnProperty(Z)&&(q[Z]=ce[Z])},se(ee,ie)};return function(ee,ie){se(ee,ie);function q(){this.constructor=ee}ee.prototype=ie===null?Object.create(ie):(q.prototype=ie.prototype,new q)}}(),_=function(se){p(ee,se);function ee(ie,q,ce){var Z=this,ye=ie.getScrollDimensions(),je=ie.getCurrentScrollPosition();if(Z=se.call(this,{lazyRender:q.lazyRender,host:ce,scrollbarState:new c(q.horizontalHasArrows?q.arrowSize:0,q.horizontal===2?0:q.horizontalScrollbarSize,q.vertical===2?0:q.verticalScrollbarSize,ye.width,ye.scrollWidth,je.scrollLeft),visibility:q.horizontal,extraScrollbarClassName:"horizontal",scrollable:ie})||this,q.horizontalHasArrows){var Ge=(q.arrowSize-h)/2,ue=(q.horizontalScrollbarSize-h)/2;Z._createArrow({className:"left-arrow",top:ue,left:Ge,bottom:void 0,right:void 0,bgWidth:q.arrowSize,bgHeight:q.horizontalScrollbarSize,onActivate:function(){return Z._host.onMouseWheel(new B.c(null,1,0))}}),Z._createArrow({className:"right-arrow",top:ue,left:void 0,bottom:void 0,right:Ge,bgWidth:q.arrowSize,bgHeight:q.horizontalScrollbarSize,onActivate:function(){return Z._host.onMouseWheel(new B.c(null,-1,0))}})}return Z._createSlider(Math.floor((q.horizontalScrollbarSize-q.horizontalSliderSize)/2),0,void 0,q.horizontalSliderSize),Z}return ee.prototype._updateSlider=function(ie,q){this.slider.setWidth(ie),this.slider.setLeft(q)},ee.prototype._renderDomNode=function(ie,q){this.domNode.setWidth(ie),this.domNode.setHeight(q),this.domNode.setLeft(0),this.domNode.setBottom(0)},ee.prototype.onDidScroll=function(ie){return this._shouldRender=this._onElementScrollSize(ie.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(ie.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(ie.width)||this._shouldRender,this._shouldRender},ee.prototype._mouseDownRelativePosition=function(ie,q){return ie},ee.prototype._sliderMousePosition=function(ie){return ie.posx},ee.prototype._sliderOrthogonalMousePosition=function(ie){return ie.posy},ee.prototype.writeScrollPosition=function(ie,q){ie.scrollLeft=q},ee}(s),L=function(){var se=function(ee,ie){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ce){q.__proto__=ce}||function(q,ce){for(var Z in ce)ce.hasOwnProperty(Z)&&(q[Z]=ce[Z])},se(ee,ie)};return function(ee,ie){se(ee,ie);function q(){this.constructor=ee}ee.prototype=ie===null?Object.create(ie):(q.prototype=ie.prototype,new q)}}(),I=function(se){L(ee,se);function ee(ie,q,ce){var Z=this,ye=ie.getScrollDimensions(),je=ie.getCurrentScrollPosition();if(Z=se.call(this,{lazyRender:q.lazyRender,host:ce,scrollbarState:new c(q.verticalHasArrows?q.arrowSize:0,q.vertical===2?0:q.verticalScrollbarSize,0,ye.height,ye.scrollHeight,je.scrollTop),visibility:q.vertical,extraScrollbarClassName:"vertical",scrollable:ie})||this,q.verticalHasArrows){var Ge=(q.arrowSize-h)/2,ue=(q.verticalScrollbarSize-h)/2;Z._createArrow({className:"up-arrow",top:Ge,left:ue,bottom:void 0,right:void 0,bgWidth:q.verticalScrollbarSize,bgHeight:q.arrowSize,onActivate:function(){return Z._host.onMouseWheel(new B.c(null,0,1))}}),Z._createArrow({className:"down-arrow",top:void 0,left:ue,bottom:Ge,right:void 0,bgWidth:q.verticalScrollbarSize,bgHeight:q.arrowSize,onActivate:function(){return Z._host.onMouseWheel(new B.c(null,0,-1))}})}return Z._createSlider(0,Math.floor((q.verticalScrollbarSize-q.verticalSliderSize)/2),q.verticalSliderSize,void 0),Z}return ee.prototype._updateSlider=function(ie,q){this.slider.setHeight(ie),this.slider.setTop(q)},ee.prototype._renderDomNode=function(ie,q){this.domNode.setWidth(q),this.domNode.setHeight(ie),this.domNode.setRight(0),this.domNode.setTop(0)},ee.prototype.onDidScroll=function(ie){return this._shouldRender=this._onElementScrollSize(ie.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(ie.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(ie.height)||this._shouldRender,this._shouldRender},ee.prototype._mouseDownRelativePosition=function(ie,q){return q},ee.prototype._sliderMousePosition=function(ie){return ie.posy},ee.prototype._sliderOrthogonalMousePosition=function(ie){return ie.posx},ee.prototype.writeScrollPosition=function(ie,q){ie.scrollTop=q},ee}(s),P=e("MI8n"),A=e("QuOb"),Q=function(){var se=function(ee,ie){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ce){q.__proto__=ce}||function(q,ce){for(var Z in ce)ce.hasOwnProperty(Z)&&(q[Z]=ce[Z])},se(ee,ie)};return function(ee,ie){se(ee,ie);function q(){this.constructor=ee}ee.prototype=ie===null?Object.create(ie):(q.prototype=ie.prototype,new q)}}(),K=500,H=50,V=!0,de=function(){function se(ee,ie,q){this.timestamp=ee,this.deltaX=ie,this.deltaY=q,this.score=0}return se}(),_e=function(){function se(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return se.prototype.isPhysicalMouseWheel=function(){if(this._front===-1&&this._rear===-1)return!1;var ee=1,ie=0,q=1,ce=this._rear;do{var Z=ce===this._front?ee:Math.pow(2,-q);if(ee-=Z,ie+=this._memory[ce].score*Z,ce===this._front)break;ce=(this._capacity+ce-1)%this._capacity,q++}while(!0);return ie<=.5},se.prototype.accept=function(ee,ie,q){var ce=new de(ee,ie,q);ce.score=this._computeScore(ce),this._front===-1&&this._rear===-1?(this._memory[0]=ce,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]=ce)},se.prototype._computeScore=function(ee){if(Math.abs(ee.deltaX)>0&&Math.abs(ee.deltaY)>0)return 1;var ie=.5,q=this._front===-1&&this._rear===-1?null:this._memory[this._rear];return(Math.abs(ee.deltaX-Math.round(ee.deltaX))>0||Math.abs(ee.deltaY-Math.round(ee.deltaY))>0)&&(ie+=.25),Math.min(Math.max(ie,0),1)},se.INSTANCE=new se,se}(),Se=function(se){Q(ee,se);function ee(ie,q,ce){var Z=se.call(this)||this;Z._onScroll=Z._register(new P.a),Z.onScroll=Z._onScroll.event,ie.style.overflow="hidden",Z._options=ke(q),Z._scrollable=ce,Z._register(Z._scrollable.onScroll(function(je){Z._onDidScroll(je),Z._onScroll.fire(je)}));var ye={onMouseWheel:function(je){return Z._onMouseWheel(je)},onDragStart:function(){return Z._onDragStart()},onDragEnd:function(){return Z._onDragEnd()}};return Z._verticalScrollbar=Z._register(new I(Z._scrollable,Z._options,ye)),Z._horizontalScrollbar=Z._register(new _(Z._scrollable,Z._options,ye)),Z._domNode=document.createElement("div"),Z._domNode.className="monaco-scrollable-element "+Z._options.className,Z._domNode.setAttribute("role","presentation"),Z._domNode.style.position="relative",Z._domNode.style.overflow="hidden",Z._domNode.appendChild(ie),Z._domNode.appendChild(Z._horizontalScrollbar.domNode.domNode),Z._domNode.appendChild(Z._verticalScrollbar.domNode.domNode),Z._options.useShadows?(Z._leftShadowDomNode=Object(R.b)(document.createElement("div")),Z._leftShadowDomNode.setClassName("shadow"),Z._domNode.appendChild(Z._leftShadowDomNode.domNode),Z._topShadowDomNode=Object(R.b)(document.createElement("div")),Z._topShadowDomNode.setClassName("shadow"),Z._domNode.appendChild(Z._topShadowDomNode.domNode),Z._topLeftShadowDomNode=Object(R.b)(document.createElement("div")),Z._topLeftShadowDomNode.setClassName("shadow top-left-corner"),Z._domNode.appendChild(Z._topLeftShadowDomNode.domNode)):(Z._leftShadowDomNode=null,Z._topShadowDomNode=null,Z._topLeftShadowDomNode=null),Z._listenOnDomNode=Z._options.listenOnDomNode||Z._domNode,Z._mouseWheelToDispose=[],Z._setListeningToMouseWheel(Z._options.handleMouseWheel),Z.onmouseover(Z._listenOnDomNode,function(je){return Z._onMouseOver(je)}),Z.onnonbubblingmouseout(Z._listenOnDomNode,function(je){return Z._onMouseOut(je)}),Z._hideTimeout=Z._register(new W.e),Z._isDragging=!1,Z._mouseIsOver=!1,Z._shouldRender=!0,Z._revealOnScroll=!0,Z}return ee.prototype.dispose=function(){this._mouseWheelToDispose=Object(w.f)(this._mouseWheelToDispose),se.prototype.dispose.call(this)},ee.prototype.getDomNode=function(){return this._domNode},ee.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},ee.prototype.delegateVerticalScrollbarMouseDown=function(ie){this._verticalScrollbar.delegateMouseDown(ie)},ee.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},ee.prototype.setScrollDimensions=function(ie){this._scrollable.setScrollDimensions(ie)},ee.prototype.updateClassName=function(ie){this._options.className=ie,C.e&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},ee.prototype.updateOptions=function(ie){var q=ke(ie);this._options.handleMouseWheel=q.handleMouseWheel,this._options.mouseWheelScrollSensitivity=q.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=q.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},ee.prototype._setListeningToMouseWheel=function(ie){var q=this,ce=this._mouseWheelToDispose.length>0;if(ce===ie)return;if(this._mouseWheelToDispose=Object(w.f)(this._mouseWheelToDispose),ie){var Z=function(ye){q._onMouseWheel(new B.c(ye))};this._mouseWheelToDispose.push($.j(this._listenOnDomNode,le.f?"mousewheel":"wheel",Z,{passive:!1}))}},ee.prototype._onMouseWheel=function(ie){var q,ce=_e.INSTANCE;if(V&&ce.accept(Date.now(),ie.deltaX,ie.deltaY),ie.deltaY||ie.deltaX){var Z=ie.deltaY*this._options.mouseWheelScrollSensitivity,ye=ie.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(q=[ye,Z],Z=q[0],ye=q[1]);var je=!C.e&&ie.browserEvent&&ie.browserEvent.shiftKey;(this._options.scrollYToX||je)&&!ye&&(ye=Z,Z=0),ie.browserEvent&&ie.browserEvent.altKey&&(ye=ye*this._options.fastScrollSensitivity,Z=Z*this._options.fastScrollSensitivity);var Ge=this._scrollable.getFutureScrollPosition(),ue={};if(Z){var ve=Ge.scrollTop-H*Z;this._verticalScrollbar.writeScrollPosition(ue,ve)}if(ye){var Ee=Ge.scrollLeft-H*ye;this._horizontalScrollbar.writeScrollPosition(ue,Ee)}if(ue=this._scrollable.validateScrollPosition(ue),Ge.scrollLeft!==ue.scrollLeft||Ge.scrollTop!==ue.scrollTop){var xe=V&&this._options.mouseWheelSmoothScroll&&ce.isPhysicalMouseWheel();xe?this._scrollable.setScrollPositionSmooth(ue):this._scrollable.setScrollPositionNow(ue),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(ie.preventDefault(),ie.stopPropagation())},ee.prototype._onDidScroll=function(ie){this._shouldRender=this._horizontalScrollbar.onDidScroll(ie)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(ie)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},ee.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},ee.prototype._render=function(){if(!this._shouldRender)return;if(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows){var ie=this._scrollable.getCurrentScrollPosition(),q=ie.scrollTop>0,ce=ie.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(ce?" left":"")),this._topShadowDomNode.setClassName("shadow"+(q?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(q?" top":"")+(ce?" left":""))}},ee.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},ee.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},ee.prototype._onMouseOut=function(ie){this._mouseIsOver=!1,this._hide()},ee.prototype._onMouseOver=function(ie){this._mouseIsOver=!0,this._reveal()},ee.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},ee.prototype._hide=function(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},ee.prototype._scheduleHide=function(){var ie=this;!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(function(){return ie._hide()},K)},ee}(D.a),Ie=function(se){Q(ee,se);function ee(ie,q){var ce=this;q=q||{},q.mouseWheelSmoothScroll=!1;var Z=new A.a(0,function(ye){return $.W(ye)});return ce=se.call(this,ie,q,Z)||this,ce._register(Z),ce}return ee.prototype.setScrollPosition=function(ie){this._scrollable.setScrollPositionNow(ie)},ee.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},ee}(Se),Pe=function(se){Q(ee,se);function ee(ie,q,ce){return se.call(this,ie,q,ce)||this}return ee}(Se),Ve=function(se){Q(ee,se);function ee(ie,q){var ce=se.call(this,ie,q)||this;return ce._element=ie,ce.onScroll(function(Z){Z.scrollTopChanged&&(ce._element.scrollTop=Z.scrollTop),Z.scrollLeftChanged&&(ce._element.scrollLeft=Z.scrollLeft)}),ce.scanDomNode(),ce}return ee.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})},ee}(Ie);function ke(se){var ee={lazyRender:typeof se.lazyRender!="undefined"?se.lazyRender:!1,className:typeof se.className!="undefined"?se.className:"",useShadows:typeof se.useShadows!="undefined"?se.useShadows:!0,handleMouseWheel:typeof se.handleMouseWheel!="undefined"?se.handleMouseWheel:!0,flipAxes:typeof se.flipAxes!="undefined"?se.flipAxes:!1,alwaysConsumeMouseWheel:typeof se.alwaysConsumeMouseWheel!="undefined"?se.alwaysConsumeMouseWheel:!1,scrollYToX:typeof se.scrollYToX!="undefined"?se.scrollYToX:!1,mouseWheelScrollSensitivity:typeof se.mouseWheelScrollSensitivity!="undefined"?se.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof se.fastScrollSensitivity!="undefined"?se.fastScrollSensitivity:5,mouseWheelSmoothScroll:typeof se.mouseWheelSmoothScroll!="undefined"?se.mouseWheelSmoothScroll:!0,arrowSize:typeof se.arrowSize!="undefined"?se.arrowSize:11,listenOnDomNode:typeof se.listenOnDomNode!="undefined"?se.listenOnDomNode:null,horizontal:typeof se.horizontal!="undefined"?se.horizontal:1,horizontalScrollbarSize:typeof se.horizontalScrollbarSize!="undefined"?se.horizontalScrollbarSize:10,horizontalSliderSize:typeof se.horizontalSliderSize!="undefined"?se.horizontalSliderSize:0,horizontalHasArrows:typeof se.horizontalHasArrows!="undefined"?se.horizontalHasArrows:!1,vertical:typeof se.vertical!="undefined"?se.vertical:1,verticalScrollbarSize:typeof se.verticalScrollbarSize!="undefined"?se.verticalScrollbarSize:10,verticalHasArrows:typeof se.verticalHasArrows!="undefined"?se.verticalHasArrows:!1,verticalSliderSize:typeof se.verticalSliderSize!="undefined"?se.verticalSliderSize:0};return ee.horizontalSliderSize=typeof se.horizontalSliderSize!="undefined"?se.horizontalSliderSize:ee.horizontalScrollbarSize,ee.verticalSliderSize=typeof se.verticalSliderSize!="undefined"?se.verticalSliderSize:ee.verticalScrollbarSize,C.e&&(ee.className+=" mac"),ee}},"GR/f":function(Lt,N,e){"use strict";e.d(N,"a",function(){return f}),e.d(N,"b",function(){return v});var T=e("/cxE"),le=e("N0LK"),$=e("LCkn"),R=e("zN7H"),B=e("aokT"),z=e("gCVg"),D=function(){function C(g,u,s){this._range=g,this._charBeforeSelection=u,this._charAfterSelection=s}return C.prototype.getEditOperations=function(g,u){u.addTrackedEditOperation(new B.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),u.addTrackedEditOperation(new B.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},C.prototype.computeCursorState=function(g,u){var s=u.getInverseEditOperations(),l=s[0].range,c=s[1].range;return new z.a(l.endLineNumber,l.endColumn,c.endLineNumber,c.endColumn-this._charAfterSelection.length)},C}(),W=e("Ll0s"),x=e("5v8Y"),h=e("KDc4"),y=e("cMvZ"),w=function(){var C=function(g,u){return C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var c in l)l.hasOwnProperty(c)&&(s[c]=l[c])},C(g,u)};return function(g,u){C(g,u);function s(){this.constructor=g}g.prototype=u===null?Object.create(u):(s.prototype=u.prototype,new s)}}(),f=function(){function C(){}return C.indent=function(g,u,s){if(u===null||s===null)return[];for(var l=[],c=0,p=s.length;c<p;c++)l[c]=new R.a(s[c],{isUnshift:!1,tabSize:g.tabSize,indentSize:g.indentSize,insertSpaces:g.insertSpaces,useTabStops:g.useTabStops,autoIndent:g.autoIndent});return l},C.outdent=function(g,u,s){for(var l=[],c=0,p=s.length;c<p;c++)l[c]=new R.a(s[c],{isUnshift:!0,tabSize:g.tabSize,indentSize:g.indentSize,insertSpaces:g.insertSpaces,useTabStops:g.useTabStops,autoIndent:g.autoIndent});return l},C.shiftIndent=function(g,u,s){return s=s||1,R.a.shiftIndent(u,u.length+s,g.tabSize,g.indentSize,g.insertSpaces)},C.unshiftIndent=function(g,u,s){return s=s||1,R.a.unshiftIndent(u,u.length+s,g.tabSize,g.indentSize,g.insertSpaces)},C._distributedPaste=function(g,u,s,l){for(var c=[],p=0,_=s.length;p<_;p++)c[p]=new $.a(s[p],l[p]);return new W.e(0,c,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},C._simplePaste=function(g,u,s,l,c){for(var p=[],_=0,L=s.length;_<L;_++){var I=s[_],P=I.getPosition();if(c&&!I.isEmpty()&&(c=!1),c&&l.indexOf(`
`)!==l.length-1&&(c=!1),c){var A=new B.a(P.lineNumber,1,P.lineNumber,1);p[_]=new $.b(A,l,I,!0)}else p[_]=new $.a(I,l)}return new W.e(0,p,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},C._distributePasteToCursors=function(g,u,s,l,c){if(l)return null;if(u.length===1)return null;if(c&&c.length===u.length)return c;if(g.multiCursorPaste==="spread"){s.charCodeAt(s.length-1)===10&&(s=s.substr(0,s.length-1)),s.charCodeAt(s.length-1)===13&&(s=s.substr(0,s.length-1));var p=s.split(/\r\n|\r|\n/);if(p.length===u.length)return p}return null},C.paste=function(g,u,s,l,c,p){var _=this._distributePasteToCursors(g,s,l,c,p);return _?(s=s.sort(B.a.compareRangesUsingStarts),this._distributedPaste(g,u,s,_)):this._simplePaste(g,u,s,l,c)},C._goodIndentForLine=function(g,u,s){var l=null,c="",p=y.a.getInheritIndentForLine(g.autoIndent,u,s,!1);if(p)l=p.action,c=p.indentation;else if(s>1){var _=void 0;for(_=s-1;_>=1;_--){var L=u.getLineContent(_),I=le.D(L);if(I>=0)break}if(_<1)return null;var P=u.getLineMaxColumn(_),A=y.a.getEnterAction(g.autoIndent,u,new B.a(_,P,_,P));A&&(c=A.indentation+A.appendText)}return l&&(l===h.a.Indent&&(c=C.shiftIndent(g,c)),l===h.a.Outdent&&(c=C.unshiftIndent(g,c)),c=g.normalizeIndentation(c)),c||null},C._replaceJumpToNextIndent=function(g,u,s,l){var c="",p=s.getStartPosition();if(g.insertSpaces)for(var _=W.a.visibleColumnFromColumn2(g,u,p),L=g.indentSize,I=L-_%L,P=0;P<I;P++)c+=" ";else c=" ";return new $.a(s,c,l)},C.tab=function(g,u,s){for(var l=[],c=0,p=s.length;c<p;c++){var _=s[c];if(_.isEmpty()){var L=u.getLineContent(_.startLineNumber);if(/^\s*$/.test(L)&&u.isCheapToTokenize(_.startLineNumber)){var I=this._goodIndentForLine(g,u,_.startLineNumber);I=I||" ";var P=g.normalizeIndentation(I);if(!le.N(L,P)){l[c]=new $.a(new B.a(_.startLineNumber,1,_.startLineNumber,L.length+1),P,!0);continue}}l[c]=this._replaceJumpToNextIndent(g,u,_,!0)}else{if(_.startLineNumber===_.endLineNumber){var A=u.getLineMaxColumn(_.startLineNumber);if(_.startColumn!==1||_.endColumn!==A){l[c]=this._replaceJumpToNextIndent(g,u,_,!1);continue}}l[c]=new R.a(_,{isUnshift:!1,tabSize:g.tabSize,indentSize:g.indentSize,insertSpaces:g.insertSpaces,useTabStops:g.useTabStops,autoIndent:g.autoIndent})}}return l},C.replacePreviousChar=function(g,u,s,l,c,p){for(var _=[],L=0,I=l.length;L<I;L++){var P=l[L];if(!P.isEmpty()){_[L]=null;continue}var A=P.getPosition(),Q=Math.max(1,A.column-p),K=new B.a(A.lineNumber,Q,A.lineNumber,A.column);_[L]=new $.a(K,c)}return new W.e(1,_,{shouldPushStackElementBefore:g!==1,shouldPushStackElementAfter:!1})},C._typeCommand=function(g,u,s){return s?new $.e(g,u,!0):new $.a(g,u,!0)},C._enter=function(g,u,s,l){if(g.autoIndent===0)return C._typeCommand(l,`
`,s);if(!u.isCheapToTokenize(l.getStartPosition().lineNumber)||g.autoIndent===1){var c=u.getLineContent(l.startLineNumber),p=le.t(c).substring(0,l.startColumn-1);return C._typeCommand(l,`
`+g.normalizeIndentation(p),s)}var _=y.a.getEnterAction(g.autoIndent,u,l);if(_){if(_.indentAction===h.a.None)return C._typeCommand(l,`
`+g.normalizeIndentation(_.indentation+_.appendText),s);if(_.indentAction===h.a.Indent)return C._typeCommand(l,`
`+g.normalizeIndentation(_.indentation+_.appendText),s);if(_.indentAction===h.a.IndentOutdent){var L=g.normalizeIndentation(_.indentation),I=g.normalizeIndentation(_.indentation+_.appendText),P=`
`+I+`
`+L;return s?new $.e(l,P,!0):new $.d(l,P,-1,I.length-L.length,!0)}else if(_.indentAction===h.a.Outdent){var A=C.unshiftIndent(g,_.indentation);return C._typeCommand(l,`
`+g.normalizeIndentation(A+_.appendText),s)}}var Q=u.getLineContent(l.startLineNumber),K=le.t(Q).substring(0,l.startColumn-1);if(g.autoIndent>=4){var H=y.a.getIndentForEnter(g.autoIndent,u,l,{unshiftIndent:function(Ve){return C.unshiftIndent(g,Ve)},shiftIndent:function(Ve){return C.shiftIndent(g,Ve)},normalizeIndentation:function(Ve){return g.normalizeIndentation(Ve)}});if(H){var V=W.a.visibleColumnFromColumn2(g,u,l.getEndPosition()),de=l.endColumn,_e=`
`;K!==g.normalizeIndentation(H.beforeEnter)&&(_e=g.normalizeIndentation(H.beforeEnter)+Q.substring(K.length,l.startColumn-1)+`
`,l=new B.a(l.startLineNumber,1,l.endLineNumber,l.endColumn));var Se=u.getLineContent(l.endLineNumber),Ie=le.q(Se);if(Ie>=0?l=l.setEndPosition(l.endLineNumber,Math.max(l.endColumn,Ie+1)):l=l.setEndPosition(l.endLineNumber,u.getLineMaxColumn(l.endLineNumber)),s)return new $.e(l,_e+g.normalizeIndentation(H.afterEnter),!0);var Pe=0;return de<=Ie+1&&(g.insertSpaces||(V=Math.ceil(V/g.indentSize)),Pe=Math.min(V+1-g.normalizeIndentation(H.afterEnter).length-1,0)),new $.d(l,_e+g.normalizeIndentation(H.afterEnter),0,Pe,!0)}}return C._typeCommand(l,`
`+g.normalizeIndentation(K),s)},C._isAutoIndentType=function(g,u,s){if(g.autoIndent<4)return!1;for(var l=0,c=s.length;l<c;l++)if(!u.isCheapToTokenize(s[l].getEndPosition().lineNumber))return!1;return!0},C._runAutoIndentType=function(g,u,s,l){var c=y.a.getIndentationAtPosition(u,s.startLineNumber,s.startColumn),p=y.a.getIndentActionForType(g.autoIndent,u,s,l,{shiftIndent:function(L){return C.shiftIndent(g,L)},unshiftIndent:function(L){return C.unshiftIndent(g,L)}});if(p===null)return null;if(p!==g.normalizeIndentation(c)){var _=u.getLineFirstNonWhitespaceColumn(s.startLineNumber);return _===0?C._typeCommand(new B.a(s.startLineNumber,0,s.endLineNumber,s.endColumn),g.normalizeIndentation(p)+l,!1):C._typeCommand(new B.a(s.startLineNumber,0,s.endLineNumber,s.endColumn),g.normalizeIndentation(p)+u.getLineContent(s.startLineNumber).substring(_-1,s.startColumn-1)+l,!1)}return null},C._isAutoClosingOvertype=function(g,u,s,l,c){if(g.autoClosingOvertype==="never")return!1;if(!g.autoClosingPairsClose2.has(c))return!1;for(var p=0,_=s.length;p<_;p++){var L=s[p];if(!L.isEmpty())return!1;var I=L.getPosition(),P=u.getLineContent(I.lineNumber),A=P.charAt(I.column-1);if(A!==c)return!1;var Q=Object(W.g)(c),K=I.column>2?P.charCodeAt(I.column-2):0;if(K===92&&Q)return!1;if(g.autoClosingOvertype==="auto"){for(var H=!1,V=0,de=l.length;V<de;V++){var _e=l[V];if(I.lineNumber===_e.startLineNumber&&I.column===_e.startColumn){H=!0;break}}if(!H)return!1}}return!0},C._runAutoClosingOvertype=function(g,u,s,l,c){for(var p=[],_=0,L=l.length;_<L;_++){var I=l[_],P=I.getPosition(),A=new B.a(P.lineNumber,P.column,P.lineNumber,P.column+1);p[_]=new $.a(A,c)}return new W.e(1,p,{shouldPushStackElementBefore:g!==1,shouldPushStackElementAfter:!1})},C._autoClosingPairIsSymmetric=function(g){var u=g.open,s=g.close;return u.indexOf(s)>=0||s.indexOf(u)>=0},C._isBeforeClosingBrace=function(g,u,s){var l=g.autoClosingPairsClose2.get(s);if(!l)return!1;for(var c=C._autoClosingPairIsSymmetric(u),p=0,_=l;p<_.length;p++){var L=_[p],I=C._autoClosingPairIsSymmetric(L);if(!c&&I)continue;return!0}return!1},C._findAutoClosingPairOpen=function(g,u,s,l){var c=g.autoClosingPairsOpen2.get(l);if(!c)return null;for(var p=null,_=0,L=c;_<L.length;_++){var I=L[_];if(p===null||I.open.length>p.open.length){for(var P=!0,A=0,Q=s;A<Q.length;A++){var K=Q[A],H=u.getValueInRange(new B.a(K.lineNumber,K.column-I.open.length+1,K.lineNumber,K.column));if(H+l!==I.open){P=!1;break}}P&&(p=I)}}return p},C._isAutoClosingOpenCharType=function(g,u,s,l,c){var p=Object(W.g)(l),_=p?g.autoClosingQuotes:g.autoClosingBrackets;if(_==="never")return null;var L=this._findAutoClosingPairOpen(g,u,s.map(function(Pe){return Pe.getPosition()}),l);if(!L)return null;for(var I=p?g.shouldAutoCloseBefore.quote:g.shouldAutoCloseBefore.bracket,P=0,A=s.length;P<A;P++){var Q=s[P];if(!Q.isEmpty())return null;var K=Q.getPosition(),H=u.getLineContent(K.lineNumber);if(H.length>K.column-1){var V=H.charAt(K.column-1),de=C._isBeforeClosingBrace(g,L,V);if(!de&&!I(V))return null}if(!u.isCheapToTokenize(K.lineNumber))return null;if(L.open.length===1&&p&&_!=="always"){var _e=Object(x.a)(g.wordSeparators);if(c&&K.column>1&&_e.get(H.charCodeAt(K.column-2))===0)return null;if(!c&&K.column>2&&_e.get(H.charCodeAt(K.column-3))===0)return null}u.forceTokenization(K.lineNumber);var Se=u.getLineTokens(K.lineNumber),Ie=!1;try{Ie=y.a.shouldAutoClosePair(L,Se,c?K.column:K.column-1)}catch(Pe){Object(T.e)(Pe)}if(!Ie)return null}return L},C._runAutoClosingOpenCharType=function(g,u,s,l,c,p,_){for(var L=[],I=0,P=l.length;I<P;I++){var A=l[I];L[I]=new v(A,c,p,_.close)}return new W.e(1,L,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})},C._shouldSurroundChar=function(g,u){return Object(W.g)(u)?g.autoSurround==="quotes"||g.autoSurround==="languageDefined":g.autoSurround==="brackets"||g.autoSurround==="languageDefined"},C._isSurroundSelectionType=function(g,u,s,l){if(!C._shouldSurroundChar(g,l)||!g.surroundingPairs.hasOwnProperty(l))return!1;for(var c=Object(W.g)(l),p=0,_=s.length;p<_;p++){var L=s[p];if(L.isEmpty())return!1;for(var I=!0,P=L.startLineNumber;P<=L.endLineNumber;P++){var A=u.getLineContent(P),Q=P===L.startLineNumber?L.startColumn-1:0,K=P===L.endLineNumber?L.endColumn-1:A.length,H=A.substring(Q,K);if(/[^ \t]/.test(H)){I=!1;break}}if(I)return!1;if(c&&L.startLineNumber===L.endLineNumber&&L.startColumn+1===L.endColumn){var V=u.getValueInRange(L);if(Object(W.g)(V))return!1}}return!0},C._runSurroundSelectionType=function(g,u,s,l,c){for(var p=[],_=0,L=l.length;_<L;_++){var I=l[_],P=u.surroundingPairs[c];p[_]=new D(I,c,P)}return new W.e(0,p,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},C._isTypeInterceptorElectricChar=function(g,u,s){return!!(s.length===1&&u.isCheapToTokenize(s[0].getEndPosition().lineNumber))},C._typeInterceptorElectricChar=function(g,u,s,l,c){if(!u.electricChars.hasOwnProperty(c)||!l.isEmpty())return null;var p=l.getPosition();s.forceTokenization(p.lineNumber);var _=s.getLineTokens(p.lineNumber),L;try{L=y.a.onElectricCharacter(c,_,p.column)}catch(Pe){return Object(T.e)(Pe),null}if(!L)return null;if(L.matchOpenBracket){var I=(_.getLineContent()+c).lastIndexOf(L.matchOpenBracket)+1,P=s.findMatchingBracketUp(L.matchOpenBracket,{lineNumber:p.lineNumber,column:I});if(P){if(P.startLineNumber===p.lineNumber)return null;var A=s.getLineContent(P.startLineNumber),Q=le.t(A),K=u.normalizeIndentation(Q),H=s.getLineContent(p.lineNumber),V=s.getLineFirstNonWhitespaceColumn(p.lineNumber)||p.column,de=H.substring(V-1,p.column-1),_e=K+de+c,Se=new B.a(p.lineNumber,1,p.lineNumber,p.column),Ie=new $.a(Se,_e);return new W.e(1,[Ie],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null},C.compositionEndWithInterceptors=function(g,u,s,l,c,p){if(!l||z.a.selectionsArrEqual(l,c))return null;for(var _=null,L=0,I=c;L<I.length;L++){var P=I[L];if(!P.isEmpty())return null;var A=P.getPosition(),Q=s.getValueInRange(new B.a(A.lineNumber,A.column-1,A.lineNumber,A.column));if(_===null)_=Q;else if(_!==Q)return null}if(!_)return null;if(this._isAutoClosingOvertype(u,s,c,p,_)){var K=c.map(function(V){return new $.a(new B.a(V.positionLineNumber,V.positionColumn,V.positionLineNumber,V.positionColumn+1),"",!1)});return new W.e(1,K,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}var H=this._isAutoClosingOpenCharType(u,s,c,_,!1);return H?this._runAutoClosingOpenCharType(g,u,s,c,_,!1,H):null},C.typeWithInterceptors=function(g,u,s,l,c,p){if(p===`
`){for(var _=[],L=0,I=l.length;L<I;L++)_[L]=C._enter(u,s,!1,l[L]);return new W.e(1,_,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(u,s,l)){for(var P=[],A=!1,L=0,I=l.length;L<I;L++)if(P[L]=this._runAutoIndentType(u,s,l[L],p),!P[L]){A=!0;break}if(!A)return new W.e(1,P,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(u,s,l,c,p))return this._runAutoClosingOvertype(g,u,s,l,p);var Q=this._isAutoClosingOpenCharType(u,s,l,p,!0);if(Q)return this._runAutoClosingOpenCharType(g,u,s,l,p,!0,Q);if(this._isSurroundSelectionType(u,s,l,p))return this._runSurroundSelectionType(g,u,s,l,p);if(this._isTypeInterceptorElectricChar(u,s,l)){var K=this._typeInterceptorElectricChar(g,u,s,l[0],p);if(K)return K}for(var H=[],L=0,I=l.length;L<I;L++)H[L]=new $.a(l[L],p);var V=g!==1;return p===" "&&(V=!0),new W.e(1,H,{shouldPushStackElementBefore:V,shouldPushStackElementAfter:!1})},C.typeWithoutInterceptors=function(g,u,s,l,c){for(var p=[],_=0,L=l.length;_<L;_++)p[_]=new $.a(l[_],c);return new W.e(1,p,{shouldPushStackElementBefore:g!==1,shouldPushStackElementAfter:!1})},C.lineInsertBefore=function(g,u,s){if(u===null||s===null)return[];for(var l=[],c=0,p=s.length;c<p;c++){var _=s[c].positionLineNumber;if(_===1)l[c]=new $.e(new B.a(1,1,1,1),`
`);else{_--;var L=u.getLineMaxColumn(_);l[c]=this._enter(g,u,!1,new B.a(_,L,_,L))}}return l},C.lineInsertAfter=function(g,u,s){if(u===null||s===null)return[];for(var l=[],c=0,p=s.length;c<p;c++){var _=s[c].positionLineNumber,L=u.getLineMaxColumn(_);l[c]=this._enter(g,u,!1,new B.a(_,L,_,L))}return l},C.lineBreakInsert=function(g,u,s){for(var l=[],c=0,p=s.length;c<p;c++)l[c]=this._enter(g,u,!0,s[c]);return l},C}(),v=function(C){w(g,C);function g(u,s,l,c){var p=C.call(this,u,(l?s:"")+c,0,-c.length)||this;return p._openCharacter=s,p._closeCharacter=c,p.closeCharacterRange=null,p.enclosingRange=null,p}return g.prototype.computeCursorState=function(u,s){var l=s.getInverseEditOperations(),c=l[0].range;return this.closeCharacterRange=new B.a(c.startLineNumber,c.endColumn-this._closeCharacter.length,c.endLineNumber,c.endColumn),this.enclosingRange=new B.a(c.startLineNumber,c.endColumn-this._openCharacter.length-this._closeCharacter.length,c.endLineNumber,c.endColumn),C.prototype.computeCursorState.call(this,u,s)},g}($.d)},GZrW:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return e.e(338).then(e.bind(null,"Csoz"))}})},Gb1F:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return e.e(334).then(e.bind(null,"ynbn"))}})},GvMn:function(Lt,N,e){"use strict";e.r(N);var T=e("3/fG"),le=e("aokT"),$=e("gCVg"),R=e("wQH0"),B=e("sswD"),z=e("pAvP"),D=function(){function c(p,_,L){this._editRange=p,this._originalSelection=_,this._text=L}return c.prototype.getEditOperations=function(p,_){_.addTrackedEditOperation(this._editRange,this._text)},c.prototype.computeCursorState=function(p,_){var L=_.getInverseEditOperations(),I=L[0].range;return this._originalSelection.isEmpty()?new $.a(I.endLineNumber,Math.min(this._originalSelection.positionColumn,I.endColumn),I.endLineNumber,Math.min(this._originalSelection.positionColumn,I.endColumn)):new $.a(I.endLineNumber,I.endColumn-this._text.length,I.endLineNumber,I.endColumn)},c}(),W=e("vATl"),x=e("t9D7"),h=e("kYye"),y=e("tX9W"),w=e("X+cX"),f=e("/cxE"),v=function(){var c=function(p,_){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,I){L.__proto__=I}||function(L,I){for(var P in I)I.hasOwnProperty(P)&&(L[P]=I[P])},c(p,_)};return function(p,_){c(p,_);function L(){this.constructor=p}p.prototype=_===null?Object.create(_):(L.prototype=_.prototype,new L)}}(),C=function(c,p,_,L){var I=arguments.length,P=I<3?p:L===null?L=Object.getOwnPropertyDescriptor(p,_):L,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(c,p,_,L);else for(var Q=c.length-1;Q>=0;Q--)(A=c[Q])&&(P=(I<3?A(P):I>3?A(p,_,P):A(p,_))||P);return I>3&&P&&Object.defineProperty(p,_,P),P},g=function(c,p){return function(_,L){p(_,L,c)}},u=function(){function c(p,_){this.decorationIds=[],this.editor=p,this.editorWorkerService=_}return c.get=function(p){return p.getContribution(c.ID)},c.prototype.dispose=function(){},c.prototype.run=function(p,_){var L=this;this.currentRequest&&this.currentRequest.cancel();var I=this.editor.getSelection(),P=this.editor.getModel();if(!P||!I)return;var A=I;if(A.startLineNumber!==A.endLineNumber)return;var Q=new W.a(this.editor,1|4),K=P.uri;return this.editorWorkerService.canNavigateValueSet(K)?(this.currentRequest=Object(w.f)(function(H){return L.editorWorkerService.navigateValueSet(K,A,_)}),this.currentRequest.then(function(H){if(!H||!H.range||!H.value)return;if(!Q.validate(L.editor))return;var V=le.a.lift(H.range),de=H.range,_e=H.value.length-(A.endColumn-A.startColumn);de={startLineNumber:de.startLineNumber,startColumn:de.startColumn,endLineNumber:de.endLineNumber,endColumn:de.startColumn+H.value.length},_e>1&&(A=new $.a(A.startLineNumber,A.startColumn,A.endLineNumber,A.endColumn+_e-1));var Se=new D(V,A,H.value);L.editor.pushUndoStop(),L.editor.executeCommand(p,Se),L.editor.pushUndoStop(),L.decorationIds=L.editor.deltaDecorations(L.decorationIds,[{range:de,options:c.DECORATION}]),L.decorationRemover&&L.decorationRemover.cancel(),L.decorationRemover=Object(w.l)(350),L.decorationRemover.then(function(){return L.decorationIds=L.editor.deltaDecorations(L.decorationIds,[])}).catch(f.e)}).catch(f.e)):Promise.resolve(void 0)},c.ID="editor.contrib.inPlaceReplaceController",c.DECORATION=y.a.register({className:"valueSetReplacement"}),c=C([g(1,z.a)],c),c}(),s=function(c){v(p,c);function p(){return c.call(this,{id:"editor.action.inPlaceReplace.up",label:T.a("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:R.a.writable,kbOpts:{kbExpr:R.a.editorTextFocus,primary:2048|1024|82,weight:100}})||this}return p.prototype.run=function(_,L){var I=u.get(L);return I?I.run(this.id,!0):Promise.resolve(void 0)},p}(B.b),l=function(c){v(p,c);function p(){return c.call(this,{id:"editor.action.inPlaceReplace.down",label:T.a("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:R.a.writable,kbOpts:{kbExpr:R.a.editorTextFocus,primary:2048|1024|84,weight:100}})||this}return p.prototype.run=function(_,L){var I=u.get(L);return I?I.run(this.id,!1):Promise.resolve(void 0)},p}(B.b);Object(B.h)(u.ID,u),Object(B.f)(s),Object(B.f)(l),Object(x.e)(function(c,p){var _=c.getColor(h.d);_&&p.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+_+"; }")})},Gw4z:function(Lt,N,e){"use strict";e.d(N,"b",function(){return R}),e.d(N,"a",function(){return W});var T=function(){function x(h,y,w,f){this.originalStart=h,this.originalLength=y,this.modifiedStart=w,this.modifiedLength=f}return x.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},x.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},x}(),le=e("7afs"),$=function(){function x(h){this.source=h}return x.prototype.getElements=function(){for(var h=this.source,y=new Int32Array(h.length),w=0,f=h.length;w<f;w++)y[w]=h.charCodeAt(w);return y},x}();function R(x,h,y){return new W(new $(x),new $(h)).ComputeDiff(y).changes}var B=function(){function x(){}return x.Assert=function(h,y){if(!h)throw new Error(y)},x}(),z=function(){function x(){}return x.Copy=function(h,y,w,f,v){for(var C=0;C<v;C++)w[f+C]=h[y+C]},x.Copy2=function(h,y,w,f,v){for(var C=0;C<v;C++)w[f+C]=h[y+C]},x}(),D=function(){function x(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}return x.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new T(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},x.prototype.AddOriginalElement=function(h,y){this.m_originalStart=Math.min(this.m_originalStart,h),this.m_modifiedStart=Math.min(this.m_modifiedStart,y),this.m_originalCount++},x.prototype.AddModifiedElement=function(h,y){this.m_originalStart=Math.min(this.m_originalStart,h),this.m_modifiedStart=Math.min(this.m_modifiedStart,y),this.m_modifiedCount++},x.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},x.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},x}(),W=function(){function x(h,y,w){w===void 0&&(w=null),this.ContinueProcessingPredicate=w;var f=x._getElements(h),v=f[0],C=f[1],g=f[2],u=x._getElements(y),s=u[0],l=u[1],c=u[2];this._hasStrings=g&&c,this._originalStringElements=v,this._originalElementsOrHash=C,this._modifiedStringElements=s,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}return x._isStringArray=function(h){return h.length>0&&typeof h[0]=="string"},x._getElements=function(h){var y=h.getElements();if(x._isStringArray(y)){for(var w=new Int32Array(y.length),f=0,v=y.length;f<v;f++)w[f]=Object(le.b)(y[f],0);return[y,w,!0]}return y instanceof Int32Array?[[],y,!1]:[[],new Int32Array(y),!1]},x.prototype.ElementsAreEqual=function(h,y){return this._originalElementsOrHash[h]!==this._modifiedElementsOrHash[y]?!1:this._hasStrings?this._originalStringElements[h]===this._modifiedStringElements[y]:!0},x.prototype.OriginalElementsAreEqual=function(h,y){return this._originalElementsOrHash[h]!==this._originalElementsOrHash[y]?!1:this._hasStrings?this._originalStringElements[h]===this._originalStringElements[y]:!0},x.prototype.ModifiedElementsAreEqual=function(h,y){return this._modifiedElementsOrHash[h]!==this._modifiedElementsOrHash[y]?!1:this._hasStrings?this._modifiedStringElements[h]===this._modifiedStringElements[y]:!0},x.prototype.ComputeDiff=function(h){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,h)},x.prototype._ComputeDiff=function(h,y,w,f,v){var C=[!1],g=this.ComputeDiffRecursive(h,y,w,f,C);return v&&(g=this.PrettifyChanges(g)),{quitEarly:C[0],changes:g}},x.prototype.ComputeDiffRecursive=function(h,y,w,f,v){for(v[0]=!1;h<=y&&w<=f&&this.ElementsAreEqual(h,w);)h++,w++;for(;y>=h&&f>=w&&this.ElementsAreEqual(y,f);)y--,f--;if(h>y||w>f){var C=void 0;return w<=f?(B.Assert(h===y+1,"originalStart should only be one more than originalEnd"),C=[new T(h,0,w,f-w+1)]):h<=y?(B.Assert(w===f+1,"modifiedStart should only be one more than modifiedEnd"),C=[new T(h,y-h+1,w,0)]):(B.Assert(h===y+1,"originalStart should only be one more than originalEnd"),B.Assert(w===f+1,"modifiedStart should only be one more than modifiedEnd"),C=[]),C}var g=[0],u=[0],s=this.ComputeRecursionPoint(h,y,w,f,g,u,v),l=g[0],c=u[0];if(s!==null)return s;if(!v[0]){var p=this.ComputeDiffRecursive(h,l,w,c,v),_=[];return v[0]?_=[new T(l+1,y-(l+1)+1,c+1,f-(c+1)+1)]:_=this.ComputeDiffRecursive(l+1,y,c+1,f,v),this.ConcatenateChanges(p,_)}return[new T(h,y-h+1,w,f-w+1)]},x.prototype.WALKTRACE=function(h,y,w,f,v,C,g,u,s,l,c,p,_,L,I,P,A,Q){var K=null,H=null,V=new D,de=y,_e=w,Se=_[0]-P[0]-f,Ie=-1073741824,Pe=this.m_forwardHistory.length-1;do{var Ve=Se+h;Ve===de||Ve<_e&&s[Ve-1]<s[Ve+1]?(c=s[Ve+1],L=c-Se-f,c<Ie&&V.MarkNextChange(),Ie=c,V.AddModifiedElement(c+1,L),Se=Ve+1-h):(c=s[Ve-1]+1,L=c-Se-f,c<Ie&&V.MarkNextChange(),Ie=c-1,V.AddOriginalElement(c,L+1),Se=Ve-1-h),Pe>=0&&(s=this.m_forwardHistory[Pe],h=s[0],de=1,_e=s.length-1)}while(--Pe>=-1);if(K=V.getReverseChanges(),Q[0]){var ke=_[0]+1,se=P[0]+1;if(K!==null&&K.length>0){var ee=K[K.length-1];ke=Math.max(ke,ee.getOriginalEnd()),se=Math.max(se,ee.getModifiedEnd())}H=[new T(ke,p-ke+1,se,I-se+1)]}else{V=new D,de=C,_e=g,Se=_[0]-P[0]-u,Ie=1073741824,Pe=A?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var Ve=Se+v;Ve===de||Ve<_e&&l[Ve-1]>=l[Ve+1]?(c=l[Ve+1]-1,L=c-Se-u,c>Ie&&V.MarkNextChange(),Ie=c+1,V.AddOriginalElement(c+1,L+1),Se=Ve+1-v):(c=l[Ve-1],L=c-Se-u,c>Ie&&V.MarkNextChange(),Ie=c,V.AddModifiedElement(c+1,L+1),Se=Ve-1-v),Pe>=0&&(l=this.m_reverseHistory[Pe],v=l[0],de=1,_e=l.length-1)}while(--Pe>=-1);H=V.getChanges()}return this.ConcatenateChanges(K,H)},x.prototype.ComputeRecursionPoint=function(h,y,w,f,v,C,g){var u=0,s=0,l=0,c=0,p=0,_=0;h--,w--,v[0]=0,C[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var L=y-h+(f-w),I=L+1,P=new Int32Array(I),A=new Int32Array(I),Q=f-w,K=y-h,H=h-w,V=y-f,de=K-Q,_e=de%2===0;P[Q]=h,A[K]=y,g[0]=!1;for(var Se=1;Se<=L/2+1;Se++){var Ie=0,Pe=0;l=this.ClipDiagonalBound(Q-Se,Se,Q,I),c=this.ClipDiagonalBound(Q+Se,Se,Q,I);for(var Ve=l;Ve<=c;Ve+=2){Ve===l||Ve<c&&P[Ve-1]<P[Ve+1]?u=P[Ve+1]:u=P[Ve-1]+1,s=u-(Ve-Q)-H;for(var ke=u;u<y&&s<f&&this.ElementsAreEqual(u+1,s+1);)u++,s++;if(P[Ve]=u,u+s>Ie+Pe&&(Ie=u,Pe=s),!_e&&Math.abs(Ve-K)<=Se-1&&u>=A[Ve])return v[0]=u,C[0]=s,ke<=A[Ve]&&1447>0&&Se<=1447+1?this.WALKTRACE(Q,l,c,H,K,p,_,V,P,A,u,y,v,s,f,C,_e,g):null}var se=(Ie-h+(Pe-w)-Se)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Ie,se))return g[0]=!0,v[0]=Ie,C[0]=Pe,se>0&&1447>0&&Se<=1447+1?this.WALKTRACE(Q,l,c,H,K,p,_,V,P,A,u,y,v,s,f,C,_e,g):(h++,w++,[new T(h,y-h+1,w,f-w+1)]);p=this.ClipDiagonalBound(K-Se,Se,K,I),_=this.ClipDiagonalBound(K+Se,Se,K,I);for(var Ve=p;Ve<=_;Ve+=2){Ve===p||Ve<_&&A[Ve-1]>=A[Ve+1]?u=A[Ve+1]-1:u=A[Ve-1],s=u-(Ve-K)-V;for(var ke=u;u>h&&s>w&&this.ElementsAreEqual(u,s);)u--,s--;if(A[Ve]=u,_e&&Math.abs(Ve-Q)<=Se&&u<=P[Ve])return v[0]=u,C[0]=s,ke>=P[Ve]&&1447>0&&Se<=1447+1?this.WALKTRACE(Q,l,c,H,K,p,_,V,P,A,u,y,v,s,f,C,_e,g):null}if(Se<=1447){var ee=new Int32Array(c-l+2);ee[0]=Q-l+1,z.Copy2(P,l,ee,1,c-l+1),this.m_forwardHistory.push(ee),ee=new Int32Array(_-p+2),ee[0]=K-p+1,z.Copy2(A,p,ee,1,_-p+1),this.m_reverseHistory.push(ee)}}return this.WALKTRACE(Q,l,c,H,K,p,_,V,P,A,u,y,v,s,f,C,_e,g)},x.prototype.PrettifyChanges=function(h){for(var y=0;y<h.length;y++){for(var w=h[y],f=y<h.length-1?h[y+1].originalStart:this._originalElementsOrHash.length,v=y<h.length-1?h[y+1].modifiedStart:this._modifiedElementsOrHash.length,C=w.originalLength>0,g=w.modifiedLength>0;w.originalStart+w.originalLength<f&&w.modifiedStart+w.modifiedLength<v&&(!C||this.OriginalElementsAreEqual(w.originalStart,w.originalStart+w.originalLength))&&(!g||this.ModifiedElementsAreEqual(w.modifiedStart,w.modifiedStart+w.modifiedLength));)w.originalStart++,w.modifiedStart++;var u=[null];if(y<h.length-1&&this.ChangesOverlap(h[y],h[y+1],u)){h[y]=u[0],h.splice(y+1,1),y--;continue}}for(var y=h.length-1;y>=0;y--){var w=h[y],f=0,v=0;if(y>0){var s=h[y-1];s.originalLength>0&&(f=s.originalStart+s.originalLength),s.modifiedLength>0&&(v=s.modifiedStart+s.modifiedLength)}for(var C=w.originalLength>0,g=w.modifiedLength>0,l=0,c=this._boundaryScore(w.originalStart,w.originalLength,w.modifiedStart,w.modifiedLength),p=1;;p++){var _=w.originalStart-p,L=w.modifiedStart-p;if(_<f||L<v)break;if(C&&!this.OriginalElementsAreEqual(_,_+w.originalLength))break;if(g&&!this.ModifiedElementsAreEqual(L,L+w.modifiedLength))break;var I=this._boundaryScore(_,w.originalLength,L,w.modifiedLength);I>c&&(c=I,l=p)}w.originalStart-=l,w.modifiedStart-=l}return h},x.prototype._OriginalIsBoundary=function(h){return h<=0||h>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[h])},x.prototype._OriginalRegionIsBoundary=function(h,y){if(this._OriginalIsBoundary(h)||this._OriginalIsBoundary(h-1))return!0;if(y>0){var w=h+y;if(this._OriginalIsBoundary(w-1)||this._OriginalIsBoundary(w))return!0}return!1},x.prototype._ModifiedIsBoundary=function(h){return h<=0||h>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[h])},x.prototype._ModifiedRegionIsBoundary=function(h,y){if(this._ModifiedIsBoundary(h)||this._ModifiedIsBoundary(h-1))return!0;if(y>0){var w=h+y;if(this._ModifiedIsBoundary(w-1)||this._ModifiedIsBoundary(w))return!0}return!1},x.prototype._boundaryScore=function(h,y,w,f){var v=this._OriginalRegionIsBoundary(h,y)?1:0,C=this._ModifiedRegionIsBoundary(w,f)?1:0;return v+C},x.prototype.ConcatenateChanges=function(h,y){var w=[];if(h.length===0||y.length===0)return y.length>0?y:h;if(this.ChangesOverlap(h[h.length-1],y[0],w)){var f=new Array(h.length+y.length-1);return z.Copy(h,0,f,0,h.length-1),f[h.length-1]=w[0],z.Copy(y,1,f,h.length,y.length-1),f}else{var f=new Array(h.length+y.length);return z.Copy(h,0,f,0,h.length),z.Copy(y,0,f,h.length,y.length),f}},x.prototype.ChangesOverlap=function(h,y,w){if(B.Assert(h.originalStart<=y.originalStart,"Left change is not less than or equal to right change"),B.Assert(h.modifiedStart<=y.modifiedStart,"Left change is not less than or equal to right change"),h.originalStart+h.originalLength>=y.originalStart||h.modifiedStart+h.modifiedLength>=y.modifiedStart){var f=h.originalStart,v=h.originalLength,C=h.modifiedStart,g=h.modifiedLength;return h.originalStart+h.originalLength>=y.originalStart&&(v=y.originalStart+y.originalLength-h.originalStart),h.modifiedStart+h.modifiedLength>=y.modifiedStart&&(g=y.modifiedStart+y.modifiedLength-h.modifiedStart),w[0]=new T(f,v,C,g),!0}else return w[0]=null,!1},x.prototype.ClipDiagonalBound=function(h,y,w,f){if(h>=0&&h<f)return h;var v=w,C=f-w-1,g=y%2===0;if(h<0){var u=v%2===0;return g===u?0:1}else{var s=C%2===0;return g===s?f-1:f-2}},x}()},H4T2:function(Lt,N,e){"use strict";e.r(N),e.d(N,"GotoDefinitionAtPositionEditorContribution",function(){return L});var T=e("62hx"),le=e.n(T),$=e("3/fG"),R=e("X+cX"),B=e("/cxE"),z=e("eLzo"),D=e("WBhO"),W=e("aokT"),x=e("twdY"),h=e("sswD"),y=e("vRMv"),w=e("pmY6"),f=e("t49l"),v=e("t9D7"),C=e("MD5Z"),g=e("vATl"),u=e("8Ydt"),s=e("aBYw"),l=e("cGHE"),c=e("746U"),p=function(I,P,A,Q){var K=arguments.length,H=K<3?P:Q===null?Q=Object.getOwnPropertyDescriptor(P,A):Q,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")H=Reflect.decorate(I,P,A,Q);else for(var de=I.length-1;de>=0;de--)(V=I[de])&&(H=(K<3?V(H):K>3?V(P,A,H):V(P,A))||H);return K>3&&H&&Object.defineProperty(P,A,H),H},_=function(I,P){return function(A,Q){P(A,Q,I)}},L=function(){function I(P,A,Q){var K=this;this.textModelResolverService=A,this.modeService=Q,this.toUnhook=new w.b,this.toUnhookForKeyboard=new w.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=P;var H=new s.a(P);this.toUnhook.add(H),this.toUnhook.add(H.onMouseMoveOrRelevantKeyDown(function(V){var de=V[0],_e=V[1];K.startFindDefinitionFromMouse(de,Object(c.n)(_e))})),this.toUnhook.add(H.onExecute(function(V){K.isEnabled(V)&&K.gotoDefinition(V.target.position,V.hasSideBySideModifier).then(function(){K.removeLinkDecorations()},function(de){K.removeLinkDecorations(),Object(B.e)(de)})})),this.toUnhook.add(H.onCancel(function(){K.removeLinkDecorations(),K.currentWordAtPosition=null}))}return I.get=function(P){return P.getContribution(I.ID)},I.prototype.startFindDefinitionFromCursor=function(P){var A=this;return this.startFindDefinition(P).then(function(){A.toUnhookForKeyboard.add(A.editor.onDidChangeCursorPosition(function(){A.currentWordAtPosition=null,A.removeLinkDecorations(),A.toUnhookForKeyboard.clear()})),A.toUnhookForKeyboard.add(A.editor.onKeyDown(function(Q){Q&&(A.currentWordAtPosition=null,A.removeLinkDecorations(),A.toUnhookForKeyboard.clear())}))})},I.prototype.startFindDefinitionFromMouse=function(P,A){if(P.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(P,A)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}var Q=P.target.position;this.startFindDefinition(Q)},I.prototype.startFindDefinition=function(P){var A=this,Q;this.toUnhookForKeyboard.clear();var K=P?(Q=this.editor.getModel())===null||Q===void 0?void 0:Q.getWordAtPosition(P):null;if(!K)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===K.startColumn&&this.currentWordAtPosition.endColumn===K.endColumn&&this.currentWordAtPosition.word===K.word)return Promise.resolve(0);this.currentWordAtPosition=K;var H=new g.a(this.editor,4|1|2|8);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(R.f)(function(V){return A.findDefinition(P,V)}),this.previousPromise.then(function(V){if(!V||!V.length||!H.validate(A.editor)){A.removeLinkDecorations();return}if(V.length>1)A.addDecoration(new W.a(P.lineNumber,K.startColumn,P.lineNumber,K.endColumn),new z.a().appendText($.a("multipleResults","Click to show {0} definitions.",V.length)));else{var de=V[0];if(!de.uri)return;A.textModelResolverService.createModelReference(de.uri).then(function(_e){if(!_e.object||!_e.object.textEditorModel){_e.dispose();return}var Se=_e.object.textEditorModel,Ie=de.range.startLineNumber;if(Ie<1||Ie>Se.getLineCount()){_e.dispose();return}var Pe=A.getPreviewValue(Se,Ie,de),Ve;de.originSelectionRange?Ve=W.a.lift(de.originSelectionRange):Ve=new W.a(P.lineNumber,K.startColumn,P.lineNumber,K.endColumn);var ke=A.modeService.getModeIdByFilepathOrFirstLine(Se.uri);A.addDecoration(Ve,new z.a().appendCodeblock(ke||"",Pe)),_e.dispose()})}}).then(void 0,B.e)},I.prototype.getPreviewValue=function(P,A,Q){var K=Q.targetSelectionRange?Q.range:this.getPreviewRangeBasedOnBrackets(P,A),H=K.endLineNumber-K.startLineNumber;H>=I.MAX_SOURCE_PREVIEW_LINES&&(K=this.getPreviewRangeBasedOnIndentation(P,A));var V=this.stripIndentationFromPreviewRange(P,A,K);return V},I.prototype.stripIndentationFromPreviewRange=function(P,A,Q){for(var K=P.getLineFirstNonWhitespaceColumn(A),H=K,V=A+1;V<Q.endLineNumber;V++){var de=P.getLineFirstNonWhitespaceColumn(V);H=Math.min(H,de)}var _e=P.getValueInRange(Q).replace(new RegExp("^\\s{"+(H-1)+"}","gm"),"").trim();return _e},I.prototype.getPreviewRangeBasedOnIndentation=function(P,A){for(var Q=P.getLineFirstNonWhitespaceColumn(A),K=Math.min(P.getLineCount(),A+I.MAX_SOURCE_PREVIEW_LINES),H=A+1;H<K;H++){var V=P.getLineFirstNonWhitespaceColumn(H);if(Q===V)break}return new W.a(A,1,H+1,1)},I.prototype.getPreviewRangeBasedOnBrackets=function(P,A){for(var Q=Math.min(P.getLineCount(),A+I.MAX_SOURCE_PREVIEW_LINES),K=[],H=!0,V=P.findNextBracket(new l.a(A,1));V!==null;){if(K.length===0)K.push(V);else{var de=K[K.length-1];if(de.open[0]===V.open[0]&&de.isOpen&&!V.isOpen?K.pop():K.push(V),K.length===0)if(H)H=!1;else return new W.a(A,1,V.range.endLineNumber+1,1)}var _e=P.getLineMaxColumn(A),Se=V.range.endLineNumber,Ie=V.range.endColumn;if(_e===V.range.endColumn&&(Se++,Ie=1),Se>Q)return new W.a(A,1,Q+1,1);V=P.findNextBracket(new l.a(Se,Ie))}return new W.a(A,1,Q+1,1)},I.prototype.addDecoration=function(P,A){var Q={range:P,options:{inlineClassName:"goto-definition-link",hoverMessage:A}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[Q])},I.prototype.removeLinkDecorations=function(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},I.prototype.isEnabled=function(P,A){return this.editor.hasModel()&&P.isNoneOrSingleMouseDown&&P.target.type===6&&(P.hasTriggerModifier||(A?A.keyCodeIsTriggerKey:!1))&&x.f.has(this.editor.getModel())},I.prototype.findDefinition=function(P,A){var Q=this.editor.getModel();return Q?Object(y.b)(Q,P,A):Promise.resolve(null)},I.prototype.gotoDefinition=function(P,A){var Q=this;this.editor.setPosition(P);var K=new u.DefinitionAction({openToSide:A,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext(function(H){return K.run(H,Q.editor)})},I.prototype.dispose=function(){this.toUnhook.dispose()},I.ID="editor.contrib.gotodefinitionatposition",I.MAX_SOURCE_PREVIEW_LINES=8,I=p([_(1,f.a),_(2,D.a)],I),I}();Object(h.h)(L.ID,L),Object(v.e)(function(I,P){var A=I.getColor(C.n);A&&P.addRule(".monaco-editor .goto-definition-link { color: "+A+" !important; }")})},H6Gb:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return e.e(321).then(e.bind(null,"lXEz"))}})},HdwC:function(Lt,N,e){"use strict";e.d(N,"b",function(){return v}),e.d(N,"a",function(){return g});var T=e("D3Dy"),le=e("MI8n"),$=e("pmY6"),R=e("MNsG"),B=function(){function u(s,l){this.chr=s,this.type=l,this.width=0}return u.prototype.fulfill=function(s){this.width=s},u}(),z=function(){function u(s,l){this._bareFontInfo=s,this._requests=l,this._container=null,this._testElements=null}return u.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},u.prototype._createDomElements=function(){var s=document.createElement("div");s.style.position="absolute",s.style.top="-50000px",s.style.width="50000px";var l=document.createElement("div");l.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),l.style.fontWeight=this._bareFontInfo.fontWeight,l.style.fontSize=this._bareFontInfo.fontSize+"px",l.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,l.style.lineHeight=this._bareFontInfo.lineHeight+"px",l.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",s.appendChild(l);var c=document.createElement("div");c.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),c.style.fontWeight="bold",c.style.fontSize=this._bareFontInfo.fontSize+"px",c.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,c.style.lineHeight=this._bareFontInfo.lineHeight+"px",c.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",s.appendChild(c);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",p.style.fontStyle="italic",s.appendChild(p);for(var _=[],L=0,I=this._requests;L<I.length;L++){var P=I[L],A=void 0;P.type===0&&(A=l),P.type===2&&(A=c),P.type===1&&(A=p),A.appendChild(document.createElement("br"));var Q=document.createElement("span");u._render(Q,P),A.appendChild(Q),_.push(Q)}this._container=s,this._testElements=_},u._render=function(s,l){if(l.chr===" "){for(var c="&#160;",p=0;p<8;p++)c+=c;s.innerHTML=c}else{for(var _=l.chr,p=0;p<8;p++)_+=_;s.textContent=_}},u.prototype._readFromDomElements=function(){for(var s=0,l=this._requests.length;s<l;s++){var c=this._requests[s],p=this._testElements[s];c.fulfill(p.offsetWidth/256)}},u}();function D(u,s){var l=new z(u,s);l.read()}var W=e("o39E"),x=e("iDAx"),h=e("/UlZ"),y=e("+3Gp"),w=function(){var u=function(s,l){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,p){c.__proto__=p}||function(c,p){for(var _ in p)p.hasOwnProperty(_)&&(c[_]=p[_])},u(s,l)};return function(s,l){u(s,l);function c(){this.constructor=s}s.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),f=function(){function u(){this._keys=Object.create(null),this._values=Object.create(null)}return u.prototype.has=function(s){var l=s.getId();return!!this._values[l]},u.prototype.get=function(s){var l=s.getId();return this._values[l]},u.prototype.put=function(s,l){var c=s.getId();this._keys[c]=s,this._values[c]=l},u.prototype.remove=function(s){var l=s.getId();delete this._keys[l],delete this._values[l]},u.prototype.getValues=function(){var s=this;return Object.keys(this._keys).map(function(l){return s._values[l]})},u}();function v(){C.INSTANCE.clearCache()}var C=function(u){w(s,u);function s(){var l=u.call(this)||this;return l._onDidChange=l._register(new le.a),l.onDidChange=l._onDidChange.event,l._cache=new f,l._evictUntrustedReadingsTimeout=-1,l}return s.prototype.dispose=function(){this._evictUntrustedReadingsTimeout!==-1&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),u.prototype.dispose.call(this)},s.prototype.clearCache=function(){this._cache=new f,this._onDidChange.fire()},s.prototype._writeToCache=function(l,c){var p=this;this._cache.put(l,c),!c.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=setTimeout(function(){p._evictUntrustedReadingsTimeout=-1,p._evictUntrustedReadings()},5e3))},s.prototype._evictUntrustedReadings=function(){for(var l=this._cache.getValues(),c=!1,p=0,_=l.length;p<_;p++){var L=l[p];L.isTrusted||(c=!0,this._cache.remove(L))}c&&this._onDidChange.fire()},s.prototype.readConfiguration=function(l){if(!this._cache.has(l)){var c=s._actualReadConfiguration(l);(c.typicalHalfwidthCharacterWidth<=2||c.typicalFullwidthCharacterWidth<=2||c.spaceWidth<=2||c.maxDigitWidth<=2)&&(c=new y.b({zoomLevel:T.c(),fontFamily:c.fontFamily,fontWeight:c.fontWeight,fontSize:c.fontSize,fontFeatureSettings:c.fontFeatureSettings,lineHeight:c.lineHeight,letterSpacing:c.letterSpacing,isMonospace:c.isMonospace,typicalHalfwidthCharacterWidth:Math.max(c.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(c.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:c.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(c.spaceWidth,5),middotWidth:Math.max(c.middotWidth,5),maxDigitWidth:Math.max(c.maxDigitWidth,5)},!1)),this._writeToCache(l,c)}return this._cache.get(l)},s.createRequest=function(l,c,p,_){var L=new B(l,c);return p.push(L),_&&_.push(L),L},s._actualReadConfiguration=function(l){var c=[],p=[],_=this.createRequest("n",0,c,p),L=this.createRequest("\uFF4D",0,c,null),I=this.createRequest(" ",0,c,p),P=this.createRequest("0",0,c,p),A=this.createRequest("1",0,c,p),Q=this.createRequest("2",0,c,p),K=this.createRequest("3",0,c,p),H=this.createRequest("4",0,c,p),V=this.createRequest("5",0,c,p),de=this.createRequest("6",0,c,p),_e=this.createRequest("7",0,c,p),Se=this.createRequest("8",0,c,p),Ie=this.createRequest("9",0,c,p),Pe=this.createRequest("\u2192",0,c,p),Ve=this.createRequest("\uFFEB",0,c,null),ke=this.createRequest("\xB7",0,c,p);this.createRequest("|",0,c,p),this.createRequest("/",0,c,p),this.createRequest("-",0,c,p),this.createRequest("_",0,c,p),this.createRequest("i",0,c,p),this.createRequest("l",0,c,p),this.createRequest("m",0,c,p),this.createRequest("|",1,c,p),this.createRequest("_",1,c,p),this.createRequest("i",1,c,p),this.createRequest("l",1,c,p),this.createRequest("m",1,c,p),this.createRequest("n",1,c,p),this.createRequest("|",2,c,p),this.createRequest("_",2,c,p),this.createRequest("i",2,c,p),this.createRequest("l",2,c,p),this.createRequest("m",2,c,p),this.createRequest("n",2,c,p),D(l,c);for(var se=Math.max(P.width,A.width,Q.width,K.width,H.width,V.width,de.width,_e.width,Se.width,Ie.width),ee=l.fontFeatureSettings===h.d.OFF,ie=p[0].width,q=1,ce=p.length;ee&&q<ce;q++){var Z=ie-p[q].width;if(Z<-.001||Z>.001){ee=!1;break}}var ye=!0;ee&&Ve.width!==ie&&(ye=!1),Ve.width>Pe.width&&(ye=!1);var je=T.b()>2e3;return new y.b({zoomLevel:T.c(),fontFamily:l.fontFamily,fontWeight:l.fontWeight,fontSize:l.fontSize,fontFeatureSettings:l.fontFeatureSettings,lineHeight:l.lineHeight,letterSpacing:l.letterSpacing,isMonospace:ee,typicalHalfwidthCharacterWidth:_.width,typicalFullwidthCharacterWidth:L.width,canUseHalfwidthRightwardsArrow:ye,spaceWidth:I.width,middotWidth:ke.width,maxDigitWidth:se},je)},s.INSTANCE=new s,s}($.a),g=function(u){w(s,u);function s(l,c,p,_){p===void 0&&(p=null);var L=u.call(this,l,c)||this;return L.accessibilityService=_,L._elementSizeObserver=L._register(new W.a(p,c.dimension,function(){return L._onReferenceDomElementSizeChanged()})),L._register(C.INSTANCE.onDidChange(function(){return L._onCSSBasedConfigurationChanged()})),L._validatedOptions.get(9)&&L._elementSizeObserver.startObserving(),L._register(T.o(function(I){return L._recomputeOptions()})),L._register(L.accessibilityService.onDidChangeScreenReaderOptimized(function(){return L._recomputeOptions()})),L._recomputeOptions(),L}return s.applyFontInfoSlow=function(l,c){l.style.fontFamily=c.getMassagedFontFamily(),l.style.fontWeight=c.fontWeight,l.style.fontSize=c.fontSize+"px",l.style.fontFeatureSettings=c.fontFeatureSettings,l.style.lineHeight=c.lineHeight+"px",l.style.letterSpacing=c.letterSpacing+"px"},s.applyFontInfo=function(l,c){l.setFontFamily(c.getMassagedFontFamily()),l.setFontWeight(c.fontWeight),l.setFontSize(c.fontSize),l.setFontFeatureSettings(c.fontFeatureSettings),l.setLineHeight(c.lineHeight),l.setLetterSpacing(c.letterSpacing)},s.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},s.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},s.prototype.observeReferenceElement=function(l){this._elementSizeObserver.observe(l)},s.prototype.dispose=function(){u.prototype.dispose.call(this)},s.prototype._getExtraEditorClassName=function(){var l="";return!T.k&&!T.n&&(l+="no-user-select "),R.e&&(l+="mac "),l},s.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:T.m||T.h,pixelRatio:T.a(),zoomLevel:T.c(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}},s.prototype.readConfiguration=function(l){return C.INSTANCE.readConfiguration(l)},s}(x.a)},HyZH:function(Lt,N,e){},"I/Lx":function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return e.e(302).then(e.bind(null,"yswY"))}})},"J+ZK":function(Lt,N,e){},"JQT/":function(Lt,N,e){"use strict";e.d(N,"a",function(){return $}),e.d(N,"b",function(){return B});var T=e("MI8n"),le=Object.freeze(function(z,D){var W=setTimeout(z.bind(D),0);return{dispose:function(){clearTimeout(W)}}}),$;(function(z){function D(W){return W===z.None||W===z.Cancelled||W instanceof R?!0:!W||typeof W!="object"?!1:typeof W.isCancellationRequested=="boolean"&&typeof W.onCancellationRequested=="function"}z.isCancellationToken=D,z.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:T.b.None}),z.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:le})})($||($={}));var R=function(){function z(){this._isCancelled=!1,this._emitter=null}return z.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(z.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?le:(this._emitter||(this._emitter=new T.a),this._emitter.event)},enumerable:!0,configurable:!0}),z.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},z}(),B=function(){function z(D){this._token=void 0,this._parentListener=void 0,this._parentListener=D&&D.onCancellationRequested(this.cancel,this)}return Object.defineProperty(z.prototype,"token",{get:function(){return this._token||(this._token=new R),this._token},enumerable:!0,configurable:!0}),z.prototype.cancel=function(){this._token?this._token instanceof R&&this._token.cancel():this._token=$.Cancelled},z.prototype.dispose=function(D){D===void 0&&(D=!1),D&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof R&&this._token.dispose():this._token=$.None},z}()},JYp7:function(Lt,N,e){"use strict";e.d(N,"c",function(){return le}),e.d(N,"d",function(){return $}),e.d(N,"f",function(){return B}),e.d(N,"a",function(){return z}),e.d(N,"b",function(){return D}),e.d(N,"e",function(){return W});var T=function(){var x=function(h,y){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,f){w.__proto__=f}||function(w,f){for(var v in f)f.hasOwnProperty(v)&&(w[v]=f[v])},x(h,y)};return function(h,y){x(h,y);function w(){this.constructor=h}h.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}}(),le={done:!0,value:void 0},$;(function(x){var h={next:function(){return le}};function y(){return h}x.empty=y;function w(_){var L=!1;return{next:function(){return L?le:(L=!0,{done:!1,value:_})}}}x.single=w;function f(_,L,I){return L===void 0&&(L=0),I===void 0&&(I=_.length),{next:function(){return L>=I?le:{done:!1,value:_[L++]}}}}x.fromArray=f;function v(_){return{next:function(){var L=_.next();return L.done?le:{done:!1,value:L.value}}}}x.fromNativeIterator=v;function C(_){return _?Array.isArray(_)?x.fromArray(_):_:x.empty()}x.from=C;function g(_,L){return{next:function(){var I=_.next();return I.done?le:{done:!1,value:L(I.value)}}}}x.map=g;function u(_,L){return{next:function(){for(;;){var I=_.next();if(I.done)return le;if(L(I.value))return{done:!1,value:I.value}}}}}x.filter=u;function s(_,L){for(var I=_.next();!I.done;I=_.next())L(I.value)}x.forEach=s;function l(_,L){L===void 0&&(L=Number.POSITIVE_INFINITY);var I=[];if(L===0)return I;for(var P=0,A=_.next();!A.done&&!(I.push(A.value),++P>=L);A=_.next());return I}x.collect=l;function c(){for(var _=[],L=0;L<arguments.length;L++)_[L]=arguments[L];var I=0;return{next:function(){if(I>=_.length)return le;var P=_[I],A=P.next();return A.done?(I++,this.next()):A}}}x.concat=c;function p(_){return new R(_)}x.chain=p})($||($={}));var R=function(){function x(h){this.it=h}return x.prototype.next=function(){return this.it.next()},x}();function B(x){return Array.isArray(x)?$.fromArray(x):x||$.empty()}var z=function(){function x(h,y,w,f){y===void 0&&(y=0),w===void 0&&(w=h.length),f===void 0&&(f=y-1),this.items=h,this.start=y,this.end=w,this.index=f}return x.prototype.first=function(){return this.index=this.start,this.current()},x.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},x.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},x}(),D=function(x){T(h,x);function h(y,w,f,v){return w===void 0&&(w=0),f===void 0&&(f=y.length),v===void 0&&(v=w-1),x.call(this,y,w,f,v)||this}return h.prototype.current=function(){return x.prototype.current.call(this)},h.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},h.prototype.first=function(){return this.index=this.start,this.current()},h.prototype.last=function(){return this.index=this.end-1,this.current()},h.prototype.parent=function(){return null},h}(z),W=function(){function x(h,y){this.iterator=h,this.fn=y}return x.prototype.next=function(){return this.fn(this.iterator.next())},x}()},JlLP:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return e.e(323).then(e.bind(null,"W1QP"))}})},KDc4:function(Lt,N,e){"use strict";e.d(N,"a",function(){return T}),e.d(N,"b",function(){return le});var T;(function($){$[$.None=0]="None",$[$.Indent=1]="Indent",$[$.IndentOutdent=2]="IndentOutdent",$[$.Outdent=3]="Outdent"})(T||(T={}));var le=function(){function $(R){if(this.open=R.open,this.close=R.close,this._standardTokenMask=0,Array.isArray(R.notIn))for(var B=0,z=R.notIn.length;B<z;B++){var D=R.notIn[B];switch(D){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4;break}}}return $.prototype.isOK=function(R){return(this._standardTokenMask&R)===0},$}()},KTWA:function(Lt,N,e){"use strict";e.r(N);var T=e("3/fG"),le=e("sswD"),$=e("wQH0"),R=e("aokT"),B=function(){function h(y,w){this._selection=y,this._isMovingLeft=w,this._cutStartIndex=-1,this._cutEndIndex=-1,this._moved=!1,this._selectionId=null}return h.prototype.getEditOperations=function(y,w){var f=this._selection;if(this._selectionId=w.trackSelection(f),f.startLineNumber!==f.endLineNumber)return;if(this._isMovingLeft&&f.startColumn===0)return;if(!this._isMovingLeft&&f.endColumn===y.getLineMaxColumn(f.startLineNumber))return;var v=f.selectionStartLineNumber,C=y.getLineContent(v),g,u,s;this._isMovingLeft?(g=C.substring(0,f.startColumn-2),u=C.substring(f.startColumn-1,f.endColumn-1),s=C.substring(f.startColumn-2,f.startColumn-1)+C.substring(f.endColumn-1)):(g=C.substring(0,f.startColumn-1)+C.substring(f.endColumn-1,f.endColumn),u=C.substring(f.startColumn-1,f.endColumn-1),s=C.substring(f.endColumn));var l=g+u+s;w.addEditOperation(new R.a(v,1,v,y.getLineMaxColumn(v)),null),w.addEditOperation(new R.a(v,1,v,1),l),this._cutStartIndex=f.startColumn+(this._isMovingLeft?-1:1),this._cutEndIndex=this._cutStartIndex+f.endColumn-f.startColumn,this._moved=!0},h.prototype.computeCursorState=function(y,w){var f=w.getTrackedSelection(this._selectionId);return this._moved&&(f=f.setStartPosition(f.startLineNumber,this._cutStartIndex),f=f.setEndPosition(f.startLineNumber,this._cutEndIndex)),f},h}(),z=function(){var h=function(y,w){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var C in v)v.hasOwnProperty(C)&&(f[C]=v[C])},h(y,w)};return function(y,w){h(y,w);function f(){this.constructor=y}y.prototype=w===null?Object.create(w):(f.prototype=w.prototype,new f)}}(),D=function(h){z(y,h);function y(w,f){var v=h.call(this,f)||this;return v.left=w,v}return y.prototype.run=function(w,f){if(!f.hasModel())return;for(var v=[],C=f.getSelections(),g=0,u=C;g<u.length;g++){var s=u[g];v.push(new B(s,this.left))}f.pushUndoStop(),f.executeCommands(this.id,v),f.pushUndoStop()},y}(le.b),W=function(h){z(y,h);function y(){return h.call(this,!0,{id:"editor.action.moveCarretLeftAction",label:T.a("caret.moveLeft","Move Caret Left"),alias:"Move Caret Left",precondition:$.a.writable})||this}return y}(D),x=function(h){z(y,h);function y(){return h.call(this,!1,{id:"editor.action.moveCarretRightAction",label:T.a("caret.moveRight","Move Caret Right"),alias:"Move Caret Right",precondition:$.a.writable})||this}return y}(D);Object(le.f)(W),Object(le.f)(x)},KaET:function(Lt,N,e){},KgQ1:function(Lt,N,e){},Krc3:function(Lt,N,e){},LCkn:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le}),e.d(N,"c",function(){return $}),e.d(N,"e",function(){return R}),e.d(N,"d",function(){return B}),e.d(N,"b",function(){return z});var T=e("gCVg"),le=function(){function D(W,x,h){h===void 0&&(h=!1),this._range=W,this._text=x,this.insertsAutoWhitespace=h}return D.prototype.getEditOperations=function(W,x){x.addTrackedEditOperation(this._range,this._text)},D.prototype.computeCursorState=function(W,x){var h=x.getInverseEditOperations(),y=h[0].range;return new T.a(y.endLineNumber,y.endColumn,y.endLineNumber,y.endColumn)},D}(),$=function(){function D(W,x){this._range=W,this._text=x}return D.prototype.getEditOperations=function(W,x){x.addTrackedEditOperation(this._range,this._text)},D.prototype.computeCursorState=function(W,x){var h=x.getInverseEditOperations(),y=h[0].range;return new T.a(y.startLineNumber,y.startColumn,y.endLineNumber,y.endColumn)},D}(),R=function(){function D(W,x,h){h===void 0&&(h=!1),this._range=W,this._text=x,this.insertsAutoWhitespace=h}return D.prototype.getEditOperations=function(W,x){x.addTrackedEditOperation(this._range,this._text)},D.prototype.computeCursorState=function(W,x){var h=x.getInverseEditOperations(),y=h[0].range;return new T.a(y.startLineNumber,y.startColumn,y.startLineNumber,y.startColumn)},D}(),B=function(){function D(W,x,h,y,w){w===void 0&&(w=!1),this._range=W,this._text=x,this._columnDeltaOffset=y,this._lineNumberDeltaOffset=h,this.insertsAutoWhitespace=w}return D.prototype.getEditOperations=function(W,x){x.addTrackedEditOperation(this._range,this._text)},D.prototype.computeCursorState=function(W,x){var h=x.getInverseEditOperations(),y=h[0].range;return new T.a(y.endLineNumber+this._lineNumberDeltaOffset,y.endColumn+this._columnDeltaOffset,y.endLineNumber+this._lineNumberDeltaOffset,y.endColumn+this._columnDeltaOffset)},D}(),z=function(){function D(W,x,h,y){y===void 0&&(y=!1),this._range=W,this._text=x,this._initialSelection=h,this._forceMoveMarkers=y,this._selectionId=null}return D.prototype.getEditOperations=function(W,x){x.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=x.trackSelection(this._initialSelection)},D.prototype.computeCursorState=function(W,x){return x.getTrackedSelection(this._selectionId)},D}()},LRks:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return e.e(342).then(e.bind(null,"05+/"))}})},LUcL:function(Lt,N,e){"use strict";e.r(N),e.d(N,"DeleteWordPartLeft",function(){return W}),e.d(N,"DeleteWordPartRight",function(){return x}),e.d(N,"WordPartLeftCommand",function(){return h}),e.d(N,"CursorWordPartLeft",function(){return y}),e.d(N,"CursorWordPartLeftSelect",function(){return w}),e.d(N,"WordPartRightCommand",function(){return f}),e.d(N,"CursorWordPartRight",function(){return v}),e.d(N,"CursorWordPartRightSelect",function(){return C});var T=e("sswD"),le=e("1I1M"),$=e("aokT"),R=e("wQH0"),B=e("s7Km"),z=e("nnTU"),D=function(){var g=function(u,s){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var p in c)c.hasOwnProperty(p)&&(l[p]=c[p])},g(u,s)};return function(u,s){g(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),W=function(g){D(u,g);function u(){return g.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:R.a.writable,kbOpts:{kbExpr:R.a.textInputFocus,primary:0,mac:{primary:256|512|1},weight:100}})||this}return u.prototype._delete=function(s,l,c,p,_){var L=le.b.deleteWordPartLeft(s,l,c,p);return L||new $.a(1,1,1,1)},u}(B.DeleteWordCommand),x=function(g){D(u,g);function u(){return g.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:R.a.writable,kbOpts:{kbExpr:R.a.textInputFocus,primary:0,mac:{primary:256|512|20},weight:100}})||this}return u.prototype._delete=function(s,l,c,p,_){var L=le.b.deleteWordPartRight(s,l,c,p);if(L)return L;var I=l.getLineCount(),P=l.getLineMaxColumn(I);return new $.a(I,P,I,P)},u}(B.DeleteWordCommand),h=function(g){D(u,g);function u(){return g!==null&&g.apply(this,arguments)||this}return u.prototype._move=function(s,l,c,p){return le.b.moveWordPartLeft(s,l,c)},u}(B.MoveWordCommand),y=function(g){D(u,g);function u(){return g.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:R.a.textInputFocus,primary:0,mac:{primary:256|512|15},weight:100}})||this}return u}(h);z.a.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");var w=function(g){D(u,g);function u(){return g.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:R.a.textInputFocus,primary:0,mac:{primary:256|512|1024|15},weight:100}})||this}return u}(h);z.a.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");var f=function(g){D(u,g);function u(){return g!==null&&g.apply(this,arguments)||this}return u.prototype._move=function(s,l,c,p){return le.b.moveWordPartRight(s,l,c)},u}(B.MoveWordCommand),v=function(g){D(u,g);function u(){return g.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:R.a.textInputFocus,primary:0,mac:{primary:256|512|17},weight:100}})||this}return u}(f),C=function(g){D(u,g);function u(){return g.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:R.a.textInputFocus,primary:0,mac:{primary:256|512|1024|17},weight:100}})||this}return u}(f);Object(T.g)(new W),Object(T.g)(new x),Object(T.g)(new y),Object(T.g)(new w),Object(T.g)(new v),Object(T.g)(new C)},"LeU+":function(Lt,N,e){"use strict";e.d(N,"b",function(){return le}),e.d(N,"a",function(){return $});var T=e("CZ1j"),le=function(){function R(B,z){this.index=B,this.remainder=z}return R}(),$=function(){function R(B){this.values=B,this.prefixSum=new Uint32Array(B.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return R.prototype.insertValues=function(B,z){B=Object(T.a)(B);var D=this.values,W=this.prefixSum,x=z.length;return x===0?!1:(this.values=new Uint32Array(D.length+x),this.values.set(D.subarray(0,B),0),this.values.set(D.subarray(B),B+x),this.values.set(z,B),B-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=B-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(W.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},R.prototype.changeValue=function(B,z){return B=Object(T.a)(B),z=Object(T.a)(z),this.values[B]===z?!1:(this.values[B]=z,B-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=B-1),!0)},R.prototype.removeValues=function(B,z){B=Object(T.a)(B),z=Object(T.a)(z);var D=this.values,W=this.prefixSum;if(B>=D.length)return!1;var x=D.length-B;return z>=x&&(z=x),z===0?!1:(this.values=new Uint32Array(D.length-z),this.values.set(D.subarray(0,B),0),this.values.set(D.subarray(B+z),B),this.prefixSum=new Uint32Array(this.values.length),B-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=B-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(W.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},R.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},R.prototype.getAccumulatedValue=function(B){return B<0?0:(B=Object(T.a)(B),this._getAccumulatedValue(B))},R.prototype._getAccumulatedValue=function(B){if(B<=this.prefixSumValidIndex[0])return this.prefixSum[B];var z=this.prefixSumValidIndex[0]+1;z===0&&(this.prefixSum[0]=this.values[0],z++),B>=this.values.length&&(B=this.values.length-1);for(var D=z;D<=B;D++)this.prefixSum[D]=this.prefixSum[D-1]+this.values[D];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],B),this.prefixSum[B]},R.prototype.getIndexOf=function(B){B=Math.floor(B),this.getTotalValue();for(var z=0,D=this.values.length-1,W=0,x=0,h=0;z<=D;)if(W=z+(D-z)/2|0,x=this.prefixSum[W],h=x-this.values[W],B<h)D=W-1;else if(B>=x)z=W+1;else break;return new le(W,B-h)},R}()},LexI:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return e.e(303).then(e.bind(null,"lHAa"))}})},Ll0s:function(Lt,N,e){"use strict";e.d(N,"b",function(){return w}),e.d(N,"f",function(){return f}),e.d(N,"c",function(){return v}),e.d(N,"d",function(){return u}),e.d(N,"e",function(){return s}),e.d(N,"a",function(){return l}),e.d(N,"g",function(){return c});var T=e("/cxE"),le=e("N0LK"),$=e("cGHE"),R=e("aokT"),B=e("gCVg"),z=e("tX9W"),D=e("cMvZ"),W=function(){return!0},x=function(){return!1},h=function(p){return p===" "||p===" "};function y(p,_,L){p.has(_)?p.get(_).push(L):p.set(_,[L])}var w=function(){function p(_,L,I){this._languageIdentifier=_;var P=I.options,A=P.get(107);this.readOnly=P.get(68),this.tabSize=L.tabSize,this.indentSize=L.indentSize,this.insertSpaces=L.insertSpaces,this.lineHeight=P.get(49),this.pageSize=Math.max(1,Math.floor(A.height/this.lineHeight)-2),this.useTabStops=P.get(95),this.wordSeparators=P.get(96),this.emptySelectionClipboard=P.get(25),this.copyWithSyntaxHighlighting=P.get(15),this.multiCursorMergeOverlapping=P.get(58),this.multiCursorPaste=P.get(60),this.autoClosingBrackets=P.get(5),this.autoClosingQuotes=P.get(7),this.autoClosingOvertype=P.get(6),this.autoSurround=P.get(10),this.autoIndent=P.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:p._getShouldAutoClose(_,this.autoClosingQuotes),bracket:p._getShouldAutoClose(_,this.autoClosingBrackets)};var Q=p._getAutoClosingPairs(_);if(Q)for(var K=0,H=Q;K<H.length;K++){var V=H[K];y(this.autoClosingPairsOpen2,V.open.charAt(V.open.length-1),V),V.close.length===1&&y(this.autoClosingPairsClose2,V.close,V)}var de=p._getSurroundingPairs(_);if(de)for(var _e=0,Se=de;_e<Se.length;_e++){var V=Se[_e];this.surroundingPairs[V.open]=V.close}}return p.shouldRecreate=function(_){return _.hasChanged(107)||_.hasChanged(96)||_.hasChanged(25)||_.hasChanged(58)||_.hasChanged(60)||_.hasChanged(5)||_.hasChanged(7)||_.hasChanged(6)||_.hasChanged(10)||_.hasChanged(95)||_.hasChanged(49)||_.hasChanged(68)},Object.defineProperty(p.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var _=p._getElectricCharacters(this._languageIdentifier);if(_)for(var L=0,I=_;L<I.length;L++){var P=I[L];this._electricChars[P]=!0}}return this._electricChars},enumerable:!0,configurable:!0}),p.prototype.normalizeIndentation=function(_){return z.b.normalizeIndentation(_,this.indentSize,this.insertSpaces)},p._getElectricCharacters=function(_){try{return D.a.getElectricCharacters(_.id)}catch(L){return Object(T.e)(L),null}},p._getAutoClosingPairs=function(_){try{return D.a.getAutoClosingPairs(_.id)}catch(L){return Object(T.e)(L),null}},p._getShouldAutoClose=function(_,L){switch(L){case"beforeWhitespace":return h;case"languageDefined":return p._getLanguageDefinedShouldAutoClose(_);case"always":return W;case"never":return x}},p._getLanguageDefinedShouldAutoClose=function(_){try{var L=D.a.getAutoCloseBeforeSet(_.id);return function(I){return L.indexOf(I)!==-1}}catch(I){return Object(T.e)(I),x}},p._getSurroundingPairs=function(_){try{return D.a.getSurroundingPairs(_.id)}catch(L){return Object(T.e)(L),null}},p}(),f=function(){function p(_,L,I,P){this.selectionStart=_,this.selectionStartLeftoverVisibleColumns=L,this.position=I,this.leftoverVisibleColumns=P,this.selection=p._computeSelection(this.selectionStart,this.position)}return p.prototype.equals=function(_){return this.selectionStartLeftoverVisibleColumns===_.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===_.leftoverVisibleColumns&&this.position.equals(_.position)&&this.selectionStart.equalsRange(_.selectionStart)},p.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()},p.prototype.move=function(_,L,I,P){return _?new p(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new $.a(L,I),P):new p(new R.a(L,I,L,I),P,new $.a(L,I),P)},p._computeSelection=function(_,L){var I,P,A,Q;return _.isEmpty()?(I=_.startLineNumber,P=_.startColumn,A=L.lineNumber,Q=L.column):L.isBeforeOrEqual(_.getStartPosition())?(I=_.endLineNumber,P=_.endColumn,A=L.lineNumber,Q=L.column):(I=_.startLineNumber,P=_.startColumn,A=L.lineNumber,Q=L.column),new B.a(I,P,A,Q)},p}(),v=function(){function p(_,L,I){this.model=L,this.viewModel=I,this.config=new w(this.model.getLanguageIdentifier(),this.model.getOptions(),_)}return p.prototype.validateViewPosition=function(_,L){return this.viewModel.coordinatesConverter.validateViewPosition(_,L)},p.prototype.validateViewRange=function(_,L){return this.viewModel.coordinatesConverter.validateViewRange(_,L)},p.prototype.convertViewRangeToModelRange=function(_){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(_)},p.prototype.convertViewPositionToModelPosition=function(_,L){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new $.a(_,L))},p.prototype.convertModelPositionToViewPosition=function(_){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(_)},p.prototype.convertModelRangeToViewRange=function(_){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(_)},p.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()},p.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()},p.prototype.getCompletelyVisibleModelRange=function(){var _=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(_)},p.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(_){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(_)},p.prototype.getVerticalOffsetForViewLine=function(_){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(_)},p}(),C=function(){function p(_){this.modelState=_,this.viewState=null}return p}(),g=function(){function p(_){this.modelState=null,this.viewState=_}return p}(),u=function(){function p(_,L){this.modelState=_,this.viewState=L}return p.fromModelState=function(_){return new C(_)},p.fromViewState=function(_){return new g(_)},p.fromModelSelection=function(_){var L=_.selectionStartLineNumber,I=_.selectionStartColumn,P=_.positionLineNumber,A=_.positionColumn,Q=new f(new R.a(L,I,L,I),0,new $.a(P,A),0);return p.fromModelState(Q)},p.fromModelSelections=function(_){for(var L=[],I=0,P=_.length;I<P;I++)L[I]=this.fromModelSelection(_[I]);return L},p.prototype.equals=function(_){return this.viewState.equals(_.viewState)&&this.modelState.equals(_.modelState)},p}(),s=function(){function p(_,L,I){this.type=_,this.commands=L,this.shouldPushStackElementBefore=I.shouldPushStackElementBefore,this.shouldPushStackElementAfter=I.shouldPushStackElementAfter}return p}(),l=function(){function p(){}return p.visibleColumnFromColumn=function(_,L,I){for(var P=_.length,A=L-1<P?L-1:P,Q=0,K=0;K<A;){var H=le.u(_,A,K);if(K+=H>=65536?2:1,H===9)Q=p.nextRenderTabStop(Q,I);else{for(var V=le.s(H);K<A;){var de=le.u(_,A,K),_e=le.s(de);if(le.b(V,_e))break;K+=de>=65536?2:1,V=_e}le.y(H)||le.w(H)?Q=Q+2:Q=Q+1}}return Q},p.visibleColumnFromColumn2=function(_,L,I){return this.visibleColumnFromColumn(L.getLineContent(I.lineNumber),I.column,_.tabSize)},p.columnFromVisibleColumn=function(_,L,I){if(L<=0)return 1;for(var P=_.length,A=0,Q=1,K=0;K<P;){var H=le.u(_,P,K);K+=H>=65536?2:1;var V=void 0;if(H===9)V=p.nextRenderTabStop(A,I);else{for(var de=le.s(H);K<P;){var _e=le.u(_,P,K),Se=le.s(_e);if(le.b(de,Se))break;K+=_e>=65536?2:1,de=Se}le.y(H)||le.w(H)?V=A+2:V=A+1}var Ie=K+1;if(V>=L){var Pe=L-A,Ve=V-L;return Ve<Pe?Ie:Q}A=V,Q=Ie}return P+1},p.columnFromVisibleColumn2=function(_,L,I,P){var A=this.columnFromVisibleColumn(L.getLineContent(I),P,_.tabSize),Q=L.getLineMinColumn(I);if(A<Q)return Q;var K=L.getLineMaxColumn(I);return A>K?K:A},p.nextRenderTabStop=function(_,L){return _+L-_%L},p.nextIndentTabStop=function(_,L){return _+L-_%L},p.prevRenderTabStop=function(_,L){return _-1-(_-1)%L},p.prevIndentTabStop=function(_,L){return _-1-(_-1)%L},p}();function c(p){return p==="'"||p==='"'||p==="`"}},"M/lh":function(Lt,N,e){self.MonacoEnvironment=function(T){function le($){return $.replace(/\/$/,"")}return{getWorkerUrl:function($,R){var B=e.p,z=(B?le(B)+"/":"")+T[R];if(/^(http:)|(https:)|(file:)/.test(z)){var D=String(window.location),W=D.substr(0,D.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(z.substring(0,W.length)!==W){var x="/*"+R+'*/importScripts("'+z+'");';return"data:text/javascript;charset=utf-8,"+encodeURIComponent(x)}}return z}}}({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"}),e("SBYE"),e("bk7F"),e("KTWA"),e("w29/"),e("CxEt"),e("d6R0"),e("kqbb"),e("n01l"),e("fD5p"),e("1YUG"),e("5RaG"),e("/RFl"),e("oQaD"),e("dgXF"),e("bfR1"),e("cIJc"),e("lY/7"),e("AhDq"),e("8Ydt"),e("H4T2"),e("rugR"),e("oiKk"),e("GvMn"),e("gJAb"),e("dH+W"),e("2ESN"),e("8XyJ"),e("WwIK"),e("v+CO"),e("WQDh"),e("4sI4"),e("Q631"),e("10Fh"),e("tXSY"),e("ep4t"),e("vVA1"),e("k7pc"),e("ba9Q"),e("XtJs"),e("s7Km"),e("LUcL"),Lt.exports=e("8z58"),e("CdFp"),e("23p7"),e("OOlL"),e("li8W"),e("kdPm"),e("ApJL"),e("jrbv"),e("gqHg"),e("p3Ex"),e("E+ie"),e("9B1q"),e("9XAT"),e("SvYn"),e("I/Lx"),e("LexI"),e("0oIH"),e("+a1H"),e("hFdI"),e("c2dO"),e("zQEy"),e("k7mE"),e("cldp"),e("p5tG"),e("Dvnd"),e("FvUK"),e("ZvGG"),e("QFiB"),e("ZkA/"),e("/cAr"),e("xYNL"),e("jVwG"),e("6lNC"),e("q8qy"),e("sStQ"),e("oKJv"),e("H6Gb"),e("y3CF"),e("JlLP"),e("j2o1"),e("woZy"),e("iLY9"),e("Msxo"),e("ajgA"),e("QiAa"),e("pI2L"),e("yKqg"),e("ij/i"),e("XQgg"),e("Gb1F"),e("xmOD"),e("c9ML"),e("Mzro"),e("GZrW"),e("1lwE"),e("w9QG"),e("ufhN"),e("LRks"),e("BUKB"),e("n18v"),e("EOst"),e("z3hU"),e("nrBJ"),e("BEdG"),e("E4kL")},M1Kb:function(Lt,N,e){"use strict";e.d(N,"d",function(){return T}),e.d(N,"c",function(){return le}),e.d(N,"e",function(){return $}),e.d(N,"b",function(){return R}),e.d(N,"a",function(){return B});var T;(function(z){z[z.Left=1]="Left",z[z.Center=2]="Center",z[z.Right=4]="Right",z[z.Full=7]="Full"})(T||(T={}));var le;(function(z){z[z.Inline=1]="Inline",z[z.Gutter=2]="Gutter"})(le||(le={}));var $=function(){function z(D){this.tabSize=Math.max(1,D.tabSize|0),this.indentSize=D.tabSize|0,this.insertSpaces=Boolean(D.insertSpaces),this.defaultEOL=D.defaultEOL|0,this.trimAutoWhitespace=Boolean(D.trimAutoWhitespace)}return z.prototype.equals=function(D){return this.tabSize===D.tabSize&&this.indentSize===D.indentSize&&this.insertSpaces===D.insertSpaces&&this.defaultEOL===D.defaultEOL&&this.trimAutoWhitespace===D.trimAutoWhitespace},z.prototype.createChangeEvent=function(D){return{tabSize:this.tabSize!==D.tabSize,indentSize:this.indentSize!==D.indentSize,insertSpaces:this.insertSpaces!==D.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==D.trimAutoWhitespace}},z}(),R=function(){function z(D,W){this.range=D,this.matches=W}return z}(),B=function(){function z(D,W,x){this.reverseEdits=D,this.changes=W,this.trimAutoWhitespaceLineNumbers=x}return z}()},MD5Z:function(Lt,N,e){"use strict";e.d(N,"a",function(){return D}),e.d(N,"Tb",function(){return h}),e.d(N,"W",function(){return y}),e.d(N,"U",function(){return w}),e.d(N,"V",function(){return f}),e.d(N,"e",function(){return v}),e.d(N,"b",function(){return C}),e.d(N,"ec",function(){return g}),e.d(N,"dc",function(){return u}),e.d(N,"hc",function(){return s}),e.d(N,"Z",function(){return l}),e.d(N,"bb",function(){return c}),e.d(N,"ab",function(){return p}),e.d(N,"Y",function(){return _}),e.d(N,"X",function(){return L}),e.d(N,"fb",function(){return I}),e.d(N,"hb",function(){return P}),e.d(N,"gb",function(){return A}),e.d(N,"ib",function(){return Q}),e.d(N,"kb",function(){return K}),e.d(N,"jb",function(){return H}),e.d(N,"cb",function(){return V}),e.d(N,"eb",function(){return de}),e.d(N,"db",function(){return _e}),e.d(N,"Ob",function(){return Pe}),e.d(N,"Nb",function(){return Ve}),e.d(N,"c",function(){return ke}),e.d(N,"d",function(){return se}),e.d(N,"Vb",function(){return ee}),e.d(N,"Xb",function(){return ie}),e.d(N,"Yb",function(){return q}),e.d(N,"Wb",function(){return ce}),e.d(N,"Sb",function(){return Z}),e.d(N,"q",function(){return ye}),e.d(N,"p",function(){return je}),e.d(N,"P",function(){return Ge}),e.d(N,"O",function(){return ue}),e.d(N,"H",function(){return ve}),e.d(N,"G",function(){return Ee}),e.d(N,"z",function(){return xe}),e.d(N,"y",function(){return Ce}),e.d(N,"o",function(){return he}),e.d(N,"x",function(){return J}),e.d(N,"Q",function(){return b}),e.d(N,"S",function(){return F}),e.d(N,"R",function(){return re}),e.d(N,"T",function(){return ne}),e.d(N,"K",function(){return fe}),e.d(N,"L",function(){return Oe}),e.d(N,"F",function(){return Me}),e.d(N,"M",function(){return Ue}),e.d(N,"N",function(){return Je}),e.d(N,"r",function(){return nt}),e.d(N,"t",function(){return vt}),e.d(N,"v",function(){return Rt}),e.d(N,"s",function(){return Dt}),e.d(N,"u",function(){return Kt}),e.d(N,"w",function(){return ao}),e.d(N,"D",function(){return lo}),e.d(N,"A",function(){return so}),e.d(N,"C",function(){return jt}),e.d(N,"B",function(){return pt}),e.d(N,"E",function(){return gt}),e.d(N,"n",function(){return Tt}),e.d(N,"J",function(){return it}),e.d(N,"I",function(){return et}),e.d(N,"g",function(){return ut}),e.d(N,"h",function(){return Ct}),e.d(N,"j",function(){return ht}),e.d(N,"l",function(){return Et}),e.d(N,"k",function(){return Yt}),e.d(N,"m",function(){return Nt}),e.d(N,"i",function(){return bt}),e.d(N,"rb",function(){return $e}),e.d(N,"sb",function(){return Ye}),e.d(N,"lb",function(){return ze}),e.d(N,"mb",function(){return Ke}),e.d(N,"xb",function(){return ge}),e.d(N,"yb",function(){return G}),e.d(N,"wb",function(){return oe}),e.d(N,"ub",function(){return Y}),e.d(N,"vb",function(){return ae}),e.d(N,"nb",function(){return Fe}),e.d(N,"tb",function(){return dt}),e.d(N,"ob",function(){return Ot}),e.d(N,"qb",function(){return Qt}),e.d(N,"pb",function(){return to}),e.d(N,"gc",function(){return fo}),e.d(N,"Ab",function(){return ho}),e.d(N,"Bb",function(){return _o}),e.d(N,"zb",function(){return Do}),e.d(N,"Eb",function(){return Ro}),e.d(N,"Cb",function(){return jo}),e.d(N,"Db",function(){return Eo}),e.d(N,"Fb",function(){return Wo}),e.d(N,"bc",function(){return Ho}),e.d(N,"cc",function(){return Fo}),e.d(N,"Zb",function(){return Io}),e.d(N,"ac",function(){return tn}),e.d(N,"Lb",function(){return un}),e.d(N,"Mb",function(){return Vo}),e.d(N,"Hb",function(){return Cn}),e.d(N,"Ib",function(){return pn}),e.d(N,"Gb",function(){return rn}),e.d(N,"Jb",function(){return on}),e.d(N,"Pb",function(){return dn}),e.d(N,"Rb",function(){return Uo}),e.d(N,"Qb",function(){return Bo}),e.d(N,"f",function(){return St}),e.d(N,"fc",function(){return rt}),e.d(N,"Kb",function(){return Mt}),e.d(N,"Ub",function(){return M});var T=e("ic2d"),le=e("zrhQ"),$=e("MI8n"),R=e("3/fG"),B=e("3Rsk"),z=e("X+cX"),D={ColorContribution:"base.contributions.colors"},W=function(){function Ae(){this._onDidChangeSchema=new $.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return Ae.prototype.registerColor=function(Ne,lt,ft,At,Ft){At===void 0&&(At=!1);var Ut={id:Ne,description:ft,defaults:lt,needsTransparency:At,deprecationMessage:Ft};this.colorsById[Ne]=Ut;var Vt={type:"string",description:ft,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return Ft&&(Vt.deprecationMessage=Ft),this.colorSchema.properties[Ne]=Vt,this.colorReferenceSchema.enum.push(Ne),this.colorReferenceSchema.enumDescriptions.push(ft),this._onDidChangeSchema.fire(),Ne},Ae.prototype.resolveDefaultColor=function(Ne,lt){var ft=this.colorsById[Ne];if(ft&&ft.defaults){var At=ft.defaults[lt.type];return M(At,lt)}return},Ae.prototype.getColorSchema=function(){return this.colorSchema},Ae.prototype.toString=function(){var Ne=this,lt=function(ft,At){var Ft=ft.indexOf(".")===-1?0:1,Ut=At.indexOf(".")===-1?0:1;return Ft!==Ut?Ft-Ut:ft.localeCompare(At)};return Object.keys(this.colorsById).sort(lt).map(function(ft){return"- `"+ft+"`: "+Ne.colorsById[ft].description}).join(`
`)},Ae}(),x=new W;T.a.add(D.ColorContribution,x);function h(Ae,Ne,lt,ft,At){return x.registerColor(Ae,Ne,lt,ft,At)}var y=h("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},R.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),w=h("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},R.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),f=h("focusBorder",{dark:le.a.fromHex("#0E639C").transparent(.8),light:le.a.fromHex("#007ACC").transparent(.4),hc:"#F38518"},R.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),v=h("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},R.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),C=h("contrastActiveBorder",{light:null,dark:null,hc:f},R.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),g=h("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},R.a("textLinkForeground","Foreground color for links in text.")),u=h("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:le.a.black},R.a("textCodeBlockBackground","Background color for code blocks in text.")),s=h("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},R.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),l=h("input.background",{dark:"#3C3C3C",light:le.a.white,hc:le.a.black},R.a("inputBoxBackground","Input box background.")),c=h("input.foreground",{dark:y,light:y,hc:y},R.a("inputBoxForeground","Input box foreground.")),p=h("input.border",{dark:null,light:null,hc:v},R.a("inputBoxBorder","Input box border.")),_=h("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:v},R.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),L=h("inputOption.activeBackground",{dark:rt(f,.5),light:rt(f,.3),hc:null},R.a("inputOption.activeBackground","Background color of activated options in input fields.")),I=h("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:le.a.black},R.a("inputValidationInfoBackground","Input validation background color for information severity.")),P=h("inputValidation.infoForeground",{dark:null,light:null,hc:null},R.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),A=h("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:v},R.a("inputValidationInfoBorder","Input validation border color for information severity.")),Q=h("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:le.a.black},R.a("inputValidationWarningBackground","Input validation background color for warning severity.")),K=h("inputValidation.warningForeground",{dark:null,light:null,hc:null},R.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),H=h("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:v},R.a("inputValidationWarningBorder","Input validation border color for warning severity.")),V=h("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:le.a.black},R.a("inputValidationErrorBackground","Input validation background color for error severity.")),de=h("inputValidation.errorForeground",{dark:null,light:null,hc:null},R.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),_e=h("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:v},R.a("inputValidationErrorBorder","Input validation border color for error severity.")),Se=h("dropdown.background",{dark:"#3C3C3C",light:le.a.white,hc:le.a.black},R.a("dropdownBackground","Dropdown background.")),Ie=h("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:le.a.white},R.a("dropdownForeground","Dropdown foreground.")),Pe=h("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:le.a.white},R.a("pickerGroupForeground","Quick picker color for grouping labels.")),Ve=h("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:le.a.white},R.a("pickerGroupBorder","Quick picker color for grouping borders.")),ke=h("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:le.a.black},R.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),se=h("badge.foreground",{dark:le.a.white,light:"#333",hc:le.a.white},R.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),ee=h("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},R.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),ie=h("scrollbarSlider.background",{dark:le.a.fromHex("#797979").transparent(.4),light:le.a.fromHex("#646464").transparent(.4),hc:rt(v,.6)},R.a("scrollbarSliderBackground","Scrollbar slider background color.")),q=h("scrollbarSlider.hoverBackground",{dark:le.a.fromHex("#646464").transparent(.7),light:le.a.fromHex("#646464").transparent(.7),hc:rt(v,.8)},R.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),ce=h("scrollbarSlider.activeBackground",{dark:le.a.fromHex("#BFBFBF").transparent(.4),light:le.a.fromHex("#000000").transparent(.6),hc:v},R.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),Z=h("progressBar.background",{dark:le.a.fromHex("#0E70C0"),light:le.a.fromHex("#0E70C0"),hc:v},R.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),ye=h("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},R.a("editorError.foreground","Foreground color of error squigglies in the editor.")),je=h("editorError.border",{dark:null,light:null,hc:le.a.fromHex("#E47777").transparent(.8)},R.a("errorBorder","Border color of error boxes in the editor.")),Ge=h("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},R.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),ue=h("editorWarning.border",{dark:null,light:null,hc:le.a.fromHex("#FFCC00").transparent(.8)},R.a("warningBorder","Border color of warning boxes in the editor.")),ve=h("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},R.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Ee=h("editorInfo.border",{dark:null,light:null,hc:le.a.fromHex("#75BEFF").transparent(.8)},R.a("infoBorder","Border color of info boxes in the editor.")),xe=h("editorHint.foreground",{dark:le.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},R.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Ce=h("editorHint.border",{dark:null,light:null,hc:le.a.fromHex("#eeeeee").transparent(.8)},R.a("hintBorder","Border color of hint boxes in the editor.")),he=h("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:le.a.black},R.a("editorBackground","Editor background color.")),J=h("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:le.a.white},R.a("editorForeground","Editor default foreground color.")),b=h("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},R.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),F=h("editorWidget.foreground",{dark:y,light:y,hc:y},R.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),re=h("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:v},R.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.")),ne=h("editorWidget.resizeBorder",{light:null,dark:null,hc:null},R.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.")),fe=h("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},R.a("editorSelectionBackground","Color of the editor selection.")),Oe=h("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},R.a("editorSelectionForeground","Color of the selected text for high contrast.")),Me=h("editor.inactiveSelectionBackground",{light:rt(fe,.5),dark:rt(fe,.5),hc:rt(fe,.5)},R.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Ue=h("editor.selectionHighlightBackground",{light:be(fe,he,.3,.6),dark:be(fe,he,.3,.6),hc:null},R.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),Je=h("editor.selectionHighlightBorder",{light:null,dark:null,hc:C},R.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),nt=h("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},R.a("editorFindMatch","Color of the current search match.")),vt=h("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},R.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Rt=h("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},R.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Dt=h("editor.findMatchBorder",{light:null,dark:null,hc:C},R.a("editorFindMatchBorder","Border color of the current search match.")),Kt=h("editor.findMatchHighlightBorder",{light:null,dark:null,hc:C},R.a("findMatchHighlightBorder","Border color of the other search matches.")),ao=h("editor.findRangeHighlightBorder",{dark:null,light:null,hc:rt(C,.4)},R.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),lo=h("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},R.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),so=h("editorHoverWidget.background",{light:b,dark:b,hc:b},R.a("hoverBackground","Background color of the editor hover.")),jt=h("editorHoverWidget.foreground",{light:F,dark:F,hc:F},R.a("hoverForeground","Foreground color of the editor hover.")),pt=h("editorHoverWidget.border",{light:re,dark:re,hc:re},R.a("hoverBorder","Border color of the editor hover.")),gt=h("editorHoverWidget.statusBarBackground",{dark:st(so,.2),light:St(so,.05),hc:b},R.a("statusBarBackground","Background color of the editor hover status bar.")),Tt=h("editorLink.activeForeground",{dark:"#4E94CE",light:le.a.blue,hc:le.a.cyan},R.a("activeLinkForeground","Color of active links.")),it=h("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},R.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),et=h("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},R.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),ut=new le.a(new le.c(155,185,85,.2)),Ct=new le.a(new le.c(255,0,0,.2)),ht=h("diffEditor.insertedTextBackground",{dark:ut,light:ut,hc:null},R.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Et=h("diffEditor.removedTextBackground",{dark:Ct,light:Ct,hc:null},R.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Yt=h("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},R.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Nt=h("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},R.a("diffEditorRemovedOutline","Outline color for text that got removed.")),bt=h("diffEditor.border",{dark:null,light:null,hc:v},R.a("diffEditorBorder","Border color between the two text editors.")),$e=h("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},R.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.")),Ye=h("list.focusForeground",{dark:null,light:null,hc:null},R.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.")),ze=h("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},R.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.")),Ke=h("list.activeSelectionForeground",{dark:le.a.white,light:le.a.white,hc:null},R.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.")),ge=h("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},R.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.")),G=h("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},R.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.")),oe=h("list.inactiveFocusBackground",{dark:null,light:null,hc:null},R.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.")),Y=h("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},R.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),ae=h("list.hoverForeground",{dark:null,light:null,hc:null},R.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),Fe=h("list.dropBackground",{dark:$e,light:$e,hc:null},R.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),dt=h("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:f},R.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Ot=h("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:le.a.black},R.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Qt=h("listFilterWidget.outline",{dark:le.a.transparent,light:le.a.transparent,hc:"#f38518"},R.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),to=h("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:v},R.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),fo=h("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},R.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),ho=h("menu.border",{dark:null,light:null,hc:v},R.a("menuBorder","Border color of menus.")),_o=h("menu.foreground",{dark:Ie,light:y,hc:Ie},R.a("menuForeground","Foreground color of menu items.")),Do=h("menu.background",{dark:Se,light:Se,hc:Se},R.a("menuBackground","Background color of menu items.")),Ro=h("menu.selectionForeground",{dark:Ke,light:Ke,hc:Ke},R.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),jo=h("menu.selectionBackground",{dark:ze,light:ze,hc:ze},R.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Eo=h("menu.selectionBorder",{dark:null,light:null,hc:C},R.a("menuSelectionBorder","Border color of the selected menu item in menus.")),Wo=h("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:v},R.a("menuSeparatorBackground","Color of a separator menu item in menus.")),Ho=h("editor.snippetTabstopHighlightBackground",{dark:new le.a(new le.c(124,124,124,.3)),light:new le.a(new le.c(10,50,100,.2)),hc:new le.a(new le.c(124,124,124,.3))},R.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Fo=h("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},R.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Io=h("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},R.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),tn=h("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new le.a(new le.c(10,50,100,.5)),hc:"#525252"},R.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),un=h("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},R.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Vo=h("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},R.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Cn=h("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},R.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),pn=h("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},R.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),rn=h("minimap.errorHighlight",{dark:new le.a(new le.c(255,18,18,.7)),light:new le.a(new le.c(255,18,18,.7)),hc:new le.a(new le.c(255,50,50,1))},R.a("minimapError","Minimap marker color for errors.")),on=h("minimap.warningHighlight",{dark:Ge,light:Ge,hc:ue},R.a("overviewRuleWarning","Minimap marker color for warnings.")),dn=h("problemsErrorIcon.foreground",{dark:ye,light:ye,hc:ye},R.a("problemsErrorIconForeground","The color used for the problems error icon.")),Uo=h("problemsWarningIcon.foreground",{dark:Ge,light:Ge,hc:Ge},R.a("problemsWarningIconForeground","The color used for the problems warning icon.")),Bo=h("problemsInfoIcon.foreground",{dark:ve,light:ve,hc:ve},R.a("problemsInfoIconForeground","The color used for the problems info icon."));function St(Ae,Ne){return function(lt){var ft=M(Ae,lt);return ft?ft.darken(Ne):void 0}}function st(Ae,Ne){return function(lt){var ft=M(Ae,lt);return ft?ft.lighten(Ne):void 0}}function rt(Ae,Ne){return function(lt){var ft=M(Ae,lt);return ft?ft.transparent(Ne):void 0}}function Mt(){for(var Ae=[],Ne=0;Ne<arguments.length;Ne++)Ae[Ne]=arguments[Ne];return function(lt){for(var ft=0,At=Ae;ft<At.length;ft++){var Ft=At[ft],Ut=M(Ft,lt);if(Ut)return Ut}return}}function be(Ae,Ne,lt,ft){return function(At){var Ft=M(Ae,At);if(Ft){var Ut=M(Ne,At);return Ut?Ft.isDarkerThan(Ut)?le.a.getLighterColor(Ft,Ut,lt).transparent(ft):le.a.getDarkerColor(Ft,Ut,lt).transparent(ft):Ft.transparent(lt*ft)}return}}function M(Ae,Ne){return Ae===null?void 0:typeof Ae=="string"?Ae[0]==="#"?le.a.fromHex(Ae):Ne.getColor(Ae):Ae instanceof le.a?Ae:typeof Ae=="function"?Ae(Ne):void 0}var j="vscode://schemas/workbench-colors",X=T.a.as(B.a.JSONContribution);X.registerSchema(j,x.getColorSchema());var Te=new z.d(function(){return X.notifySchemaChanged(j)},200);x.onDidChangeSchema(function(){Te.isScheduled()||Te.schedule()})},MI8n:function(Lt,N,e){"use strict";e.d(N,"b",function(){return z}),e.d(N,"a",function(){return x}),e.d(N,"e",function(){return h}),e.d(N,"d",function(){return y}),e.d(N,"c",function(){return w}),e.d(N,"f",function(){return f});var T=e("/cxE"),le=e("C/vA"),$=e("pmY6"),R=e("24hK"),B=function(){var v=function(C,g){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,s){u.__proto__=s}||function(u,s){for(var l in s)s.hasOwnProperty(l)&&(u[l]=s[l])},v(C,g)};return function(C,g){v(C,g);function u(){this.constructor=C}C.prototype=g===null?Object.create(g):(u.prototype=g.prototype,new u)}}(),z;(function(v){v.None=function(){return $.a.None};function C(Se){return function(Ie,Pe,Ve){Pe===void 0&&(Pe=null);var ke=!1,se;return se=Se(function(ee){return ke?void 0:(se?se.dispose():ke=!0,Ie.call(Pe,ee))},null,Ve),ke&&se.dispose(),se}}v.once=C;function g(Se,Ie){return _(function(Pe,Ve,ke){return Ve===void 0&&(Ve=null),Se(function(se){return Pe.call(Ve,Ie(se))},null,ke)})}v.map=g;function u(Se,Ie){return _(function(Pe,Ve,ke){return Ve===void 0&&(Ve=null),Se(function(se){Ie(se),Pe.call(Ve,se)},null,ke)})}v.forEach=u;function s(Se,Ie){return _(function(Pe,Ve,ke){return Ve===void 0&&(Ve=null),Se(function(se){return Ie(se)&&Pe.call(Ve,se)},null,ke)})}v.filter=s;function l(Se){return Se}v.signal=l;function c(){for(var Se=[],Ie=0;Ie<arguments.length;Ie++)Se[Ie]=arguments[Ie];return function(Pe,Ve,ke){return Ve===void 0&&(Ve=null),$.e.apply(void 0,Se.map(function(se){return se(function(ee){return Pe.call(Ve,ee)},null,ke)}))}}v.any=c;function p(Se,Ie,Pe){var Ve=Pe;return g(Se,function(ke){return Ve=Ie(Ve,ke),Ve})}v.reduce=p;function _(Se){var Ie,Pe=new x({onFirstListenerAdd:function(){Ie=Se(Pe.fire,Pe)},onLastListenerRemove:function(){Ie.dispose()}});return Pe.event}v.snapshot=_;function L(Se,Ie,Pe,Ve,ke){Pe===void 0&&(Pe=100),Ve===void 0&&(Ve=!1);var se,ee=void 0,ie=void 0,q=0,ce=new x({leakWarningThreshold:ke,onFirstListenerAdd:function(){se=Se(function(Z){q++,ee=Ie(ee,Z),Ve&&!ie&&(ce.fire(ee),ee=void 0),clearTimeout(ie),ie=setTimeout(function(){var ye=ee;ee=void 0,ie=void 0,(!Ve||q>1)&&ce.fire(ye),q=0},Pe)})},onLastListenerRemove:function(){se.dispose()}});return ce.event}v.debounce=L;function I(Se){var Ie=new Date().getTime();return g(C(Se),function(Pe){return new Date().getTime()-Ie})}v.stopwatch=I;function P(Se){var Ie=!0,Pe;return s(Se,function(Ve){var ke=Ie||Ve!==Pe;return Ie=!1,Pe=Ve,ke})}v.latch=P;function A(Se,Ie,Pe){Ie===void 0&&(Ie=!1),Pe===void 0&&(Pe=[]);var Ve=Pe.slice(),ke=Se(function(ie){Ve?Ve.push(ie):ee.fire(ie)}),se=function(){Ve&&Ve.forEach(function(ie){return ee.fire(ie)}),Ve=null},ee=new x({onFirstListenerAdd:function(){ke||(ke=Se(function(ie){return ee.fire(ie)}))},onFirstListenerDidAdd:function(){Ve&&(Ie?setTimeout(se):se())},onLastListenerRemove:function(){ke&&ke.dispose(),ke=null}});return ee.event}v.buffer=A;var Q=function(){function Se(Ie){this.event=Ie}return Se.prototype.map=function(Ie){return new Se(g(this.event,Ie))},Se.prototype.forEach=function(Ie){return new Se(u(this.event,Ie))},Se.prototype.filter=function(Ie){return new Se(s(this.event,Ie))},Se.prototype.reduce=function(Ie,Pe){return new Se(p(this.event,Ie,Pe))},Se.prototype.latch=function(){return new Se(P(this.event))},Se.prototype.debounce=function(Ie,Pe,Ve,ke){return Pe===void 0&&(Pe=100),Ve===void 0&&(Ve=!1),new Se(L(this.event,Ie,Pe,Ve,ke))},Se.prototype.on=function(Ie,Pe,Ve){return this.event(Ie,Pe,Ve)},Se.prototype.once=function(Ie,Pe,Ve){return C(this.event)(Ie,Pe,Ve)},Se}();function K(Se){return new Q(Se)}v.chain=K;function H(Se,Ie,Pe){Pe===void 0&&(Pe=function(ie){return ie});var Ve=function(){for(var ie=[],q=0;q<arguments.length;q++)ie[q]=arguments[q];return ee.fire(Pe.apply(void 0,ie))},ke=function(){return Se.on(Ie,Ve)},se=function(){return Se.removeListener(Ie,Ve)},ee=new x({onFirstListenerAdd:ke,onLastListenerRemove:se});return ee.event}v.fromNodeEventEmitter=H;function V(Se,Ie,Pe){Pe===void 0&&(Pe=function(ie){return ie});var Ve=function(){for(var ie=[],q=0;q<arguments.length;q++)ie[q]=arguments[q];return ee.fire(Pe.apply(void 0,ie))},ke=function(){return Se.addEventListener(Ie,Ve)},se=function(){return Se.removeEventListener(Ie,Ve)},ee=new x({onFirstListenerAdd:ke,onLastListenerRemove:se});return ee.event}v.fromDOMEventEmitter=V;function de(Se){var Ie=new x,Pe=!1;return Se.then(void 0,function(){return null}).then(function(){Pe?Ie.fire(void 0):setTimeout(function(){return Ie.fire(void 0)},0)}),Pe=!0,Ie.event}v.fromPromise=de;function _e(Se){return new Promise(function(Ie){return C(Se)(Ie)})}v.toPromise=_e})(z||(z={}));var D=-1,W=function(){function v(C,g){g===void 0&&(g=Math.random().toString(18).slice(2,5)),this.customThreshold=C,this.name=g,this._warnCountdown=0}return v.prototype.dispose=function(){this._stacks&&this._stacks.clear()},v.prototype.check=function(C){var g=this,u=D;if(typeof this.customThreshold=="number"&&(u=this.customThreshold),u<=0||C<u)return;this._stacks||(this._stacks=new Map);var s=new Error().stack.split(`
`).slice(3).join(`
`),l=this._stacks.get(s)||0;if(this._stacks.set(s,l+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=u*.5;var c,p=0;this._stacks.forEach(function(_,L){(!c||p<_)&&(c=L,p=_)}),console.warn("["+this.name+"] potential listener LEAK detected, having "+C+" listeners already. MOST frequent listener ("+p+"):"),console.warn(c)}return function(){var _=g._stacks.get(s)||0;g._stacks.set(s,_-1)}},v}(),x=function(){function v(C){this._disposed=!1,this._options=C,this._leakageMon=D>0?new W(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(v.prototype,"event",{get:function(){var C=this;return this._event||(this._event=function(g,u,s){C._listeners||(C._listeners=new R.a);var l=C._listeners.isEmpty();l&&C._options&&C._options.onFirstListenerAdd&&C._options.onFirstListenerAdd(C);var c=C._listeners.push(u?[g,u]:g);l&&C._options&&C._options.onFirstListenerDidAdd&&C._options.onFirstListenerDidAdd(C),C._options&&C._options.onListenerDidAdd&&C._options.onListenerDidAdd(C,g,u);var p;C._leakageMon&&(p=C._leakageMon.check(C._listeners.size));var _;return _={dispose:function(){if(p&&p(),_.dispose=v._noop,!C._disposed&&(c(),C._options&&C._options.onLastListenerRemove)){var L=C._listeners&&!C._listeners.isEmpty();L||C._options.onLastListenerRemove(C)}}},s instanceof $.b?s.add(_):Array.isArray(s)&&s.push(_),_}),this._event},enumerable:!0,configurable:!0}),v.prototype.fire=function(C){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new R.a);for(var g=this._listeners.iterator(),u=g.next();!u.done;u=g.next())this._deliveryQueue.push([u.value,C]);for(;this._deliveryQueue.size>0;){var s=this._deliveryQueue.shift(),l=s[0],c=s[1];try{typeof l=="function"?l.call(void 0,c):l[0].call(l[1],c)}catch(p){Object(T.e)(p)}}}},v.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},v._noop=function(){},v}(),h=function(v){B(C,v);function C(g){var u=v.call(this,g)||this;return u._isPaused=0,u._eventQueue=new R.a,u._mergeFn=g&&g.merge,u}return C.prototype.pause=function(){this._isPaused++},C.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var g=this._eventQueue.toArray();this._eventQueue.clear(),v.prototype.fire.call(this,this._mergeFn(g))}else for(;!this._isPaused&&this._eventQueue.size!==0;)v.prototype.fire.call(this,this._eventQueue.shift())},C.prototype.fire=function(g){this._listeners&&(this._isPaused!==0?this._eventQueue.push(g):v.prototype.fire.call(this,g))},C}(x),y=function(){function v(){var C=this;this.hasListeners=!1,this.events=[],this.emitter=new x({onFirstListenerAdd:function(){return C.onFirstListenerAdd()},onLastListenerRemove:function(){return C.onLastListenerRemove()}})}return Object.defineProperty(v.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),v.prototype.add=function(C){var g=this,u={event:C,listener:null};this.events.push(u),this.hasListeners&&this.hook(u);var s=function(){g.hasListeners&&g.unhook(u);var l=g.events.indexOf(u);g.events.splice(l,1)};return Object($.h)(Object(le.a)(s))},v.prototype.onFirstListenerAdd=function(){var C=this;this.hasListeners=!0,this.events.forEach(function(g){return C.hook(g)})},v.prototype.onLastListenerRemove=function(){var C=this;this.hasListeners=!1,this.events.forEach(function(g){return C.unhook(g)})},v.prototype.hook=function(C){var g=this;C.listener=C.event(function(u){return g.emitter.fire(u)})},v.prototype.unhook=function(C){C.listener&&C.listener.dispose(),C.listener=null},v.prototype.dispose=function(){this.emitter.dispose()},v}(),w=function(){function v(){this.buffers=[]}return v.prototype.wrapEvent=function(C){var g=this;return function(u,s,l){return C(function(c){var p=g.buffers[g.buffers.length-1];p?p.push(function(){return u.call(s,c)}):u.call(s,c)},void 0,l)}},v.prototype.bufferEvents=function(C){var g=[];this.buffers.push(g);var u=C();return this.buffers.pop(),g.forEach(function(s){return s()}),u},v}(),f=function(){function v(){var C=this;this.listening=!1,this.inputEvent=z.None,this.inputEventListener=$.a.None,this.emitter=new x({onFirstListenerDidAdd:function(){C.listening=!0,C.inputEventListener=C.inputEvent(C.emitter.fire,C.emitter)},onLastListenerRemove:function(){C.listening=!1,C.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(v.prototype,"input",{set:function(C){this.inputEvent=C,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=C(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),v.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},v}()},MNXI:function(Lt,N,e){},MNsG:function(Lt,N,e){"use strict";(function(T,le){e.d(N,"h",function(){return l}),e.d(N,"e",function(){return c}),e.d(N,"d",function(){return p}),e.d(N,"f",function(){return _}),e.d(N,"g",function(){return L}),e.d(N,"c",function(){return I}),e.d(N,"b",function(){return A}),e.d(N,"i",function(){return Q}),e.d(N,"a",function(){return K});var $="en",R=!1,B=!1,z=!1,D=!1,W=!1,x=!1,h=void 0,y=$,w=void 0,f=void 0,v=typeof T!="undefined"&&typeof T.versions!="undefined"&&typeof T.versions.electron!="undefined"&&T.type==="renderer";if(typeof navigator=="object"&&!v)f=navigator.userAgent,R=f.indexOf("Windows")>=0,B=f.indexOf("Macintosh")>=0,x=f.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,z=f.indexOf("Linux")>=0,W=!0,h=navigator.language,y=h;else if(typeof T=="object"){R=T.platform==="win32",B=T.platform==="darwin",z=T.platform==="linux",h=$,y=$;var C=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(C)try{var g=JSON.parse(C),u=g.availableLanguages["*"];h=g.locale,y=u||$,w=g._translationsConfigFile}catch(H){}D=!0}var s=0;B?s=1:R?s=3:z&&(s=2);var l=R,c=B,p=z,_=D,L=W,I=x,P=typeof self=="object"?self:typeof le=="object"?le:{},A=P,Q=function(){if(A.setImmediate)return A.setImmediate.bind(A);if(typeof A.postMessage=="function"&&!A.importScripts){var V=[];A.addEventListener("message",function(Se){if(Se.data&&Se.data.vscodeSetImmediateId)for(var Ie=0,Pe=V.length;Ie<Pe;Ie++){var Ve=V[Ie];if(Ve.id===Se.data.vscodeSetImmediateId){V.splice(Ie,1),Ve.callback();return}}});var de=0;return function(Se){var Ie=++de;V.push({id:Ie,callback:Se}),A.postMessage({vscodeSetImmediateId:Ie},"*")}}if(typeof T!="undefined"&&typeof T.nextTick=="function")return T.nextTick.bind(T);var _e=Promise.resolve();return function(Se){return _e.then(Se)}}(),K=B?2:R?1:3}).call(this,e("Q2Ig"),e("IyRk"))},MXAL:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le}),e.d(N,"b",function(){return $});var T=e("CZ1j"),le=function(){function R(B){var z=Object(T.b)(B);this._defaultValue=z,this._asciiMap=R._createAsciiMap(z),this._map=new Map}return R._createAsciiMap=function(B){for(var z=new Uint8Array(256),D=0;D<256;D++)z[D]=B;return z},R.prototype.set=function(B,z){var D=Object(T.b)(z);B>=0&&B<256?this._asciiMap[B]=D:this._map.set(B,D)},R.prototype.get=function(B){return B>=0&&B<256?this._asciiMap[B]:this._map.get(B)||this._defaultValue},R}(),$=function(){function R(){this._actual=new le(0)}return R.prototype.add=function(B){this._actual.set(B,1)},R.prototype.has=function(B){return this._actual.get(B)===1},R}()},Md8J:function(Lt,N,e){"use strict";e.d(N,"c",function(){return le}),e.d(N,"b",function(){return $}),e.d(N,"a",function(){return R});var T=e("EffR");function le(h,y){y===void 0&&(y={});var w=R(y);return w.textContent=h,w}function $(h,y){y===void 0&&(y={});var w=R(y);return z(w,D(h),y.actionHandler),w}function R(h){var y=h.inline?"span":"div",w=document.createElement(y);return h.className&&(w.className=h.className),w}var B=function(){function h(y){this.source=y,this.index=0}return h.prototype.eos=function(){return this.index>=this.source.length},h.prototype.next=function(){var y=this.peek();return this.advance(),y},h.prototype.peek=function(){return this.source[this.index]},h.prototype.advance=function(){this.index++},h}();function z(h,y,w){var f;if(y.type===2)f=document.createTextNode(y.content||"");else if(y.type===3)f=document.createElement("b");else if(y.type===4)f=document.createElement("i");else if(y.type===5&&w){var v=document.createElement("a");v.href="#",w.disposeables.add(T.o(v,"click",function(C){w.callback(String(y.index),C)})),f=v}else y.type===7?f=document.createElement("br"):y.type===1&&(f=h);f&&h!==f&&h.appendChild(f),f&&Array.isArray(y.children)&&y.children.forEach(function(C){z(f,C,w)})}function D(h){for(var y={type:1,children:[]},w=0,f=y,v=[],C=new B(h);!C.eos();){var g=C.next(),u=g==="\\"&&x(C.peek())!==0;if(u&&(g=C.next()),!u&&W(g)&&g===C.peek()){C.advance(),f.type===2&&(f=v.pop());var s=x(g);if(f.type===s||f.type===5&&s===6)f=v.pop();else{var l={type:s,children:[]};s===5&&(l.index=w,w++),f.children.push(l),v.push(f),f=l}}else if(g===`
`)f.type===2&&(f=v.pop()),f.children.push({type:7});else if(f.type!==2){var c={type:2,content:g};f.children.push(c),v.push(f),f=c}else f.content+=g}return f.type===2&&(f=v.pop()),v.length,y}function W(h){return x(h)!==0}function x(h){switch(h){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},MqQJ:function(Lt,N,e){"use strict";e.d(N,"a",function(){return W}),e.d(N,"c",function(){return x}),e.d(N,"b",function(){return h});var T=e("3/fG"),le=e("MI8n"),$=e("twdY"),R=e("cMvZ"),B=e("ic2d"),z={ModesRegistry:"editor.modesRegistry"},D=function(){function y(){this._onDidChangeLanguages=new le.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return y.prototype.registerLanguage=function(w){this._languages.push(w),this._onDidChangeLanguages.fire(void 0)},y.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},y}(),W=new D;B.a.add(z.ModesRegistry,W);var x="plaintext",h=new $.r(x,1);W.registerLanguage({id:x,extensions:[".txt",".gitignore"],aliases:[T.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),R.a.register(h,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},MrjW:function(Lt,N,e){"use strict";e.r(N),e.d(N,"win32",function(){return l}),e.d(N,"posix",function(){return c}),e.d(N,"normalize",function(){return p}),e.d(N,"join",function(){return _}),e.d(N,"relative",function(){return L}),e.d(N,"dirname",function(){return I}),e.d(N,"basename",function(){return P}),e.d(N,"extname",function(){return A}),e.d(N,"sep",function(){return Q});var T=e("wxcJ"),le=function(){var K=function(H,V){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,_e){de.__proto__=_e}||function(de,_e){for(var Se in _e)_e.hasOwnProperty(Se)&&(de[Se]=_e[Se])},K(H,V)};return function(H,V){K(H,V);function de(){this.constructor=H}H.prototype=V===null?Object.create(V):(de.prototype=V.prototype,new de)}}(),$=65,R=97,B=90,z=122,D=46,W=47,x=92,h=58,y=63,w=function(K){le(H,K);function H(V,de,_e){var Se=this,Ie;typeof de=="string"&&de.indexOf("not ")===0?(Ie="must not be",de=de.replace(/^not /,"")):Ie="must be";var Pe=V.indexOf(".")!==-1?"property":"argument",Ve='The "'+V+'" '+Pe+" "+Ie+" of type "+de;return Ve+=". Received type "+typeof _e,Se=K.call(this,Ve)||this,Se.code="ERR_INVALID_ARG_TYPE",Se}return H}(Error);function f(K,H){if(typeof K!="string")throw new w(H,"string",K)}function v(K){return K===W||K===x}function C(K){return K===W}function g(K){return K>=$&&K<=B||K>=R&&K<=z}function u(K,H,V,de){for(var _e="",Se=0,Ie=-1,Pe=0,Ve,ke=0;ke<=K.length;++ke){if(ke<K.length)Ve=K.charCodeAt(ke);else{if(de(Ve))break;Ve=W}if(de(Ve)){if(!(Ie===ke-1||Pe===1))if(Ie!==ke-1&&Pe===2){if(_e.length<2||Se!==2||_e.charCodeAt(_e.length-1)!==D||_e.charCodeAt(_e.length-2)!==D){if(_e.length>2){var se=_e.lastIndexOf(V);se===-1?(_e="",Se=0):(_e=_e.slice(0,se),Se=_e.length-1-_e.lastIndexOf(V)),Ie=ke,Pe=0;continue}else if(_e.length===2||_e.length===1){_e="",Se=0,Ie=ke,Pe=0;continue}}H&&(_e.length>0?_e+=V+"..":_e="..",Se=2)}else _e.length>0?_e+=V+K.slice(Ie+1,ke):_e=K.slice(Ie+1,ke),Se=ke-Ie-1;Ie=ke,Pe=0}else Ve===D&&Pe!==-1?++Pe:Pe=-1}return _e}function s(K,H){var V=H.dir||H.root,de=H.base||(H.name||"")+(H.ext||"");return V?V===H.root?V+de:V+K+de:de}var l={resolve:function(){for(var K=[],H=0;H<arguments.length;H++)K[H]=arguments[H];for(var V="",de="",_e=!1,Se=K.length-1;Se>=-1;Se--){var Ie=void 0;if(Se>=0?Ie=K[Se]:V?(Ie=T.b["="+V]||T.a(),(Ie===void 0||Ie.slice(0,3).toLowerCase()!==V.toLowerCase()+"\\")&&(Ie=V+"\\")):Ie=T.a(),f(Ie,"path"),Ie.length===0)continue;var Pe=Ie.length,Ve=0,ke="",se=!1,ee=Ie.charCodeAt(0);if(Pe>1)if(v(ee))if(se=!0,v(Ie.charCodeAt(1))){for(var ie=2,q=ie;ie<Pe&&!v(Ie.charCodeAt(ie));++ie);if(ie<Pe&&ie!==q){var ce=Ie.slice(q,ie);for(q=ie;ie<Pe&&v(Ie.charCodeAt(ie));++ie);if(ie<Pe&&ie!==q){for(q=ie;ie<Pe&&!v(Ie.charCodeAt(ie));++ie);ie===Pe?(ke="\\\\"+ce+"\\"+Ie.slice(q),Ve=ie):ie!==q&&(ke="\\\\"+ce+"\\"+Ie.slice(q,ie),Ve=ie)}}}else Ve=1;else g(ee)&&(Ie.charCodeAt(1)===h&&(ke=Ie.slice(0,2),Ve=2,Pe>2&&(v(Ie.charCodeAt(2))&&(se=!0,Ve=3))));else v(ee)&&(Ve=1,se=!0);if(ke.length>0&&V.length>0&&ke.toLowerCase()!==V.toLowerCase())continue;if(V.length===0&&ke.length>0&&(V=ke),_e||(de=Ie.slice(Ve)+"\\"+de,_e=se),V.length>0&&_e)break}return de=u(de,!_e,"\\",v),V+(_e?"\\":"")+de||"."},normalize:function(K){f(K,"path");var H=K.length;if(H===0)return".";var V=0,de,_e=!1,Se=K.charCodeAt(0);if(H>1)if(v(Se))if(_e=!0,v(K.charCodeAt(1))){for(var Ie=2,Pe=Ie;Ie<H&&!v(K.charCodeAt(Ie));++Ie);if(Ie<H&&Ie!==Pe){var Ve=K.slice(Pe,Ie);for(Pe=Ie;Ie<H&&v(K.charCodeAt(Ie));++Ie);if(Ie<H&&Ie!==Pe){for(Pe=Ie;Ie<H&&!v(K.charCodeAt(Ie));++Ie);if(Ie===H)return"\\\\"+Ve+"\\"+K.slice(Pe)+"\\";Ie!==Pe&&(de="\\\\"+Ve+"\\"+K.slice(Pe,Ie),V=Ie)}}}else V=1;else g(Se)&&(K.charCodeAt(1)===h&&(de=K.slice(0,2),V=2,H>2&&(v(K.charCodeAt(2))&&(_e=!0,V=3))));else if(v(Se))return"\\";var ke;return V<H?ke=u(K.slice(V),!_e,"\\",v):ke="",ke.length===0&&!_e&&(ke="."),ke.length>0&&v(K.charCodeAt(H-1))&&(ke+="\\"),de===void 0?_e?ke.length>0?"\\"+ke:"\\":ke.length>0?ke:"":_e?ke.length>0?de+"\\"+ke:de+"\\":ke.length>0?de+ke:de},isAbsolute:function(K){f(K,"path");var H=K.length;if(H===0)return!1;var V=K.charCodeAt(0);return v(V)?!0:!!(g(V)&&(H>2&&K.charCodeAt(1)===h&&v(K.charCodeAt(2))))},join:function(){for(var K=[],H=0;H<arguments.length;H++)K[H]=arguments[H];if(K.length===0)return".";for(var V,de,_e=0;_e<K.length;++_e){var Se=K[_e];f(Se,"path"),Se.length>0&&(V===void 0?V=de=Se:V+="\\"+Se)}if(V===void 0)return".";var Ie=!0,Pe=0;if(typeof de=="string"&&v(de.charCodeAt(0))){++Pe;var Ve=de.length;Ve>1&&(v(de.charCodeAt(1))&&(++Pe,Ve>2&&(v(de.charCodeAt(2))?++Pe:Ie=!1)))}if(Ie){for(;Pe<V.length&&v(V.charCodeAt(Pe));++Pe);Pe>=2&&(V="\\"+V.slice(Pe))}return l.normalize(V)},relative:function(K,H){if(f(K,"from"),f(H,"to"),K===H)return"";var V=l.resolve(K),de=l.resolve(H);if(V===de)return"";if(K=V.toLowerCase(),H=de.toLowerCase(),K===H)return"";for(var _e=0;_e<K.length&&!(K.charCodeAt(_e)!==x);++_e);for(var Se=K.length;Se-1>_e&&!(K.charCodeAt(Se-1)!==x);--Se);for(var Ie=Se-_e,Pe=0;Pe<H.length&&!(H.charCodeAt(Pe)!==x);++Pe);for(var Ve=H.length;Ve-1>Pe&&!(H.charCodeAt(Ve-1)!==x);--Ve);for(var ke=Ve-Pe,se=Ie<ke?Ie:ke,ee=-1,ie=0;ie<=se;++ie){if(ie===se){if(ke>se){if(H.charCodeAt(Pe+ie)===x)return de.slice(Pe+ie+1);if(ie===2)return de.slice(Pe+ie)}Ie>se&&(K.charCodeAt(_e+ie)===x?ee=ie:ie===2&&(ee=3));break}var q=K.charCodeAt(_e+ie),ce=H.charCodeAt(Pe+ie);if(q!==ce)break;q===x&&(ee=ie)}if(ie!==se&&ee===-1)return de;var Z="";for(ee===-1&&(ee=0),ie=_e+ee+1;ie<=Se;++ie)(ie===Se||K.charCodeAt(ie)===x)&&(Z.length===0?Z+="..":Z+="\\..");return Z.length>0?Z+de.slice(Pe+ee,Ve):(Pe+=ee,de.charCodeAt(Pe)===x&&++Pe,de.slice(Pe,Ve))},toNamespacedPath:function(K){if(typeof K!="string")return K;if(K.length===0)return"";var H=l.resolve(K);if(H.length>=3){if(H.charCodeAt(0)===x){if(H.charCodeAt(1)===x){var V=H.charCodeAt(2);if(V!==y&&V!==D)return"\\\\?\\UNC\\"+H.slice(2)}}else if(g(H.charCodeAt(0))&&(H.charCodeAt(1)===h&&H.charCodeAt(2)===x))return"\\\\?\\"+H}return K},dirname:function(K){f(K,"path");var H=K.length;if(H===0)return".";var V=-1,de=-1,_e=!0,Se=0,Ie=K.charCodeAt(0);if(H>1)if(v(Ie)){if(V=Se=1,v(K.charCodeAt(1))){for(var Pe=2,Ve=Pe;Pe<H&&!v(K.charCodeAt(Pe));++Pe);if(Pe<H&&Pe!==Ve){for(Ve=Pe;Pe<H&&v(K.charCodeAt(Pe));++Pe);if(Pe<H&&Pe!==Ve){for(Ve=Pe;Pe<H&&!v(K.charCodeAt(Pe));++Pe);if(Pe===H)return K;Pe!==Ve&&(V=Se=Pe+1)}}}}else g(Ie)&&(K.charCodeAt(1)===h&&(V=Se=2,H>2&&(v(K.charCodeAt(2))&&(V=Se=3))));else if(v(Ie))return K;for(var ke=H-1;ke>=Se;--ke)if(v(K.charCodeAt(ke))){if(!_e){de=ke;break}}else _e=!1;if(de===-1){if(V===-1)return".";de=V}return K.slice(0,de)},basename:function(K,H){H!==void 0&&f(H,"ext"),f(K,"path");var V=0,de=-1,_e=!0,Se;if(K.length>=2){var Ie=K.charCodeAt(0);g(Ie)&&(K.charCodeAt(1)===h&&(V=2))}if(H!==void 0&&H.length>0&&H.length<=K.length){if(H.length===K.length&&H===K)return"";var Pe=H.length-1,Ve=-1;for(Se=K.length-1;Se>=V;--Se){var ke=K.charCodeAt(Se);if(v(ke)){if(!_e){V=Se+1;break}}else Ve===-1&&(_e=!1,Ve=Se+1),Pe>=0&&(ke===H.charCodeAt(Pe)?--Pe===-1&&(de=Se):(Pe=-1,de=Ve))}return V===de?de=Ve:de===-1&&(de=K.length),K.slice(V,de)}else{for(Se=K.length-1;Se>=V;--Se)if(v(K.charCodeAt(Se))){if(!_e){V=Se+1;break}}else de===-1&&(_e=!1,de=Se+1);return de===-1?"":K.slice(V,de)}},extname:function(K){f(K,"path");var H=0,V=-1,de=0,_e=-1,Se=!0,Ie=0;K.length>=2&&K.charCodeAt(1)===h&&g(K.charCodeAt(0))&&(H=de=2);for(var Pe=K.length-1;Pe>=H;--Pe){var Ve=K.charCodeAt(Pe);if(v(Ve)){if(!Se){de=Pe+1;break}continue}_e===-1&&(Se=!1,_e=Pe+1),Ve===D?V===-1?V=Pe:Ie!==1&&(Ie=1):V!==-1&&(Ie=-1)}return V===-1||_e===-1||Ie===0||Ie===1&&V===_e-1&&V===de+1?"":K.slice(V,_e)},format:function(K){if(K===null||typeof K!="object")throw new w("pathObject","Object",K);return s("\\",K)},parse:function(K){f(K,"path");var H={root:"",dir:"",base:"",ext:"",name:""};if(K.length===0)return H;var V=K.length,de=0,_e=K.charCodeAt(0);if(V>1){if(v(_e)){if(de=1,v(K.charCodeAt(1))){for(var Se=2,Ie=Se;Se<V&&!v(K.charCodeAt(Se));++Se);if(Se<V&&Se!==Ie){for(Ie=Se;Se<V&&v(K.charCodeAt(Se));++Se);if(Se<V&&Se!==Ie){for(Ie=Se;Se<V&&!v(K.charCodeAt(Se));++Se);Se===V?de=Se:Se!==Ie&&(de=Se+1)}}}}else if(g(_e)&&K.charCodeAt(1)===h)if(de=2,V>2){if(v(K.charCodeAt(2))){if(V===3)return H.root=H.dir=K,H;de=3}}else return H.root=H.dir=K,H}else if(v(_e))return H.root=H.dir=K,H;de>0&&(H.root=K.slice(0,de));for(var Pe=-1,Ve=de,ke=-1,se=!0,ee=K.length-1,ie=0;ee>=de;--ee){if(_e=K.charCodeAt(ee),v(_e)){if(!se){Ve=ee+1;break}continue}ke===-1&&(se=!1,ke=ee+1),_e===D?Pe===-1?Pe=ee:ie!==1&&(ie=1):Pe!==-1&&(ie=-1)}return Pe===-1||ke===-1||ie===0||ie===1&&Pe===ke-1&&Pe===Ve+1?ke!==-1&&(H.base=H.name=K.slice(Ve,ke)):(H.name=K.slice(Ve,Pe),H.base=K.slice(Ve,ke),H.ext=K.slice(Pe,ke)),Ve>0&&Ve!==de?H.dir=K.slice(0,Ve-1):H.dir=H.root,H},sep:"\\",delimiter:";",win32:null,posix:null},c={resolve:function(){for(var K=[],H=0;H<arguments.length;H++)K[H]=arguments[H];for(var V="",de=!1,_e=K.length-1;_e>=-1&&!de;_e--){var Se=void 0;if(_e>=0?Se=K[_e]:Se=T.a(),f(Se,"path"),Se.length===0)continue;V=Se+"/"+V,de=Se.charCodeAt(0)===W}return V=u(V,!de,"/",C),de?V.length>0?"/"+V:"/":V.length>0?V:"."},normalize:function(K){if(f(K,"path"),K.length===0)return".";var H=K.charCodeAt(0)===W,V=K.charCodeAt(K.length-1)===W;return K=u(K,!H,"/",C),K.length===0&&!H&&(K="."),K.length>0&&V&&(K+="/"),H?"/"+K:K},isAbsolute:function(K){return f(K,"path"),K.length>0&&K.charCodeAt(0)===W},join:function(){for(var K=[],H=0;H<arguments.length;H++)K[H]=arguments[H];if(K.length===0)return".";for(var V,de=0;de<K.length;++de){var _e=arguments[de];f(_e,"path"),_e.length>0&&(V===void 0?V=_e:V+="/"+_e)}return V===void 0?".":c.normalize(V)},relative:function(K,H){if(f(K,"from"),f(H,"to"),K===H)return"";if(K=c.resolve(K),H=c.resolve(H),K===H)return"";for(var V=1;V<K.length&&!(K.charCodeAt(V)!==W);++V);for(var de=K.length,_e=de-V,Se=1;Se<H.length&&!(H.charCodeAt(Se)!==W);++Se);for(var Ie=H.length,Pe=Ie-Se,Ve=_e<Pe?_e:Pe,ke=-1,se=0;se<=Ve;++se){if(se===Ve){if(Pe>Ve){if(H.charCodeAt(Se+se)===W)return H.slice(Se+se+1);if(se===0)return H.slice(Se+se)}else _e>Ve&&(K.charCodeAt(V+se)===W?ke=se:se===0&&(ke=0));break}var ee=K.charCodeAt(V+se),ie=H.charCodeAt(Se+se);if(ee!==ie)break;ee===W&&(ke=se)}var q="";for(se=V+ke+1;se<=de;++se)(se===de||K.charCodeAt(se)===W)&&(q.length===0?q+="..":q+="/..");return q.length>0?q+H.slice(Se+ke):(Se+=ke,H.charCodeAt(Se)===W&&++Se,H.slice(Se))},toNamespacedPath:function(K){return K},dirname:function(K){if(f(K,"path"),K.length===0)return".";for(var H=K.charCodeAt(0)===W,V=-1,de=!0,_e=K.length-1;_e>=1;--_e)if(K.charCodeAt(_e)===W){if(!de){V=_e;break}}else de=!1;return V===-1?H?"/":".":H&&V===1?"//":K.slice(0,V)},basename:function(K,H){H!==void 0&&f(H,"ext"),f(K,"path");var V=0,de=-1,_e=!0,Se;if(H!==void 0&&H.length>0&&H.length<=K.length){if(H.length===K.length&&H===K)return"";var Ie=H.length-1,Pe=-1;for(Se=K.length-1;Se>=0;--Se){var Ve=K.charCodeAt(Se);if(Ve===W){if(!_e){V=Se+1;break}}else Pe===-1&&(_e=!1,Pe=Se+1),Ie>=0&&(Ve===H.charCodeAt(Ie)?--Ie===-1&&(de=Se):(Ie=-1,de=Pe))}return V===de?de=Pe:de===-1&&(de=K.length),K.slice(V,de)}else{for(Se=K.length-1;Se>=0;--Se)if(K.charCodeAt(Se)===W){if(!_e){V=Se+1;break}}else de===-1&&(_e=!1,de=Se+1);return de===-1?"":K.slice(V,de)}},extname:function(K){f(K,"path");for(var H=-1,V=0,de=-1,_e=!0,Se=0,Ie=K.length-1;Ie>=0;--Ie){var Pe=K.charCodeAt(Ie);if(Pe===W){if(!_e){V=Ie+1;break}continue}de===-1&&(_e=!1,de=Ie+1),Pe===D?H===-1?H=Ie:Se!==1&&(Se=1):H!==-1&&(Se=-1)}return H===-1||de===-1||Se===0||Se===1&&H===de-1&&H===V+1?"":K.slice(H,de)},format:function(K){if(K===null||typeof K!="object")throw new w("pathObject","Object",K);return s("/",K)},parse:function(K){f(K,"path");var H={root:"",dir:"",base:"",ext:"",name:""};if(K.length===0)return H;var V=K.charCodeAt(0)===W,de;V?(H.root="/",de=1):de=0;for(var _e=-1,Se=0,Ie=-1,Pe=!0,Ve=K.length-1,ke=0;Ve>=de;--Ve){var se=K.charCodeAt(Ve);if(se===W){if(!Pe){Se=Ve+1;break}continue}Ie===-1&&(Pe=!1,Ie=Ve+1),se===D?_e===-1?_e=Ve:ke!==1&&(ke=1):_e!==-1&&(ke=-1)}return _e===-1||Ie===-1||ke===0||ke===1&&_e===Ie-1&&_e===Se+1?Ie!==-1&&(Se===0&&V?H.base=H.name=K.slice(1,Ie):H.base=H.name=K.slice(Se,Ie)):(Se===0&&V?(H.name=K.slice(1,_e),H.base=K.slice(1,Ie)):(H.name=K.slice(Se,_e),H.base=K.slice(Se,Ie)),H.ext=K.slice(_e,Ie)),Se>0?H.dir=K.slice(0,Se-1):V&&(H.dir="/"),H},sep:"/",delimiter:":",win32:null,posix:null};c.win32=l.win32=l,c.posix=l.posix=c;var p=T.c==="win32"?l.normalize:c.normalize,_=T.c==="win32"?l.join:c.join,L=T.c==="win32"?l.relative:c.relative,I=T.c==="win32"?l.dirname:c.dirname,P=T.c==="win32"?l.basename:c.basename,A=T.c==="win32"?l.extname:c.extname,Q=T.c==="win32"?l.sep:c.sep},Msxo:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return e.e(327).then(e.bind(null,"Qx4d"))}})},MvK1:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le}),e.d(N,"b",function(){return $});var T=function(){function R(B,z,D){this.from=B|0,this.to=z|0,this.colorId=D|0}return R.compare=function(B,z){return B.colorId===z.colorId?B.from===z.from?B.to-z.to:B.from-z.from:B.colorId-z.colorId},R}(),le=function(){function R(B,z,D){this.startLineNumber=B,this.endLineNumber=z,this.color=D,this._colorZone=null}return R.compare=function(B,z){return B.color===z.color?B.startLineNumber===z.startLineNumber?B.endLineNumber-z.endLineNumber:B.startLineNumber-z.startLineNumber:B.color<z.color?-1:1},R.prototype.setColorZone=function(B){this._colorZone=B},R.prototype.getColorZones=function(){return this._colorZone},R}(),$=function(){function R(B){this._getVerticalOffsetForLine=B,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 R.prototype.getId2Color=function(){return this._id2Color},R.prototype.setZones=function(B){this._zones=B,this._zones.sort(le.compare)},R.prototype.setLineHeight=function(B){return this._lineHeight===B?!1:(this._lineHeight=B,this._colorZonesInvalid=!0,!0)},R.prototype.setPixelRatio=function(B){this._pixelRatio=B,this._colorZonesInvalid=!0},R.prototype.getDOMWidth=function(){return this._domWidth},R.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio},R.prototype.setDOMWidth=function(B){return this._domWidth===B?!1:(this._domWidth=B,this._colorZonesInvalid=!0,!0)},R.prototype.getDOMHeight=function(){return this._domHeight},R.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio},R.prototype.setDOMHeight=function(B){return this._domHeight===B?!1:(this._domHeight=B,this._colorZonesInvalid=!0,!0)},R.prototype.getOuterHeight=function(){return this._outerHeight},R.prototype.setOuterHeight=function(B){return this._outerHeight===B?!1:(this._outerHeight=B,this._colorZonesInvalid=!0,!0)},R.prototype.resolveColorZones=function(){for(var B=this._colorZonesInvalid,z=Math.floor(this._lineHeight),D=Math.floor(this.getCanvasHeight()),W=Math.floor(this._outerHeight),x=D/W,h=Math.floor(4*this._pixelRatio/2),y=[],w=0,f=this._zones.length;w<f;w++){var v=this._zones[w];if(!B){var C=v.getColorZones();if(C){y.push(C);continue}}var g=Math.floor(x*this._getVerticalOffsetForLine(v.startLineNumber)),u=Math.floor(x*(this._getVerticalOffsetForLine(v.endLineNumber)+z)),s=Math.floor((g+u)/2),l=u-s;l<h&&(l=h),s-l<0&&(s=l),s+l>D&&(s=D-l);var c=v.color,p=this._color2Id[c];p||(p=++this._lastAssignedId,this._color2Id[c]=p,this._id2Color[p]=c);var _=new T(s-l,s+l,p);v.setColorZone(_),y.push(_)}return this._colorZonesInvalid=!1,y.sort(T.compare),y},R}()},Mzro:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return e.e(337).then(e.bind(null,"l/4i"))}})},N0LK:function(Lt,N,e){"use strict";e.d(N,"x",function(){return T}),e.d(N,"F",function(){return le}),e.d(N,"r",function(){return R}),e.d(N,"o",function(){return B}),e.d(N,"p",function(){return z}),e.d(N,"Q",function(){return D}),e.d(N,"K",function(){return x}),e.d(N,"k",function(){return h}),e.d(N,"N",function(){return y}),e.d(N,"m",function(){return w}),e.d(N,"l",function(){return f}),e.d(N,"I",function(){return v}),e.d(N,"H",function(){return C}),e.d(N,"q",function(){return g}),e.d(N,"t",function(){return u}),e.d(N,"D",function(){return s}),e.d(N,"e",function(){return l}),e.d(N,"f",function(){return c}),e.d(N,"B",function(){return p}),e.d(N,"C",function(){return _}),e.d(N,"n",function(){return I}),e.d(N,"O",function(){return A}),e.d(N,"c",function(){return Q}),e.d(N,"d",function(){return K}),e.d(N,"z",function(){return H}),e.d(N,"A",function(){return V}),e.d(N,"u",function(){return de}),e.d(N,"E",function(){return Se}),e.d(N,"G",function(){return Ie}),e.d(N,"i",function(){return Ve}),e.d(N,"g",function(){return se}),e.d(N,"v",function(){return ie}),e.d(N,"h",function(){return q}),e.d(N,"y",function(){return ce}),e.d(N,"w",function(){return Z}),e.d(N,"a",function(){return ye}),e.d(N,"P",function(){return je}),e.d(N,"L",function(){return Ge}),e.d(N,"J",function(){return ue}),e.d(N,"j",function(){return ve}),e.d(N,"M",function(){return Ee}),e.d(N,"s",function(){return xe}),e.d(N,"b",function(){return Ce});function T(b){return!b||typeof b!="string"?!0:b.trim().length===0}function le(b,F,re){re===void 0&&(re="0");for(var ne=""+b,fe=[ne],Oe=ne.length;Oe<F;Oe++)fe.push(re);return fe.reverse().join("")}var $=/{(\d+)}/g;function R(b){for(var F=[],re=1;re<arguments.length;re++)F[re-1]=arguments[re];return F.length===0?b:b.replace($,function(ne,fe){var Oe=parseInt(fe,10);return isNaN(Oe)||Oe<0||Oe>=F.length?ne:F[Oe]})}function B(b){return b.replace(/[<>&]/g,function(F){switch(F){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return F}})}function z(b){return b.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function D(b,F){F===void 0&&(F=" ");var re=W(b,F);return x(re,F)}function W(b,F){if(!b||!F)return b;var re=F.length;if(re===0||b.length===0)return b;for(var ne=0;b.indexOf(F,ne)===ne;)ne=ne+re;return b.substring(ne)}function x(b,F){if(!b||!F)return b;var re=F.length,ne=b.length;if(re===0||ne===0)return b;for(var fe=ne,Oe=-1;!(Oe=b.lastIndexOf(F,fe-1),Oe===-1||Oe+re!==fe);){if(Oe===0)return"";fe=Oe}return b.substring(0,fe)}function h(b){return b.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function y(b,F){if(b.length<F.length)return!1;if(b===F)return!0;for(var re=0;re<F.length;re++)if(b[re]!==F[re])return!1;return!0}function w(b,F){var re=b.length-F.length;return re>0?b.indexOf(F,re)===re:re===0?b===F:!1}function f(b,F,re){if(re===void 0&&(re={}),!b)throw new Error("Cannot create regex from empty string");F||(b=z(b)),re.wholeWord&&(/\B/.test(b.charAt(0))||(b="\\b"+b),/\B/.test(b.charAt(b.length-1))||(b=b+"\\b"));var ne="";return re.global&&(ne+="g"),re.matchCase||(ne+="i"),re.multiline&&(ne+="m"),re.unicode&&(ne+="u"),new RegExp(b,ne)}function v(b){if(b.source==="^"||b.source==="^$"||b.source==="$"||b.source==="^\\s*$")return!1;var F=b.exec("");return!!(F&&b.lastIndex===0)}function C(b){return(b.global?"g":"")+(b.ignoreCase?"i":"")+(b.multiline?"m":"")+(b.unicode?"u":"")}function g(b){for(var F=0,re=b.length;F<re;F++){var ne=b.charCodeAt(F);if(ne!==32&&ne!==9)return F}return-1}function u(b,F,re){F===void 0&&(F=0),re===void 0&&(re=b.length);for(var ne=F;ne<re;ne++){var fe=b.charCodeAt(ne);if(fe!==32&&fe!==9)return b.substring(F,ne)}return b.substring(F,re)}function s(b,F){F===void 0&&(F=b.length-1);for(var re=F;re>=0;re--){var ne=b.charCodeAt(re);if(ne!==32&&ne!==9)return re}return-1}function l(b,F){return b<F?-1:b>F?1:0}function c(b,F){for(var re=Math.min(b.length,F.length),ne=0;ne<re;ne++){var fe=b.charCodeAt(ne),Oe=F.charCodeAt(ne);if(fe===Oe)continue;_(fe)&&(fe+=32),_(Oe)&&(Oe+=32);var Me=fe-Oe;if(Me===0)continue;return p(fe)&&p(Oe)?Me:l(b.toLowerCase(),F.toLowerCase())}return b.length<F.length?-1:b.length>F.length?1:0}function p(b){return b>=97&&b<=122}function _(b){return b>=65&&b<=90}function L(b){return p(b)||_(b)}function I(b,F){return b.length===F.length&&P(b,F)}function P(b,F,re){re===void 0&&(re=b.length);for(var ne=0;ne<re;ne++){var fe=b.charCodeAt(ne),Oe=F.charCodeAt(ne);if(fe===Oe)continue;if(L(fe)&&L(Oe)){var Me=Math.abs(fe-Oe);if(Me!==0&&Me!==32)return!1}else if(String.fromCharCode(fe).toLowerCase()!==String.fromCharCode(Oe).toLowerCase())return!1}return!0}function A(b,F){var re=F.length;return F.length>b.length?!1:P(b,F,re)}function Q(b,F){var re,ne=Math.min(b.length,F.length);for(re=0;re<ne;re++)if(b.charCodeAt(re)!==F.charCodeAt(re))return re;return ne}function K(b,F){var re,ne=Math.min(b.length,F.length),fe=b.length-1,Oe=F.length-1;for(re=0;re<ne;re++)if(b.charCodeAt(fe-re)!==F.charCodeAt(Oe-re))return re;return ne}function H(b){return 55296<=b&&b<=56319}function V(b){return 56320<=b&&b<=57343}function de(b,F,re){var ne=b.charCodeAt(re);if(H(ne)&&re+1<F){var fe=b.charCodeAt(re+1);if(V(fe))return(ne-55296<<10)+(fe-56320)+65536}return ne}function _e(b,F){var re=b.charCodeAt(F-1);if(V(re)&&F>1){var ne=b.charCodeAt(F-2);if(H(ne))return(ne-55296<<10)+(re-56320)+65536}return re}function Se(b,F){var re=he.getInstance(),ne=F,fe=b.length,Oe=de(b,fe,F);F+=Oe>=65536?2:1;for(var Me=re.getGraphemeBreakType(Oe);F<fe;){var Ue=de(b,fe,F),Je=re.getGraphemeBreakType(Ue);if(Ce(Me,Je))break;F+=Ue>=65536?2:1,Me=Je}return F-ne}function Ie(b,F){var re=he.getInstance(),ne=F,fe=_e(b,F);F-=fe>=65536?2:1;for(var Oe=re.getGraphemeBreakType(fe);F>0;){var Me=_e(b,F),Ue=re.getGraphemeBreakType(Me);if(Ce(Ue,Oe))break;F-=Me>=65536?2:1,Oe=Ue}return ne-F}var Pe=/(?:[\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 Ve(b){return Pe.test(b)}var ke=/(?:[\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 se(b){return ke.test(b)}var ee=/^[\t\n\r\x20-\x7E]*$/;function ie(b){return ee.test(b)}function q(b){for(var F=0,re=b.length;F<re;F++)if(ce(b.charCodeAt(F)))return!0;return!1}function ce(b){return b=+b,b>=11904&&b<=55215||b>=63744&&b<=64255||b>=65281&&b<=65374}function Z(b){return b>=127462&&b<=127487||b>=9728&&b<=10175||b>=127744&&b<=128591||b>=128640&&b<=128764||b>=128992&&b<=129003||b>=129280&&b<=129535||b>=129648&&b<=129651||b>=129656&&b<=129666||b>=129680&&b<=129685}var ye=String.fromCharCode(65279);function je(b){return!!(b&&b.length>0&&b.charCodeAt(0)===65279)}function Ge(b){return btoa(encodeURIComponent(b))}function ue(b,F){for(var re="",ne=0;ne<F;ne++)re+=b;return re}function ve(b,F){return F===void 0&&(F=!1),b?(F&&(b=b.replace(/\\./g,"")),b.toLowerCase()!==b):!1}function Ee(b){var F=90-65+1;return b=b%(2*F),b<F?String.fromCharCode(97+b):String.fromCharCode(65+b-F)}function xe(b){var F=he.getInstance();return F.getGraphemeBreakType(b)}function Ce(b,F){return b===0?F!==5&&F!==7:b===2&&F===3?!1:b===4||b===2||b===3||(F===4||F===2||F===3)?!0:b===8&&(F===8||F===9||F===11||F===12)||((b===11||b===9)&&(F===9||F===10)||((b===12||b===10)&&F===10||(F===5||F===13||(F===7||(b===1||b===13&&F===14)))))?!1:!(b===6&&F===6)}var he=function(){function b(){this._data=J()}return b.getInstance=function(){return b._INSTANCE||(b._INSTANCE=new b),b._INSTANCE},b.prototype.getGraphemeBreakType=function(F){if(F<32)return F===10?3:F===13?2:4;if(F<127)return 0;for(var re=this._data,ne=re.length/3,fe=1;fe<=ne;)if(F<re[3*fe])fe=2*fe;else if(F>re[3*fe+1])fe=2*fe+1;else return re[3*fe+2];return 0},b._INSTANCE=null,b}();function J(){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]")}},NR8r:function(Lt,N,e){"use strict";e.d(N,"a",function(){return C});var T=e("synD"),le=e.n(T),$=e("3/fG"),R=e("X+cX"),B=e("pmY6"),z=e("OBOq"),D=e("aokT"),W=e("sswD"),x=e("T8No"),h=e("t9D7"),y=e("MD5Z"),w=function(){var s=function(l,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,_){p.__proto__=_}||function(p,_){for(var L in _)_.hasOwnProperty(L)&&(p[L]=_[L])},s(l,c)};return function(l,c){s(l,c);function p(){this.constructor=l}l.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)}}(),f=function(s,l,c,p){var _=arguments.length,L=_<3?l:p===null?p=Object.getOwnPropertyDescriptor(l,c):p,I;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(s,l,c,p);else for(var P=s.length-1;P>=0;P--)(I=s[P])&&(L=(_<3?I(L):_>3?I(l,c,L):I(l,c))||L);return _>3&&L&&Object.defineProperty(l,c,L),L},v=function(s,l){return function(c,p){l(c,p,s)}},C=function(s){w(l,s);function l(c,p){var _=s.call(this)||this;return _.closeTimeout=3e3,_._messageWidget=_._register(new B.d),_._messageListeners=_._register(new B.b),_._editor=c,_._visible=l.MESSAGE_VISIBLE.bindTo(p),_._register(_._editor.onDidAttemptReadOnlyEdit(function(){return _._onDidAttemptReadOnlyEdit()})),_}return l.get=function(c){return c.getContribution(l.ID)},l.prototype.dispose=function(){s.prototype.dispose.call(this),this._visible.reset()},l.prototype.showMessage=function(c,p){var _=this;Object(z.a)(c),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new u(this._editor,p,c),this._messageListeners.add(this._editor.onDidBlurEditorText(function(){return _.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(function(){return _.closeMessage()})),this._messageListeners.add(this._editor.onDidDispose(function(){return _.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeModel(function(){return _.closeMessage()})),this._messageListeners.add(new R.e(function(){return _.closeMessage()},this.closeTimeout));var L;this._messageListeners.add(this._editor.onMouseMove(function(I){if(!I.target.position)return;L?L.containsPosition(I.target.position)||_.closeMessage():L=new D.a(p.lineNumber-3,1,I.target.position.lineNumber+3,1)}))},l.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(u.fadeOut(this._messageWidget.value))},l.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage($.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},l.ID="editor.contrib.messageController",l.MESSAGE_VISIBLE=new x.d("messageVisible",!1),l=f([v(1,x.c)],l),l}(B.a),g=W.c.bindToContribution(C.get);Object(W.g)(new g({id:"leaveEditorMessage",precondition:C.MESSAGE_VISIBLE,handler:function(s){return s.closeMessage()},kbOpts:{weight:100+30,primary:9}}));var u=function(){function s(l,c,p){var _=c.lineNumber,L=c.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=l,this._editor.revealLinesInCenterIfOutsideViewport(_,_,0),this._position={lineNumber:_,column:L-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var I=document.createElement("div");I.classList.add("message"),I.textContent=p,this._domNode.appendChild(I);var P=document.createElement("div");P.classList.add("anchor"),this._domNode.appendChild(P),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return s.fadeOut=function(l){var c,p=function(){l.dispose(),clearTimeout(c),l.getDomNode().removeEventListener("animationend",p)};return c=setTimeout(p,110),l.getDomNode().addEventListener("animationend",p),l.getDomNode().classList.add("fadeOut"),{dispose:p}},s.prototype.dispose=function(){this._editor.removeContentWidget(this)},s.prototype.getId=function(){return"messageoverlay"},s.prototype.getDomNode=function(){return this._domNode},s.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},s}();Object(W.h)(C.ID,C),Object(h.e)(function(s,l){var c=s.getColor(y.gb);if(c){var p=s.type===h.b?2:1;l.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+c+"; }"),l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+p+"px solid "+c+"; }")}var _=s.getColor(y.fb);_&&l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+_+"; }");var L=s.getColor(y.hb);L&&l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+L+"; }")})},OBOq:function(Lt,N,e){"use strict";e.d(N,"b",function(){return x}),e.d(N,"a",function(){return h}),e.d(N,"c",function(){return y});var T=e("UCkY"),le=e.n(T),$=e("3/fG"),R=e("MNsG"),B=e("EffR"),z,D,W;function x(C){z=document.createElement("div"),z.className="monaco-aria-container",D=document.createElement("div"),D.className="monaco-alert",D.setAttribute("role","alert"),D.setAttribute("aria-atomic","true"),z.appendChild(D),W=document.createElement("div"),W.className="monaco-status",W.setAttribute("role","status"),W.setAttribute("aria-atomic","true"),z.appendChild(W),C.appendChild(z)}function h(C,g){v(D,C,g)}function y(C,g){R.e?h(C,g):v(W,C,g)}var w=0,f=void 0;function v(C,g,u){if(!z)return;if(!u){f===g?w++:(f=g,w=0);switch(w){case 0:break;case 1:g=$.a("repeated","{0} (occurred again)",g);break;default:g=$.a("repeatedNtimes","{0} (occurred {1} times)",g,w);break}}B.t(C),C.textContent=g,C.style.visibility="hidden",C.style.visibility="visible"}},OKK6:function(Lt,N,e){},OOlL:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return e.e(293).then(e.bind(null,"NlLO"))}})},OhnE:function(Lt,N,e){},PTeM:function(Lt,N,e){"use strict";e.d(N,"c",function(){return $}),e.d(N,"a",function(){return R}),e.d(N,"b",function(){return B});var T=e("N0LK"),le=e("MrjW");function $(z){return z.replace(/[\\/]/g,le.posix.sep)}function R(z,D,W,x){if(x===void 0&&(x=le.sep),z===D)return!0;if(!z||!D)return!1;if(D.length>z.length)return!1;if(W){var h=Object(T.O)(z,D);if(!h)return!1;if(D.length===z.length)return!0;var y=D.length;return D.charAt(D.length-1)===x&&y--,z.charAt(y)===x}return D.charAt(D.length-1)!==x&&(D+=x),z.indexOf(D)===0}function B(z){return z>=65&&z<=90||z>=97&&z<=122}},Q4rV:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("bY76");function le(R){var B=JSON.parse(R);return B=$(B),B}function $(R,B){if(B===void 0&&(B=0),!R||B>200)return R;if(typeof R=="object"){switch(R.$mid){case 1:return T.a.revive(R);case 2:return new RegExp(R.source,R.flags)}for(var z in R)Object.hasOwnProperty.call(R,z)&&(R[z]=$(R[z],B+1))}return R}},Q631:function(Lt,N,e){"use strict";e.r(N),e.d(N,"rename",function(){return q}),e.d(N,"RenameAction",function(){return Z});var T=e("3/fG"),le=e("/cxE"),$=e("T8No"),R=e("tTk5"),B=e("sswD"),z=e("wQH0"),D=e("BjKj"),W=e("pmY6"),x=e("cGHE"),h=e("aokT"),y=e("MD5Z"),w=e("t9D7"),f=e("bexQ"),v=e("EffR"),C=function(je,Ge,ue,ve){var Ee=arguments.length,xe=Ee<3?Ge:ve===null?ve=Object.getOwnPropertyDescriptor(Ge,ue):ve,Ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")xe=Reflect.decorate(je,Ge,ue,ve);else for(var he=je.length-1;he>=0;he--)(Ce=je[he])&&(xe=(Ee<3?Ce(xe):Ee>3?Ce(Ge,ue,xe):Ce(Ge,ue))||xe);return Ee>3&&xe&&Object.defineProperty(Ge,ue,xe),xe},g=function(je,Ge){return function(ue,ve){Ge(ue,ve,je)}},u=new $.d("renameInputVisible",!1),s=function(){function je(Ge,ue,ve,Ee,xe){var Ce=this;this._editor=Ge,this._acceptKeybindings=ue,this._themeService=ve,this._keybindingService=Ee,this._disposables=new W.b,this.allowEditorOverflow=!0,this._visibleContextKey=u.bindTo(xe),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(function(he){he.hasChanged(34)&&Ce._updateFont()})),this._disposables.add(ve.onThemeChange(this._updateStyles,this))}return je.prototype.dispose=function(){this._disposables.dispose(),this._editor.removeContentWidget(this)},je.prototype.getId=function(){return"__renameInputWidget"},je.prototype.getDomNode=function(){var Ge=this;if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(T.a)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);var ue=function(){var ve,Ee,xe=Ge._acceptKeybindings,Ce=xe[0],he=xe[1];Ge._keybindingService.lookupKeybinding(Ce),Ge._label.innerText=Object(T.a)("label","{0} to Rename, {1} to Preview",(ve=Ge._keybindingService.lookupKeybinding(Ce))===null||ve===void 0?void 0:ve.getLabel(),(Ee=Ge._keybindingService.lookupKeybinding(he))===null||Ee===void 0?void 0:Ee.getLabel())};ue(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(ue)),this._updateFont(),this._updateStyles(this._themeService.getTheme())}return this._domNode},je.prototype._updateStyles=function(Ge){var ue,ve,Ee,xe;if(!this._input||!this._domNode)return;var Ce=Ge.getColor(y.hc);this._domNode.style.backgroundColor=String((ue=Ge.getColor(y.Q))!==null&&ue!==void 0?ue:""),this._domNode.style.boxShadow=Ce?" 0 2px 8px "+Ce:"",this._domNode.style.color=String((ve=Ge.getColor(y.bb))!==null&&ve!==void 0?ve:""),this._input.style.backgroundColor=String((Ee=Ge.getColor(y.Z))!==null&&Ee!==void 0?Ee:"");var he=Ge.getColor(y.ab);this._input.style.borderWidth=he?"1px":"0px",this._input.style.borderStyle=he?"solid":"none",this._input.style.borderColor=(xe=he==null?void 0:he.toString())!==null&&xe!==void 0?xe:"none"},je.prototype._updateFont=function(){if(!this._input||!this._label)return;var Ge=this._editor.getOption(34);this._input.style.fontFamily=Ge.fontFamily,this._input.style.fontWeight=Ge.fontWeight,this._input.style.fontSize=Ge.fontSize+"px",this._label.style.fontSize=Ge.fontSize*.8+"px"},je.prototype.getPosition=function(){return this._visible?{position:this._position,preference:[2,1]}:null},je.prototype.acceptInput=function(Ge){this._currentAcceptInput&&this._currentAcceptInput(Ge)},je.prototype.cancelInput=function(Ge){this._currentCancelInput&&this._currentCancelInput(Ge)},je.prototype.getInput=function(Ge,ue,ve,Ee,xe){var Ce=this;Object(v.Y)(this._domNode,"preview",xe),this._position=new x.a(Ge.startLineNumber,Ge.startColumn),this._input.value=ue,this._input.setAttribute("selectionStart",ve.toString()),this._input.setAttribute("selectionEnd",Ee.toString()),this._input.size=Math.max((Ge.endColumn-Ge.startColumn)*1.1,20);var he=new W.b;return new Promise(function(J){Ce._currentCancelInput=function(F){return Ce._currentAcceptInput=void 0,Ce._currentCancelInput=void 0,J(F),!0},Ce._currentAcceptInput=function(F){if(Ce._input.value.trim().length===0||Ce._input.value===ue){Ce.cancelInput(!0);return}Ce._currentAcceptInput=void 0,Ce._currentCancelInput=void 0,J({newName:Ce._input.value,wantsPreview:xe&&F})};var b=function(){var F=Ce._editor.getPosition();(!F||!h.a.containsPosition(Ge,F))&&Ce.cancelInput(!0)};he.add(Ce._editor.onDidChangeCursorSelection(b)),he.add(Ce._editor.onDidBlurEditorWidget(function(){return Ce.cancelInput(!1)})),Ce._show()}).finally(function(){he.dispose(),Ce._hide()})},je.prototype._show=function(){var Ge=this;this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(function(){Ge._input.focus(),Ge._input.setSelectionRange(parseInt(Ge._input.getAttribute("selectionStart")),parseInt(Ge._input.getAttribute("selectionEnd")))},100)},je.prototype._hide=function(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)},je=C([g(2,w.c),g(3,f.a),g(4,$.c)],je),je}(),l=e("twdY"),c=e("OBOq"),p=e("NR8r"),_=e("vATl"),L=e("sM1p"),I=e("x/UI"),P=e("bY76"),A=e("Vxe3"),Q=e("JQT/"),K=e("X+cX"),H=e("746U"),V=e("09fa"),de=e("Cg/j"),_e=e("ic2d"),Se=e("CRAX"),Ie=e("e0rL"),Pe=function(){var je=function(Ge,ue){return je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,Ee){ve.__proto__=Ee}||function(ve,Ee){for(var xe in Ee)Ee.hasOwnProperty(xe)&&(ve[xe]=Ee[xe])},je(Ge,ue)};return function(Ge,ue){je(Ge,ue);function ve(){this.constructor=Ge}Ge.prototype=ue===null?Object.create(ue):(ve.prototype=ue.prototype,new ve)}}(),Ve=function(je,Ge,ue,ve){var Ee=arguments.length,xe=Ee<3?Ge:ve===null?ve=Object.getOwnPropertyDescriptor(Ge,ue):ve,Ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")xe=Reflect.decorate(je,Ge,ue,ve);else for(var he=je.length-1;he>=0;he--)(Ce=je[he])&&(xe=(Ee<3?Ce(xe):Ee>3?Ce(Ge,ue,xe):Ce(Ge,ue))||xe);return Ee>3&&xe&&Object.defineProperty(Ge,ue,xe),xe},ke=function(je,Ge){return function(ue,ve){Ge(ue,ve,je)}},se=function(je,Ge,ue,ve){function Ee(xe){return xe instanceof ue?xe:new ue(function(Ce){Ce(xe)})}return new(ue||(ue=Promise))(function(xe,Ce){function he(F){try{b(ve.next(F))}catch(re){Ce(re)}}function J(F){try{b(ve.throw(F))}catch(re){Ce(re)}}function b(F){F.done?xe(F.value):Ee(F.value).then(he,J)}b((ve=ve.apply(je,Ge||[])).next())})},ee=function(je,Ge){var ue={label:0,sent:function(){if(xe[0]&1)throw xe[1];return xe[1]},trys:[],ops:[]},ve,Ee,xe,Ce;return Ce={next:he(0),throw:he(1),return:he(2)},typeof Symbol=="function"&&(Ce[Symbol.iterator]=function(){return this}),Ce;function he(b){return function(F){return J([b,F])}}function J(b){if(ve)throw new TypeError("Generator is already executing.");for(;ue;)try{if(ve=1,Ee&&(xe=b[0]&2?Ee.return:b[0]?Ee.throw||((xe=Ee.return)&&xe.call(Ee),0):Ee.next)&&!(xe=xe.call(Ee,b[1])).done)return xe;(Ee=0,xe)&&(b=[b[0]&2,xe.value]);switch(b[0]){case 0:case 1:xe=b;break;case 4:return ue.label++,{value:b[1],done:!1};case 5:ue.label++,Ee=b[1],b=[0];continue;case 7:b=ue.ops.pop(),ue.trys.pop();continue;default:if(!(xe=ue.trys,xe=xe.length>0&&xe[xe.length-1])&&(b[0]===6||b[0]===2)){ue=0;continue}if(b[0]===3&&(!xe||b[1]>xe[0]&&b[1]<xe[3])){ue.label=b[1];break}if(b[0]===6&&ue.label<xe[1]){ue.label=xe[1],xe=b;break}if(xe&&ue.label<xe[2]){ue.label=xe[2],ue.ops.push(b);break}xe[2]&&ue.ops.pop(),ue.trys.pop();continue}b=Ge.call(je,ue)}catch(F){b=[6,F],Ee=0}finally{ve=xe=0}if(b[0]&5)throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}},ie=function(){function je(Ge,ue){this.model=Ge,this.position=ue,this._providers=l.v.ordered(Ge)}return je.prototype.hasProvider=function(){return this._providers.length>0},je.prototype.resolveRenameLocation=function(Ge){return se(this,void 0,void 0,function(){var ue,ve,Ee,xe;return ee(this,function(Ce){switch(Ce.label){case 0:return ue=this._providers[0],ue?ue.resolveRenameLocation?(Ee=H.n,[4,ue.resolveRenameLocation(this.model,this.position,Ge)]):[3,2]:[2,void 0];case 1:ve=Ee.apply(void 0,[Ce.sent()]),Ce.label=2;case 2:return!ve&&(xe=this.model.getWordAtPosition(this.position),xe)?[2,{range:new h.a(this.position.lineNumber,xe.startColumn,this.position.lineNumber,xe.endColumn),text:xe.word}]:[2,ve]}})})},je.prototype.provideRenameEdits=function(Ge,ue,ve,Ee){return se(this,void 0,void 0,function(){var xe,Ce;return ee(this,function(he){switch(he.label){case 0:return xe=this._providers[ue],xe?[4,xe.provideRenameEdits(this.model,this.position,Ge,Ee)]:[2,{edits:[],rejectReason:ve.join(`
`)}];case 1:if(Ce=he.sent(),Ce){if(Ce.rejectReason)return[2,this.provideRenameEdits(Ge,ue+1,ve.concat(Ce.rejectReason),Ee)]}else return[2,this.provideRenameEdits(Ge,ue+1,ve.concat(T.a("no result","No result.")),Ee)];return[2,Ce]}})})},je}();function q(je,Ge,ue){return se(this,void 0,void 0,function(){return ee(this,function(ve){return[2,new ie(je,Ge).provideRenameEdits(ue,0,[],Q.a.None)]})})}var ce=function(){function je(Ge,ue,ve,Ee,xe,Ce,he){var J=this;this.editor=Ge,this._instaService=ue,this._notificationService=ve,this._bulkEditService=Ee,this._progressService=xe,this._logService=Ce,this._configService=he,this._dispoableStore=new W.b,this._cts=new Q.b,this._renameInputField=this._dispoableStore.add(new K.b(function(){return J._dispoableStore.add(J._instaService.createInstance(s,J.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}))}return je.get=function(Ge){return Ge.getContribution(je.ID)},je.prototype.dispose=function(){this._dispoableStore.dispose(),this._cts.dispose(!0)},je.prototype.run=function(){return se(this,void 0,void 0,function(){var Ge,ue,ve,Ee,xe,Ce,he,J,b,F,re,ne=this;return ee(this,function(fe){switch(fe.label){case 0:if(this._cts.dispose(!0),!this.editor.hasModel())return[2,void 0];if(Ge=this.editor.getPosition(),ue=new ie(this.editor.getModel(),Ge),!ue.hasProvider())return[2,void 0];this._cts=new _.b(this.editor,4|1),fe.label=1;case 1:return fe.trys.push([1,3,,4]),Ee=ue.resolveRenameLocation(this._cts.token),this._progressService.showWhile(Ee,250),[4,Ee];case 2:return ve=fe.sent(),[3,4];case 3:return xe=fe.sent(),p.a.get(this.editor).showMessage(xe||T.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),Ge),[2,void 0];case 4:return ve?ve.rejectReason?(p.a.get(this.editor).showMessage(ve.rejectReason,Ge),[2,void 0]):this._cts.token.isCancellationRequested?[2,void 0]:(Ce=this.editor.getSelection(),he=0,J=ve.text.length,!h.a.isEmpty(Ce)&&!h.a.spansMultipleLines(Ce)&&h.a.containsRange(ve.range,Ce)&&(he=Math.max(0,Ce.startColumn-ve.range.startColumn),J=Math.min(ve.range.endColumn,Ce.endColumn)-ve.range.startColumn),b=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),[4,this._renameInputField.getValue().getInput(ve.range,ve.text,he,J,b)]):[2,void 0];case 5:return F=fe.sent(),typeof F=="boolean"?(F&&this.editor.focus(),[2,void 0]):(this.editor.focus(),re=Object(K.j)(ue.provideRenameEdits(F.newName,0,[],this._cts.token),this._cts.token).then(function(Oe){return se(ne,void 0,void 0,function(){var Me=this;return ee(this,function(Ue){return!Oe||!this.editor.hasModel()?[2]:Oe.rejectReason?(this._notificationService.info(Oe.rejectReason),[2]):(this._bulkEditService.apply(Oe,{editor:this.editor,showPreview:F.wantsPreview,label:T.a("label","Renaming '{0}'",ve==null?void 0:ve.text)}).then(function(Je){Je.ariaSummary&&Object(c.a)(T.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",ve.text,F.newName,Je.ariaSummary))}).catch(function(Je){Me._notificationService.error(T.a("rename.failedApply","Rename failed to apply edits")),Me._logService.error(Je)}),[2])})})},function(Oe){ne._notificationService.error(T.a("rename.failed","Rename failed to compute edits")),ne._logService.error(Oe)}),this._progressService.showWhile(re,250),[2,re])}})})},je.prototype.acceptRenameInput=function(Ge){this._renameInputField.getValue().acceptInput(Ge)},je.prototype.cancelRenameInput=function(){this._renameInputField.getValue().cancelInput(!0)},je.ID="editor.contrib.renameController",je=Ve([ke(1,de.a),ke(2,L.a),ke(3,I.a),ke(4,R.a),ke(5,V.a),ke(6,Ie.a)],je),je}(),Z=function(je){Pe(Ge,je);function Ge(){return je.call(this,{id:"editor.action.rename",label:T.a("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:$.a.and(z.a.writable,z.a.hasRenameProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})||this}return Ge.prototype.runCommand=function(ue,ve){var Ee=this,xe=ue.get(A.a),Ce=Array.isArray(ve)&&ve||[void 0,void 0],he=Ce[0],J=Ce[1];return P.a.isUri(he)&&x.a.isIPosition(J)?xe.openCodeEditor({resource:he},xe.getActiveCodeEditor()).then(function(b){if(!b)return;b.setPosition(J),b.invokeWithinContext(function(F){return Ee.reportTelemetry(F,b),Ee.run(F,b)})},le.e):je.prototype.runCommand.call(this,ue,ve)},Ge.prototype.run=function(ue,ve){var Ee=ce.get(ve);return Ee?Ee.run():Promise.resolve()},Ge}(B.b);Object(B.h)(ce.ID,ce),Object(B.f)(Z);var ye=B.c.bindToContribution(ce.get);Object(B.g)(new ye({id:"acceptRenameInput",precondition:u,handler:function(je){return je.acceptRenameInput(!1)},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:3}})),Object(B.g)(new ye({id:"acceptRenameInputWithPreview",precondition:$.a.and(u,$.a.has("config.editor.rename.enablePreview")),handler:function(je){return je.acceptRenameInput(!0)},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:1024+3}})),Object(B.g)(new ye({id:"cancelRenameInput",precondition:u,handler:function(je){return je.cancelRenameInput()},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:9,secondary:[1024|9]}})),Object(B.e)("_executeDocumentRenameProvider",function(je,Ge,ue){var ve=ue.newName;if(typeof ve!="string")throw Object(le.b)("newName");return q(je,Ge,ve)}),_e.a.as(Se.a.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:T.a("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},QDVR:function(Lt,N,e){"use strict";e.d(N,"e",function(){return le}),e.d(N,"d",function(){return $}),e.d(N,"c",function(){return D}),e.d(N,"b",function(){return W}),e.d(N,"a",function(){return h});var T=function(){var y=function(w,f){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,C){v.__proto__=C}||function(v,C){for(var g in C)C.hasOwnProperty(g)&&(v[g]=C[g])},y(w,f)};return function(w,f){y(w,f);function v(){this.constructor=w}w.prototype=f===null?Object.create(f):(v.prototype=f.prototype,new v)}}();function le(y){var w=[];return y.forEach(function(f){return w.push(f)}),w}function $(y){var w=[];return y.forEach(function(f,v){return w.push(v)}),w}var R=function(){function y(){this._value="",this._pos=0}return y.prototype.reset=function(w){return this._value=w,this._pos=0,this},y.prototype.next=function(){return this._pos+=1,this},y.prototype.hasNext=function(){return this._pos<this._value.length-1},y.prototype.cmp=function(w){var f=w.charCodeAt(0),v=this._value.charCodeAt(this._pos);return f-v},y.prototype.value=function(){return this._value[this._pos]},y}(),B=function(){function y(w){w===void 0&&(w=!0),this._splitOnBackslash=w}return y.prototype.reset=function(w){return this._value=w.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},y.prototype.hasNext=function(){return this._to<this._value.length},y.prototype.next=function(){this._from=this._to;for(var w=!0;this._to<this._value.length;this._to++){var f=this._value.charCodeAt(this._to);if(f===47||this._splitOnBackslash&&f===92)if(w)this._from++;else break;else w=!1}return this},y.prototype.cmp=function(w){for(var f=0,v=w.length,C=this._from;f<v&&C<this._to;){var g=w.charCodeAt(f)-this._value.charCodeAt(C);if(g!==0)return g;f+=1,C+=1}return v===this._to-this._from?0:f<v?-1:1},y.prototype.value=function(){return this._value.substring(this._from,this._to)},y}(),z=function(){function y(){}return y}(),D=function(){function y(w){this._iter=w}return y.forPaths=function(){return new y(new B)},y.forStrings=function(){return new y(new R)},y.prototype.clear=function(){this._root=void 0},y.prototype.set=function(w,f){var v=this._iter.reset(w),C;for(this._root||(this._root=new z,this._root.segment=v.value()),C=this._root;;){var g=v.cmp(C.segment);if(g>0)C.left||(C.left=new z,C.left.segment=v.value()),C=C.left;else if(g<0)C.right||(C.right=new z,C.right.segment=v.value()),C=C.right;else if(v.hasNext())v.next(),C.mid||(C.mid=new z,C.mid.segment=v.value()),C=C.mid;else break}var u=C.value;return C.value=f,C.key=w,u},y.prototype.get=function(w){for(var f=this._iter.reset(w),v=this._root;v;){var C=f.cmp(v.segment);if(C>0)v=v.left;else if(C<0)v=v.right;else if(f.hasNext())f.next(),v=v.mid;else break}return v?v.value:void 0},y.prototype.findSubstr=function(w){for(var f=this._iter.reset(w),v=this._root,C=void 0;v;){var g=f.cmp(v.segment);if(g>0)v=v.left;else if(g<0)v=v.right;else if(f.hasNext())f.next(),C=v.value||C,v=v.mid;else break}return v&&v.value||C},y.prototype.forEach=function(w){this._forEach(this._root,w)},y.prototype._forEach=function(w,f){w&&(this._forEach(w.left,f),w.value&&f(w.value,w.key),this._forEach(w.mid,f),this._forEach(w.right,f))},y}(),W=function(){function y(){this.map=new Map,this.ignoreCase=!1}return y.prototype.set=function(w,f){this.map.set(this.toKey(w),f)},y.prototype.get=function(w){return this.map.get(this.toKey(w))},y.prototype.toKey=function(w){var f=w.toString();return this.ignoreCase&&(f=f.toLowerCase()),f},y}(),x=function(){function y(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return y.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(y.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),y.prototype.get=function(w,f){f===void 0&&(f=0);var v=this._map.get(w);return v?(f!==0&&this.touch(v,f),v.value):void 0},y.prototype.set=function(w,f,v){v===void 0&&(v=0);var C=this._map.get(w);if(C)C.value=f,v!==0&&this.touch(C,v);else{C={key:w,value:f,next:void 0,previous:void 0};switch(v){case 0:this.addItemLast(C);break;case 1:this.addItemFirst(C);break;case 2:this.addItemLast(C);break;default:this.addItemLast(C);break}this._map.set(w,C),this._size++}},y.prototype.delete=function(w){return!!this.remove(w)},y.prototype.remove=function(w){var f=this._map.get(w);return f?(this._map.delete(w),this.removeItem(f),this._size--,f.value):void 0},y.prototype.forEach=function(w,f){for(var v=this._head;v;)f?w.bind(f)(v.value,v.key,this):w(v.value,v.key,this),v=v.next},y.prototype.trimOld=function(w){if(w>=this.size)return;if(w===0){this.clear();return}for(var f=this._head,v=this.size;f&&v>w;)this._map.delete(f.key),f=f.next,v--;this._head=f,this._size=v,f&&(f.previous=void 0)},y.prototype.addItemFirst=function(w){if(!this._head&&!this._tail)this._tail=w;else if(this._head)w.next=this._head,this._head.previous=w;else throw new Error("Invalid list");this._head=w},y.prototype.addItemLast=function(w){if(!this._head&&!this._tail)this._head=w;else if(this._tail)w.previous=this._tail,this._tail.next=w;else throw new Error("Invalid list");this._tail=w},y.prototype.removeItem=function(w){if(w===this._head&&w===this._tail)this._head=void 0,this._tail=void 0;else if(w===this._head){if(!w.next)throw new Error("Invalid list");w.next.previous=void 0,this._head=w.next}else if(w===this._tail){if(!w.previous)throw new Error("Invalid list");w.previous.next=void 0,this._tail=w.previous}else{var f=w.next,v=w.previous;if(!f||!v)throw new Error("Invalid list");f.previous=v,v.next=f}w.next=void 0,w.previous=void 0},y.prototype.touch=function(w,f){if(!this._head||!this._tail)throw new Error("Invalid list");if(f!==1&&f!==2)return;if(f===1){if(w===this._head)return;var v=w.next,C=w.previous;w===this._tail?(C.next=void 0,this._tail=C):(v.previous=C,C.next=v),w.previous=void 0,w.next=this._head,this._head.previous=w,this._head=w}else if(f===2){if(w===this._tail)return;var v=w.next,C=w.previous;w===this._head?(v.previous=void 0,this._head=v):(v.previous=C,C.next=v),w.next=void 0,w.previous=this._tail,this._tail.next=w,this._tail=w}},y.prototype.toJSON=function(){var w=[];return this.forEach(function(f,v){w.push([v,f])}),w},y}(),h=function(y){T(w,y);function w(f,v){v===void 0&&(v=1);var C=y.call(this)||this;return C._limit=f,C._ratio=Math.min(Math.max(0,v),1),C}return w.prototype.get=function(f){return y.prototype.get.call(this,f,2)},w.prototype.peek=function(f){return y.prototype.get.call(this,f,0)},w.prototype.set=function(f,v){y.prototype.set.call(this,f,v,2),this.checkTrim()},w.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},w}(x)},QFiB:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return e.e(312).then(e.bind(null,"PhST"))}})},QRHv:function(Lt,N,e){"use strict";e.d(N,"f",function(){return B}),e.d(N,"b",function(){return W}),e.d(N,"c",function(){return x}),e.d(N,"a",function(){return y}),e.d(N,"e",function(){return v}),e.d(N,"d",function(){return C});var T=e("6OMU"),le=e("4bUh"),$=e("cGHE"),R=e("twdY");function B(g){for(var u=0,s=0,l=0,c=0,p=g.length;c<p;c++){var _=g.charCodeAt(c);_===13?(u===0&&(s=c),u++,c+1<p&&g.charCodeAt(c+1)===10&&c++,l=c+1):_===10&&(u===0&&(s=c),u++,l=c+1)}return u===0&&(s=g.length),[u,s,g.length-l]}function z(g){return(g<<0|0<<8|0<<11|1<<14|2<<23)>>>0}var D=new Uint32Array(0).buffer,W=function(){function g(){this.tokens=[]}return g.prototype.add=function(u,s){if(this.tokens.length>0){var l=this.tokens[this.tokens.length-1],c=l.startLineNumber+l.tokens.length-1;if(c+1===u){l.tokens.push(s);return}}this.tokens.push(new w(u,[s]))},g}(),x=function(){function g(u){this._tokens=u,this._tokenCount=u.length/4}return g.prototype.getMaxDeltaLine=function(){var u=this.getTokenCount();return u===0?-1:this.getDeltaLine(u-1)},g.prototype.getTokenCount=function(){return this._tokenCount},g.prototype.getDeltaLine=function(u){return this._tokens[4*u]},g.prototype.getStartCharacter=function(u){return this._tokens[4*u+1]},g.prototype.getEndCharacter=function(u){return this._tokens[4*u+2]},g.prototype.getMetadata=function(u){return this._tokens[4*u+3]},g.prototype.clear=function(){this._tokenCount=0},g.prototype.acceptDeleteRange=function(u,s,l,c,p){for(var _=this._tokens,L=this._tokenCount,I=c-s,P=0,A=!1,Q=0;Q<L;Q++){var K=4*Q,H=_[K],V=_[K+1],de=_[K+2],_e=_[K+3];if(H<s||H===s&&de<=l){P++;continue}else if(H===s&&V<l)H===c&&de>p?de-=p-l:de=l;else if(H===s&&V===l)if(H===c&&de>p)de-=p-l;else{A=!0;continue}else if(H<c||H===c&&V<p)if(H===c&&de>p)H===s?(V=l,de=V+(de-p)):(V=0,de=V+(de-p));else{A=!0;continue}else if(H>c){if(I===0&&!A){P=L;break}H-=I}else if(H===c&&V>=p)u&&H===0&&(V+=u,de+=u),H-=I,V-=p-l,de-=p-l;else throw new Error("Not possible!");var Se=4*P;_[Se]=H,_[Se+1]=V,_[Se+2]=de,_[Se+3]=_e,P++}this._tokenCount=P},g.prototype.acceptInsertText=function(u,s,l,c,p,_){for(var L=l===0&&c===1&&(_>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122),I=this._tokens,P=this._tokenCount,A=0;A<P;A++){var Q=4*A,K=I[Q],H=I[Q+1],V=I[Q+2];if(K<u||K===u&&V<s)continue;if(K===u&&V===s)if(L)V+=1;else continue;else if(K===u&&H<s&&s<V)l===0?V+=c:V=s;else{if(K===u&&H===s&&L)continue;if(K===u)if(K+=l,l===0)H+=c,V+=c;else{var de=V-H;H=p+(H-s),V=H+de}else K+=l}I[Q]=K,I[Q+1]=H,I[Q+2]=V}},g}(),h=function(){function g(u,s,l){this._actual=u,this._startTokenIndex=s,this._endTokenIndex=l}return g.prototype.getCount=function(){return this._endTokenIndex-this._startTokenIndex+1},g.prototype.getStartCharacter=function(u){return this._actual.getStartCharacter(this._startTokenIndex+u)},g.prototype.getEndCharacter=function(u){return this._actual.getEndCharacter(this._startTokenIndex+u)},g.prototype.getMetadata=function(u){return this._actual.getMetadata(this._startTokenIndex+u)},g}(),y=function(){function g(u,s){this.startLineNumber=u,this.tokens=s,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}return g.prototype._updateEndLineNumber=function(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()},g.prototype.getLineTokens=function(u){if(this.startLineNumber<=u&&u<=this.endLineNumber){var s=g._findTokensWithLine(this.tokens,u-this.startLineNumber);if(s){var l=s[0],c=s[1];return new h(this.tokens,l,c)}}return null},g._findTokensWithLine=function(u,s){for(var l=0,c=u.getTokenCount()-1;l<c;){var p=l+Math.floor((c-l)/2),_=u.getDeltaLine(p);if(_<s)l=p+1;else if(_>s)c=p-1;else{for(var L=p;L>l&&u.getDeltaLine(L-1)===s;)L--;for(var I=p;I<c&&u.getDeltaLine(I+1)===s;)I++;return[L,I]}}return u.getDeltaLine(l)===s?[l,l]:null},g.prototype.applyEdit=function(u,s){var l=B(s),c=l[0],p=l[1],_=l[2];this.acceptEdit(u,c,p,_,s.length>0?s.charCodeAt(0):0)},g.prototype.acceptEdit=function(u,s,l,c,p){this._acceptDeleteRange(u),this._acceptInsertText(new $.a(u.startLineNumber,u.startColumn),s,l,c,p),this._updateEndLineNumber()},g.prototype._acceptDeleteRange=function(u){if(u.startLineNumber===u.endLineNumber&&u.startColumn===u.endColumn)return;var s=u.startLineNumber-this.startLineNumber,l=u.endLineNumber-this.startLineNumber;if(l<0){var c=l-s;this.startLineNumber-=c;return}var p=this.tokens.getMaxDeltaLine();if(s>=p+1)return;if(s<0&&l>=p+1){this.startLineNumber=0,this.tokens.clear();return}if(s<0){var _=-s;this.startLineNumber-=_,this.tokens.acceptDeleteRange(u.startColumn-1,0,0,l,u.endColumn-1)}else this.tokens.acceptDeleteRange(0,s,u.startColumn-1,l,u.endColumn-1)},g.prototype._acceptInsertText=function(u,s,l,c,p){if(s===0&&l===0)return;var _=u.lineNumber-this.startLineNumber;if(_<0){this.startLineNumber+=s;return}var L=this.tokens.getMaxDeltaLine();if(_>=L+1)return;this.tokens.acceptInsertText(_,u.column-1,s,l,c,p)},g}(),w=function(){function g(u,s){this.startLineNumber=u,this.tokens=s}return g}();function f(g){return g instanceof Uint32Array?g:new Uint32Array(g)}var v=function(){function g(){this._pieces=[]}return g.prototype.flush=function(){this._pieces=[]},g.prototype.set=function(u){this._pieces=u||[]},g.prototype.addSemanticTokens=function(u,s){var l=this._pieces;if(l.length===0)return s;var c=g._findFirstPieceWithLine(l,u),p=this._pieces[c].getLineTokens(u);if(!p)return s;for(var _=s.getCount(),L=p.getCount(),I=0,P=[],A=0,Q=0;Q<L;Q++){for(var K=p.getStartCharacter(Q),H=p.getEndCharacter(Q),V=p.getMetadata(Q),de=((V&1?2048:0)|(V&2?4096:0)|(V&4?8192:0)|(V&8?8372224:0)|(V&16?4286578688:0))>>>0,_e=~de>>>0;I<_&&s.getEndOffset(I)<=K;)P[A++]=s.getEndOffset(I),P[A++]=s.getMetadata(I),I++;for(I<_&&s.getStartOffset(I)<K&&(P[A++]=K,P[A++]=s.getMetadata(I));I<_&&s.getEndOffset(I)<H;)P[A++]=s.getEndOffset(I),P[A++]=s.getMetadata(I)&_e|V&de,I++;if(I<_&&s.getEndOffset(I)===H)P[A++]=s.getEndOffset(I),P[A++]=s.getMetadata(I)&_e|V&de,I++;else{var Se=Math.min(Math.max(0,I-1),_-1);P[A++]=H,P[A++]=s.getMetadata(Se)&_e|V&de}}for(;I<_;)P[A++]=s.getEndOffset(I),P[A++]=s.getMetadata(I),I++;return new le.a(new Uint32Array(P),s.getLineContent())},g._findFirstPieceWithLine=function(u,s){for(var l=0,c=u.length-1;l<c;){var p=l+Math.floor((c-l)/2);if(u[p].endLineNumber<s)l=p+1;else if(u[p].startLineNumber>s)c=p-1;else{for(;p>l&&u[p-1].startLineNumber<=s&&s<=u[p-1].endLineNumber;)p--;return p}}return l},g.prototype.acceptEdit=function(u,s,l,c,p){for(var _=0,L=this._pieces;_<L.length;_++){var I=L[_];I.acceptEdit(u,s,l,c,p)}},g}(),C=function(){function g(){this._lineTokens=[],this._len=0}return g.prototype.flush=function(){this._lineTokens=[],this._len=0},g.prototype.getTokens=function(u,s,l){var c=null;if(s<this._len&&(c=this._lineTokens[s]),c!==null&&c!==D)return new le.a(f(c),l);var p=new Uint32Array(2);return p[0]=l.length,p[1]=z(u),new le.a(p,l)},g._massageTokens=function(u,s,l){var c=l?f(l):null;if(s===0){var p=!1;if(c&&c.length>1&&(p=R.A.getLanguageId(c[1])!==u),!p)return D}if(!c||c.length===0){var _=new Uint32Array(2);return _[0]=s,_[1]=z(u),_.buffer}return c[c.length-2]=s,c.byteOffset===0&&c.byteLength===c.buffer.byteLength?c.buffer:c},g.prototype._ensureLine=function(u){for(;u>=this._len;)this._lineTokens[this._len]=null,this._len++},g.prototype._deleteLines=function(u,s){if(s===0)return;u+s>this._len&&(s=this._len-u),this._lineTokens.splice(u,s),this._len-=s},g.prototype._insertLines=function(u,s){if(s===0)return;for(var l=[],c=0;c<s;c++)l[c]=null;this._lineTokens=T.a(this._lineTokens,u,l),this._len+=s},g.prototype.setTokens=function(u,s,l,c){var p=g._massageTokens(u,l,c);this._ensureLine(s),this._lineTokens[s]=p},g.prototype.acceptEdit=function(u,s,l){this._acceptDeleteRange(u),this._acceptInsertText(new $.a(u.startLineNumber,u.startColumn),s,l)},g.prototype._acceptDeleteRange=function(u){var s=u.startLineNumber-1;if(s>=this._len)return;if(u.startLineNumber===u.endLineNumber){if(u.startColumn===u.endColumn)return;this._lineTokens[s]=g._delete(this._lineTokens[s],u.startColumn-1,u.endColumn-1);return}this._lineTokens[s]=g._deleteEnding(this._lineTokens[s],u.startColumn-1);var l=u.endLineNumber-1,c=null;l<this._len&&(c=g._deleteBeginning(this._lineTokens[l],u.endColumn-1)),this._lineTokens[s]=g._append(this._lineTokens[s],c),this._deleteLines(u.startLineNumber,u.endLineNumber-u.startLineNumber)},g.prototype._acceptInsertText=function(u,s,l){if(s===0&&l===0)return;var c=u.lineNumber-1;if(c>=this._len)return;if(s===0){this._lineTokens[c]=g._insert(this._lineTokens[c],u.column-1,l);return}this._lineTokens[c]=g._deleteEnding(this._lineTokens[c],u.column-1),this._lineTokens[c]=g._insert(this._lineTokens[c],u.column-1,l),this._insertLines(u.lineNumber,s)},g._deleteBeginning=function(u,s){return u===null||u===D?u:g._delete(u,0,s)},g._deleteEnding=function(u,s){if(u===null||u===D)return u;var l=f(u),c=l[l.length-2];return g._delete(u,s,c)},g._delete=function(u,s,l){if(u===null||u===D||s===l)return u;var c=f(u),p=c.length>>>1;if(s===0&&c[c.length-2]===l)return D;var _=le.a.findIndexInTokensArray(c,s),L=_>0?c[_-1<<1]:0,I=c[_<<1];if(l<I){for(var P=l-s,A=_;A<p;A++)c[A<<1]-=P;return u}var Q,K;L!==s?(c[_<<1]=s,Q=_+1<<1,K=s):(Q=_<<1,K=L);for(var H=l-s,V=_+1;V<p;V++){var de=c[V<<1]-H;de>K&&(c[Q++]=de,c[Q++]=c[(V<<1)+1],K=de)}if(Q===c.length)return u;var _e=new Uint32Array(Q);return _e.set(c.subarray(0,Q),0),_e.buffer},g._append=function(u,s){if(s===D)return u;if(u===D)return s;if(u===null)return u;if(s===null)return null;var l=f(u),c=f(s),p=c.length>>>1,_=new Uint32Array(l.length+c.length);_.set(l,0);for(var L=l.length,I=l[l.length-2],P=0;P<p;P++)_[L++]=c[P<<1]+I,_[L++]=c[(P<<1)+1];return _.buffer},g._insert=function(u,s,l){if(u===null||u===D)return u;var c=f(u),p=c.length>>>1,_=le.a.findIndexInTokensArray(c,s);if(_>0){var L=c[_-1<<1];L===s&&_--}for(var I=_;I<p;I++)c[I<<1]+=l;return u},g}()},QVNv:function(Lt,N,e){"use strict";e.d(N,"b",function(){return v}),e.d(N,"a",function(){return g}),e.d(N,"c",function(){return s}),e.d(N,"e",function(){return l}),e.d(N,"d",function(){return I}),e.d(N,"f",function(){return A});var T=e("X+cX"),le=e("qj0h"),$=e("/cxE"),R=e("sswD"),B=e("twdY"),z=e("cGHE"),D=e("T8No"),W=e("JQT/"),x=e("aokT"),h=e("fpMC"),y=e("pmY6"),w=function(Q,K,H,V){function de(_e){return _e instanceof H?_e:new H(function(Se){Se(_e)})}return new(H||(H=Promise))(function(_e,Se){function Ie(ke){try{Ve(V.next(ke))}catch(se){Se(se)}}function Pe(ke){try{Ve(V.throw(ke))}catch(se){Se(se)}}function Ve(ke){ke.done?_e(ke.value):de(ke.value).then(Ie,Pe)}Ve((V=V.apply(Q,K||[])).next())})},f=function(Q,K){var H={label:0,sent:function(){if(_e[0]&1)throw _e[1];return _e[1]},trys:[],ops:[]},V,de,_e,Se;return Se={next:Ie(0),throw:Ie(1),return:Ie(2)},typeof Symbol=="function"&&(Se[Symbol.iterator]=function(){return this}),Se;function Ie(Ve){return function(ke){return Pe([Ve,ke])}}function Pe(Ve){if(V)throw new TypeError("Generator is already executing.");for(;H;)try{if(V=1,de&&(_e=Ve[0]&2?de.return:Ve[0]?de.throw||((_e=de.return)&&_e.call(de),0):de.next)&&!(_e=_e.call(de,Ve[1])).done)return _e;(de=0,_e)&&(Ve=[Ve[0]&2,_e.value]);switch(Ve[0]){case 0:case 1:_e=Ve;break;case 4:return H.label++,{value:Ve[1],done:!1};case 5:H.label++,de=Ve[1],Ve=[0];continue;case 7:Ve=H.ops.pop(),H.trys.pop();continue;default:if(!(_e=H.trys,_e=_e.length>0&&_e[_e.length-1])&&(Ve[0]===6||Ve[0]===2)){H=0;continue}if(Ve[0]===3&&(!_e||Ve[1]>_e[0]&&Ve[1]<_e[3])){H.label=Ve[1];break}if(Ve[0]===6&&H.label<_e[1]){H.label=_e[1],_e=Ve;break}if(_e&&H.label<_e[2]){H.label=_e[2],H.ops.push(Ve);break}_e[2]&&H.ops.pop(),H.trys.pop();continue}Ve=K.call(Q,H)}catch(ke){Ve=[6,ke],de=0}finally{V=_e=0}if(Ve[0]&5)throw Ve[1];return{value:Ve[0]?Ve[1]:void 0,done:!0}}},v={Visible:new D.d("suggestWidgetVisible",!1),MultipleSuggestions:new D.d("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new D.d("suggestionMakesTextEdit",!0),AcceptSuggestionsOnEnter:new D.d("acceptSuggestionOnEnter",!0)},C=function(){function Q(K,H,V,de,_e){var Se=this;this.position=K,this.completion=H,this.container=V,this.provider=de,this.isResolved=!1,this.score=h.a.Default,this.distance=0,this.textLabel=typeof H.label=="string"?H.label:H.label.name,this.labelLow=this.textLabel.toLowerCase(),this.sortTextLow=H.sortText&&H.sortText.toLowerCase(),this.filterTextLow=H.filterText&&H.filterText.toLowerCase(),x.a.isIRange(H.range)?(this.editStart=new z.a(H.range.startLineNumber,H.range.startColumn),this.editInsertEnd=new z.a(H.range.endLineNumber,H.range.endColumn),this.editReplaceEnd=new z.a(H.range.endLineNumber,H.range.endColumn)):(this.editStart=new z.a(H.range.insert.startLineNumber,H.range.insert.startColumn),this.editInsertEnd=new z.a(H.range.insert.endLineNumber,H.range.insert.endColumn),this.editReplaceEnd=new z.a(H.range.replace.endLineNumber,H.range.replace.endColumn));var Ie=de.resolveCompletionItem;if(typeof Ie!="function")this.resolve=function(){return Promise.resolve()},this.isResolved=!0;else{var Pe;this.resolve=function(Ve){return Pe||(Pe=Promise.resolve(Ie.call(de,_e,K,H,Ve)).then(function(ke){Object(le.a)(H,ke),Se.isResolved=!0},function(ke){Object($.d)(ke)&&(Pe=void 0)}),Ve.onCancellationRequested(function(){Se.isResolved||(Pe=void 0)})),Pe}}}return Q}(),g=function(){function Q(K,H,V){K===void 0&&(K=2),H===void 0&&(H=new Set),V===void 0&&(V=new Set),this.snippetSortOrder=K,this.kindFilter=H,this.providerFilter=V}return Q.default=new Q,Q}(),u;function s(){return u}function l(Q,K,H,V,de){H===void 0&&(H=g.default),V===void 0&&(V={triggerKind:0}),de===void 0&&(de=W.a.None);var _e=Q.getWordAtPosition(K),Se=_e?new x.a(K.lineNumber,_e.startColumn,K.lineNumber,_e.endColumn):x.a.fromPositions(K),Ie=Se.setEndPosition(K.lineNumber,K.column);K=K.clone();var Pe=B.d.orderedGroups(Q);!H.kindFilter.has(25)&&u&&Pe.unshift([u]);var Ve=[],ke=new y.b,se=!1,ee=Pe.map(function(q){return function(){return Promise.all(q.map(function(ce){return H.providerFilter.size>0&&!H.providerFilter.has(ce)?void 0:Promise.resolve(ce.provideCompletionItems(Q,K,V,de)).then(function(Z){var ye=Ve.length;if(Z){for(var je=0,Ge=Z.suggestions||[];je<Ge.length;je++){var ue=Ge[je];H.kindFilter.has(ue.kind)||(ue.range||(ue.range={insert:Ie,replace:Se}),ue.sortText||(ue.sortText=typeof ue.label=="string"?ue.label:ue.label.name),Ve.push(new C(K,ue,Z,ce,Q)))}Object(y.g)(Z)&&ke.add(Z)}ye!==Ve.length&&ce!==u&&(se=!0)},$.f)}))}}),ie=Object(T.h)(ee,function(){return se||de.isCancellationRequested}).then(function(){return de.isCancellationRequested?(ke.dispose(),Promise.reject(Object($.a)())):Ve.sort(I(H.snippetSortOrder))});return ie}function c(Q,K){if(Q.sortTextLow&&K.sortTextLow){if(Q.sortTextLow<K.sortTextLow)return-1;if(Q.sortTextLow>K.sortTextLow)return 1}return Q.completion.label<K.completion.label?-1:Q.completion.label>K.completion.label?1:Q.completion.kind-K.completion.kind}function p(Q,K){if(Q.completion.kind!==K.completion.kind){if(Q.completion.kind===25)return-1;if(K.completion.kind===25)return 1}return c(Q,K)}function _(Q,K){if(Q.completion.kind!==K.completion.kind){if(Q.completion.kind===25)return 1;if(K.completion.kind===25)return-1}return c(Q,K)}var L=new Map;L.set(0,p),L.set(2,_),L.set(1,c);function I(Q){return L.get(Q)}Object(R.e)("_executeCompletionItemProvider",function(Q,K,H){return w(void 0,void 0,void 0,function(){var V,de,_e,Se,Ie,Pe,Ve,ke;return f(this,function(se){switch(se.label){case 0:return V={incomplete:!1,suggestions:[]},de=new y.b,_e=[],Se=H.maxItemsToResolve||0,[4,l(Q,K)];case 1:for(Ie=se.sent(),Pe=0,Ve=Ie;Pe<Ve.length;Pe++)ke=Ve[Pe],_e.length<Se&&_e.push(ke.resolve(W.a.None)),V.incomplete=V.incomplete||ke.container.incomplete,V.suggestions.push(ke.completion),Object(y.g)(ke.container)&&de.add(ke.container);se.label=2;case 2:return se.trys.push([2,,4,5]),[4,Promise.all(_e)];case 3:return se.sent(),[2,V];case 4:return setTimeout(function(){return de.dispose()},100),[7];case 5:return[2]}})})});var P=new(function(){function Q(){this.onlyOnceSuggestions=[]}return Q.prototype.provideCompletionItems=function(){var K=this.onlyOnceSuggestions.slice(0),H={suggestions:K};return this.onlyOnceSuggestions.length=0,H},Q}());B.d.register("*",P);function A(Q,K){setTimeout(function(){var H;(H=P.onlyOnceSuggestions).push.apply(H,K),Q.getContribution("editor.contrib.suggestController").triggerSuggest(new Set().add(P))},0)}},QY8A:function(Lt,N,e){"use strict";e.d(N,"a",function(){return Nt});var T=e("3/fG"),le=e("/cxE"),$=e("pmY6"),R=e("Vxe3"),B=e("Cg/j"),z=e("T8No"),D=e("+7oY"),W=e("A+jI"),x=e("9o5J"),h=e("KaET"),y=e("EffR"),w=e("zrhQ"),f=e("MI8n"),v=e("tYmi"),C=e("gslv"),g=e("03kh"),u=e("aokT"),s=e("tX9W"),l=e("t49l"),c=e("xONI"),p=e("VPJY"),_=e("N0LK"),L=e("qj0h"),I={badgeBackground:w.a.fromHex("#4D4D4D"),badgeForeground:w.a.fromHex("#FFFFFF")},P=function(){function $e(Ye,ze){this.count=0,this.options=ze||Object.create(null),Object(L.g)(this.options,I,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(y.q)(Ye,Object(y.a)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}return $e.prototype.setCount=function(Ye){this.count=Ye,this.render()},$e.prototype.setTitleFormat=function(Ye){this.titleFormat=Ye,this.render()},$e.prototype.render=function(){this.element.textContent=Object(_.r)(this.countFormat,this.count),this.element.title=Object(_.r)(this.titleFormat,this.count),this.applyStyles()},$e.prototype.style=function(Ye){this.badgeBackground=Ye.badgeBackground,this.badgeForeground=Ye.badgeForeground,this.badgeBorder=Ye.badgeBorder,this.applyStyles()},$e.prototype.applyStyles=function(){if(this.element){var Ye=this.badgeBackground?this.badgeBackground.toString():"",ze=this.badgeForeground?this.badgeForeground.toString():"",Ke=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=Ye,this.element.style.color=ze,this.element.style.borderWidth=Ke?"1px":"",this.element.style.borderStyle=Ke?"solid":"",this.element.style.borderColor=Ke}},$e}(),A=e("R8sh"),Q=e("t9D7"),K=e("ptcw"),H=e("3rx1"),V=e("bexQ"),de=e("fpMC"),_e=e("7lZ/"),Se=function(){var $e=function(Ye,ze){return $e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ke,ge){Ke.__proto__=ge}||function(Ke,ge){for(var G in ge)ge.hasOwnProperty(G)&&(Ke[G]=ge[G])},$e(Ye,ze)};return function(Ye,ze){$e(Ye,ze);function Ke(){this.constructor=Ye}Ye.prototype=ze===null?Object.create(ze):(Ke.prototype=ze.prototype,new Ke)}}(),Ie=function($e,Ye,ze,Ke){var ge=arguments.length,G=ge<3?Ye:Ke===null?Ke=Object.getOwnPropertyDescriptor(Ye,ze):Ke,oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate($e,Ye,ze,Ke);else for(var Y=$e.length-1;Y>=0;Y--)(oe=$e[Y])&&(G=(ge<3?oe(G):ge>3?oe(Ye,ze,G):oe(Ye,ze))||G);return ge>3&&G&&Object.defineProperty(Ye,ze,G),G},Pe=function($e,Ye){return function(ze,Ke){Ye(ze,Ke,$e)}},Ve=function(){function $e(Ye){this._resolverService=Ye}return $e.prototype.hasChildren=function(Ye){return Ye instanceof x.c?!0:Ye instanceof x.a&&!Ye.failure},$e.prototype.getChildren=function(Ye){if(Ye instanceof x.c)return Ye.groups;if(Ye instanceof x.a)return Ye.resolve(this._resolverService).then(function(ze){return ze.children});throw new Error("bad tree")},$e=Ie([Pe(0,l.a)],$e),$e}(),ke=function(){function $e(){}return $e.prototype.getHeight=function(){return 23},$e.prototype.getTemplateId=function(Ye){return Ye instanceof x.a?q.id:Z.id},$e}(),se=function(){function $e(Ye){this._keybindingService=Ye}return $e.prototype.getKeyboardNavigationLabel=function(Ye){if(Ye instanceof x.b){var ze=Ye.parent.preview,Ke=ze&&ze.preview(Ye.range);if(Ke)return Ke.value}return Object(C.b)(Ye.uri)},$e=Ie([Pe(0,V.a)],$e),$e}(),ee=function(){function $e(){}return $e.prototype.getId=function(Ye){return Ye instanceof x.b?Ye.id:Ye.uri},$e}(),ie=function($e){Se(Ye,$e);function Ye(ze,Ke,ge){var G=$e.call(this)||this;G._uriLabel=Ke;var oe=document.createElement("div");return y.f(oe,"reference-file"),G.file=G._register(new c.a(oe,{supportHighlights:!0})),G.badge=new P(y.q(oe,y.a(".count"))),G._register(Object(K.a)(G.badge,ge)),ze.appendChild(oe),G}return Ye.prototype.set=function(ze,Ke){var ge=Object(C.d)(ze.uri);this.file.setLabel(Object(H.a)(ze.uri),this._uriLabel.getUriLabel(ge,{relative:!0}),{title:this._uriLabel.getUriLabel(ze.uri),matches:Ke});var G=ze.children.length;this.badge.setCount(G),ze.failure?this.badge.setTitleFormat(Object(T.a)("referencesFailre","Failed to resolve file.")):G>1?this.badge.setTitleFormat(Object(T.a)("referencesCount","{0} references",G)):this.badge.setTitleFormat(Object(T.a)("referenceCount","{0} reference",G))},Ye=Ie([Pe(1,A.a),Pe(2,Q.c)],Ye),Ye}($.a),q=function(){function $e(Ye){this._instantiationService=Ye,this.templateId=$e.id}return $e.prototype.renderTemplate=function(Ye){return this._instantiationService.createInstance(ie,Ye)},$e.prototype.renderElement=function(Ye,ze,Ke){Ke.set(Ye.element,Object(de.c)(Ye.filterData))},$e.prototype.disposeTemplate=function(Ye){Ye.dispose()},$e.id="FileReferencesRenderer",$e=Ie([Pe(0,B.a)],$e),$e}(),ce=function(){function $e(Ye){this.label=new _e.a(Ye,!1)}return $e.prototype.set=function(Ye,ze){var Ke=Ye.parent.preview,ge=Ke&&Ke.preview(Ye.range);if(!ge)this.label.set(Object(C.b)(Ye.uri)+":"+(Ye.range.startLineNumber+1)+":"+(Ye.range.startColumn+1));else{var G=ge.value,oe=ge.highlight;ze&&!de.a.isDefault(ze)?(y.Y(this.label.element,"referenceMatch",!1),this.label.set(G,Object(de.c)(ze))):(y.Y(this.label.element,"referenceMatch",!0),this.label.set(G,[oe]))}},$e}(),Z=function(){function $e(){this.templateId=$e.id}return $e.prototype.renderTemplate=function(Ye){return new ce(Ye)},$e.prototype.renderElement=function(Ye,ze,Ke){Ke.set(Ye.element,Ye.filterData)},$e.prototype.disposeTemplate=function(){},$e.id="OneReferenceRenderer",$e}(),ye=function(){function $e(){}return $e.prototype.getAriaLabel=function(Ye){return Ye.ariaMessage},$e}(),je=e("k9mg"),Ge=e("MD5Z"),ue=e("iNS8"),ve=e("51B1"),Ee=e("746U"),xe=e("Sdnv"),Ce=e("6OMU"),he=e("cMOf"),J=e("4y0V"),b=function(){var $e=function(Ye,ze){return $e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ke,ge){Ke.__proto__=ge}||function(Ke,ge){for(var G in ge)ge.hasOwnProperty(G)&&(Ke[G]=ge[G])},$e(Ye,ze)};return function(Ye,ze){$e(Ye,ze);function Ke(){this.constructor=Ye}Ye.prototype=ze===null?Object.create(ze):(Ke.prototype=ze.prototype,new Ke)}}(),F=function(){for(var $e=0,Ye=0,ze=arguments.length;Ye<ze;Ye++)$e+=arguments[Ye].length;for(var Ke=Array($e),ge=0,Ye=0;Ye<ze;Ye++)for(var G=arguments[Ye],oe=0,Y=G.length;oe<Y;oe++,ge++)Ke[ge]=G[oe];return Ke},re={separatorBorder:w.a.transparent},ne=function(){function $e(Ye,ze,Ke,ge){this.container=Ye,this.view=ze,this.disposable=ge,this._cachedVisibleSize=void 0,typeof Ke=="number"?(this._size=Ke,this._cachedVisibleSize=void 0,y.f(Ye,"visible")):(this._size=0,this._cachedVisibleSize=Ke.cachedVisibleSize)}return Object.defineProperty($e.prototype,"size",{get:function(){return this._size},set:function(Ye){this._size=Ye},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"visible",{get:function(){return typeof this._cachedVisibleSize=="undefined"},enumerable:!0,configurable:!0}),$e.prototype.setVisible=function(Ye,ze){if(Ye===this.visible)return;Ye?(this.size=Object(xe.a)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof ze=="number"?ze:this.size,this.size=0),y.Y(this.container,"visible",Ye),this.view.setVisible&&this.view.setVisible(Ye)},Object.defineProperty($e.prototype,"minimumSize",{get:function(){return this.visible?this.view.minimumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"viewMinimumSize",{get:function(){return this.view.minimumSize},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"maximumSize",{get:function(){return this.visible?this.view.maximumSize:0},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"viewMaximumSize",{get:function(){return this.view.maximumSize},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"priority",{get:function(){return this.view.priority},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"snap",{get:function(){return!!this.view.snap},enumerable:!0,configurable:!0}),Object.defineProperty($e.prototype,"enabled",{set:function(Ye){this.container.style.pointerEvents=Ye?null:"none"},enumerable:!0,configurable:!0}),$e.prototype.layout=function(Ye,ze){this.layoutContainer(Ye),this.view.layout(this.size,Ye,ze)},$e.prototype.dispose=function(){return this.disposable.dispose(),this.view},$e}(),fe=function($e){b(Ye,$e);function Ye(){return $e!==null&&$e.apply(this,arguments)||this}return Ye.prototype.layoutContainer=function(ze){this.container.style.top=ze+"px",this.container.style.height=this.size+"px"},Ye}(ne),Oe=function($e){b(Ye,$e);function Ye(){return $e!==null&&$e.apply(this,arguments)||this}return Ye.prototype.layoutContainer=function(ze){this.container.style.left=ze+"px",this.container.style.width=this.size+"px"},Ye}(ne),Me;(function($e){$e[$e.Idle=0]="Idle",$e[$e.Busy=1]="Busy"})(Me||(Me={}));var Ue;(function($e){$e.Distribute={type:"distribute"};function Ye(Ke){return{type:"split",index:Ke}}$e.Split=Ye;function ze(Ke){return{type:"invisible",cachedVisibleSize:Ke}}$e.Invisible=ze})(Ue||(Ue={}));var Je=function($e){b(Ye,$e);function Ye(ze,Ke){Ke===void 0&&(Ke={});var ge=$e.call(this)||this;return ge.size=0,ge.contentSize=0,ge.proportions=void 0,ge.viewItems=[],ge.sashItems=[],ge.state=Me.Idle,ge._onDidSashChange=ge._register(new f.a),ge.onDidSashChange=ge._onDidSashChange.event,ge._onDidSashReset=ge._register(new f.a),ge._startSnappingEnabled=!0,ge._endSnappingEnabled=!0,ge.orientation=Ee.k(Ke.orientation)?0:Ke.orientation,ge.inverseAltBehavior=!!Ke.inverseAltBehavior,ge.proportionalLayout=Ee.k(Ke.proportionalLayout)?!0:!!Ke.proportionalLayout,ge.el=document.createElement("div"),y.f(ge.el,"monaco-split-view2"),y.f(ge.el,ge.orientation===0?"vertical":"horizontal"),ze.appendChild(ge.el),ge.sashContainer=y.q(ge.el,y.a(".sash-container")),ge.viewContainer=y.q(ge.el,y.a(".split-view-container")),ge.style(Ke.styles||re),Ke.descriptor&&(ge.size=Ke.descriptor.size,Ke.descriptor.views.forEach(function(G,oe){var Y=Ee.k(G.visible)||G.visible?G.size:{type:"invisible",cachedVisibleSize:G.size},ae=G.view;ge.doAddView(ae,Y,oe,!0)}),ge.contentSize=ge.viewItems.reduce(function(G,oe){return G+oe.size},0),ge.saveProportions()),ge}return Object.defineProperty(Ye.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(ze){for(var Ke=0,ge=this.sashItems;Ke<ge.length;Ke++){var G=ge[Ke];G.sash.orthogonalStartSash=ze}this._orthogonalStartSash=ze},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(ze){for(var Ke=0,ge=this.sashItems;Ke<ge.length;Ke++){var G=ge[Ke];G.sash.orthogonalEndSash=ze}this._orthogonalEndSash=ze},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"startSnappingEnabled",{get:function(){return this._startSnappingEnabled},set:function(ze){if(this._startSnappingEnabled===ze)return;this._startSnappingEnabled=ze,this.updateSashEnablement()},enumerable:!0,configurable:!0}),Object.defineProperty(Ye.prototype,"endSnappingEnabled",{get:function(){return this._endSnappingEnabled},set:function(ze){if(this._endSnappingEnabled===ze)return;this._endSnappingEnabled=ze,this.updateSashEnablement()},enumerable:!0,configurable:!0}),Ye.prototype.style=function(ze){ze.separatorBorder.isTransparent()?(y.P(this.el,"separator-border"),this.el.style.removeProperty("--separator-border")):(y.f(this.el,"separator-border"),this.el.style.setProperty("--separator-border",ze.separatorBorder.toString()))},Ye.prototype.addView=function(ze,Ke,ge){ge===void 0&&(ge=this.viewItems.length),this.doAddView(ze,Ke,ge,!1)},Ye.prototype.layout=function(ze,Ke){var ge=this,G=Math.max(this.size,this.contentSize);if(this.size=ze,this.layoutContext=Ke,this.proportions)for(var Fe=0;Fe<this.viewItems.length;Fe++){var dt=this.viewItems[Fe];dt.size=Object(xe.a)(Math.round(this.proportions[Fe]*ze),dt.minimumSize,dt.maximumSize)}else{var oe=Object(Ce.u)(this.viewItems.length),Y=oe.filter(function(Ot){return ge.viewItems[Ot].priority===1}),ae=oe.filter(function(Ot){return ge.viewItems[Ot].priority===2});this.resize(this.viewItems.length-1,ze-G,void 0,Y,ae)}this.distributeEmptySpace(),this.layoutViews()},Ye.prototype.saveProportions=function(){var ze=this;this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(function(Ke){return Ke.size/ze.contentSize}))},Ye.prototype.onSashStart=function(ze){for(var Ke=this,ge=ze.sash,G=ze.start,oe=ze.alt,Y=0,ae=this.viewItems;Y<ae.length;Y++){var Fe=ae[Y];Fe.enabled=!1}var dt=Object(Ce.k)(this.sashItems,function(to){return to.sash===ge}),Ot=Object($.e)(Object(J.a)(document.body,"keydown")(function(to){return Qt(Ke.sashDragState.current,to.altKey)}),Object(J.a)(document.body,"keyup")(function(){return Qt(Ke.sashDragState.current,!1)})),Qt=function(to,fo){var ho=Ke.viewItems.map(function(Uo){return Uo.size}),_o=Number.NEGATIVE_INFINITY,Do=Number.POSITIVE_INFINITY;if(Ke.inverseAltBehavior&&(fo=!fo),fo){var Ro=dt===Ke.sashItems.length-1;if(Ro){var jo=Ke.viewItems[dt];_o=(jo.minimumSize-jo.size)/2,Do=(jo.maximumSize-jo.size)/2}else{var jo=Ke.viewItems[dt+1];_o=(jo.size-jo.maximumSize)/2,Do=(jo.size-jo.minimumSize)/2}}var Eo,Wo;if(!fo){var Ho=Object(Ce.u)(dt,-1),Fo=Object(Ce.u)(dt+1,Ke.viewItems.length),Io=Ho.reduce(function(Uo,Bo){return Uo+(Ke.viewItems[Bo].minimumSize-ho[Bo])},0),tn=Ho.reduce(function(Uo,Bo){return Uo+(Ke.viewItems[Bo].viewMaximumSize-ho[Bo])},0),un=Fo.length===0?Number.POSITIVE_INFINITY:Fo.reduce(function(Uo,Bo){return Uo+(ho[Bo]-Ke.viewItems[Bo].minimumSize)},0),Vo=Fo.length===0?Number.NEGATIVE_INFINITY:Fo.reduce(function(Uo,Bo){return Uo+(ho[Bo]-Ke.viewItems[Bo].viewMaximumSize)},0),Cn=Math.max(Io,Vo),pn=Math.min(un,tn),rn=Ke.findFirstSnapIndex(Ho),on=Ke.findFirstSnapIndex(Fo);if(typeof rn=="number"){var jo=Ke.viewItems[rn],dn=Math.floor(jo.viewMinimumSize/2);Eo={index:rn,limitDelta:jo.visible?Cn-dn:Cn+dn,size:jo.size}}if(typeof on=="number"){var jo=Ke.viewItems[on],dn=Math.floor(jo.viewMinimumSize/2);Wo={index:on,limitDelta:jo.visible?pn+dn:pn-dn,size:jo.size}}}Ke.sashDragState={start:to,current:to,index:dt,sizes:ho,minDelta:_o,maxDelta:Do,alt:fo,snapBefore:Eo,snapAfter:Wo,disposable:Ot}};Qt(G,oe)},Ye.prototype.onSashChange=function(ze){var Ke=ze.current,ge=this.sashDragState,G=ge.index,oe=ge.start,Y=ge.sizes,ae=ge.alt,Fe=ge.minDelta,dt=ge.maxDelta,Ot=ge.snapBefore,Qt=ge.snapAfter;this.sashDragState.current=Ke;var to=Ke-oe,fo=this.resize(G,to,Y,void 0,void 0,Fe,dt,Ot,Qt);if(ae){var ho=G===this.sashItems.length-1,_o=this.viewItems.map(function(Ho){return Ho.size}),Do=ho?G:G+1,Ro=this.viewItems[Do],jo=Ro.size-Ro.maximumSize,Eo=Ro.size-Ro.minimumSize,Wo=ho?G-1:G+1;this.resize(Wo,-fo,_o,void 0,void 0,jo,Eo)}this.distributeEmptySpace(),this.layoutViews()},Ye.prototype.onSashEnd=function(ze){this._onDidSashChange.fire(ze),this.sashDragState.disposable.dispose(),this.saveProportions();for(var Ke=0,ge=this.viewItems;Ke<ge.length;Ke++){var G=ge[Ke];G.enabled=!0}},Ye.prototype.onViewChange=function(ze,Ke){var ge=this.viewItems.indexOf(ze);if(ge<0||ge>=this.viewItems.length)return;Ke=typeof Ke=="number"?Ke:ze.size,Ke=Object(xe.a)(Ke,ze.minimumSize,ze.maximumSize),this.inverseAltBehavior&&ge>0?(this.resize(ge-1,Math.floor((ze.size-Ke)/2)),this.distributeEmptySpace(),this.layoutViews()):(ze.size=Ke,this.relayout([ge],void 0))},Ye.prototype.resizeView=function(ze,Ke){var ge=this;if(this.state!==Me.Idle)throw new Error("Cant modify splitview");if(this.state=Me.Busy,ze<0||ze>=this.viewItems.length)return;var G=Object(Ce.u)(this.viewItems.length).filter(function(Fe){return Fe!==ze}),oe=F(G.filter(function(Fe){return ge.viewItems[Fe].priority===1}),[ze]),Y=G.filter(function(Fe){return ge.viewItems[Fe].priority===2}),ae=this.viewItems[ze];Ke=Math.round(Ke),Ke=Object(xe.a)(Ke,ae.minimumSize,Math.min(ae.maximumSize,this.size)),ae.size=Ke,this.relayout(oe,Y),this.state=Me.Idle},Ye.prototype.distributeViewSizes=function(){for(var ze=this,Ke=[],ge=0,G=0,oe=this.viewItems;G<oe.length;G++){var Y=oe[G];Y.maximumSize-Y.minimumSize>0&&(Ke.push(Y),ge+=Y.size)}for(var ae=Math.floor(ge/Ke.length),Fe=0,dt=Ke;Fe<dt.length;Fe++){var Y=dt[Fe];Y.size=Object(xe.a)(ae,Y.minimumSize,Y.maximumSize)}var Ot=Object(Ce.u)(this.viewItems.length),Qt=Ot.filter(function(fo){return ze.viewItems[fo].priority===1}),to=Ot.filter(function(fo){return ze.viewItems[fo].priority===2});this.relayout(Qt,to)},Ye.prototype.getViewSize=function(ze){return ze<0||ze>=this.viewItems.length?-1:this.viewItems[ze].size},Ye.prototype.doAddView=function(ze,Ke,ge,G){var oe=this;if(ge===void 0&&(ge=this.viewItems.length),this.state!==Me.Idle)throw new Error("Cant modify splitview");this.state=Me.Busy;var Y=y.a(".split-view-view");ge===this.viewItems.length?this.viewContainer.appendChild(Y):this.viewContainer.insertBefore(Y,this.viewContainer.children.item(ge));var ae=ze.onDidChange(function(Vo){return oe.onViewChange(Qt,Vo)}),Fe=Object($.h)(function(){return oe.viewContainer.removeChild(Y)}),dt=Object($.e)(ae,Fe),Ot;typeof Ke=="number"?Ot=Ke:Ke.type==="split"?Ot=this.getViewSize(Ke.index)/2:Ke.type==="invisible"?Ot={cachedVisibleSize:Ke.cachedVisibleSize}:Ot=ze.minimumSize;var Qt=this.orientation===0?new fe(Y,ze,Ot,dt):new Oe(Y,ze,Ot,dt);if(this.viewItems.splice(ge,0,Qt),this.viewItems.length>1){var to=this.orientation===0?1:0,fo=this.orientation===0?{getHorizontalSashTop:function(Vo){return oe.getSashPosition(Vo)}}:{getVerticalSashLeft:function(Vo){return oe.getSashPosition(Vo)}},ho=new he.a(this.sashContainer,fo,{orientation:to,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),_o=this.orientation===0?function(Vo){return{sash:ho,start:Vo.startY,current:Vo.currentY,alt:Vo.altKey}}:function(Vo){return{sash:ho,start:Vo.startX,current:Vo.currentX,alt:Vo.altKey}},Do=f.b.map(ho.onDidStart,_o),Ro=Do(this.onSashStart,this),jo=f.b.map(ho.onDidChange,_o),Eo=jo(this.onSashChange,this),Wo=f.b.map(ho.onDidEnd,function(){return Object(Ce.k)(oe.sashItems,function(Vo){return Vo.sash===ho})}),Ho=Wo(this.onSashEnd,this),Fo=ho.onDidReset(function(){var Vo=Object(Ce.k)(oe.sashItems,function(dn){return dn.sash===ho}),Cn=Object(Ce.u)(Vo,-1),pn=Object(Ce.u)(Vo+1,oe.viewItems.length),rn=oe.findFirstSnapIndex(Cn),on=oe.findFirstSnapIndex(pn);if(typeof rn=="number"&&!oe.viewItems[rn].visible)return;if(typeof on=="number"&&!oe.viewItems[on].visible)return;oe._onDidSashReset.fire(Vo)}),Io=Object($.e)(Ro,Eo,Ho,Fo,ho),tn={sash:ho,disposable:Io};this.sashItems.splice(ge-1,0,tn)}Y.appendChild(ze.element);var un;typeof Ke!="number"&&Ke.type==="split"&&(un=[Ke.index]),G||this.relayout([ge],un),this.state=Me.Idle,!G&&typeof Ke!="number"&&Ke.type==="distribute"&&this.distributeViewSizes()},Ye.prototype.relayout=function(ze,Ke){var ge=this.viewItems.reduce(function(G,oe){return G+oe.size},0);this.resize(this.viewItems.length-1,this.size-ge,void 0,ze,Ke),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},Ye.prototype.resize=function(ze,Ke,ge,G,oe,Y,ae,Fe,dt){var Ot=this;if(ge===void 0&&(ge=this.viewItems.map(function(be){return be.size})),Y===void 0&&(Y=Number.NEGATIVE_INFINITY),ae===void 0&&(ae=Number.POSITIVE_INFINITY),ze<0||ze>=this.viewItems.length)return 0;var Qt=Object(Ce.u)(ze,-1),to=Object(Ce.u)(ze+1,this.viewItems.length);if(oe)for(var fo=0,ho=oe;fo<ho.length;fo++){var _o=ho[fo];Object(Ce.t)(Qt,_o),Object(Ce.t)(to,_o)}if(G)for(var Do=0,Ro=G;Do<Ro.length;Do++){var jo=Ro[Do];Object(Ce.s)(Qt,jo),Object(Ce.s)(to,jo)}var Eo=Qt.map(function(be){return Ot.viewItems[be]}),Wo=Qt.map(function(be){return ge[be]}),Ho=to.map(function(be){return Ot.viewItems[be]}),Fo=to.map(function(be){return ge[be]}),Io=Qt.reduce(function(be,M){return be+(Ot.viewItems[M].minimumSize-ge[M])},0),tn=Qt.reduce(function(be,M){return be+(Ot.viewItems[M].maximumSize-ge[M])},0),un=to.length===0?Number.POSITIVE_INFINITY:to.reduce(function(be,M){return be+(ge[M]-Ot.viewItems[M].minimumSize)},0),Vo=to.length===0?Number.NEGATIVE_INFINITY:to.reduce(function(be,M){return be+(ge[M]-Ot.viewItems[M].maximumSize)},0),Cn=Math.max(Io,Vo,Y),pn=Math.min(un,tn,ae),rn=!1;if(Fe){var on=this.viewItems[Fe.index],dn=Ke>=Fe.limitDelta;rn=dn!==on.visible,on.setVisible(dn,Fe.size)}if(!rn&&dt){var on=this.viewItems[dt.index],dn=Ke<dt.limitDelta;rn=dn!==on.visible,on.setVisible(dn,dt.size)}if(rn)return this.resize(ze,Ke,ge,G,oe,Y,ae);Ke=Object(xe.a)(Ke,Cn,pn);for(var Uo=0,Bo=Ke;Uo<Eo.length;Uo++){var St=Eo[Uo],st=Object(xe.a)(Wo[Uo]+Bo,St.minimumSize,St.maximumSize),rt=st-Wo[Uo];Bo-=rt,St.size=st}for(var Uo=0,Mt=Ke;Uo<Ho.length;Uo++){var St=Ho[Uo],st=Object(xe.a)(Fo[Uo]-Mt,St.minimumSize,St.maximumSize),rt=st-Fo[Uo];Mt+=rt,St.size=st}return Ke},Ye.prototype.distributeEmptySpace=function(ze){for(var Ke=this,ge=this.viewItems.reduce(function(Ro,jo){return Ro+jo.size},0),G=this.size-ge,oe=Object(Ce.u)(this.viewItems.length-1,-1),Y=oe.filter(function(Ro){return Ke.viewItems[Ro].priority===1}),ae=oe.filter(function(Ro){return Ke.viewItems[Ro].priority===2}),Fe=0,dt=ae;Fe<dt.length;Fe++){var Ot=dt[Fe];Object(Ce.t)(oe,Ot)}for(var Qt=0,to=Y;Qt<to.length;Qt++){var Ot=to[Qt];Object(Ce.s)(oe,Ot)}typeof ze=="number"&&Object(Ce.s)(oe,ze);for(var fo=0;G!==0&&fo<oe.length;fo++){var ho=this.viewItems[oe[fo]],_o=Object(xe.a)(ho.size+G,ho.minimumSize,ho.maximumSize),Do=_o-ho.size;G-=Do,ho.size=_o}},Ye.prototype.layoutViews=function(){this.contentSize=this.viewItems.reduce(function(oe,Y){return oe+Y.size},0);for(var ze=0,Ke=0,ge=this.viewItems;Ke<ge.length;Ke++){var G=ge[Ke];G.layout(ze,this.layoutContext),ze+=G.size}this.sashItems.forEach(function(oe){return oe.sash.layout()}),this.updateSashEnablement()},Ye.prototype.updateSashEnablement=function(){var ze=!1,Ke=this.viewItems.map(function(Eo){return ze=Eo.size-Eo.minimumSize>0||ze});ze=!1;var ge=this.viewItems.map(function(Eo){return ze=Eo.maximumSize-Eo.size>0||ze}),G=F(this.viewItems).reverse();ze=!1;var oe=G.map(function(Eo){return ze=Eo.size-Eo.minimumSize>0||ze}).reverse();ze=!1;for(var Y=G.map(function(Eo){return ze=Eo.maximumSize-Eo.size>0||ze}).reverse(),ae=0,Fe=0;Fe<this.sashItems.length;Fe++){var dt=this.sashItems[Fe].sash,Ot=this.viewItems[Fe];ae+=Ot.size;var Qt=!(Ke[Fe]&&Y[Fe+1]),to=!(ge[Fe]&&oe[Fe+1]);if(Qt&&to){var fo=Object(Ce.u)(Fe,-1),ho=Object(Ce.u)(Fe+1,this.viewItems.length),_o=this.findFirstSnapIndex(fo),Do=this.findFirstSnapIndex(ho),Ro=typeof _o=="number"&&!this.viewItems[_o].visible,jo=typeof Do=="number"&&!this.viewItems[Do].visible;Ro&&oe[Fe]&&(ae>0||this.startSnappingEnabled)?dt.state=1:jo&&Ke[Fe]&&(ae<this.contentSize||this.endSnappingEnabled)?dt.state=2:dt.state=0}else Qt&&!to?dt.state=1:!Qt&&to?dt.state=2:dt.state=3}},Ye.prototype.getSashPosition=function(ze){for(var Ke=0,ge=0;ge<this.sashItems.length;ge++)if(Ke+=this.viewItems[ge].size,this.sashItems[ge].sash===ze)return Math.min(Ke,this.contentSize-2);return 0},Ye.prototype.findFirstSnapIndex=function(ze){for(var Ke=0,ge=ze;Ke<ge.length;Ke++){var G=ge[Ke],oe=this.viewItems[G];if(!oe.visible)continue;if(oe.snap)return G}for(var Y=0,ae=ze;Y<ae.length;Y++){var G=ae[Y],oe=this.viewItems[G];if(oe.visible&&oe.maximumSize-oe.minimumSize>0)return;if(!oe.visible&&oe.snap)return G}return},Ye.prototype.dispose=function(){$e.prototype.dispose.call(this),this.viewItems.forEach(function(ze){return ze.dispose()}),this.viewItems=[],this.sashItems.forEach(function(ze){return ze.disposable.dispose()}),this.sashItems=[]},Ye}($.a),nt=function(){var $e=function(Ye,ze){return $e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ke,ge){Ke.__proto__=ge}||function(Ke,ge){for(var G in ge)ge.hasOwnProperty(G)&&(Ke[G]=ge[G])},$e(Ye,ze)};return function(Ye,ze){$e(Ye,ze);function Ke(){this.constructor=Ye}Ye.prototype=ze===null?Object.create(ze):(Ke.prototype=ze.prototype,new Ke)}}(),vt=function($e,Ye,ze,Ke){var ge=arguments.length,G=ge<3?Ye:Ke===null?Ke=Object.getOwnPropertyDescriptor(Ye,ze):Ke,oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate($e,Ye,ze,Ke);else for(var Y=$e.length-1;Y>=0;Y--)(oe=$e[Y])&&(G=(ge<3?oe(G):ge>3?oe(Ye,ze,G):oe(Ye,ze))||G);return ge>3&&G&&Object.defineProperty(Ye,ze,G),G},Rt=function($e,Ye){return function(ze,Ke){Ye(ze,Ke,$e)}},Dt=function($e,Ye,ze,Ke){function ge(G){return G instanceof ze?G:new ze(function(oe){oe(G)})}return new(ze||(ze=Promise))(function(G,oe){function Y(dt){try{Fe(Ke.next(dt))}catch(Ot){oe(Ot)}}function ae(dt){try{Fe(Ke.throw(dt))}catch(Ot){oe(Ot)}}function Fe(dt){dt.done?G(dt.value):ge(dt.value).then(Y,ae)}Fe((Ke=Ke.apply($e,Ye||[])).next())})},Kt=function($e,Ye){var ze={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},Ke,ge,G,oe;return oe={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function Y(Fe){return function(dt){return ae([Fe,dt])}}function ae(Fe){if(Ke)throw new TypeError("Generator is already executing.");for(;ze;)try{if(Ke=1,ge&&(G=Fe[0]&2?ge.return:Fe[0]?ge.throw||((G=ge.return)&&G.call(ge),0):ge.next)&&!(G=G.call(ge,Fe[1])).done)return G;(ge=0,G)&&(Fe=[Fe[0]&2,G.value]);switch(Fe[0]){case 0:case 1:G=Fe;break;case 4:return ze.label++,{value:Fe[1],done:!1};case 5:ze.label++,ge=Fe[1],Fe=[0];continue;case 7:Fe=ze.ops.pop(),ze.trys.pop();continue;default:if(!(G=ze.trys,G=G.length>0&&G[G.length-1])&&(Fe[0]===6||Fe[0]===2)){ze=0;continue}if(Fe[0]===3&&(!G||Fe[1]>G[0]&&Fe[1]<G[3])){ze.label=Fe[1];break}if(Fe[0]===6&&ze.label<G[1]){ze.label=G[1],G=Fe;break}if(G&&ze.label<G[2]){ze.label=G[2],ze.ops.push(Fe);break}G[2]&&ze.ops.pop(),ze.trys.pop();continue}Fe=Ye.call($e,ze)}catch(dt){Fe=[6,dt],ge=0}finally{Ke=G=0}if(Fe[0]&5)throw Fe[1];return{value:Fe[0]?Fe[1]:void 0,done:!0}}},ao=function(){function $e(Ye,ze){var Ke=this;this._editor=Ye,this._model=ze,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new $.b,this._callOnModelChange=new $.b,this._callOnDispose.add(this._editor.onDidChangeModel(function(){return Ke._onModelChanged()})),this._onModelChanged()}return $e.prototype.dispose=function(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()},$e.prototype._onModelChanged=function(){this._callOnModelChange.clear();var Ye=this._editor.getModel();if(Ye)for(var ze=0,Ke=this._model.groups;ze<Ke.length;ze++){var ge=Ke[ze];if(Object(C.e)(ge.uri,Ye.uri)){this._addDecorations(ge);return}}},$e.prototype._addDecorations=function(Ye){var ze=this;if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(function(Fe){return ze._onDecorationChanged()}));for(var Ke=[],ge=[],G=0,oe=Ye.children.length;G<oe;G++){var Y=Ye.children[G];if(this._decorationIgnoreSet.has(Y.id))continue;Ke.push({range:Y.range,options:$e.DecorationOptions}),ge.push(G)}for(var ae=this._editor.deltaDecorations([],Ke),G=0;G<ae.length;G++)this._decorations.set(ae[G],Ye.children[ge[G]])},$e.prototype._onDecorationChanged=function(){var Ye=this,ze=[],Ke=this._editor.getModel();if(!Ke)return;this._decorations.forEach(function(oe,Y){var ae=Ke.getDecorationRange(Y);if(!ae)return;var Fe=!1;if(u.a.equalsRange(ae,oe.range))return;if(u.a.spansMultipleLines(ae))Fe=!0;else{var dt=oe.range.endColumn-oe.range.startColumn,Ot=ae.endColumn-ae.startColumn;dt!==Ot&&(Fe=!0)}Fe?(Ye._decorationIgnoreSet.add(oe.id),ze.push(Y)):oe.range=ae});for(var ge=0,G=ze.length;ge<G;ge++)this._decorations.delete(ze[ge]);this._editor.deltaDecorations(ze,[])},$e.prototype.removeDecorations=function(){var Ye=[];this._decorations.forEach(function(ze,Ke){Ye.push(Ke)}),this._editor.deltaDecorations(Ye,[]),this._decorations.clear()},$e.DecorationOptions=s.a.register({stickiness:1,className:"reference-decoration"}),$e}(),lo=function(){function $e(){this.ratio=.7,this.heightInLines=18}return $e.fromJSON=function(Ye){var ze,Ke;try{var ge=JSON.parse(Ye);ze=ge.ratio,Ke=ge.heightInLines}catch(G){}return{ratio:ze||.7,heightInLines:Ke||18}},$e}(),so=function($e){nt(Ye,$e);function Ye(ze,Ke,ge,G,oe,Y,ae,Fe){var dt=$e.call(this,ze,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0})||this;return dt._defaultTreeKeyboardSupport=Ke,dt.layoutData=ge,dt._textModelResolverService=oe,dt._instantiationService=Y,dt._peekViewService=ae,dt._uriLabel=Fe,dt._disposeOnNewModel=new $.b,dt._callOnDispose=new $.b,dt._onDidSelectReference=new f.a,dt.onDidSelectReference=dt._onDidSelectReference.event,dt._dim={height:0,width:0},dt._applyTheme(G.getTheme()),dt._callOnDispose.add(G.onThemeChange(dt._applyTheme.bind(dt))),dt._peekViewService.addExclusiveWidget(ze,dt),dt.create(),dt}return Ye.prototype.dispose=function(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object($.f)(this._preview),Object($.f)(this._previewNotAvailableMessage),Object($.f)(this._tree),Object($.f)(this._previewModelReference),this._splitView.dispose(),$e.prototype.dispose.call(this)},Ye.prototype._applyTheme=function(ze){var Ke=ze.getColor(ue.e)||w.a.transparent;this.style({arrowColor:Ke,frameColor:Ke,headerBackgroundColor:ze.getColor(ue.p)||w.a.transparent,primaryHeadingColor:ze.getColor(ue.q),secondaryHeadingColor:ze.getColor(ue.r)})},Ye.prototype.show=function(ze){this.editor.revealRangeInCenterIfOutsideViewport(ze,0),$e.prototype.show.call(this,ze,this.layoutData.heightInLines||18)},Ye.prototype.focusOnReferenceTree=function(){this._tree.domFocus()},Ye.prototype.focusOnPreviewEditor=function(){this._preview.focus()},Ye.prototype.isPreviewEditorFocused=function(){return this._preview.hasTextFocus()},Ye.prototype._onTitleClick=function(ze){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:ze.ctrlKey||ze.metaKey||ze.altKey?"side":"open",source:"title"})},Ye.prototype._fillBody=function(ze){var Ke=this;this.setCssClass("reference-zone-widget"),this._messageContainer=y.q(ze,y.a("div.messages")),y.J(this._messageContainer),this._splitView=new Je(ze,{orientation:1}),this._previewContainer=y.q(ze,y.a("div.preview.inline"));var ge={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(g.a,this._previewContainer,ge,this.editor),y.J(this._previewContainer),this._previewNotAvailableMessage=s.b.createFromString(T.a("missingPreviewMessage","no preview available")),this._treeContainer=y.q(ze,y.a("div.ref-tree.inline"));var G={ariaLabel:T.a("treeAriaLabel","References"),keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new ye,keyboardNavigationLabelProvider:this._instantiationService.createInstance(se),identityProvider:new ee,overrideStyles:{listBackground:ue.j}};this._tree=this._instantiationService.createInstance(je.c,"ReferencesWidget",this._treeContainer,new ke,[this._instantiationService.createInstance(q),this._instantiationService.createInstance(Z)],this._instantiationService.createInstance(Ve),G),this._splitView.addView({onDidChange:f.b.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:function(Y){Ke._preview.layout({height:Ke._dim.height,width:Y})}},Ue.Distribute),this._splitView.addView({onDidChange:f.b.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:function(Y){Ke._treeContainer.style.height=Ke._dim.height+"px",Ke._treeContainer.style.width=Y+"px",Ke._tree.layout(Ke._dim.height,Y)}},Ue.Distribute),this._disposables.add(this._splitView.onDidSashChange(function(){Ke._dim.width&&(Ke.layoutData.ratio=Ke._splitView.getViewSize(0)/Ke._dim.width)},void 0));var oe=function(Y,ae){Y instanceof x.b&&(ae==="show"&&Ke._revealReference(Y,!1),Ke._onDidSelectReference.fire({element:Y,kind:ae,source:"tree"}))};this._tree.onDidChangeFocus(function(Y){oe(Y.elements[0],"show")}),this._tree.onDidOpen(function(Y){Y.browserEvent instanceof MouseEvent&&(Y.browserEvent.ctrlKey||Y.browserEvent.metaKey||Y.browserEvent.altKey)?oe(Y.elements[0],"side"):Y.browserEvent instanceof KeyboardEvent||Y.browserEvent instanceof MouseEvent&&Y.browserEvent.detail===2||Y.browserEvent.tapCount===2?oe(Y.elements[0],"goto"):oe(Y.elements[0],"show")}),y.J(this._treeContainer)},Ye.prototype._onWidth=function(ze){this._dim&&this._doLayoutBody(this._dim.height,ze)},Ye.prototype._doLayoutBody=function(ze,Ke){$e.prototype._doLayoutBody.call(this,ze,Ke),this._dim={height:ze,width:Ke},this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(Ke),this._splitView.resizeView(0,Ke*this.layoutData.ratio)},Ye.prototype.setSelection=function(ze){var Ke=this;return this._revealReference(ze,!0).then(function(){if(!Ke._model)return;Ke._tree.setSelection([ze]),Ke._tree.setFocus([ze])})},Ye.prototype.setModel=function(ze){return this._disposeOnNewModel.clear(),this._model=ze,this._model?this._onNewModel():Promise.resolve()},Ye.prototype._onNewModel=function(){var ze=this;return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerHTML=T.a("noResults","No results"),y.X(this._messageContainer),Promise.resolve(void 0)):(y.J(this._messageContainer),this._decorationsManager=new ao(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(function(Ke){return ze._tree.rerender(Ke)})),this._disposeOnNewModel.add(this._preview.onMouseDown(function(Ke){var ge=Ke.event,G=Ke.target;if(ge.detail!==2)return;var oe=ze._getFocusedReference();if(!oe)return;ze._onDidSelectReference.fire({element:{uri:oe.uri,range:G.range},kind:ge.ctrlKey||ge.metaKey||ge.altKey?"side":"open",source:"editor"})})),y.f(this.container,"results-loaded"),y.X(this._treeContainer),y.X(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)},Ye.prototype._getFocusedReference=function(){var ze=this._tree.getFocus()[0];return ze instanceof x.b?ze:ze instanceof x.a&&ze.children.length>0?ze.children[0]:void 0},Ye.prototype._revealReference=function(ze,Ke){return Dt(this,void 0,void 0,function(){var ge,G,oe,Y,ae;return Kt(this,function(Fe){switch(Fe.label){case 0:return this._revealedReference===ze?[2]:(this._revealedReference=ze,ze.uri.scheme!==v.b.inMemory?this.setTitle(Object(C.c)(ze.uri),this._uriLabel.getUriLabel(Object(C.d)(ze.uri))):this.setTitle(T.a("peekView.alternateTitle","References")),ge=this._textModelResolverService.createModelReference(ze.uri),this._tree.getInput()===ze.parent?(this._tree.reveal(ze),[3,3]):[3,1]);case 1:return Ke&&this._tree.reveal(ze.parent),[4,this._tree.expand(ze.parent)];case 2:Fe.sent(),this._tree.reveal(ze),Fe.label=3;case 3:return[4,ge];case 4:return G=Fe.sent(),this._model?(Object($.f)(this._previewModelReference),oe=G.object,oe?(Y=this._preview.getModel()===oe.textEditorModel?0:1,ae=u.a.lift(ze.range).collapseToStart(),this._previewModelReference=G,this._preview.setModel(oe.textEditorModel),this._preview.setSelection(ae),this._preview.revealRangeInCenter(ae,Y)):(this._preview.setModel(this._previewNotAvailableMessage),G.dispose()),[2]):(G.dispose(),[2])}})})},Ye=vt([Rt(3,Q.c),Rt(4,l.a),Rt(5,B.a),Rt(6,ue.a),Rt(7,A.a)],Ye),Ye}(ue.c);Object(Q.e)(function($e,Ye){var ze=$e.getColor(ue.m);ze&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+ze+"; }");var Ke=$e.getColor(ue.h);Ke&&Ye.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+Ke+"; }");var ge=$e.getColor(ue.i);ge&&Ye.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+ge+"; box-sizing: border-box; }");var G=$e.getColor(Ge.b);G&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+G+"; box-sizing: border-box; }");var oe=$e.getColor(ue.j);oe&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+oe+"; }");var Y=$e.getColor(ue.l);Y&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+Y+"; }");var ae=$e.getColor(ue.k);ae&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+ae+"; }");var Fe=$e.getColor(ue.n);Fe&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+Fe+"; }");var dt=$e.getColor(ue.o);dt&&Ye.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+dt+" !important; }");var Ot=$e.getColor(ue.f);Ot&&Ye.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: "+Ot+";")+"}");var Qt=$e.getColor(ue.g);Qt&&Ye.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {"+(" background-color: "+Qt+";")+"}")});var jt=e("cGHE"),pt=e("sM1p"),gt=e("X+cX"),Tt=e("nrhi"),it=e("/kV6"),et=e("nnTU"),ut=function($e,Ye,ze,Ke){var ge=arguments.length,G=ge<3?Ye:Ke===null?Ke=Object.getOwnPropertyDescriptor(Ye,ze):Ke,oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate($e,Ye,ze,Ke);else for(var Y=$e.length-1;Y>=0;Y--)(oe=$e[Y])&&(G=(ge<3?oe(G):ge>3?oe(Ye,ze,G):oe(Ye,ze))||G);return ge>3&&G&&Object.defineProperty(Ye,ze,G),G},Ct=function($e,Ye){return function(ze,Ke){Ye(ze,Ke,$e)}},ht=function($e,Ye,ze,Ke){function ge(G){return G instanceof ze?G:new ze(function(oe){oe(G)})}return new(ze||(ze=Promise))(function(G,oe){function Y(dt){try{Fe(Ke.next(dt))}catch(Ot){oe(Ot)}}function ae(dt){try{Fe(Ke.throw(dt))}catch(Ot){oe(Ot)}}function Fe(dt){dt.done?G(dt.value):ge(dt.value).then(Y,ae)}Fe((Ke=Ke.apply($e,Ye||[])).next())})},Et=function($e,Ye){var ze={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},Ke,ge,G,oe;return oe={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function Y(Fe){return function(dt){return ae([Fe,dt])}}function ae(Fe){if(Ke)throw new TypeError("Generator is already executing.");for(;ze;)try{if(Ke=1,ge&&(G=Fe[0]&2?ge.return:Fe[0]?ge.throw||((G=ge.return)&&G.call(ge),0):ge.next)&&!(G=G.call(ge,Fe[1])).done)return G;(ge=0,G)&&(Fe=[Fe[0]&2,G.value]);switch(Fe[0]){case 0:case 1:G=Fe;break;case 4:return ze.label++,{value:Fe[1],done:!1};case 5:ze.label++,ge=Fe[1],Fe=[0];continue;case 7:Fe=ze.ops.pop(),ze.trys.pop();continue;default:if(!(G=ze.trys,G=G.length>0&&G[G.length-1])&&(Fe[0]===6||Fe[0]===2)){ze=0;continue}if(Fe[0]===3&&(!G||Fe[1]>G[0]&&Fe[1]<G[3])){ze.label=Fe[1];break}if(Fe[0]===6&&ze.label<G[1]){ze.label=G[1],G=Fe;break}if(G&&ze.label<G[2]){ze.label=G[2],ze.ops.push(Fe);break}G[2]&&ze.ops.pop(),ze.trys.pop();continue}Fe=Ye.call($e,ze)}catch(dt){Fe=[6,dt],ge=0}finally{Ke=G=0}if(Fe[0]&5)throw Fe[1];return{value:Fe[0]?Fe[1]:void 0,done:!0}}},Yt=new z.d("referenceSearchVisible",!1),Nt=function(){function $e(Ye,ze,Ke,ge,G,oe,Y,ae){this._defaultTreeKeyboardSupport=Ye,this._editor=ze,this._editorService=ge,this._notificationService=G,this._instantiationService=oe,this._storageService=Y,this._configurationService=ae,this._disposables=new $.b,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=Yt.bindTo(Ke)}return $e.get=function(Ye){return Ye.getContribution($e.ID)},$e.prototype.dispose=function(){this._referenceSearchVisible.reset(),this._disposables.dispose(),Object($.f)(this._widget),Object($.f)(this._model),this._widget=void 0,this._model=void 0},$e.prototype.toggleWidget=function(Ye,ze,Ke){var ge=this,G;if(this._widget&&(G=this._widget.position),this.closeWidget(),!!G&&Ye.containsPosition(G))return;this._peekMode=Ke,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(function(){ge.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(function(){ge._ignoreModelChangeEvent||ge.closeWidget()}));var oe="peekViewLayout",Y=lo.fromJSON(this._storageService.get(oe,0,"{}"));this._widget=this._instantiationService.createInstance(so,this._editor,this._defaultTreeKeyboardSupport,Y),this._widget.setTitle(T.a("labelLoading","Loading...")),this._widget.show(Ye),this._disposables.add(this._widget.onDidClose(function(){ze.cancel(),ge._widget&&(ge._storageService.store(oe,JSON.stringify(ge._widget.layoutData),0),ge._widget=void 0),ge.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(function(Fe){var dt=Fe.element,Ot=Fe.kind;if(!dt)return;switch(Ot){case"open":(Fe.source!=="editor"||!ge._configurationService.getValue("editor.stablePeek"))&&ge.openReference(dt,!1);break;case"side":ge.openReference(dt,!0);break;case"goto":Ke?ge._gotoReference(dt):ge.openReference(dt,!1);break}}));var ae=++this._requestIdPool;ze.then(function(Fe){return ae!==ge._requestIdPool||!ge._widget?void 0:(ge._model&&ge._model.dispose(),ge._model=Fe,ge._widget.setModel(ge._model).then(function(){if(ge._widget&&ge._model&&ge._editor.hasModel()){ge._model.isEmpty?ge._widget.setMetaTitle(""):ge._widget.setMetaTitle(T.a("metaTitle.N","{0} ({1})",ge._model.title,ge._model.references.length));var dt=ge._editor.getModel().uri,Ot=new jt.a(Ye.startLineNumber,Ye.startColumn),Qt=ge._model.nearestReference(dt,Ot);if(Qt)return ge._widget.setSelection(Qt).then(function(){ge._widget&&ge._editor.getOption(65)==="editor"&&ge._widget.focusOnPreviewEditor()})}return}))},function(Fe){ge._notificationService.error(Fe)})},$e.prototype.changeFocusBetweenPreviewAndReferences=function(){if(!this._widget)return;this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor()},$e.prototype.goToNextOrPreviousReference=function(Ye){return ht(this,void 0,void 0,function(){var ze,Ke,ge,G,oe;return Et(this,function(Y){switch(Y.label){case 0:return!this._editor.hasModel()||!this._model||!this._widget?[2]:(ze=this._widget.position,ze?(Ke=this._model.nearestReference(this._editor.getModel().uri,ze),Ke?(ge=this._model.nextOrPreviousReference(Ke,Ye),G=this._editor.hasTextFocus(),oe=this._widget.isPreviewEditorFocused(),[4,this._widget.setSelection(ge)]):[2]):[2]);case 1:return Y.sent(),[4,this._gotoReference(ge)];case 2:return Y.sent(),G?this._editor.focus():this._widget&&oe&&this._widget.focusOnPreviewEditor(),[2]}})})},$e.prototype.closeWidget=function(Ye){Ye===void 0&&(Ye=!0),this._referenceSearchVisible.reset(),this._disposables.clear(),Object($.f)(this._widget),Object($.f)(this._model),this._widget=void 0,this._model=void 0,Ye&&this._editor.focus(),this._requestIdPool+=1},$e.prototype._gotoReference=function(Ye){var ze=this;this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;var Ke=u.a.lift(Ye.range).collapseToStart();return this._editorService.openCodeEditor({resource:Ye.uri,options:{selection:Ke}},this._editor).then(function(ge){var G;if(ze._ignoreModelChangeEvent=!1,!ge||!ze._widget){ze.closeWidget();return}if(ze._editor===ge)ze._widget.show(Ke),ze._widget.focusOnReferenceTree();else{var oe=$e.get(ge),Y=ze._model.clone();ze.closeWidget(),ge.focus(),oe.toggleWidget(Ke,Object(gt.f)(function(ae){return Promise.resolve(Y)}),(G=ze._peekMode)!==null&&G!==void 0?G:!1)}},function(ge){ze._ignoreModelChangeEvent=!1,Object(le.e)(ge)})},$e.prototype.openReference=function(Ye,ze){ze||this.closeWidget();var Ke=Ye.uri,ge=Ye.range;this._editorService.openCodeEditor({resource:Ke,options:{selection:ge}},this._editor,ze)},$e.ID="editor.contrib.referencesController",$e=ut([Ct(2,z.c),Ct(3,R.a),Ct(4,pt.a),Ct(5,B.a),Ct(6,W.a),Ct(7,D.a)],$e),$e}();function bt($e,Ye){var ze=Object(ue.d)($e);if(!ze)return;var Ke=Nt.get(ze);Ke&&Ye(Ke)}Tt.a.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(it.a)(2048|41,60),when:z.a.or(Yt,ue.b.inPeekEditor),handler:function($e){bt($e,function(Ye){Ye.changeFocusBetweenPreviewAndReferences()})}}),Tt.a.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:z.a.or(Yt,ue.b.inPeekEditor),handler:function($e){bt($e,function(Ye){Ye.goToNextOrPreviousReference(!0)})}}),Tt.a.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1024|62,secondary:[1024|70],when:z.a.or(Yt,ue.b.inPeekEditor),handler:function($e){bt($e,function(Ye){Ye.goToNextOrPreviousReference(!1)})}}),et.a.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),et.a.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),et.a.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),et.a.registerCommand("closeReferenceSearch",function($e){return bt($e,function(Ye){return Ye.closeWidget()})}),Tt.a.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1024|9],when:z.a.and(ue.b.inPeekEditor,z.a.not("config.editor.stablePeek"))}),Tt.a.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1024|9],when:z.a.and(Yt,z.a.not("config.editor.stablePeek"))}),Tt.a.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2048|3,mac:{primary:256|3},when:z.a.and(Yt,je.d),handler:function($e){var Ye,ze=$e.get(je.a),Ke=(Ye=ze.lastFocusedList)===null||Ye===void 0?void 0:Ye.getFocus();Array.isArray(Ke)&&Ke[0]instanceof x.b&&bt($e,function(ge){return ge.openReference(Ke[0],!0)})}}),et.a.registerCommand("openReference",function($e){var Ye,ze=$e.get(je.a),Ke=(Ye=ze.lastFocusedList)===null||Ye===void 0?void 0:Ye.getFocus();Array.isArray(Ke)&&Ke[0]instanceof x.b&&bt($e,function(ge){return ge.openReference(Ke[0],!1)})})},QaAZ:function(Lt,N,e){},QiAa:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return e.e(329).then(e.bind(null,"j6Xs"))}})},QuOb:function(Lt,N,e){"use strict";e.d(N,"a",function(){return B});var T=e("MI8n"),le=e("pmY6"),$=function(){var w=function(f,v){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,g){C.__proto__=g}||function(C,g){for(var u in g)g.hasOwnProperty(u)&&(C[u]=g[u])},w(f,v)};return function(f,v){w(f,v);function C(){this.constructor=f}f.prototype=v===null?Object.create(v):(C.prototype=v.prototype,new C)}}(),R=function(){function w(f,v,C,g,u,s){f=f|0,v=v|0,C=C|0,g=g|0,u=u|0,s=s|0,f<0&&(f=0),C+f>v&&(C=v-f),C<0&&(C=0),g<0&&(g=0),s+g>u&&(s=u-g),s<0&&(s=0),this.width=f,this.scrollWidth=v,this.scrollLeft=C,this.height=g,this.scrollHeight=u,this.scrollTop=s}return w.prototype.equals=function(f){return this.width===f.width&&this.scrollWidth===f.scrollWidth&&this.scrollLeft===f.scrollLeft&&this.height===f.height&&this.scrollHeight===f.scrollHeight&&this.scrollTop===f.scrollTop},w.prototype.withScrollDimensions=function(f){return new w(typeof f.width!="undefined"?f.width:this.width,typeof f.scrollWidth!="undefined"?f.scrollWidth:this.scrollWidth,this.scrollLeft,typeof f.height!="undefined"?f.height:this.height,typeof f.scrollHeight!="undefined"?f.scrollHeight:this.scrollHeight,this.scrollTop)},w.prototype.withScrollPosition=function(f){return new w(this.width,this.scrollWidth,typeof f.scrollLeft!="undefined"?f.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,typeof f.scrollTop!="undefined"?f.scrollTop:this.scrollTop)},w.prototype.createScrollEvent=function(f){var v=this.width!==f.width,C=this.scrollWidth!==f.scrollWidth,g=this.scrollLeft!==f.scrollLeft,u=this.height!==f.height,s=this.scrollHeight!==f.scrollHeight,l=this.scrollTop!==f.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:v,scrollWidthChanged:C,scrollLeftChanged:g,heightChanged:u,scrollHeightChanged:s,scrollTopChanged:l}},w}(),B=function(w){$(f,w);function f(v,C){var g=w.call(this)||this;return g._onScroll=g._register(new T.a),g.onScroll=g._onScroll.event,g._smoothScrollDuration=v,g._scheduleAtNextAnimationFrame=C,g._state=new R(0,0,0,0,0,0),g._smoothScrolling=null,g}return f.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),w.prototype.dispose.call(this)},f.prototype.setSmoothScrollDuration=function(v){this._smoothScrollDuration=v},f.prototype.validateScrollPosition=function(v){return this._state.withScrollPosition(v)},f.prototype.getScrollDimensions=function(){return this._state},f.prototype.setScrollDimensions=function(v){var C=this._state.withScrollDimensions(v);this._setState(C),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},f.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},f.prototype.getCurrentScrollPosition=function(){return this._state},f.prototype.setScrollPositionNow=function(v){var C=this._state.withScrollPosition(v);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(C)},f.prototype.setScrollPositionSmooth=function(v){var C=this;if(this._smoothScrollDuration===0)return this.setScrollPositionNow(v);if(this._smoothScrolling){v={scrollLeft:typeof v.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:v.scrollLeft,scrollTop:typeof v.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:v.scrollTop};var g=this._state.withScrollPosition(v);if(this._smoothScrolling.to.scrollLeft===g.scrollLeft&&this._smoothScrolling.to.scrollTop===g.scrollTop)return;var u=this._smoothScrolling.combine(this._state,g,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=u}else{var g=this._state.withScrollPosition(v);this._smoothScrolling=x.start(this._state,g,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!C._smoothScrolling)return;C._smoothScrolling.animationFrameDisposable=null,C._performSmoothScrolling()})},f.prototype._performSmoothScrolling=function(){var v=this;if(!this._smoothScrolling)return;var C=this._smoothScrolling.tick(),g=this._state.withScrollPosition(C);if(this._setState(g),C.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!v._smoothScrolling)return;v._smoothScrolling.animationFrameDisposable=null,v._performSmoothScrolling()})},f.prototype._setState=function(v){var C=this._state;if(C.equals(v))return;this._state=v,this._onScroll.fire(this._state.createScrollEvent(C))},f}(le.a),z=function(){function w(f,v,C){this.scrollLeft=f,this.scrollTop=v,this.isDone=C}return w}();function D(w,f){var v=f-w;return function(C){return w+v*y(C)}}function W(w,f,v){return function(C){return C<v?w(C/v):f((C-v)/(1-v))}}var x=function(){function w(f,v,C,g){this.from=f,this.to=v,this.duration=g,this._startTime=C,this.animationFrameDisposable=null,this._initAnimations()}return w.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)},w.prototype._initAnimation=function(f,v,C){var g=Math.abs(f-v);if(g>2.5*C){var u=void 0,s=void 0;return f<v?(u=f+.75*C,s=v-.75*C):(u=f-.75*C,s=v+.75*C),W(D(f,u),D(s,v),.33)}return D(f,v)},w.prototype.dispose=function(){this.animationFrameDisposable!==null&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},w.prototype.acceptScrollDimensions=function(f){this.to=f.withScrollPosition(this.to),this._initAnimations()},w.prototype.tick=function(){return this._tick(Date.now())},w.prototype._tick=function(f){var v=(f-this._startTime)/this.duration;if(v<1){var C=this.scrollLeft(v),g=this.scrollTop(v);return new z(C,g,!1)}return new z(this.to.scrollLeft,this.to.scrollTop,!0)},w.prototype.combine=function(f,v,C){return w.start(f,v,C)},w.start=function(f,v,C){C=C+10;var g=Date.now()-10;return new w(f,v,g,C)},w}();function h(w){return Math.pow(w,3)}function y(w){return 1-h(1-w)}},QvA3:function(Lt,N,e){},R3nR:function(Lt,N,e){"use strict";e.d(N,"b",function(){return $}),e.d(N,"a",function(){return R});var T=e("Cg/j"),le=e("T8No"),$=Object(T.c)("accessibilityService"),R=new le.d("accessibilityModeEnabled",!1)},R8sh:function(Lt,N,e){"use strict";e.d(N,"a",function(){return $});var T=e("Cg/j"),le="label",$=Object(T.c)(le)},RMfO:function(Lt,N,e){},Rpxm:function(Lt,N,e){"use strict";e.d(N,"a",function(){return g}),e.d(N,"b",function(){return u}),e.d(N,"c",function(){return _});var T=e("3/fG"),le=e("746U"),$=e("xONI"),R=e("WqXY"),B=e("7lZ/"),z=e("EffR"),D=e("q/I2"),W=e("qj0h"),x=e("i04g"),h=z.a,y=function(){function L(I,P,A){this.os=P,this.options=A,this.domNode=z.q(I,h(".monaco-keybinding")),this.didEverRender=!1,I.appendChild(this.domNode)}return L.prototype.set=function(I,P){if(this.didEverRender&&this.keybinding===I&&L.areSame(this.matches,P))return;this.keybinding=I,this.matches=P,this.render()},L.prototype.render=function(){if(z.t(this.domNode),this.keybinding){var I=this.keybinding.getParts(),P=I[0],A=I[1];P&&this.renderPart(this.domNode,P,this.matches?this.matches.firstPart:null),A&&(z.q(this.domNode,h("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,A,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0},L.prototype.renderPart=function(I,P,A){var Q=x.b.modifierLabels[this.os];P.ctrlKey&&this.renderKey(I,Q.ctrlKey,Boolean(A==null?void 0:A.ctrlKey),Q.separator),P.shiftKey&&this.renderKey(I,Q.shiftKey,Boolean(A==null?void 0:A.shiftKey),Q.separator),P.altKey&&this.renderKey(I,Q.altKey,Boolean(A==null?void 0:A.altKey),Q.separator),P.metaKey&&this.renderKey(I,Q.metaKey,Boolean(A==null?void 0:A.metaKey),Q.separator);var K=P.keyLabel;K&&this.renderKey(I,K,Boolean(A==null?void 0:A.keyCode),"")},L.prototype.renderKey=function(I,P,A,Q){z.q(I,h("span.monaco-keybinding-key"+(A?".highlight":""),void 0,P)),Q&&z.q(I,h("span.monaco-keybinding-key-separator",void 0,Q))},L.prototype.renderUnbound=function(I){z.q(I,h("span.monaco-keybinding-key",void 0,Object(T.a)("unbound","Unbound")))},L.areSame=function(I,P){return I===P||!I&&!P?!0:!!I&&!!P&&Object(W.e)(I.firstPart,P.firstPart)&&Object(W.e)(I.chordPart,P.chordPart)},L}(),w=e("MNsG"),f=e("6OMU"),v=function(){var L=function(I,P){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,Q){A.__proto__=Q}||function(A,Q){for(var K in Q)Q.hasOwnProperty(K)&&(A[K]=Q[K])},L(I,P)};return function(I,P){L(I,P);function A(){this.constructor=I}I.prototype=P===null?Object.create(P):(A.prototype=P.prototype,new A)}}(),C=0,g=function(){function L(I){I===void 0&&(I=[]),this.id=(C++).toString(),this.labelHighlights=I,this.descriptionHighlights=[]}return L.prototype.getId=function(){return this.id},L.prototype.getLabel=function(){return},L.prototype.getLabelOptions=function(){return},L.prototype.getAriaLabel=function(){return Object(f.d)([this.getLabel(),this.getDescription(),this.getDetail()]).join(", ")},L.prototype.getDetail=function(){return},L.prototype.getIcon=function(){return},L.prototype.getDescription=function(){return},L.prototype.getTooltip=function(){return},L.prototype.getDescriptionTooltip=function(){return},L.prototype.getKeybinding=function(){return},L.prototype.isHidden=function(){return!!this.hidden},L.prototype.setHighlights=function(I,P,A){this.labelHighlights=I,this.descriptionHighlights=P,this.detailHighlights=A},L.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights]},L.prototype.run=function(I,P){return!1},L}(),u=function(L){v(I,L);function I(P,A,Q){var K=L.call(this)||this;return K.entry=P,K.groupLabel=A,K.withBorder=Q,K}return I.prototype.getGroupLabel=function(){return this.groupLabel},I.prototype.setGroupLabel=function(P){this.groupLabel=P},I.prototype.showBorder=function(){return!!this.withBorder},I.prototype.setShowBorder=function(P){this.withBorder=P},I.prototype.getLabel=function(){return this.entry?this.entry.getLabel():L.prototype.getLabel.call(this)},I.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():L.prototype.getLabelOptions.call(this)},I.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():L.prototype.getAriaLabel.call(this)},I.prototype.getDetail=function(){return this.entry?this.entry.getDetail():L.prototype.getDetail.call(this)},I.prototype.getIcon=function(){return this.entry?this.entry.getIcon():L.prototype.getIcon.call(this)},I.prototype.getDescription=function(){return this.entry?this.entry.getDescription():L.prototype.getDescription.call(this)},I.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():L.prototype.getHighlights.call(this)},I.prototype.isHidden=function(){return this.entry?this.entry.isHidden():L.prototype.isHidden.call(this)},I.prototype.setHighlights=function(P,A,Q){this.entry?this.entry.setHighlights(P,A,Q):L.prototype.setHighlights.call(this,P,A,Q)},I.prototype.run=function(P,A){return this.entry?this.entry.run(P,A):L.prototype.run.call(this,P,A)},I}(g),s=function(){function L(){}return L.prototype.hasActions=function(I,P){return!1},L.prototype.getActions=function(I,P){return null},L}(),l="quickOpenEntry",c="quickOpenEntryGroup",p=function(){function L(I,P){I===void 0&&(I=new s),this.actionProvider=I,this.actionRunner=P}return L.prototype.getHeight=function(I){return I.getDetail()?44:22},L.prototype.getTemplateId=function(I){return I instanceof u?c:l},L.prototype.renderTemplate=function(I,P,A){var Q=document.createElement("div");z.f(Q,"sub-content"),P.appendChild(Q);var K=z.a(".quick-open-row"),H=z.a(".quick-open-row"),V=z.a(".quick-open-entry",void 0,K,H);Q.appendChild(V);var de=document.createElement("span");K.appendChild(de);var _e=new $.a(K,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0}),Se=document.createElement("span");K.appendChild(Se),z.f(Se,"quick-open-entry-keybinding");var Ie=new y(Se,w.a),Pe=document.createElement("div");H.appendChild(Pe),z.f(Pe,"quick-open-entry-meta");var Ve=new B.a(Pe,!0),ke;I===c&&(ke=document.createElement("div"),z.f(ke,"results-group"),P.appendChild(ke)),z.f(P,"actions");var se=document.createElement("div");z.f(se,"primary-action-bar"),P.appendChild(se);var ee=new R.a(se,{actionRunner:this.actionRunner});return{container:P,entry:V,icon:de,label:_e,detail:Ve,keybinding:Ie,group:ke,actionBar:ee}},L.prototype.renderElement=function(I,P,A,Q){this.actionProvider.hasActions(null,I)?z.f(A.container,"has-actions"):z.P(A.container,"has-actions"),A.actionBar.context=I;var K=this.actionProvider.getActions(null,I);if(A.actionBar.isEmpty()&&K&&K.length>0?A.actionBar.push(K,{icon:!0,label:!1}):!A.actionBar.isEmpty()&&(!K||K.length===0)&&A.actionBar.clear(),I instanceof u&&I.getGroupLabel()?z.f(A.container,"has-group-label"):z.P(A.container,"has-group-label"),I instanceof u){var H=I,V=A;H.showBorder()?(z.f(V.container,"results-group-separator"),Q.pickerGroupBorder&&(V.container.style.borderTopColor=Q.pickerGroupBorder.toString())):(z.P(V.container,"results-group-separator"),V.container.style.borderTopColor="");var de=H.getGroupLabel()||"";V.group&&(V.group.textContent=de,Q.pickerGroupForeground&&(V.group.style.color=Q.pickerGroupForeground.toString()))}if(I instanceof g){var _e=I.getHighlights(),Se=_e[0],Ie=_e[1],Pe=_e[2],Ve=I.getIcon()?"quick-open-entry-icon "+I.getIcon():"";A.icon.className=Ve;var ke=I.getLabelOptions()||Object.create(null);ke.matches=Se||[],ke.title=I.getTooltip(),ke.descriptionTitle=I.getDescriptionTooltip()||I.getDescription(),ke.descriptionMatches=Ie||[],A.label.setLabel(I.getLabel()||"",I.getDescription(),ke),A.detail.set(I.getDetail(),Pe),A.keybinding.set(I.getKeybinding())}},L.prototype.disposeTemplate=function(I,P){P.actionBar.dispose(),P.actionBar=null,P.container=null,P.entry=null,P.keybinding=null,P.detail=null,P.group=null,P.icon=null,P.label.dispose(),P.label=null},L}(),_=function(){function L(I,P){I===void 0&&(I=[]),P===void 0&&(P=new s),this._entries=I,this._dataSource=this,this._renderer=new p(P),this._filter=this,this._runner=this,this._accessibilityProvider=this}return Object.defineProperty(L.prototype,"entries",{get:function(){return this._entries},set:function(I){this._entries=I},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),L.prototype.getId=function(I){return I.getId()},L.prototype.getLabel=function(I){return le.o(I.getLabel())},L.prototype.getAriaLabel=function(I){var P=I.getAriaLabel();return P?T.a("quickOpenAriaLabelEntry","{0}, picker",I.getAriaLabel()):T.a("quickOpenAriaLabel","picker")},L.prototype.isVisible=function(I){return!I.isHidden()},L.prototype.run=function(I,P,A){return I.run(P,A)},L}()},S3by:function(Lt,N,e){"use strict";var T=e("3/fG"),le=e("N0LK"),$;(function(R){R[R.Ignore=0]="Ignore",R[R.Info=1]="Info",R[R.Warning=2]="Warning",R[R.Error=3]="Error"})($||($={})),function(R){var B="error",z="warning",D="warn",W="info",x=Object.create(null);x[R.Error]=T.a("sev.error","Error"),x[R.Warning]=T.a("sev.warning","Warning"),x[R.Info]=T.a("sev.info","Info");function h(y){return y?le.n(B,y)?R.Error:le.n(z,y)||le.n(D,y)?R.Warning:le.n(W,y)?R.Info:R.Ignore:R.Ignore}R.fromValue=h}($||($={})),N.a=$},SBYE:function(Lt,N,e){"use strict";e.r(N);var T=e("QaAZ"),le=e.n(T),$=e("D3Dy"),R=e("EffR"),B=e("ZlPH"),z=e("Md8J"),D=e("OBOq"),W=e("G300"),x=e("pmY6"),h=e("MNsG"),y=e("N0LK"),w=e("bY76"),f=e("sswD"),v=e("wQH0"),C=e("k7pc"),g=e("T8No"),u=e("Cg/j"),s=e("bexQ"),l=e("W9cx"),c=e("MD5Z"),p=e("t9D7"),_=e("A9l+"),L=function(){var _e=function(Se,Ie){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,Ve){Pe.__proto__=Ve}||function(Pe,Ve){for(var ke in Ve)Ve.hasOwnProperty(ke)&&(Pe[ke]=Ve[ke])},_e(Se,Ie)};return function(Se,Ie){_e(Se,Ie);function Pe(){this.constructor=Se}Se.prototype=Ie===null?Object.create(Ie):(Pe.prototype=Ie.prototype,new Pe)}}(),I=function(_e,Se,Ie,Pe){var Ve=arguments.length,ke=Ve<3?Se:Pe===null?Pe=Object.getOwnPropertyDescriptor(Se,Ie):Pe,se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ke=Reflect.decorate(_e,Se,Ie,Pe);else for(var ee=_e.length-1;ee>=0;ee--)(se=_e[ee])&&(ke=(Ve<3?se(ke):Ve>3?se(Se,Ie,ke):se(Se,Ie))||ke);return Ve>3&&ke&&Object.defineProperty(Se,Ie,ke),ke},P=function(_e,Se){return function(Ie,Pe){Se(Ie,Pe,_e)}},A=new g.d("accessibilityHelpWidgetVisible",!1),Q=function(_e){L(Se,_e);function Se(Ie,Pe){var Ve=_e.call(this)||this;return Ve._editor=Ie,Ve._widget=Ve._register(Pe.createInstance(H,Ve._editor)),Ve}return Se.get=function(Ie){return Ie.getContribution(Se.ID)},Se.prototype.show=function(){this._widget.show()},Se.prototype.hide=function(){this._widget.hide()},Se.ID="editor.contrib.accessibilityHelpController",Se=I([P(1,u.a)],Se),Se}(x.a);function K(_e,Se){return!_e||_e.length===0?_.a.noSelection:_e.length===1?Se?y.r(_.a.singleSelectionRange,_e[0].positionLineNumber,_e[0].positionColumn,Se):y.r(_.a.singleSelection,_e[0].positionLineNumber,_e[0].positionColumn):Se?y.r(_.a.multiSelectionRange,_e.length,Se):_e.length>0?y.r(_.a.multiSelection,_e.length):""}var H=function(_e){L(Se,_e);function Se(Ie,Pe,Ve,ke){var se=_e.call(this)||this;return se._contextKeyService=Pe,se._keybindingService=Ve,se._openerService=ke,se._editor=Ie,se._isVisibleKey=A.bindTo(se._contextKeyService),se._domNode=Object(B.b)(document.createElement("div")),se._domNode.setClassName("accessibilityHelpWidget"),se._domNode.setDisplay("none"),se._domNode.setAttribute("role","dialog"),se._domNode.setAttribute("aria-hidden","true"),se._contentDomNode=Object(B.b)(document.createElement("div")),se._contentDomNode.setAttribute("role","document"),se._domNode.appendChild(se._contentDomNode),se._isVisible=!1,se._register(se._editor.onDidLayoutChange(function(){se._isVisible&&se._layout()})),se._register(R.o(se._contentDomNode.domNode,"keydown",function(ee){if(!se._isVisible)return;if(ee.equals(2048|35)&&(Object(D.a)(_.a.emergencyConfOn),se._editor.updateOptions({accessibilitySupport:"on"}),R.t(se._contentDomNode.domNode),se._buildContent(),se._contentDomNode.domNode.focus(),ee.preventDefault(),ee.stopPropagation()),ee.equals(2048|38)){Object(D.a)(_.a.openingDocs);var ie=se._editor.getRawOptions().accessibilityHelpUrl;typeof ie=="undefined"&&(ie="https://go.microsoft.com/fwlink/?linkid=852450"),se._openerService.open(w.a.parse(ie)),ee.preventDefault(),ee.stopPropagation()}})),se.onblur(se._contentDomNode.domNode,function(){se.hide()}),se._editor.addOverlayWidget(se),se}return Se.prototype.dispose=function(){this._editor.removeOverlayWidget(this),_e.prototype.dispose.call(this)},Se.prototype.getId=function(){return Se.ID},Se.prototype.getDomNode=function(){return this._domNode.domNode},Se.prototype.getPosition=function(){return{preference:null}},Se.prototype.show=function(){if(this._isVisible)return;this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus()},Se.prototype._descriptionForCommand=function(Ie,Pe,Ve){var ke=this._keybindingService.lookupKeybinding(Ie);return ke?y.r(Pe,ke.getAriaLabel()):y.r(Ve,Ie)},Se.prototype._buildContent=function(){var Ie=this._editor.getOptions(),Pe=this._editor.getSelections(),Ve=0;if(Pe){var ke=this._editor.getModel();ke&&Pe.forEach(function(q){Ve+=ke.getValueLengthInRange(q)})}var se=K(Pe,Ve);Ie.get(45)?Ie.get(68)?se+=_.a.readonlyDiffEditor:se+=_.a.editableDiffEditor:Ie.get(68)?se+=_.a.readonlyEditor:se+=_.a.editableEditor;var ee=h.e?_.a.changeConfigToOnMac:_.a.changeConfigToOnWinLinux;switch(Ie.get(2)){case 0:se+=`
- `+ee;break;case 2:se+=`
- `+_.a.auto_on;break;case 1:se+=`
- `+_.a.auto_off,se+=" "+ee;break}Ie.get(106)?se+=`
- `+this._descriptionForCommand(C.ToggleTabFocusModeAction.ID,_.a.tabFocusModeOnMsg,_.a.tabFocusModeOnMsgNoKb):se+=`
- `+this._descriptionForCommand(C.ToggleTabFocusModeAction.ID,_.a.tabFocusModeOffMsg,_.a.tabFocusModeOffMsgNoKb);var ie=h.e?_.a.openDocMac:_.a.openDocWinLinux;se+=`
- `+ie,se+=`
`+_.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(z.b)(se)),this._contentDomNode.domNode.setAttribute("aria-label",se)},Se.prototype.hide=function(){if(!this._isVisible)return;this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,R.t(this._contentDomNode.domNode),this._editor.focus()},Se.prototype._layout=function(){var Ie=this._editor.getLayoutInfo(),Pe=Math.max(5,Math.min(Se.WIDTH,Ie.width-40)),Ve=Math.max(5,Math.min(Se.HEIGHT,Ie.height-40));this._domNode.setWidth(Pe),this._domNode.setHeight(Ve);var ke=Math.round((Ie.height-Ve)/2);this._domNode.setTop(ke);var se=Math.round((Ie.width-Pe)/2);this._domNode.setLeft(se)},Se.ID="editor.contrib.accessibilityHelpWidget",Se.WIDTH=500,Se.HEIGHT=300,Se=I([P(1,g.c),P(2,s.a),P(3,l.a)],Se),Se}(W.a),V=function(_e){L(Se,_e);function Se(){return _e.call(this,{id:"editor.action.showAccessibilityHelp",label:_.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:v.a.focus,primary:$.i?2048|59:512|59,weight:100}})||this}return Se.prototype.run=function(Ie,Pe){var Ve=Q.get(Pe);Ve&&Ve.show()},Se}(f.b);Object(f.h)(Q.ID,Q),Object(f.f)(V);var de=f.c.bindToContribution(Q.get);Object(f.g)(new de({id:"closeAccessibilityHelp",precondition:A,handler:function(_e){return _e.hide()},kbOpts:{weight:100+100,kbExpr:v.a.focus,primary:9,secondary:[1024|9]}})),Object(p.e)(function(_e,Se){var Ie=_e.getColor(c.Q);Ie&&Se.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+Ie+"; }");var Pe=_e.getColor(c.S);Pe&&Se.addRule(".monaco-editor .accessibilityHelpWidget { color: "+Pe+"; }");var Ve=_e.getColor(c.hc);Ve&&Se.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+Ve+"; }");var ke=_e.getColor(c.e);ke&&Se.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+ke+"; }")})},Sdnv:function(Lt,N,e){"use strict";e.d(N,"a",function(){return T});function T(le,$,R){return Math.min(Math.max(le,$),R)}},SvYn:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return e.e(301).then(e.bind(null,"Dsrv"))}})},T8No:function(Lt,N,e){"use strict";e.d(N,"a",function(){return R}),e.d(N,"b",function(){return f}),e.d(N,"d",function(){return v}),e.d(N,"c",function(){return C}),e.d(N,"e",function(){return g});var T=e("N0LK"),le=e("Cg/j"),$=function(){var u=function(s,l){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,p){c.__proto__=p}||function(c,p){for(var _ in p)p.hasOwnProperty(_)&&(c[_]=p[_])},u(s,l)};return function(s,l){u(s,l);function c(){this.constructor=s}s.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}(),R=function(){function u(){}return u.has=function(s){return z.create(s)},u.equals=function(s,l){return D.create(s,l)},u.regex=function(s,l){return h.create(s,l)},u.not=function(s){return x.create(s)},u.and=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return w.create(s)},u.or=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return f.create(s)},u.deserialize=function(s,l){return l===void 0&&(l=!1),s?this._deserializeOrExpression(s,l):void 0},u._deserializeOrExpression=function(s,l){var c=this,p=s.split("||");return f.create(p.map(function(_){return c._deserializeAndExpression(_,l)}))},u._deserializeAndExpression=function(s,l){var c=this,p=s.split("&&");return w.create(p.map(function(_){return c._deserializeOne(_,l)}))},u._deserializeOne=function(s,l){if(s=s.trim(),s.indexOf("!=")>=0){var c=s.split("!=");return W.create(c[0].trim(),this._deserializeValue(c[1],l))}if(s.indexOf("==")>=0){var c=s.split("==");return D.create(c[0].trim(),this._deserializeValue(c[1],l))}if(s.indexOf("=~")>=0){var c=s.split("=~");return h.create(c[0].trim(),this._deserializeRegexValue(c[1],l))}return/^\!\s*/.test(s)?x.create(s.substr(1).trim()):z.create(s)},u._deserializeValue=function(s,l){if(s=s.trim(),s==="true")return!0;if(s==="false")return!1;var c=/^'([^']*)'$/.exec(s);return c?c[1].trim():s},u._deserializeRegexValue=function(s,l){if(Object(T.x)(s)){if(l)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var c=s.indexOf("/"),p=s.lastIndexOf("/");if(c===p||c<0){if(l)throw new Error("bad regexp-value '"+s+"', missing /-enclosure");return console.warn("bad regexp-value '"+s+"', missing /-enclosure"),null}var _=s.slice(c+1,p),L=s[p+1]==="i"?"i":"";try{return new RegExp(_,L)}catch(I){if(l)throw new Error("bad regexp-value '"+s+"', parse error: "+I);return console.warn("bad regexp-value '"+s+"', parse error: "+I),null}},u}();function B(u,s){var l=u.getType(),c=s.getType();if(l!==c)return l-c;switch(l){case 1:return u.cmp(s);case 2:return u.cmp(s);case 3:return u.cmp(s);case 4:return u.cmp(s);case 6:return u.cmp(s);case 7:return u.cmp(s);case 5:return u.cmp(s);default:throw new Error("Unknown ContextKeyExpr!")}}var z=function(){function u(s){this.key=s}return u.create=function(s){return new u(s)},u.prototype.getType=function(){return 1},u.prototype.cmp=function(s){return this.key<s.key?-1:this.key>s.key?1:0},u.prototype.equals=function(s){return s instanceof u?this.key===s.key:!1},u.prototype.evaluate=function(s){return!!s.getValue(this.key)},u.prototype.keys=function(){return[this.key]},u.prototype.negate=function(){return x.create(this.key)},u}(),D=function(){function u(s,l){this.key=s,this.value=l}return u.create=function(s,l){return typeof l=="boolean"?l?z.create(s):x.create(s):new u(s,l)},u.prototype.getType=function(){return 3},u.prototype.cmp=function(s){return this.key<s.key?-1:this.key>s.key?1:this.value<s.value?-1:this.value>s.value?1:0},u.prototype.equals=function(s){return s instanceof u?this.key===s.key&&this.value===s.value:!1},u.prototype.evaluate=function(s){return s.getValue(this.key)==this.value},u.prototype.keys=function(){return[this.key]},u.prototype.negate=function(){return W.create(this.key,this.value)},u}(),W=function(){function u(s,l){this.key=s,this.value=l}return u.create=function(s,l){return typeof l=="boolean"?l?x.create(s):z.create(s):new u(s,l)},u.prototype.getType=function(){return 4},u.prototype.cmp=function(s){return this.key<s.key?-1:this.key>s.key?1:this.value<s.value?-1:this.value>s.value?1:0},u.prototype.equals=function(s){return s instanceof u?this.key===s.key&&this.value===s.value:!1},u.prototype.evaluate=function(s){return s.getValue(this.key)!=this.value},u.prototype.keys=function(){return[this.key]},u.prototype.negate=function(){return D.create(this.key,this.value)},u}(),x=function(){function u(s){this.key=s}return u.create=function(s){return new u(s)},u.prototype.getType=function(){return 2},u.prototype.cmp=function(s){return this.key<s.key?-1:this.key>s.key?1:0},u.prototype.equals=function(s){return s instanceof u?this.key===s.key:!1},u.prototype.evaluate=function(s){return!s.getValue(this.key)},u.prototype.keys=function(){return[this.key]},u.prototype.negate=function(){return z.create(this.key)},u}(),h=function(){function u(s,l){this.key=s,this.regexp=l}return u.create=function(s,l){return new u(s,l)},u.prototype.getType=function(){return 6},u.prototype.cmp=function(s){if(this.key<s.key)return-1;if(this.key>s.key)return 1;var l=this.regexp?this.regexp.source:"",c=s.regexp?s.regexp.source:"";return l<c?-1:l>c?1:0},u.prototype.equals=function(s){if(s instanceof u){var l=this.regexp?this.regexp.source:"",c=s.regexp?s.regexp.source:"";return this.key===s.key&&l===c}return!1},u.prototype.evaluate=function(s){var l=s.getValue(this.key);return this.regexp?this.regexp.test(l):!1},u.prototype.keys=function(){return[this.key]},u.prototype.negate=function(){return y.create(this)},u}(),y=function(){function u(s){this._actual=s}return u.create=function(s){return new u(s)},u.prototype.getType=function(){return 7},u.prototype.cmp=function(s){return this._actual.cmp(s._actual)},u.prototype.equals=function(s){return s instanceof u?this._actual.equals(s._actual):!1},u.prototype.evaluate=function(s){return!this._actual.evaluate(s)},u.prototype.keys=function(){return this._actual.keys()},u.prototype.negate=function(){return this._actual},u}(),w=function(){function u(s){this.expr=s}return u.create=function(s){var l=u._normalizeArr(s);return l.length===0?void 0:l.length===1?l[0]:new u(l)},u.prototype.getType=function(){return 5},u.prototype.cmp=function(s){if(this.expr.length<s.expr.length)return-1;if(this.expr.length>s.expr.length)return 1;for(var l=0,c=this.expr.length;l<c;l++){var p=B(this.expr[l],s.expr[l]);if(p!==0)return p}return 0},u.prototype.equals=function(s){if(s instanceof u){if(this.expr.length!==s.expr.length)return!1;for(var l=0,c=this.expr.length;l<c;l++)if(!this.expr[l].equals(s.expr[l]))return!1;return!0}return!1},u.prototype.evaluate=function(s){for(var l=0,c=this.expr.length;l<c;l++)if(!this.expr[l].evaluate(s))return!1;return!0},u._normalizeArr=function(s){var l=[];if(s){for(var c=0,p=s.length;c<p;c++){var _=s[c];if(!_)continue;if(_ instanceof u){l=l.concat(_.expr);continue}if(_ instanceof f)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.');l.push(_)}l.sort(B)}return l},u.prototype.keys=function(){for(var s=[],l=0,c=this.expr;l<c.length;l++){var p=c[l];s.push.apply(s,p.keys())}return s},u.prototype.negate=function(){for(var s=[],l=0,c=this.expr;l<c.length;l++){var p=c[l];s.push(p.negate())}return f.create(s)},u}(),f=function(){function u(s){this.expr=s}return u.create=function(s){var l=u._normalizeArr(s);return l.length===0?void 0:l.length===1?l[0]:new u(l)},u.prototype.getType=function(){return 8},u.prototype.equals=function(s){if(s instanceof u){if(this.expr.length!==s.expr.length)return!1;for(var l=0,c=this.expr.length;l<c;l++)if(!this.expr[l].equals(s.expr[l]))return!1;return!0}return!1},u.prototype.evaluate=function(s){for(var l=0,c=this.expr.length;l<c;l++)if(this.expr[l].evaluate(s))return!0;return!1},u._normalizeArr=function(s){var l=[];if(s){for(var c=0,p=s.length;c<p;c++){var _=s[c];if(!_)continue;if(_ instanceof u){l=l.concat(_.expr);continue}l.push(_)}l.sort(B)}return l},u.prototype.keys=function(){for(var s=[],l=0,c=this.expr;l<c.length;l++){var p=c[l];s.push.apply(s,p.keys())}return s},u.prototype.negate=function(){for(var s=[],l=0,c=this.expr;l<c.length;l++){var p=c[l];s.push(p.negate())}for(var _=function(_e){return _e instanceof u?_e.expr:[_e]};s.length>1;){for(var L=s.shift(),I=s.shift(),P=[],A=0,Q=_(L);A<Q.length;A++)for(var K=Q[A],H=0,V=_(I);H<V.length;H++){var de=V[H];P.push(R.and(K,de))}s.unshift(R.or.apply(R,P))}return s[0]},u}(),v=function(u){$(s,u);function s(l,c){var p=u.call(this,l)||this;return p._defaultValue=c,p}return s.prototype.bindTo=function(l){return l.createKey(this.key,this._defaultValue)},s.prototype.getValue=function(l){return l.getContextKeyValue(this.key)},s.prototype.toNegated=function(){return R.not(this.key)},s}(z),C=Object(le.c)("contextKeyService"),g="setContext"},TQUy:function(Lt,N,e){"use strict";e.d(N,"b",function(){return B}),e.d(N,"a",function(){return z});var T=e("N0LK"),le=e("4bUh"),$=e("i/Ef"),R={getInitialState:function(){return $.c},tokenize2:function(W,x,h){return Object($.e)(0,W,x,h)}};function B(W,x){return x===void 0&&(x=R),D(W,x||R)}function z(W,x,h,y,w,f,v){for(var C="<div>",g=y,u=0,s=0,l=x.getCount();s<l;s++){var c=x.getEndOffset(s);if(c<=y)continue;for(var p="";g<c&&g<w;g++){var _=W.charCodeAt(g);switch(_){case 9:var L=f-(g+u)%f;for(u+=L-1;L>0;)p+=v?"&#160;":" ",L--;break;case 60:p+="&lt;";break;case 62:p+="&gt;";break;case 38:p+="&amp;";break;case 0:p+="&#00;";break;case 65279:case 8232:p+="\uFFFD";break;case 13:p+="&#8203";break;case 32:p+=v?"&#160;":" ";break;default:p+=String.fromCharCode(_)}}if(C+='<span style="'+x.getInlineStyle(s,h)+'">'+p+"</span>",c>w||g>=w)break}return C+="</div>",C}function D(W,x){for(var h='<div class="monaco-tokenized-source">',y=W.split(/\r\n|\r|\n/),w=x.getInitialState(),f=0,v=y.length;f<v;f++){var C=y[f];f>0&&(h+="<br/>");var g=x.tokenize2(C,w,0);le.a.convertToEndOffset(g.tokens,C.length);for(var u=new le.a(g.tokens,C),s=u.inflate(),l=0,c=0,p=s.getCount();c<p;c++){var _=s.getClassName(c),L=s.getEndOffset(c);h+='<span class="'+_+'">'+T.o(C.substring(l,L))+"</span>",l=L}w=g.endState}return h+="</div>",h}},TT2d:function(Lt,N,e){},Tcc1:function(Lt,N,e){"use strict";e.d(N,"a",function(){return T}),e.d(N,"b",function(){return le}),e.d(N,"c",function(){return $});var T=function(){function R(B,z,D){this.offset=B|0,this.type=z,this.language=D}return R.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},R}(),le=function(){function R(B,z){this.tokens=B,this.endState=z}return R}(),$=function(){function R(B,z){this.tokens=B,this.endState=z}return R}()},UCkY:function(Lt,N,e){},URDS:function(Lt,N,e){(function(T){/*!
Copyright (c) 2014 Taylor Hakes
Copyright (c) 2014 Forbes Lindesay
*/(function(le,$){$()})(this,function(){"use strict";function le(v){var C=this.constructor;return this.then(function(g){return C.resolve(v()).then(function(){return g})},function(g){return C.resolve(v()).then(function(){return C.reject(g)})})}var $=setTimeout;function R(){}function B(v,C){return function(){v.apply(C,arguments)}}function z(v){if(!(this instanceof z))throw new TypeError("Promises must be constructed via new");if(typeof v!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],w(v,this)}function D(v,C){for(;v._state===3;)v=v._value;if(v._state===0){v._deferreds.push(C);return}v._handled=!0,z._immediateFn(function(){var g=v._state===1?C.onFulfilled:C.onRejected;if(g===null){(v._state===1?W:x)(C.promise,v._value);return}var u;try{u=g(v._value)}catch(s){x(C.promise,s);return}W(C.promise,u)})}function W(v,C){try{if(C===v)throw new TypeError("A promise cannot be resolved with itself.");if(C&&(typeof C=="object"||typeof C=="function")){var g=C.then;if(C instanceof z){v._state=3,v._value=C,h(v);return}else if(typeof g=="function"){w(B(g,C),v);return}}v._state=1,v._value=C,h(v)}catch(u){x(v,u)}}function x(v,C){v._state=2,v._value=C,h(v)}function h(v){v._state===2&&v._deferreds.length===0&&z._immediateFn(function(){v._handled||z._unhandledRejectionFn(v._value)});for(var C=0,g=v._deferreds.length;C<g;C++)D(v,v._deferreds[C]);v._deferreds=null}function y(v,C,g){this.onFulfilled=typeof v=="function"?v:null,this.onRejected=typeof C=="function"?C:null,this.promise=g}function w(v,C){var g=!1;try{v(function(u){if(g)return;g=!0,W(C,u)},function(u){if(g)return;g=!0,x(C,u)})}catch(u){if(g)return;g=!0,x(C,u)}}z.prototype.catch=function(v){return this.then(null,v)},z.prototype.then=function(v,C){var g=new this.constructor(R);return D(this,new y(v,C,g)),g},z.prototype.finally=le,z.all=function(v){return new z(function(C,g){if(!v||typeof v.length=="undefined")throw new TypeError("Promise.all accepts an array");var u=Array.prototype.slice.call(v);if(u.length===0)return C([]);var s=u.length;function l(p,_){try{if(_&&(typeof _=="object"||typeof _=="function")){var L=_.then;if(typeof L=="function"){L.call(_,function(I){l(p,I)},g);return}}u[p]=_,--s===0&&C(u)}catch(I){g(I)}}for(var c=0;c<u.length;c++)l(c,u[c])})},z.resolve=function(v){return v&&typeof v=="object"&&v.constructor===z?v:new z(function(C){C(v)})},z.reject=function(v){return new z(function(C,g){g(v)})},z.race=function(v){return new z(function(C,g){for(var u=0,s=v.length;u<s;u++)v[u].then(C,g)})},z._immediateFn=typeof setImmediate=="function"&&function(v){setImmediate(v)}||function(v){$(v,0)},z._unhandledRejectionFn=function(C){typeof console!="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",C)};var f=function(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof T!="undefined")return T;throw new Error("unable to locate global object")}();"Promise"in f?f.Promise.prototype.finally||(f.Promise.prototype.finally=le):f.Promise=z})}).call(this,e("IyRk"))},UsjR:function(Lt,N,e){},Uzvx:function(Lt,N,e){"use strict";e.d(N,"b",function(){return le}),e.d(N,"a",function(){return $});var T=e("Cg/j"),le=Object(T.c)("contextViewService"),$=Object(T.c)("contextMenuService")},VPJY:function(Lt,N,e){},Vhoy:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le}),e.d(N,"b",function(){return R}),e.d(N,"c",function(){return z});var T=/(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function le(D){return D.replace(T,function(W,x){return x?W:"\\"+W})}var $=/\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi;function R(D){return D.replace($,function(W){return"\\"+W})}var B=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function z(D){return D.replace(B,function(W,x,h,y,w){return x?"$("+h+")":'<span class="codicon codicon-'+y+(w?" codicon-animation-"+w:"")+'"></span>'})}},Vtyv:function(Lt,N,e){},VvMK:function(Lt,N,e){},Vxe3:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("Cg/j"),le=Object(T.c)("codeEditorService")},W9cx:function(Lt,N,e){"use strict";e.d(N,"a",function(){return D}),e.d(N,"b",function(){return W}),e.d(N,"c",function(){return x});var T=e("bY76"),le=e("Cg/j"),$=e("pmY6"),R=e("N0LK"),B=function(h,y,w,f){function v(C){return C instanceof w?C:new w(function(g){g(C)})}return new(w||(w=Promise))(function(C,g){function u(c){try{l(f.next(c))}catch(p){g(p)}}function s(c){try{l(f.throw(c))}catch(p){g(p)}}function l(c){c.done?C(c.value):v(c.value).then(u,s)}l((f=f.apply(h,y||[])).next())})},z=function(h,y){var w={label:0,sent:function(){if(C[0]&1)throw C[1];return C[1]},trys:[],ops:[]},f,v,C,g;return g={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function u(l){return function(c){return s([l,c])}}function s(l){if(f)throw new TypeError("Generator is already executing.");for(;w;)try{if(f=1,v&&(C=l[0]&2?v.return:l[0]?v.throw||((C=v.return)&&C.call(v),0):v.next)&&!(C=C.call(v,l[1])).done)return C;(v=0,C)&&(l=[l[0]&2,C.value]);switch(l[0]){case 0:case 1:C=l;break;case 4:return w.label++,{value:l[1],done:!1};case 5:w.label++,v=l[1],l=[0];continue;case 7:l=w.ops.pop(),w.trys.pop();continue;default:if(!(C=w.trys,C=C.length>0&&C[C.length-1])&&(l[0]===6||l[0]===2)){w=0;continue}if(l[0]===3&&(!C||l[1]>C[0]&&l[1]<C[3])){w.label=l[1];break}if(l[0]===6&&w.label<C[1]){w.label=C[1],C=l;break}if(C&&w.label<C[2]){w.label=C[2],w.ops.push(l);break}C[2]&&w.ops.pop(),w.trys.pop();continue}l=y.call(h,w)}catch(c){l=[6,c],v=0}finally{f=C=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},D=Object(le.c)("openerService"),W=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return $.a.None},registerValidator:function(){return $.a.None},registerExternalUriResolver:function(){return $.a.None},setExternalOpener:function(){},open:function(){return B(this,void 0,void 0,function(){return z(this,function(h){return[2,!1]})})},resolveExternalUri:function(h){return B(this,void 0,void 0,function(){return z(this,function(y){return[2,{resolved:h,dispose:function(){}}]})})}});function x(h,y){return T.a.isUri(h)?Object(R.n)(h.scheme,y):Object(R.O)(h,y+":")}},WBhO:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("Cg/j"),le=Object(T.c)("modeService")},WQDh:function(Lt,N,e){"use strict";e.r(N),e.d(N,"SymbolEntry",function(){return Ve}),e.d(N,"QuickOutlineAction",function(){return ke});var T=e("QvA3"),le=e("k76M"),$=e("jqj9"),R=e("JQT/"),B=e("fpMC"),z=e("N0LK"),D=e("Rpxm"),W=e("sswD"),x=e("aokT"),h=e("wQH0"),y=e("twdY"),w=e("bY76"),f=e("G2kB"),v=e("t49l"),C=e("6OMU"),g=e("vl9R"),u=e("/cxE"),s=e("QDVR"),l=function(){var se=function(ee,ie){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ce){q.__proto__=ce}||function(q,ce){for(var Z in ce)ce.hasOwnProperty(Z)&&(q[Z]=ce[Z])},se(ee,ie)};return function(ee,ie){se(ee,ie);function q(){this.constructor=ee}ee.prototype=ie===null?Object.create(ie):(q.prototype=ie.prototype,new q)}}(),c=function(){function se(){}return se.prototype.remove=function(){this.parent&&delete this.parent.children[this.id]},se.findId=function(ee,ie){var q;typeof ee=="string"?q=ie.id+"/"+ee:(q=ie.id+"/"+ee.name,ie.children[q]!==void 0&&(q=ie.id+"/"+ee.name+"_"+ee.range.startLineNumber+"_"+ee.range.startColumn));for(var ce=q,Z=0;ie.children[ce]!==void 0;Z++)ce=q+"_"+Z;return ce},se.empty=function(ee){for(var ie in ee.children)return!1;return!0},se}(),p=function(se){l(ee,se);function ee(ie,q,ce){var Z=se.call(this)||this;return Z.id=ie,Z.parent=q,Z.symbol=ce,Z.children=Object.create(null),Z}return ee}(c),_=function(se){l(ee,se);function ee(ie,q,ce,Z){var ye=se.call(this)||this;return ye.id=ie,ye.parent=q,ye.provider=ce,ye.providerIndex=Z,ye.children=Object.create(null),ye}return ee}(c),L=function(){function se(){this._n=1,this._val=0}return se.prototype.update=function(ee){return this._val=this._val+(ee-this._val)/this._n,this._n+=1,this},se}(),I=function(se){l(ee,se);function ee(ie){var q=se.call(this)||this;return q.textModel=ie,q.id="root",q.parent=void 0,q._groups=Object.create(null),q.children=Object.create(null),q.id="root",q.parent=void 0,q}return ee.create=function(ie,q){var ce=this,Z=this._keys.for(ie,!0),ye=ee._requests.get(Z);if(!ye){var je=new R.b;ye={promiseCnt:0,source:je,promise:ee._create(ie,je.token),model:void 0},ee._requests.set(Z,ye);var Ge=Date.now();ye.promise.then(function(){var ue=ce._keys.for(ie,!1),ve=ce._requestDurations.get(ue);ve||(ve=new L,ce._requestDurations.set(ue,ve)),ve.update(Date.now()-Ge)})}return ye.model?Promise.resolve(ye.model):(ye.promiseCnt+=1,q.onCancellationRequested(function(){--ye.promiseCnt===0&&(ye.source.cancel(),ee._requests.delete(Z))}),new Promise(function(ue,ve){ye.promise.then(function(Ee){ye.model=Ee,ue(Ee)},function(Ee){ee._requests.delete(Z),ve(Ee)})}))},ee._create=function(ie,q){var ce=new R.b(q),Z=new ee(ie),ye=y.m.ordered(ie),je=ye.map(function(ue,ve){var Ee=c.findId("provider_"+ve,Z),xe=new _(Ee,Z,ue,ve);return Promise.resolve(ue.provideDocumentSymbols(Z.textModel,ce.token)).then(function(Ce){for(var he=0,J=Ce||[];he<J.length;he++){var b=J[he];ee._makeOutlineElement(b,xe)}return xe},function(Ce){return Object(u.f)(Ce),xe}).then(function(Ce){c.empty(Ce)?Ce.remove():Z._groups[Ee]=Ce})}),Ge=y.m.onDidChange(function(){var ue=y.m.ordered(ie);Object(C.g)(ue,ye)||ce.cancel()});return Promise.all(je).then(function(){return ce.token.isCancellationRequested&&!q.isCancellationRequested?ee._create(ie,q):Z._compact()}).finally(function(){Ge.dispose()})},ee._makeOutlineElement=function(ie,q){var ce=c.findId(ie,q),Z=new p(ce,q,ie);if(ie.children)for(var ye=0,je=ie.children;ye<je.length;ye++){var Ge=je[ye];ee._makeOutlineElement(Ge,Z)}q.children[Z.id]=Z},ee.prototype._compact=function(){var ie=0;for(var q in this._groups){var ce=this._groups[q];Object(g.b)(ce.children)===void 0?delete this._groups[q]:ie+=1}if(ie!==1)this.children=this._groups;else{var ce=Object(g.b)(this._groups);for(var q in ce.children){var Z=ce.children[q];Z.parent=this,this.children[Z.id]=Z}}return this},ee._requestDurations=new s.a(50,.7),ee._requests=new s.a(9,.75),ee._keys=new(function(){function ie(){this._counter=1,this._data=new WeakMap}return ie.prototype.for=function(q,ce){return q.id+"/"+(ce?q.getVersionId():"")+"/"+this._hash(y.m.all(q))},ie.prototype._hash=function(q){for(var ce="",Z=0,ye=q;Z<ye.length;Z++){var je=ye[Z],Ge=this._data.get(je);typeof Ge=="undefined"&&(Ge=this._counter++,this._data.set(je,Ge)),ce+=Ge}return ce},ie}()),ee}(c),P=e("nnTU"),A=e("746U"),Q=function(se,ee,ie,q){function ce(Z){return Z instanceof ie?Z:new ie(function(ye){ye(Z)})}return new(ie||(ie=Promise))(function(Z,ye){function je(ve){try{ue(q.next(ve))}catch(Ee){ye(Ee)}}function Ge(ve){try{ue(q.throw(ve))}catch(Ee){ye(Ee)}}function ue(ve){ve.done?Z(ve.value):ce(ve.value).then(je,Ge)}ue((q=q.apply(se,ee||[])).next())})},K=function(se,ee){var ie={label:0,sent:function(){if(Z[0]&1)throw Z[1];return Z[1]},trys:[],ops:[]},q,ce,Z,ye;return ye={next:je(0),throw:je(1),return:je(2)},typeof Symbol=="function"&&(ye[Symbol.iterator]=function(){return this}),ye;function je(ue){return function(ve){return Ge([ue,ve])}}function Ge(ue){if(q)throw new TypeError("Generator is already executing.");for(;ie;)try{if(q=1,ce&&(Z=ue[0]&2?ce.return:ue[0]?ce.throw||((Z=ce.return)&&Z.call(ce),0):ce.next)&&!(Z=Z.call(ce,ue[1])).done)return Z;(ce=0,Z)&&(ue=[ue[0]&2,Z.value]);switch(ue[0]){case 0:case 1:Z=ue;break;case 4:return ie.label++,{value:ue[1],done:!1};case 5:ie.label++,ce=ue[1],ue=[0];continue;case 7:ue=ie.ops.pop(),ie.trys.pop();continue;default:if(!(Z=ie.trys,Z=Z.length>0&&Z[Z.length-1])&&(ue[0]===6||ue[0]===2)){ie=0;continue}if(ue[0]===3&&(!Z||ue[1]>Z[0]&&ue[1]<Z[3])){ie.label=ue[1];break}if(ue[0]===6&&ie.label<Z[1]){ie.label=Z[1],Z=ue;break}if(Z&&ie.label<Z[2]){ie.label=Z[2],ie.ops.push(ue);break}Z[2]&&ie.ops.pop(),ie.trys.pop();continue}ue=ee.call(se,ie)}catch(ve){ue=[6,ve],ce=0}finally{q=Z=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}};function H(se,ee,ie){return Q(this,void 0,void 0,function(){var q,ce,Z,ye,je,Ge;return K(this,function(ue){switch(ue.label){case 0:return[4,I.create(se,ie)];case 1:for(q=ue.sent(),ce=[],Z=0,ye=Object(g.d)(q.children);Z<ye.length;Z++)je=ye[Z],je instanceof p?ce.push(je.symbol):ce.push.apply(ce,Object(g.d)(je.children).map(function(ve){return ve.symbol}));return Ge=[],ie.isCancellationRequested?[2,Ge]:(ee?de(Ge,ce,""):Ge=ce,[2,Ge.sort(V)])}})})}function V(se,ee){return x.a.compareRangesUsingStarts(se.range,ee.range)}function de(se,ee,ie){for(var q=0,ce=ee;q<ce.length;q++){var Z=ce[q];se.push({kind:Z.kind,tags:Z.tags,name:Z.name,detail:Z.detail,containerName:Z.containerName||ie,range:Z.range,selectionRange:Z.selectionRange,children:void 0}),Z.children&&de(se,Z.children,Z.name)}}P.a.registerCommand("_executeDocumentSymbolProvider",function(se){for(var ee=[],ie=1;ie<arguments.length;ie++)ee[ie-1]=arguments[ie];return Q(this,void 0,void 0,function(){var q,ce,Z;return K(this,function(ye){switch(ye.label){case 0:return q=ee[0],Object(A.a)(w.a.isUri(q)),ce=se.get(f.a).getModel(q),ce?[2,H(ce,!1,R.a.None)]:[4,se.get(v.a).createModelReference(q)];case 1:Z=ye.sent(),ye.label=2;case 2:return ye.trys.push([2,,4,5]),[4,H(Z.object.textEditorModel,!1,R.a.None)];case 3:return[2,ye.sent()];case 4:return Z.dispose(),[7];case 5:return[2]}})})});var _e=e("rzPn"),Se=e("A9l+"),Ie=function(){var se=function(ee,ie){return se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ce){q.__proto__=ce}||function(q,ce){for(var Z in ce)ce.hasOwnProperty(Z)&&(q[Z]=ce[Z])},se(ee,ie)};return function(ee,ie){se(ee,ie);function q(){this.constructor=ee}ee.prototype=ie===null?Object.create(ie):(q.prototype=ie.prototype,new q)}}(),Pe=":",Ve=function(se){Ie(ee,se);function ee(ie,q,ce,Z,ye,je,Ge){var ue=se.call(this)||this;return ue.name=ie,ue.type=q,ue.description=ce,ue.range=Z,ue.setHighlights(ye),ue.editor=je,ue.decorator=Ge,ue}return ee.prototype.getLabel=function(){return this.name},ee.prototype.getAriaLabel=function(){return z.r(Se.e.entryAriaLabel,this.name)},ee.prototype.getIcon=function(){return this.type},ee.prototype.getDescription=function(){return this.description},ee.prototype.getType=function(){return this.type},ee.prototype.getRange=function(){return this.range},ee.prototype.run=function(ie,q){return ie===1?this.runOpen(q):this.runPreview()},ee.prototype.runOpen=function(ie){var q=this.toSelection();return this.editor.setSelection(q),this.editor.revealRangeInCenter(q,0),this.editor.focus(),!0},ee.prototype.runPreview=function(){var ie=this.toSelection();return this.editor.revealRangeInCenter(ie,0),this.decorator.decorateLine(this.range,this.editor),!1},ee.prototype.toSelection=function(){return new x.a(this.range.startLineNumber,this.range.startColumn||1,this.range.startLineNumber,this.range.startColumn||1)},ee}(D.b),ke=function(se){Ie(ee,se);function ee(){return se.call(this,Se.e.quickOutlineActionInput,{id:"editor.action.quickOutline",label:Se.e.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:h.a.hasDocumentSymbolProvider,kbOpts:{kbExpr:h.a.focus,primary:2048|1024|45,weight:100},contextMenuOpts:{group:"navigation",order:3}})||this}return ee.prototype.run=function(ie,q){var ce=this;if(!q.hasModel())return;var Z=q.getModel();return y.m.has(Z)?H(Z,!0,R.a.None).then(function(ye){if(ye.length===0)return;ce._run(q,ye)}):void 0},ee.prototype._run=function(ie,q){var ce=this;this._show(this.getController(ie),{getModel:function(Z){return new D.c(ce.toQuickOpenEntries(ie,q,Z))},getAutoFocus:function(Z){return Z.indexOf(Pe)===0&&(Z=Z.substr(Pe.length)),{autoFocusPrefixMatch:Z,autoFocusFirstEntry:!!Z}}})},ee.prototype.symbolEntry=function(ie,q,ce,Z,ye,je,Ge){return new Ve(ie,q,ce,x.a.lift(Z),ye,je,Ge)},ee.prototype.toQuickOpenEntries=function(ie,q,ce){var Z=this.getController(ie),ye=[],je=ce;ce.indexOf(Pe)===0&&(je=je.substr(Pe.length));for(var Ge=0,ue=q;Ge<ue.length;Ge++){var ve=ue[Ge],Ee=z.Q(ve.name),xe=Object(B.f)(je,Ee);if(xe){var Ce=void 0;ve.containerName&&(Ce=ve.containerName),ye.push(this.symbolEntry(Ee,y.z.toCssClassName(ve.kind),Ce,ve.range,xe,ie,Z))}}if(ce&&(ce.indexOf(Pe)===0?ye=ye.sort(this.sortScoped.bind(this,ce.toLowerCase())):ye=ye.sort(this.sortNormal.bind(this,ce.toLowerCase()))),ye.length>0&&ce.indexOf(Pe)===0){for(var he=null,J=null,b=0,F=0;F<ye.length;F++){var re=ye[F];he!==re.getType()?(J&&J.setGroupLabel(this.typeToLabel(he||"",b)),he=re.getType(),J=re,b=1,re.setShowBorder(F>0)):b++}J&&J.setGroupLabel(this.typeToLabel(he||"",b))}else ye.length>0&&ye[0].setGroupLabel(z.r(Se.e._symbols_,ye.length));return ye},ee.prototype.typeToLabel=function(ie,q){switch(ie){case"module":return z.r(Se.e._modules_,q);case"class":return z.r(Se.e._class_,q);case"interface":return z.r(Se.e._interface_,q);case"method":return z.r(Se.e._method_,q);case"function":return z.r(Se.e._function_,q);case"property":return z.r(Se.e._property_,q);case"variable":return z.r(Se.e._variable_,q);case"var":return z.r(Se.e._variable2_,q);case"constructor":return z.r(Se.e._constructor_,q);case"call":return z.r(Se.e._call_,q)}return ie},ee.prototype.sortNormal=function(ie,q,ce){var Z=q.getLabel().toLowerCase(),ye=ce.getLabel().toLowerCase(),je=Z.localeCompare(ye);if(je!==0)return je;var Ge=q.getRange(),ue=ce.getRange();return Ge.startLineNumber-ue.startLineNumber},ee.prototype.sortScoped=function(ie,q,ce){ie=ie.substr(Pe.length);var Z=q.getType(),ye=ce.getType(),je=Z.localeCompare(ye);if(je!==0)return je;if(ie){var Ge=q.getLabel().toLowerCase(),ue=ce.getLabel().toLowerCase(),ve=Ge.localeCompare(ue);if(ve!==0)return ve}var Ee=q.getRange(),xe=ce.getRange();return Ee.startLineNumber-xe.startLineNumber},ee}(_e.a);Object(W.f)(ke)},WqXY:function(Lt,N,e){"use strict";e.d(N,"c",function(){return C}),e.d(N,"d",function(){return g}),e.d(N,"b",function(){return u}),e.d(N,"a",function(){return l});var T=e("yEoX"),le=e.n(T),$=e("MNsG"),R=e("3/fG"),B=e("pmY6"),z=e("8HAY"),D=e("EffR"),W=e("746U"),x=e("pg8w"),h=e("uDWl"),y=e("MI8n"),w=e("ZQ78"),f=e("D3Dy"),v=function(){var c=function(p,_){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,I){L.__proto__=I}||function(L,I){for(var P in I)I.hasOwnProperty(P)&&(L[P]=I[P])},c(p,_)};return function(p,_){c(p,_);function L(){this.constructor=p}p.prototype=_===null?Object.create(_):(L.prototype=_.prototype,new L)}}(),C=function(c){v(p,c);function p(_,L,I){var P=c.call(this)||this;return P.options=I,P._context=_||P,P._action=L,L instanceof z.a&&P._register(L.onDidChange(function(A){if(!P.element)return;P.handleActionChangeEvent(A)})),P}return p.prototype.handleActionChangeEvent=function(_){_.enabled!==void 0&&this.updateEnabled(),_.checked!==void 0&&this.updateChecked(),_.class!==void 0&&this.updateClass(),_.label!==void 0&&(this.updateLabel(),this.updateTooltip()),_.tooltip!==void 0&&this.updateTooltip()},Object.defineProperty(p.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new z.b)),this._actionRunner},set:function(_){this._actionRunner=_},enumerable:!0,configurable:!0}),p.prototype.getAction=function(){return this._action},p.prototype.isEnabled=function(){return this._action.enabled},p.prototype.setActionContext=function(_){this._context=_},p.prototype.render=function(_){var L=this,I=this.element=_;this._register(x.b.addTarget(_));var P=this.options&&this.options.draggable;P&&(_.draggable=!0,f.h&&this._register(D.j(_,D.d.DRAG_START,function(A){var Q;return(Q=A.dataTransfer)===null||Q===void 0?void 0:Q.setData(w.a.TEXT,L._action.label)}))),this._register(D.j(I,x.a.Tap,function(A){return L.onClick(A)})),this._register(D.j(I,D.d.MOUSE_DOWN,function(A){P||D.c.stop(A,!0),L._action.enabled&&A.button===0&&D.f(I,"active")})),this._register(D.j(I,D.d.CLICK,function(A){D.c.stop(A,!0),L.options&&L.options.isMenu?L.onClick(A):$.i(function(){return L.onClick(A)})})),this._register(D.j(I,D.d.DBLCLICK,function(A){D.c.stop(A,!0)})),[D.d.MOUSE_UP,D.d.MOUSE_OUT].forEach(function(A){L._register(D.j(I,A,function(Q){D.c.stop(Q),D.P(I,"active")}))})},p.prototype.onClick=function(_){D.c.stop(_,!0);var L;W.l(this._context)?L=_:(L=this._context,W.i(L)&&(L.event=_)),this.actionRunner.run(this._action,L)},p.prototype.focus=function(){this.element&&(this.element.focus(),D.f(this.element,"focused"))},p.prototype.blur=function(){this.element&&(this.element.blur(),D.P(this.element,"focused"))},p.prototype.updateEnabled=function(){},p.prototype.updateLabel=function(){},p.prototype.updateTooltip=function(){},p.prototype.updateClass=function(){},p.prototype.updateChecked=function(){},p.prototype.dispose=function(){this.element&&(D.R(this.element),this.element=void 0),c.prototype.dispose.call(this)},p}(B.a),g=function(c){v(p,c);function p(_){var L=c.call(this,p.ID,_,_?"separator text":"separator")||this;return L.checked=!1,L.enabled=!1,L}return p.ID="vs.actions.separator",p}(z.a),u=function(c){v(p,c);function p(_,L,I){I===void 0&&(I={});var P=c.call(this,_,L,I)||this;return P.options=I,P.options.icon=I.icon!==void 0?I.icon:!1,P.options.label=I.label!==void 0?I.label:!0,P.cssClass="",P}return p.prototype.render=function(_){c.prototype.render.call(this,_),this.element&&(this.label=D.q(this.element,D.a("a.action-label"))),this.label&&(this._action.id===g.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&&(D.q(this.element,D.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},p.prototype.focus=function(){c.prototype.focus.call(this),this.label&&this.label.focus()},p.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},p.prototype.updateTooltip=function(){var _=null;this.getAction().tooltip?_=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(_=this.getAction().label,this.options.keybinding&&(_=R.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",_,this.options.keybinding))),_&&this.label&&(this.label.title=_)},p.prototype.updateClass=function(){this.cssClass&&this.label&&D.Q(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(D.f(this.label,"codicon"),this.cssClass&&D.g(this.label,this.cssClass)),this.updateEnabled()):this.label&&D.P(this.label,"codicon")},p.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),D.P(this.label,"disabled"),this.label.tabIndex=0),this.element&&D.P(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),D.f(this.label,"disabled"),D.S(this.label)),this.element&&D.f(this.element,"disabled"))},p.prototype.updateChecked=function(){this.label&&(this.getAction().checked?D.f(this.label,"checked"):D.P(this.label,"checked"))},p}(C),s={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},l=function(c){v(p,c);function p(_,L){L===void 0&&(L=s);var I=c.call(this)||this;I._onDidBlur=I._register(new y.a),I.onDidBlur=I._onDidBlur.event,I._onDidCancel=I._register(new y.a),I.onDidCancel=I._onDidCancel.event,I._onDidRun=I._register(new y.a),I.onDidRun=I._onDidRun.event,I._onDidBeforeRun=I._register(new y.a),I.onDidBeforeRun=I._onDidBeforeRun.event,I.options=L,I._context=L.context,I.options.triggerKeys||(I.options.triggerKeys=s.triggerKeys),I.options.actionRunner?I._actionRunner=I.options.actionRunner:(I._actionRunner=new z.b,I._register(I._actionRunner)),I._register(I._actionRunner.onDidRun(function(Q){return I._onDidRun.fire(Q)})),I._register(I._actionRunner.onDidBeforeRun(function(Q){return I._onDidBeforeRun.fire(Q)})),I.viewItems=[],I.focusedItem=void 0,I.domNode=document.createElement("div"),I.domNode.className="monaco-action-bar",L.animated!==!1&&D.f(I.domNode,"animated");var P,A;switch(I.options.orientation){case 0:P=15,A=17;break;case 1:P=17,A=15,I.domNode.className+=" reverse";break;case 2:P=16,A=18,I.domNode.className+=" vertical";break;case 3:P=18,A=16,I.domNode.className+=" vertical reverse";break}return I._register(D.j(I.domNode,D.d.KEY_DOWN,function(Q){var K=new h.a(Q),H=!0;K.equals(P)?I.focusPrevious():K.equals(A)?I.focusNext():K.equals(9)?I.cancel():I.isTriggerKeyEvent(K)?I.options.triggerKeys&&I.options.triggerKeys.keyDown&&I.doTrigger(K):H=!1,H&&(K.preventDefault(),K.stopPropagation())})),I._register(D.j(I.domNode,D.d.KEY_UP,function(Q){var K=new h.a(Q);I.isTriggerKeyEvent(K)?(I.options.triggerKeys&&!I.options.triggerKeys.keyDown&&I.doTrigger(K),K.preventDefault(),K.stopPropagation()):(K.equals(2)||K.equals(1024|2))&&I.updateFocusedItem()})),I.focusTracker=I._register(D.Z(I.domNode)),I._register(I.focusTracker.onDidBlur(function(){(document.activeElement===I.domNode||!D.K(document.activeElement,I.domNode))&&(I._onDidBlur.fire(),I.focusedItem=void 0)})),I._register(I.focusTracker.onDidFocus(function(){return I.updateFocusedItem()})),I.actionsList=document.createElement("ul"),I.actionsList.className="actions-container",I.actionsList.setAttribute("role","toolbar"),I.options.ariaLabel&&I.actionsList.setAttribute("aria-label",I.options.ariaLabel),I.domNode.appendChild(I.actionsList),_.appendChild(I.domNode),I}return p.prototype.isTriggerKeyEvent=function(_){var L=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(I){L=L||_.equals(I)}),L},p.prototype.updateFocusedItem=function(){for(var _=0;_<this.actionsList.children.length;_++){var L=this.actionsList.children[_];if(D.K(document.activeElement,L)){this.focusedItem=_;break}}},Object.defineProperty(p.prototype,"context",{get:function(){return this._context},set:function(_){this._context=_,this.viewItems.forEach(function(L){return L.setActionContext(_)})},enumerable:!0,configurable:!0}),p.prototype.getContainer=function(){return this.domNode},p.prototype.push=function(_,L){var I=this;L===void 0&&(L={});var P=Array.isArray(_)?_:[_],A=W.h(L.index)?L.index:null;P.forEach(function(Q){var K=document.createElement("li");K.className="action-item",K.setAttribute("role","presentation"),I._register(D.j(K,D.d.CONTEXT_MENU,function(V){V.preventDefault(),V.stopPropagation()}));var H;I.options.actionViewItemProvider&&(H=I.options.actionViewItemProvider(Q)),H||(H=new u(I.context,Q,L)),H.actionRunner=I._actionRunner,H.setActionContext(I.context),H.render(K),A===null||A<0||A>=I.actionsList.children.length?(I.actionsList.appendChild(K),I.viewItems.push(H)):(I.actionsList.insertBefore(K,I.actionsList.children[A]),I.viewItems.splice(A,0,H),A++)})},p.prototype.clear=function(){this.viewItems=Object(B.f)(this.viewItems),D.t(this.actionsList)},p.prototype.isEmpty=function(){return this.viewItems.length===0},p.prototype.focus=function(_){var L=!1,I=void 0;_===void 0?L=!0:typeof _=="number"?I=_:typeof _=="boolean"&&(L=_),L&&typeof this.focusedItem=="undefined"?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(I!==void 0&&(this.focusedItem=I),this.updateFocus())},p.prototype.focusNext=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=this.viewItems.length-1);var _=this.focusedItem,L;do this.focusedItem=(this.focusedItem+1)%this.viewItems.length,L=this.viewItems[this.focusedItem];while(this.focusedItem!==_&&!L.isEnabled());this.focusedItem===_&&!L.isEnabled()&&(this.focusedItem=void 0),this.updateFocus()},p.prototype.focusPrevious=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=0);var _=this.focusedItem,L;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),L=this.viewItems[this.focusedItem];while(this.focusedItem!==_&&!L.isEnabled());this.focusedItem===_&&!L.isEnabled()&&(this.focusedItem=void 0),this.updateFocus(!0)},p.prototype.updateFocus=function(_,L){typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:L});for(var I=0;I<this.viewItems.length;I++){var P=this.viewItems[I],A=P;I===this.focusedItem?W.g(A.isEnabled)&&(A.isEnabled()&&W.g(A.focus)?A.focus(_):this.actionsList.focus({preventScroll:L})):W.g(A.blur)&&A.blur()}},p.prototype.doTrigger=function(_){if(typeof this.focusedItem=="undefined")return;var L=this.viewItems[this.focusedItem];if(L instanceof C){var I=L._context===null||L._context===void 0?_:L._context;this.run(L._action,I)}},p.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur(),this._onDidCancel.fire()},p.prototype.run=function(_,L){return this._actionRunner.run(_,L)},p.prototype.dispose=function(){Object(B.f)(this.viewItems),this.viewItems=[],D.R(this.getContainer()),c.prototype.dispose.call(this)},p}(B.a)},WwIK:function(Lt,N,e){"use strict";e.r(N),e.d(N,"TriggerParameterHintsAction",function(){return ye});var T=e("3/fG"),le=e("pmY6"),$=e("Cg/j"),R=e("wQH0"),B=e("T8No"),z=e("sswD"),D=e("EffR"),W=e("4y0V"),x=e("OBOq"),h=e("GJhM"),y=e("MI8n"),w=e("yrU1"),f=e("WBhO"),v=e("3qCu"),C=e("X+cX"),g=e("/cxE"),u=e("twdY"),s=e("JQT/"),l=function(ue,ve,Ee,xe){function Ce(he){return he instanceof Ee?he:new Ee(function(J){J(he)})}return new(Ee||(Ee=Promise))(function(he,J){function b(ne){try{re(xe.next(ne))}catch(fe){J(fe)}}function F(ne){try{re(xe.throw(ne))}catch(fe){J(fe)}}function re(ne){ne.done?he(ne.value):Ce(ne.value).then(b,F)}re((xe=xe.apply(ue,ve||[])).next())})},c=function(ue,ve){var Ee={label:0,sent:function(){if(he[0]&1)throw he[1];return he[1]},trys:[],ops:[]},xe,Ce,he,J;return J={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function b(re){return function(ne){return F([re,ne])}}function F(re){if(xe)throw new TypeError("Generator is already executing.");for(;Ee;)try{if(xe=1,Ce&&(he=re[0]&2?Ce.return:re[0]?Ce.throw||((he=Ce.return)&&he.call(Ce),0):Ce.next)&&!(he=he.call(Ce,re[1])).done)return he;(Ce=0,he)&&(re=[re[0]&2,he.value]);switch(re[0]){case 0:case 1:he=re;break;case 4:return Ee.label++,{value:re[1],done:!1};case 5:Ee.label++,Ce=re[1],re=[0];continue;case 7:re=Ee.ops.pop(),Ee.trys.pop();continue;default:if(!(he=Ee.trys,he=he.length>0&&he[he.length-1])&&(re[0]===6||re[0]===2)){Ee=0;continue}if(re[0]===3&&(!he||re[1]>he[0]&&re[1]<he[3])){Ee.label=re[1];break}if(re[0]===6&&Ee.label<he[1]){Ee.label=he[1],he=re;break}if(he&&Ee.label<he[2]){Ee.label=he[2],Ee.ops.push(re);break}he[2]&&Ee.ops.pop(),Ee.trys.pop();continue}re=ve.call(ue,Ee)}catch(ne){re=[6,ne],Ce=0}finally{xe=he=0}if(re[0]&5)throw re[1];return{value:re[0]?re[1]:void 0,done:!0}}},p={Visible:new B.d("parameterHintsVisible",!1),MultipleSignatures:new B.d("parameterHintsMultipleSignatures",!1)};function _(ue,ve,Ee,xe){var Ce=u.x.ordered(ue);return Object(C.h)(Ce.map(function(he){return function(){return Promise.resolve(he.provideSignatureHelp(ue,ve,xe,Ee)).catch(function(J){return Object(g.f)(J)})}}))}Object(z.e)("_executeSignatureHelpProvider",function(ue,ve,Ee){return l(void 0,void 0,void 0,function(){var xe;return c(this,function(Ce){switch(Ce.label){case 0:return[4,_(ue,ve,{triggerKind:u.y.Invoke,isRetrigger:!1,triggerCharacter:Ee.triggerCharacter},s.a.None)];case 1:return xe=Ce.sent(),xe?(setTimeout(function(){return xe.dispose()},0),[2,xe.value]):[2,void 0]}})})});var L=e("W9cx"),I=e("MD5Z"),P=e("t9D7"),A=e("MXAL"),Q=function(){var ue=function(ve,Ee){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Ce){xe.__proto__=Ce}||function(xe,Ce){for(var he in Ce)Ce.hasOwnProperty(he)&&(xe[he]=Ce[he])},ue(ve,Ee)};return function(ve,Ee){ue(ve,Ee);function xe(){this.constructor=ve}ve.prototype=Ee===null?Object.create(Ee):(xe.prototype=Ee.prototype,new xe)}}(),K=function(){return K=Object.assign||function(ue){for(var ve,Ee=1,xe=arguments.length;Ee<xe;Ee++){ve=arguments[Ee];for(var Ce in ve)Object.prototype.hasOwnProperty.call(ve,Ce)&&(ue[Ce]=ve[Ce])}return ue},K.apply(this,arguments)},H=function(ue,ve,Ee,xe){function Ce(he){return he instanceof Ee?he:new Ee(function(J){J(he)})}return new(Ee||(Ee=Promise))(function(he,J){function b(ne){try{re(xe.next(ne))}catch(fe){J(fe)}}function F(ne){try{re(xe.throw(ne))}catch(fe){J(fe)}}function re(ne){ne.done?he(ne.value):Ce(ne.value).then(b,F)}re((xe=xe.apply(ue,ve||[])).next())})},V=function(ue,ve){var Ee={label:0,sent:function(){if(he[0]&1)throw he[1];return he[1]},trys:[],ops:[]},xe,Ce,he,J;return J={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(J[Symbol.iterator]=function(){return this}),J;function b(re){return function(ne){return F([re,ne])}}function F(re){if(xe)throw new TypeError("Generator is already executing.");for(;Ee;)try{if(xe=1,Ce&&(he=re[0]&2?Ce.return:re[0]?Ce.throw||((he=Ce.return)&&he.call(Ce),0):Ce.next)&&!(he=he.call(Ce,re[1])).done)return he;(Ce=0,he)&&(re=[re[0]&2,he.value]);switch(re[0]){case 0:case 1:he=re;break;case 4:return Ee.label++,{value:re[1],done:!1};case 5:Ee.label++,Ce=re[1],re=[0];continue;case 7:re=Ee.ops.pop(),Ee.trys.pop();continue;default:if(!(he=Ee.trys,he=he.length>0&&he[he.length-1])&&(re[0]===6||re[0]===2)){Ee=0;continue}if(re[0]===3&&(!he||re[1]>he[0]&&re[1]<he[3])){Ee.label=re[1];break}if(re[0]===6&&Ee.label<he[1]){Ee.label=he[1],he=re;break}if(he&&Ee.label<he[2]){Ee.label=he[2],Ee.ops.push(re);break}he[2]&&Ee.ops.pop(),Ee.trys.pop();continue}re=ve.call(ue,Ee)}catch(ne){re=[6,ne],Ce=0}finally{xe=he=0}if(re[0]&5)throw re[1];return{value:re[0]?re[1]:void 0,done:!0}}},de;(function(ue){ue.Default={type:0};var ve=function(){function xe(Ce){this.request=Ce,this.type=2}return xe}();ue.Pending=ve;var Ee=function(){function xe(Ce){this.hints=Ce,this.type=1}return xe}();ue.Active=Ee})(de||(de={}));var _e=function(ue){Q(ve,ue);function ve(Ee,xe){xe===void 0&&(xe=ve.DEFAULT_DELAY);var Ce=ue.call(this)||this;return Ce._onChangedHints=Ce._register(new y.a),Ce.onChangedHints=Ce._onChangedHints.event,Ce.triggerOnType=!1,Ce._state=de.Default,Ce._pendingTriggers=[],Ce._lastSignatureHelpResult=Ce._register(new le.d),Ce.triggerChars=new A.b,Ce.retriggerChars=new A.b,Ce.triggerId=0,Ce.editor=Ee,Ce.throttledDelayer=new C.a(xe),Ce._register(Ce.editor.onDidChangeConfiguration(function(){return Ce.onEditorConfigurationChange()})),Ce._register(Ce.editor.onDidChangeModel(function(he){return Ce.onModelChanged()})),Ce._register(Ce.editor.onDidChangeModelLanguage(function(he){return Ce.onModelChanged()})),Ce._register(Ce.editor.onDidChangeCursorSelection(function(he){return Ce.onCursorChange(he)})),Ce._register(Ce.editor.onDidChangeModelContent(function(he){return Ce.onModelContentChange()})),Ce._register(u.x.onDidChange(Ce.onModelChanged,Ce)),Ce._register(Ce.editor.onDidType(function(he){return Ce.onDidType(he)})),Ce.onEditorConfigurationChange(),Ce.onModelChanged(),Ce}return Object.defineProperty(ve.prototype,"state",{get:function(){return this._state},set:function(Ee){this._state.type===2&&this._state.request.cancel(),this._state=Ee},enumerable:!0,configurable:!0}),ve.prototype.cancel=function(Ee){Ee===void 0&&(Ee=!1),this.state=de.Default,this.throttledDelayer.cancel(),Ee||this._onChangedHints.fire(void 0)},ve.prototype.trigger=function(Ee,xe){var Ce=this,he=this.editor.getModel();if(!he||!u.x.has(he))return;var J=++this.triggerId;this._pendingTriggers.push(Ee),this.throttledDelayer.trigger(function(){return Ce.doTrigger(J)},xe).catch(g.e)},ve.prototype.next=function(){if(this.state.type!==1)return;var Ee=this.state.hints.signatures.length,xe=this.state.hints.activeSignature,Ce=xe%Ee===Ee-1,he=this.editor.getOption(64).cycle;if((Ee<2||Ce)&&!he){this.cancel();return}this.updateActiveSignature(Ce&&he?0:xe+1)},ve.prototype.previous=function(){if(this.state.type!==1)return;var Ee=this.state.hints.signatures.length,xe=this.state.hints.activeSignature,Ce=xe===0,he=this.editor.getOption(64).cycle;if((Ee<2||Ce)&&!he){this.cancel();return}this.updateActiveSignature(Ce&&he?Ee-1:xe-1)},ve.prototype.updateActiveSignature=function(Ee){if(this.state.type!==1)return;this.state=new de.Active(K(K({},this.state.hints),{activeSignature:Ee})),this._onChangedHints.fire(this.state.hints)},ve.prototype.doTrigger=function(Ee){return H(this,void 0,void 0,function(){var xe,Ce,he,J,b,F,re,ne;return V(this,function(fe){switch(fe.label){case 0:if(xe=this.state.type===1||this.state.type===2,Ce=this.state.type===1?this.state.hints:void 0,this.cancel(!0),this._pendingTriggers.length===0)return[2,!1];if(he=this._pendingTriggers.reduce(Se),this._pendingTriggers=[],J={triggerKind:he.triggerKind,triggerCharacter:he.triggerCharacter,isRetrigger:xe,activeSignatureHelp:Ce},!this.editor.hasModel())return[2,!1];b=this.editor.getModel(),F=this.editor.getPosition(),this.state=new de.Pending(Object(C.f)(function(Oe){return _(b,F,J,Oe)})),fe.label=1;case 1:return fe.trys.push([1,3,,4]),[4,this.state.request];case 2:if(re=fe.sent(),Ee!==this.triggerId)return re==null||re.dispose(),[2,!1];if(!re||!re.value.signatures||re.value.signatures.length===0)return re==null||re.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),[2,!1];return this.state=new de.Active(re.value),this._lastSignatureHelpResult.value=re,this._onChangedHints.fire(this.state.hints),[2,!0];return[3,4];case 3:return ne=fe.sent(),Ee===this.triggerId&&(this.state=de.Default),Object(g.e)(ne),[2,!1];case 4:return[2]}})})},Object.defineProperty(ve.prototype,"isTriggered",{get:function(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()},enumerable:!0,configurable:!0}),ve.prototype.onModelChanged=function(){this.cancel(),this.triggerChars=new A.b,this.retriggerChars=new A.b;var Ee=this.editor.getModel();if(!Ee)return;for(var xe=0,Ce=u.x.ordered(Ee);xe<Ce.length;xe++){for(var he=Ce[xe],J=0,b=he.signatureHelpTriggerCharacters||[];J<b.length;J++){var F=b[J];this.triggerChars.add(F.charCodeAt(0)),this.retriggerChars.add(F.charCodeAt(0))}for(var re=0,ne=he.signatureHelpRetriggerCharacters||[];re<ne.length;re++){var F=ne[re];this.retriggerChars.add(F.charCodeAt(0))}}},ve.prototype.onDidType=function(Ee){if(!this.triggerOnType)return;var xe=Ee.length-1,Ce=Ee.charCodeAt(xe);(this.triggerChars.has(Ce)||this.isTriggered&&this.retriggerChars.has(Ce))&&this.trigger({triggerKind:u.y.TriggerCharacter,triggerCharacter:Ee.charAt(xe)})},ve.prototype.onCursorChange=function(Ee){Ee.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:u.y.ContentChange})},ve.prototype.onModelContentChange=function(){this.isTriggered&&this.trigger({triggerKind:u.y.ContentChange})},ve.prototype.onEditorConfigurationChange=function(){this.triggerOnType=this.editor.getOption(64).enabled,this.triggerOnType||this.cancel()},ve.prototype.dispose=function(){this.cancel(!0),ue.prototype.dispose.call(this)},ve.DEFAULT_DELAY=120,ve}(le.a);function Se(ue,ve){switch(ve.triggerKind){case u.y.Invoke:return ve;case u.y.ContentChange:return ue;case u.y.TriggerCharacter:default:return ve}}var Ie=e("N0LK"),Pe=function(){var ue=function(ve,Ee){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Ce){xe.__proto__=Ce}||function(xe,Ce){for(var he in Ce)Ce.hasOwnProperty(he)&&(xe[he]=Ce[he])},ue(ve,Ee)};return function(ve,Ee){ue(ve,Ee);function xe(){this.constructor=ve}ve.prototype=Ee===null?Object.create(Ee):(xe.prototype=Ee.prototype,new xe)}}(),Ve=function(ue,ve,Ee,xe){var Ce=arguments.length,he=Ce<3?ve:xe===null?xe=Object.getOwnPropertyDescriptor(ve,Ee):xe,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(ue,ve,Ee,xe);else for(var b=ue.length-1;b>=0;b--)(J=ue[b])&&(he=(Ce<3?J(he):Ce>3?J(ve,Ee,he):J(ve,Ee))||he);return Ce>3&&he&&Object.defineProperty(ve,Ee,he),he},ke=function(ue,ve){return function(Ee,xe){ve(Ee,xe,ue)}},se=D.a,ee=function(ue){Pe(ve,ue);function ve(Ee,xe,Ce,he){var J=ue.call(this)||this;return J.editor=Ee,J.renderDisposeables=J._register(new le.b),J.visible=!1,J.announcedLabel=null,J.allowEditorOverflow=!0,J.markdownRenderer=J._register(new v.a(Ee,he,Ce)),J.model=J._register(new _e(Ee)),J.keyVisible=p.Visible.bindTo(xe),J.keyMultipleSignatures=p.MultipleSignatures.bindTo(xe),J._register(J.model.onChangedHints(function(b){b?(J.show(),J.render(b)):J.hide()})),J}return ve.prototype.createParamaterHintDOMNodes=function(){var Ee=this,xe=se(".editor-widget.parameter-hints-widget"),Ce=D.q(xe,se(".wrapper"));Ce.tabIndex=-1;var he=D.q(Ce,se(".controls")),J=D.q(he,se(".button.codicon.codicon-chevron-up")),b=D.q(he,se(".overloads")),F=D.q(he,se(".button.codicon.codicon-chevron-down")),re=Object(W.b)(Object(W.a)(J,"click"));this._register(re(this.previous,this));var ne=Object(W.b)(Object(W.a)(F,"click"));this._register(ne(this.next,this));var fe=se(".body"),Oe=new h.a(fe,{});this._register(Oe),Ce.appendChild(Oe.getDomNode());var Me=D.q(fe,se(".signature")),Ue=D.q(fe,se(".docs"));xe.style.userSelect="text",this.domNodes={element:xe,signature:Me,overloads:b,docs:Ue,scrollbar:Oe},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(function(nt){Ee.visible&&Ee.editor.layoutContentWidget(Ee)}));var Je=function(){if(!Ee.domNodes)return;var nt=Ee.editor.getOption(34);Ee.domNodes.element.style.fontSize=nt.fontSize+"px"};Je(),this._register(y.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(nt){return nt.hasChanged(34)}).on(Je,null)),this._register(this.editor.onDidLayoutChange(function(nt){return Ee.updateMaxHeight()})),this.updateMaxHeight()},ve.prototype.show=function(){var Ee=this;if(this.visible)return;this.domNodes||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(function(){Ee.domNodes&&D.f(Ee.domNodes.element,"visible")},100),this.editor.layoutContentWidget(this)},ve.prototype.hide=function(){if(!this.visible)return;this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&D.P(this.domNodes.element,"visible"),this.editor.layoutContentWidget(this)},ve.prototype.getPosition=function(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null},ve.prototype.render=function(Ee){if(!this.domNodes)return;var xe=Ee.signatures.length>1;D.Y(this.domNodes.element,"multiple",xe),this.keyMultipleSignatures.set(xe),this.domNodes.signature.innerHTML="",this.domNodes.docs.innerHTML="";var Ce=Ee.signatures[Ee.activeSignature];if(!Ce)return;var he=D.q(this.domNodes.signature,se(".code")),J=Ce.parameters.length>0,b=this.editor.getOption(34);if(he.style.fontSize=b.fontSize+"px",he.style.fontFamily=b.fontFamily,J)this.renderParameters(he,Ce,Ee.activeParameter);else{var F=D.q(he,se("span"));F.textContent=Ce.label}this.renderDisposeables.clear();var re=Ce.parameters[Ee.activeParameter];if(re&&re.documentation){var ne=se("span.documentation");if(typeof re.documentation=="string")ne.textContent=re.documentation;else{var fe=this.markdownRenderer.render(re.documentation);D.f(fe.element,"markdown-docs"),this.renderDisposeables.add(fe),ne.appendChild(fe.element)}D.q(this.domNodes.docs,se("p",{},ne))}if(!(Ce.documentation===void 0))if(typeof Ce.documentation=="string")D.q(this.domNodes.docs,se("p",{},Ce.documentation));else{var fe=this.markdownRenderer.render(Ce.documentation);D.f(fe.element,"markdown-docs"),this.renderDisposeables.add(fe),D.q(this.domNodes.docs,fe.element)}var Oe=this.hasDocs(Ce,re);if(D.Y(this.domNodes.signature,"has-docs",Oe),D.Y(this.domNodes.docs,"empty",!Oe),this.domNodes.overloads.textContent=Object(Ie.F)(Ee.activeSignature+1,Ee.signatures.length.toString().length)+"/"+Ee.signatures.length,re){var Me=this.getParameterLabel(Ce,Ee.activeParameter);this.announcedLabel!==Me&&(x.a(T.a("hint","{0}, hint",Me)),this.announcedLabel=Me)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()},ve.prototype.hasDocs=function(Ee,xe){return xe&&typeof xe.documentation=="string"&&xe.documentation.length>0||(xe&&typeof xe.documentation=="object"&&xe.documentation.value.length>0||typeof Ee.documentation=="string"&&Ee.documentation.length>0)?!0:typeof Ee.documentation=="object"&&Ee.documentation.value.length>0},ve.prototype.renderParameters=function(Ee,xe,Ce){var he=this.getParameterLabelOffsets(xe,Ce),J=he[0],b=he[1],F=document.createElement("span");F.textContent=xe.label.substring(0,J);var re=document.createElement("span");re.textContent=xe.label.substring(J,b),re.className="parameter active";var ne=document.createElement("span");ne.textContent=xe.label.substring(b),D.q(Ee,F,re,ne)},ve.prototype.getParameterLabel=function(Ee,xe){var Ce=Ee.parameters[xe];return typeof Ce.label=="string"?Ce.label:Ee.label.substring(Ce.label[0],Ce.label[1])},ve.prototype.getParameterLabelOffsets=function(Ee,xe){var Ce=Ee.parameters[xe];if(Ce){if(Array.isArray(Ce.label))return Ce.label;var he=Ee.label.lastIndexOf(Ce.label);return he>=0?[he,he+Ce.label.length]:[0,0]}else return[0,0]},ve.prototype.next=function(){this.editor.focus(),this.model.next()},ve.prototype.previous=function(){this.editor.focus(),this.model.previous()},ve.prototype.cancel=function(){this.model.cancel()},ve.prototype.getDomNode=function(){return this.domNodes||this.createParamaterHintDOMNodes(),this.domNodes.element},ve.prototype.getId=function(){return ve.ID},ve.prototype.trigger=function(Ee){this.model.trigger(Ee,0)},ve.prototype.updateMaxHeight=function(){if(!this.domNodes)return;var Ee=Math.max(this.editor.getLayoutInfo().height/4,250),xe=Ee+"px";this.domNodes.element.style.maxHeight=xe;var Ce=this.domNodes.element.getElementsByClassName("wrapper");Ce.length&&(Ce[0].style.maxHeight=xe)},ve.ID="editor.widget.parameterHintsWidget",ve=Ve([ke(1,B.c),ke(2,L.a),ke(3,f.a)],ve),ve}(le.a);Object(P.e)(function(ue,ve){var Ee=ue.getColor(I.B);if(Ee){var xe=ue.type===P.b?2:1;ve.addRule(".monaco-editor .parameter-hints-widget { border: "+xe+"px solid "+Ee+"; }"),ve.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid "+Ee.transparent(.5)+"; }"),ve.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid "+Ee.transparent(.5)+"; }")}var Ce=ue.getColor(I.A);Ce&&ve.addRule(".monaco-editor .parameter-hints-widget { background-color: "+Ce+"; }");var he=ue.getColor(I.ec);he&&ve.addRule(".monaco-editor .parameter-hints-widget a { color: "+he+"; }");var J=ue.getColor(I.C);J&&ve.addRule(".monaco-editor .parameter-hints-widget { color: "+J+"; }");var b=ue.getColor(I.dc);b&&ve.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+b+"; }")});var ie=function(){var ue=function(ve,Ee){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Ce){xe.__proto__=Ce}||function(xe,Ce){for(var he in Ce)Ce.hasOwnProperty(he)&&(xe[he]=Ce[he])},ue(ve,Ee)};return function(ve,Ee){ue(ve,Ee);function xe(){this.constructor=ve}ve.prototype=Ee===null?Object.create(Ee):(xe.prototype=Ee.prototype,new xe)}}(),q=function(ue,ve,Ee,xe){var Ce=arguments.length,he=Ce<3?ve:xe===null?xe=Object.getOwnPropertyDescriptor(ve,Ee):xe,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(ue,ve,Ee,xe);else for(var b=ue.length-1;b>=0;b--)(J=ue[b])&&(he=(Ce<3?J(he):Ce>3?J(ve,Ee,he):J(ve,Ee))||he);return Ce>3&&he&&Object.defineProperty(ve,Ee,he),he},ce=function(ue,ve){return function(Ee,xe){ve(Ee,xe,ue)}},Z=function(ue){ie(ve,ue);function ve(Ee,xe){var Ce=ue.call(this)||this;return Ce.editor=Ee,Ce.widget=Ce._register(xe.createInstance(ee,Ce.editor)),Ce}return ve.get=function(Ee){return Ee.getContribution(ve.ID)},ve.prototype.cancel=function(){this.widget.cancel()},ve.prototype.previous=function(){this.widget.previous()},ve.prototype.next=function(){this.widget.next()},ve.prototype.trigger=function(Ee){this.widget.trigger(Ee)},ve.ID="editor.controller.parameterHints",ve=q([ce(1,$.a)],ve),ve}(le.a),ye=function(ue){ie(ve,ue);function ve(){return ue.call(this,{id:"editor.action.triggerParameterHints",label:T.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:R.a.hasSignatureHelpProvider,kbOpts:{kbExpr:R.a.editorTextFocus,primary:2048|1024|10,weight:100}})||this}return ve.prototype.run=function(Ee,xe){var Ce=Z.get(xe);Ce&&Ce.trigger({triggerKind:u.y.Invoke})},ve}(z.b);Object(z.h)(Z.ID,Z),Object(z.f)(ye);var je=100+75,Ge=z.c.bindToContribution(Z.get);Object(z.g)(new Ge({id:"closeParameterHints",precondition:p.Visible,handler:function(ue){return ue.cancel()},kbOpts:{weight:je,kbExpr:R.a.focus,primary:9,secondary:[1024|9]}})),Object(z.g)(new Ge({id:"showPrevParameterHint",precondition:B.a.and(p.Visible,p.MultipleSignatures),handler:function(ue){return ue.previous()},kbOpts:{weight:je,kbExpr:R.a.focus,primary:16,secondary:[512|16],mac:{primary:16,secondary:[512|16,256|46]}}})),Object(z.g)(new Ge({id:"showNextParameterHint",precondition:B.a.and(p.Visible,p.MultipleSignatures),handler:function(ue){return ue.next()},kbOpts:{weight:je,kbExpr:R.a.focus,primary:18,secondary:[512|18],mac:{primary:18,secondary:[512|18,256|44]}}}))},"X+cX":function(Lt,N,e){"use strict";e.d(N,"i",function(){return R}),e.d(N,"f",function(){return B}),e.d(N,"j",function(){return z}),e.d(N,"a",function(){return D}),e.d(N,"l",function(){return W}),e.d(N,"g",function(){return x}),e.d(N,"h",function(){return h}),e.d(N,"e",function(){return y}),e.d(N,"c",function(){return w}),e.d(N,"d",function(){return f}),e.d(N,"k",function(){return v}),e.d(N,"b",function(){return C});var T=e("JQT/"),le=e("/cxE"),$=e("pmY6");function R(g){return g&&typeof g.then=="function"}function B(g){var u=new T.b,s=g(u.token),l=new Promise(function(c,p){u.token.onCancellationRequested(function(){p(le.a())}),Promise.resolve(s).then(function(_){u.dispose(),c(_)},function(_){u.dispose(),p(_)})});return new(function(){function c(){}return c.prototype.cancel=function(){u.cancel()},c.prototype.then=function(p,_){return l.then(p,_)},c.prototype.catch=function(p){return this.then(void 0,p)},c.prototype.finally=function(p){return l.finally(p)},c}())}function z(g,u,s){return Promise.race([g,new Promise(function(l){return u.onCancellationRequested(function(){return l(s)})})])}var D=function(){function g(u){this.defaultDelay=u,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}return g.prototype.trigger=function(u,s){var l=this;return s===void 0&&(s=this.defaultDelay),this.task=u,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(function(c,p){l.doResolve=c,l.doReject=p}).then(function(){if(l.completionPromise=null,l.doResolve=null,l.task){var c=l.task;return l.task=null,c()}return})),this.timeout=setTimeout(function(){l.timeout=null,l.doResolve&&l.doResolve(null)},s),this.completionPromise},g.prototype.isTriggered=function(){return this.timeout!==null},g.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(le.a()),this.completionPromise=null)},g.prototype.cancelTimeout=function(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)},g.prototype.dispose=function(){this.cancelTimeout()},g}();function W(g,u){return u?new Promise(function(s,l){var c=setTimeout(s,g);u.onCancellationRequested(function(){clearTimeout(c),l(le.a())})}):B(function(s){return W(g,s)})}function x(g,u){u===void 0&&(u=0);var s=setTimeout(g,u);return Object($.h)(function(){return clearTimeout(s)})}function h(g,u,s){u===void 0&&(u=function(_){return!!_}),s===void 0&&(s=null);var l=0,c=g.length,p=function(){if(l>=c)return Promise.resolve(s);var _=g[l++],L=Promise.resolve(_());return L.then(function(I){return u(I)?Promise.resolve(I):p()})};return p()}var y=function(){function g(u,s){this._token=-1,typeof u=="function"&&typeof s=="number"&&this.setIfNotSet(u,s)}return g.prototype.dispose=function(){this.cancel()},g.prototype.cancel=function(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)},g.prototype.cancelAndSet=function(u,s){var l=this;this.cancel(),this._token=setTimeout(function(){l._token=-1,u()},s)},g.prototype.setIfNotSet=function(u,s){var l=this;if(this._token!==-1)return;this._token=setTimeout(function(){l._token=-1,u()},s)},g}(),w=function(){function g(){this._token=-1}return g.prototype.dispose=function(){this.cancel()},g.prototype.cancel=function(){this._token!==-1&&(clearInterval(this._token),this._token=-1)},g.prototype.cancelAndSet=function(u,s){this.cancel(),this._token=setInterval(function(){u()},s)},g}(),f=function(){function g(u,s){this.timeoutToken=-1,this.runner=u,this.timeout=s,this.timeoutHandler=this.onTimeout.bind(this)}return g.prototype.dispose=function(){this.cancel(),this.runner=null},g.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},g.prototype.schedule=function(u){u===void 0&&(u=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,u)},g.prototype.isScheduled=function(){return this.timeoutToken!==-1},g.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},g.prototype.doRun=function(){this.runner&&this.runner()},g}(),v;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){var g=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});v=function(u){var s=setTimeout(function(){return u(g)}),l=!1;return{dispose:function(){if(l)return;l=!0,clearTimeout(s)}}}}else v=function(u,s){var l=requestIdleCallback(u,typeof s=="number"?{timeout:s}:void 0),c=!1;return{dispose:function(){if(c)return;c=!0,cancelIdleCallback(l)}}}})();var C=function(){function g(u){var s=this;this._didRun=!1,this._executor=function(){try{s._value=u()}catch(l){s._error=l}finally{s._didRun=!0}},this._handle=v(function(){return s._executor()})}return g.prototype.dispose=function(){this._handle.dispose()},g.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},g}()},XNtB:function(Lt,N,e){},XQgg:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return e.e(333).then(e.bind(null,"/0xJ"))}})},XSiN:function(Lt,N,e){"use strict";e.d(N,"b",function(){return B}),e.d(N,"a",function(){return z}),e.d(N,"c",function(){return D});var T=e("D3Dy"),le=e("51f4"),$=e("MNsG"),R=function(){var W=function(x,h){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var f in w)w.hasOwnProperty(f)&&(y[f]=w[f])},W(x,h)};return function(x,h){W(x,h);function y(){this.constructor=x}x.prototype=h===null?Object.create(h):(y.prototype=h.prototype,new y)}}(),B=function(){function W(x){this.timestamp=Date.now(),this.browserEvent=x,this.leftButton=x.button===0,this.middleButton=x.button===1,this.rightButton=x.button===2,this.buttons=x.buttons,this.target=x.target,this.detail=x.detail||1,x.type==="dblclick"&&(this.detail=2),this.ctrlKey=x.ctrlKey,this.shiftKey=x.shiftKey,this.altKey=x.altKey,this.metaKey=x.metaKey,typeof x.pageX=="number"?(this.posx=x.pageX,this.posy=x.pageY):(this.posx=x.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=x.clientY+document.body.scrollTop+document.documentElement.scrollTop);var h=le.a.getPositionOfChildWindowRelativeToAncestorWindow(self,x.view);this.posx-=h.left,this.posy-=h.top}return W.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},W.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},W}(),z=function(W){R(x,W);function x(h){var y=W.call(this,h)||this;return y.dataTransfer=h.dataTransfer,y}return x}(B),D=function(){function W(x,h,y){if(h===void 0&&(h=0),y===void 0&&(y=0),this.browserEvent=x||null,this.target=x?x.target||x.targetNode||x.srcElement:null,this.deltaY=y,this.deltaX=h,x){var w=x,f=x;if(typeof w.wheelDeltaY!="undefined")this.deltaY=w.wheelDeltaY/120;else if(typeof f.VERTICAL_AXIS!="undefined"&&f.axis===f.VERTICAL_AXIS)this.deltaY=-f.detail/3;else if(x.type==="wheel"){var v=x;v.deltaMode===v.DOM_DELTA_LINE?this.deltaY=-x.deltaY:this.deltaY=-x.deltaY/40}if(typeof w.wheelDeltaX!="undefined")T.k&&$.h?this.deltaX=-(w.wheelDeltaX/120):this.deltaX=w.wheelDeltaX/120;else if(typeof f.HORIZONTAL_AXIS!="undefined"&&f.axis===f.HORIZONTAL_AXIS)this.deltaX=-x.detail/3;else if(x.type==="wheel"){var v=x;v.deltaMode===v.DOM_DELTA_LINE?this.deltaX=-x.deltaX:this.deltaX=-x.deltaX/40}this.deltaY===0&&this.deltaX===0&&x.wheelDelta&&(this.deltaY=x.wheelDelta/120)}}return W.prototype.preventDefault=function(){this.browserEvent&&(this.browserEvent.preventDefault&&this.browserEvent.preventDefault())},W.prototype.stopPropagation=function(){this.browserEvent&&(this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation())},W}()},XXBq:function(Lt,N,e){},XXUj:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("Cg/j"),le=Object(T.c)("telemetryService")},XtJs:function(Lt,N,e){"use strict";e.r(N),e.d(N,"getOccurrencesAtPosition",function(){return A});var T=e("3/fG"),le=e("6OMU"),$=e("X+cX"),R=e("JQT/"),B=e("/cxE"),z=e("pmY6"),D=e("sswD"),W=e("aokT"),x=e("wQH0"),h=e("M1Kb"),y=e("tX9W"),w=e("twdY"),f=e("T8No"),v=e("MD5Z"),C=e("t9D7"),g=function(){var ke=function(se,ee){return ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,q){ie.__proto__=q}||function(ie,q){for(var ce in q)q.hasOwnProperty(ce)&&(ie[ce]=q[ce])},ke(se,ee)};return function(se,ee){ke(se,ee);function ie(){this.constructor=se}se.prototype=ee===null?Object.create(ee):(ie.prototype=ee.prototype,new ie)}}(),u=function(ke,se,ee,ie){var q=arguments.length,ce=q<3?se:ie===null?ie=Object.getOwnPropertyDescriptor(se,ee):ie,Z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ce=Reflect.decorate(ke,se,ee,ie);else for(var ye=ke.length-1;ye>=0;ye--)(Z=ke[ye])&&(ce=(q<3?Z(ce):q>3?Z(se,ee,ce):Z(se,ee))||ce);return q>3&&ce&&Object.defineProperty(se,ee,ce),ce},s=function(ke,se){return function(ee,ie){se(ee,ie,ke)}},l=Object(v.Tb)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},T.a("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),c=Object(v.Tb)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},T.a("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),p=Object(v.Tb)("editor.wordHighlightBorder",{light:null,dark:null,hc:v.b},T.a("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),_=Object(v.Tb)("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:v.b},T.a("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),L=Object(v.Tb)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},T.a("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),I=Object(v.Tb)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},T.a("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),P=new f.d("hasWordHighlights",!1);function A(ke,se,ee){var ie=w.i.ordered(ke);return Object($.h)(ie.map(function(q){return function(){return Promise.resolve(q.provideDocumentHighlights(ke,se,ee)).then(void 0,B.f)}}),le.q)}var Q=function(){function ke(se,ee,ie){var q=this;this._wordRange=this._getCurrentWordRange(se,ee),this.result=Object($.f)(function(ce){return q._compute(se,ee,ie,ce)})}return ke.prototype._getCurrentWordRange=function(se,ee){var ie=se.getWordAtPosition(ee.getPosition());return ie?new W.a(ee.startLineNumber,ie.startColumn,ee.startLineNumber,ie.endColumn):null},ke.prototype.isValid=function(se,ee,ie){for(var q=ee.startLineNumber,ce=ee.startColumn,Z=ee.endColumn,ye=this._getCurrentWordRange(se,ee),je=Boolean(this._wordRange&&this._wordRange.equalsRange(ye)),Ge=0,ue=ie.length;!je&&Ge<ue;Ge++){var ve=se.getDecorationRange(ie[Ge]);ve&&ve.startLineNumber===q&&(ve.startColumn<=ce&&ve.endColumn>=Z&&(je=!0))}return je},ke.prototype.cancel=function(){this.result.cancel()},ke}(),K=function(ke){g(se,ke);function se(){return ke!==null&&ke.apply(this,arguments)||this}return se.prototype._compute=function(ee,ie,q,ce){return A(ee,ie.getPosition(),ce).then(function(Z){return Z||[]})},se}(Q),H=function(ke){g(se,ke);function se(ee,ie,q){var ce=ke.call(this,ee,ie,q)||this;return ce._selectionIsEmpty=ie.isEmpty(),ce}return se.prototype._compute=function(ee,ie,q,ce){return Object($.l)(250,ce).then(function(){if(!ie.isEmpty())return[];var Z=ee.getWordAtPosition(ie.getPosition());if(!Z)return[];var ye=ee.findMatches(Z.word,!0,!1,!0,q,!1);return ye.map(function(je){return{range:je.range,kind:w.h.Text}})})},se.prototype.isValid=function(ee,ie,q){var ce=ie.isEmpty();return this._selectionIsEmpty!==ce?!1:ke.prototype.isValid.call(this,ee,ie,q)},se}(Q);function V(ke,se,ee){return w.i.has(ke)?new K(ke,se,ee):new H(ke,se,ee)}Object(D.k)("_executeDocumentHighlights",function(ke,se){return A(ke,se,R.a.None)});var de=function(){function ke(se,ee){var ie=this;this.toUnhook=new z.b,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=se,this._hasWordHighlights=P.bindTo(ee),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(61),this.model=this.editor.getModel(),this.toUnhook.add(se.onDidChangeCursorPosition(function(q){if(ie._ignorePositionChangeEvent)return;if(!ie.occurrencesHighlight)return;ie._onPositionChanged(q)})),this.toUnhook.add(se.onDidChangeModelContent(function(q){ie._stopAll()})),this.toUnhook.add(se.onDidChangeConfiguration(function(q){var ce=ie.editor.getOption(61);ie.occurrencesHighlight!==ce&&(ie.occurrencesHighlight=ce,ie._stopAll())})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}return ke.prototype.hasDecorations=function(){return this._decorationIds.length>0},ke.prototype.restore=function(){if(!this.occurrencesHighlight)return;this._run()},ke.prototype._getSortedHighlights=function(){var se=this;return le.d(this._decorationIds.map(function(ee){return se.model.getDecorationRange(ee)}).sort(W.a.compareRangesUsingStarts))},ke.prototype.moveNext=function(){var se=this,ee=this._getSortedHighlights(),ie=le.k(ee,function(Z){return Z.containsPosition(se.editor.getPosition())}),q=(ie+1)%ee.length,ce=ee[q];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ce.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ce)}finally{this._ignorePositionChangeEvent=!1}},ke.prototype.moveBack=function(){var se=this,ee=this._getSortedHighlights(),ie=le.k(ee,function(Z){return Z.containsPosition(se.editor.getPosition())}),q=(ie-1+ee.length)%ee.length,ce=ee[q];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ce.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ce)}finally{this._ignorePositionChangeEvent=!1}},ke.prototype._removeDecorations=function(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},ke.prototype._stopAll=function(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)},ke.prototype._onPositionChanged=function(se){if(!this.occurrencesHighlight){this._stopAll();return}if(se.reason!==3){this._stopAll();return}this._run()},ke.prototype._run=function(){var se=this,ee=this.editor.getSelection();if(ee.startLineNumber!==ee.endLineNumber){this._stopAll();return}var ie=ee.startLineNumber,q=ee.startColumn,ce=ee.endColumn,Z=this.model.getWordAtPosition({lineNumber:ie,column:q});if(!Z||Z.startColumn>q||Z.endColumn<ce){this._stopAll();return}var ye=this.workerRequest&&this.workerRequest.isValid(this.model,ee,this._decorationIds);if(this.lastCursorPositionChangeTime=new Date().getTime(),ye)this.workerRequestCompleted&&this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();var je=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=V(this.model,this.editor.getSelection(),this.editor.getOption(96)),this.workerRequest.result.then(function(Ge){je===se.workerRequestTokenId&&(se.workerRequestCompleted=!0,se.workerRequestValue=Ge||[],se._beginRenderDecorations())},B.e)}},ke.prototype._beginRenderDecorations=function(){var se=this,ee=new Date().getTime(),ie=this.lastCursorPositionChangeTime+250;ee>=ie?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(function(){se.renderDecorations()},ie-ee)},ke.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var se=[],ee=0,ie=this.workerRequestValue.length;ee<ie;ee++){var q=this.workerRequestValue[ee];se.push({range:q.range,options:ke._getDecorationOptions(q.kind)})}this._decorationIds=this.editor.deltaDecorations(this._decorationIds,se),this._hasWordHighlights.set(this.hasDecorations())},ke._getDecorationOptions=function(se){return se===w.h.Write?this._WRITE_OPTIONS:se===w.h.Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS},ke.prototype.dispose=function(){this._stopAll(),this.toUnhook.dispose()},ke._WRITE_OPTIONS=y.a.register({stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(C.f)(I),position:h.d.Center}}),ke._TEXT_OPTIONS=y.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(C.f)(v.Mb),position:h.d.Center}}),ke._REGULAR_OPTIONS=y.a.register({stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(C.f)(L),position:h.d.Center}}),ke}(),_e=function(ke){g(se,ke);function se(ee,ie){var q=ke.call(this)||this;q.wordHighligher=null;var ce=function(){ee.hasModel()&&(q.wordHighligher=new de(ee,ie))};return q._register(ee.onDidChangeModel(function(Z){q.wordHighligher&&(q.wordHighligher.dispose(),q.wordHighligher=null),ce()})),ce(),q}return se.get=function(ee){return ee.getContribution(se.ID)},se.prototype.saveViewState=function(){return!!(this.wordHighligher&&this.wordHighligher.hasDecorations())},se.prototype.moveNext=function(){this.wordHighligher&&this.wordHighligher.moveNext()},se.prototype.moveBack=function(){this.wordHighligher&&this.wordHighligher.moveBack()},se.prototype.restoreViewState=function(ee){this.wordHighligher&&ee&&this.wordHighligher.restore()},se.prototype.dispose=function(){this.wordHighligher&&(this.wordHighligher.dispose(),this.wordHighligher=null),ke.prototype.dispose.call(this)},se.ID="editor.contrib.wordHighlighter",se=u([s(1,f.c)],se),se}(z.a),Se=function(ke){g(se,ke);function se(ee,ie){var q=ke.call(this,ie)||this;return q._isNext=ee,q}return se.prototype.run=function(ee,ie){var q=_e.get(ie);if(!q)return;this._isNext?q.moveNext():q.moveBack()},se}(D.b),Ie=function(ke){g(se,ke);function se(){return ke.call(this,!0,{id:"editor.action.wordHighlight.next",label:T.a("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:P,kbOpts:{kbExpr:x.a.editorTextFocus,primary:65,weight:100}})||this}return se}(Se),Pe=function(ke){g(se,ke);function se(){return ke.call(this,!1,{id:"editor.action.wordHighlight.prev",label:T.a("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:P,kbOpts:{kbExpr:x.a.editorTextFocus,primary:1024|65,weight:100}})||this}return se}(Se),Ve=function(ke){g(se,ke);function se(){return ke.call(this,{id:"editor.action.wordHighlight.trigger",label:T.a("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:P.toNegated(),kbOpts:{kbExpr:x.a.editorTextFocus,primary:0,weight:100}})||this}return se.prototype.run=function(ee,ie,q){var ce=_e.get(ie);if(!ce)return;ce.restoreViewState(!0)},se}(D.b);Object(D.h)(_e.ID,_e),Object(D.f)(Ie),Object(D.f)(Pe),Object(D.f)(Ve),Object(C.e)(function(ke,se){var ee=ke.getColor(v.M);ee&&(se.addRule(".monaco-editor .focused .selectionHighlight { background-color: "+ee+"; }"),se.addRule(".monaco-editor .selectionHighlight { background-color: "+ee.transparent(.5)+"; }"));var ie=ke.getColor(l);ie&&se.addRule(".monaco-editor .wordHighlight { background-color: "+ie+"; }");var q=ke.getColor(c);q&&se.addRule(".monaco-editor .wordHighlightStrong { background-color: "+q+"; }");var ce=ke.getColor(v.N);ce&&se.addRule(".monaco-editor .selectionHighlight { border: 1px "+(ke.type==="hc"?"dotted":"solid")+" "+ce+"; box-sizing: border-box; }");var Z=ke.getColor(p);Z&&se.addRule(".monaco-editor .wordHighlight { border: 1px "+(ke.type==="hc"?"dashed":"solid")+" "+Z+"; box-sizing: border-box; }");var ye=ke.getColor(_);ye&&se.addRule(".monaco-editor .wordHighlightStrong { border: 1px "+(ke.type==="hc"?"dashed":"solid")+" "+ye+"; box-sizing: border-box; }")})},YHy6:function(Lt,N,e){},Yr1X:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("MI8n"),le=new(function(){function $(){this._zoomLevel=0,this._onDidChangeZoomLevel=new T.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return $.prototype.getZoomLevel=function(){return this._zoomLevel},$.prototype.setZoomLevel=function(R){if(R=Math.min(Math.max(-5,R),20),this._zoomLevel===R)return;this._zoomLevel=R,this._onDidChangeZoomLevel.fire(this._zoomLevel)},$}())},Z7SF:function(Lt,N,e){"use strict";e.d(N,"a",function(){return z});var T=e("cGHE"),le=e("aokT"),$=e("24hK"),R=function(D,W,x,h){function y(w){return w instanceof x?w:new x(function(f){f(w)})}return new(x||(x=Promise))(function(w,f){function v(u){try{g(h.next(u))}catch(s){f(s)}}function C(u){try{g(h.throw(u))}catch(s){f(s)}}function g(u){u.done?w(u.value):y(u.value).then(v,C)}g((h=h.apply(D,W||[])).next())})},B=function(D,W){var x={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},h,y,w,f;return f={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function v(g){return function(u){return C([g,u])}}function C(g){if(h)throw new TypeError("Generator is already executing.");for(;x;)try{if(h=1,y&&(w=g[0]&2?y.return:g[0]?y.throw||((w=y.return)&&w.call(y),0):y.next)&&!(w=w.call(y,g[1])).done)return w;(y=0,w)&&(g=[g[0]&2,w.value]);switch(g[0]){case 0:case 1:w=g;break;case 4:return x.label++,{value:g[1],done:!1};case 5:x.label++,y=g[1],g=[0];continue;case 7:g=x.ops.pop(),x.trys.pop();continue;default:if(!(w=x.trys,w=w.length>0&&w[w.length-1])&&(g[0]===6||g[0]===2)){x=0;continue}if(g[0]===3&&(!w||g[1]>w[0]&&g[1]<w[3])){x.label=g[1];break}if(g[0]===6&&x.label<w[1]){x.label=w[1],w=g;break}if(w&&x.label<w[2]){x.label=w[2],x.ops.push(g);break}w[2]&&x.ops.pop(),x.trys.pop();continue}g=W.call(D,x)}catch(u){g=[6,u],y=0}finally{h=w=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},z=function(){function D(){}return D.prototype.provideSelectionRanges=function(W,x){return R(this,void 0,void 0,function(){var h,y,w,f,v;return B(this,function(C){switch(C.label){case 0:h=[],y=function(g){var u,s;return B(this,function(l){switch(l.label){case 0:return u=[],h.push(u),s=new Map,[4,new Promise(function(c){return D._bracketsRightYield(c,0,W,g,s)})];case 1:return l.sent(),[4,new Promise(function(c){return D._bracketsLeftYield(c,0,W,g,s,u)})];case 2:return l.sent(),[2]}})},w=0,f=x,C.label=1;case 1:return w<f.length?(v=f[w],[5,y(v)]):[3,4];case 2:C.sent(),C.label=3;case 3:return w++,[3,1];case 4:return[2,h]}})})},D._bracketsRightYield=function(W,x,h,y,w){for(var f=new Map,v=Date.now();;){if(x>=D._maxRounds){W();break}if(!y){W();break}var C=h.findNextBracket(y);if(!C){W();break}var g=Date.now()-v;if(g>D._maxDuration){setTimeout(function(){return D._bracketsRightYield(W,x+1,h,y,w)});break}var u=C.close[0];if(C.isOpen){var s=f.has(u)?f.get(u):0;f.set(u,s+1)}else{var s=f.has(u)?f.get(u):0;if(s-=1,f.set(u,Math.max(0,s)),s<0){var l=w.get(u);l||(l=new $.a,w.set(u,l)),l.push(C.range)}}y=C.range.getEndPosition()}},D._bracketsLeftYield=function(W,x,h,y,w,f){for(var v=new Map,C=Date.now();;){if(x>=D._maxRounds&&w.size===0){W();break}if(!y){W();break}var g=h.findPrevBracket(y);if(!g){W();break}var u=Date.now()-C;if(u>D._maxDuration){setTimeout(function(){return D._bracketsLeftYield(W,x+1,h,y,w,f)});break}var s=g.close[0];if(g.isOpen){var l=v.has(s)?v.get(s):0;if(l-=1,v.set(s,Math.max(0,l)),l<0){var c=w.get(s);if(c){var p=c.shift();c.size===0&&w.delete(s);var _=le.a.fromPositions(g.range.getEndPosition(),p.getStartPosition()),L=le.a.fromPositions(g.range.getStartPosition(),p.getEndPosition());f.push({range:_}),f.push({range:L}),D._addBracketLeading(h,L,f)}}}else{var l=v.has(s)?v.get(s):0;v.set(s,l+1)}y=g.range.getStartPosition()}},D._addBracketLeading=function(W,x,h){if(x.startLineNumber===x.endLineNumber)return;var y=x.startLineNumber,w=W.getLineFirstNonWhitespaceColumn(y);w!==0&&w!==x.startColumn&&(h.push({range:le.a.fromPositions(new T.a(y,w),x.getEndPosition())}),h.push({range:le.a.fromPositions(new T.a(y,1),x.getEndPosition())}));var f=y-1;if(f>0){var v=W.getLineFirstNonWhitespaceColumn(f);v===x.startColumn&&v!==W.getLineLastNonWhitespaceColumn(f)&&(h.push({range:le.a.fromPositions(new T.a(f,v),x.getEndPosition())}),h.push({range:le.a.fromPositions(new T.a(f,1),x.getEndPosition())}))}},D._maxDuration=30,D._maxRounds=2,D}()},ZCR3:function(Lt,N,e){"use strict";e.d(N,"a",function(){return $});var T=0;function le(){var R="$memoize"+T++,B=void 0,z=function(W,x,h){var y=null,w=null;if(typeof h.value=="function"?(y="value",w=h.value,w.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof h.get=="function"&&(y="get",w=h.get),!w)throw new Error("not supported");var f=R+":"+x;h[y]=function(){for(var v=[],C=0;C<arguments.length;C++)v[C]=arguments[C];return B=this,this.hasOwnProperty(f)||Object.defineProperty(this,f,{configurable:!0,enumerable:!1,writable:!0,value:w.apply(this,v)}),this[f]}};return z.clear=function(){if(typeof B=="undefined")return;Object.getOwnPropertyNames(B).forEach(function(D){D.indexOf(R)===0&&delete B[D]})},z}function $(R,B,z){return le()(R,B,z)}},ZIMw:function(Lt,N,e){"use strict";e.d(N,"b",function(){return W}),e.d(N,"a",function(){return x});var T=e("JQT/"),le=e("/cxE"),$=e("bY76"),R=e("sswD"),B=e("aokT"),z=e("twdY"),D=e("G2kB");function W(h,y){var w=[],f=z.c.ordered(h).reverse(),v=f.map(function(C){return Promise.resolve(C.provideDocumentColors(h,y)).then(function(g){if(Array.isArray(g))for(var u=0,s=g;u<s.length;u++){var l=s[u];w.push({colorInfo:l,provider:C})}})});return Promise.all(v).then(function(){return w})}function x(h,y,w,f){return Promise.resolve(w.provideColorPresentations(h,y,f))}Object(R.j)("_executeDocumentColorProvider",function(h,y){var w=y.resource;if(!(w instanceof $.a))throw Object(le.b)();var f=h.get(D.a).getModel(w);if(!f)throw Object(le.b)();var v=[],C=z.c.ordered(f).reverse(),g=C.map(function(u){return Promise.resolve(u.provideDocumentColors(f,T.a.None)).then(function(s){if(Array.isArray(s))for(var l=0,c=s;l<c.length;l++){var p=c[l];v.push({range:p.range,color:[p.color.red,p.color.green,p.color.blue,p.color.alpha]})}})});return Promise.all(g).then(function(){return v})}),Object(R.j)("_executeColorPresentationProvider",function(h,y){var w=y.resource,f=y.color,v=y.range;if(!(w instanceof $.a)||!Array.isArray(f)||f.length!==4||!B.a.isIRange(v))throw Object(le.b)();var C=f[0],g=f[1],u=f[2],s=f[3],l=h.get(D.a).getModel(w);if(!l)throw Object(le.b)();var c={range:v,color:{red:C,green:g,blue:u,alpha:s}},p=[],_=z.c.ordered(l).reverse(),L=_.map(function(I){return Promise.resolve(I.provideColorPresentations(l,c,T.a.None)).then(function(P){Array.isArray(P)&&p.push.apply(p,P)})});return Promise.all(L).then(function(){return p})})},ZQ78:function(Lt,N,e){"use strict";e.d(N,"a",function(){return T}),e.d(N,"b",function(){return le}),e.d(N,"c",function(){return $});var T={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"},le=function(){function R(B){this.data=B}return R.prototype.update=function(){},R.prototype.getData=function(){return this.data},R}(),$={CurrentDragAndDropData:void 0}},"ZkA/":function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return e.e(313).then(e.bind(null,"DTUS"))}})},ZlPH:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le}),e.d(N,"b",function(){return $});var T=e("EffR"),le=function(){function R(B){this.domNode=B,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 R.prototype.setMaxWidth=function(B){if(this._maxWidth===B)return;this._maxWidth=B,this.domNode.style.maxWidth=this._maxWidth+"px"},R.prototype.setWidth=function(B){if(this._width===B)return;this._width=B,this.domNode.style.width=this._width+"px"},R.prototype.setHeight=function(B){if(this._height===B)return;this._height=B,this.domNode.style.height=this._height+"px"},R.prototype.setTop=function(B){if(this._top===B)return;this._top=B,this.domNode.style.top=this._top+"px"},R.prototype.unsetTop=function(){if(this._top===-1)return;this._top=-1,this.domNode.style.top=""},R.prototype.setLeft=function(B){if(this._left===B)return;this._left=B,this.domNode.style.left=this._left+"px"},R.prototype.setBottom=function(B){if(this._bottom===B)return;this._bottom=B,this.domNode.style.bottom=this._bottom+"px"},R.prototype.setRight=function(B){if(this._right===B)return;this._right=B,this.domNode.style.right=this._right+"px"},R.prototype.setFontFamily=function(B){if(this._fontFamily===B)return;this._fontFamily=B,this.domNode.style.fontFamily=this._fontFamily},R.prototype.setFontWeight=function(B){if(this._fontWeight===B)return;this._fontWeight=B,this.domNode.style.fontWeight=this._fontWeight},R.prototype.setFontSize=function(B){if(this._fontSize===B)return;this._fontSize=B,this.domNode.style.fontSize=this._fontSize+"px"},R.prototype.setFontFeatureSettings=function(B){if(this._fontFeatureSettings===B)return;this._fontFeatureSettings=B,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings},R.prototype.setLineHeight=function(B){if(this._lineHeight===B)return;this._lineHeight=B,this.domNode.style.lineHeight=this._lineHeight+"px"},R.prototype.setLetterSpacing=function(B){if(this._letterSpacing===B)return;this._letterSpacing=B,this.domNode.style.letterSpacing=this._letterSpacing+"px"},R.prototype.setClassName=function(B){if(this._className===B)return;this._className=B,this.domNode.className=this._className},R.prototype.toggleClassName=function(B,z){T.Y(this.domNode,B,z),this._className=this.domNode.className},R.prototype.setDisplay=function(B){if(this._display===B)return;this._display=B,this.domNode.style.display=this._display},R.prototype.setPosition=function(B){if(this._position===B)return;this._position=B,this.domNode.style.position=this._position},R.prototype.setVisibility=function(B){if(this._visibility===B)return;this._visibility=B,this.domNode.style.visibility=this._visibility},R.prototype.setBackgroundColor=function(B){if(this._backgroundColor===B)return;this._backgroundColor=B,this.domNode.style.backgroundColor=this._backgroundColor},R.prototype.setLayerHinting=function(B){if(this._layerHint===B)return;this._layerHint=B,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":""},R.prototype.setContain=function(B){if(this._contain===B)return;this._contain=B,this.domNode.style.contain=this._contain},R.prototype.setAttribute=function(B,z){this.domNode.setAttribute(B,z)},R.prototype.removeAttribute=function(B){this.domNode.removeAttribute(B)},R.prototype.appendChild=function(B){this.domNode.appendChild(B.domNode)},R.prototype.removeChild=function(B){this.domNode.removeChild(B.domNode)},R}();function $(R){return new le(R)}},ZvGG:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return e.e(311).then(e.bind(null,"yUwd"))}})},aBYw:function(Lt,N,e){"use strict";e.d(N,"a",function(){return y});var T=e("D3Dy"),le=e("pmY6"),$=e("MI8n"),R=e("MNsG"),B=function(){var w=function(f,v){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,g){C.__proto__=g}||function(C,g){for(var u in g)g.hasOwnProperty(u)&&(C[u]=g[u])},w(f,v)};return function(f,v){w(f,v);function C(){this.constructor=f}f.prototype=v===null?Object.create(v):(C.prototype=v.prototype,new C)}}();function z(w,f){return!!w[f]}var D=function(){function w(f,v){this.target=f.target,this.hasTriggerModifier=z(f.event,v.triggerModifier),this.hasSideBySideModifier=z(f.event,v.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=T.i||f.event.detail<=1}return w}(),W=function(){function w(f,v){this.keyCodeIsTriggerKey=f.keyCode===v.triggerKey,this.keyCodeIsSideBySideKey=f.keyCode===v.triggerSideBySideKey,this.hasTriggerModifier=z(f,v.triggerModifier)}return w}(),x=function(){function w(f,v,C,g){this.triggerKey=f,this.triggerModifier=v,this.triggerSideBySideKey=C,this.triggerSideBySideModifier=g}return w.prototype.equals=function(f){return this.triggerKey===f.triggerKey&&this.triggerModifier===f.triggerModifier&&this.triggerSideBySideKey===f.triggerSideBySideKey&&this.triggerSideBySideModifier===f.triggerSideBySideModifier},w}();function h(w){return w==="altKey"?R.e?new x(57,"metaKey",6,"altKey"):new x(5,"ctrlKey",6,"altKey"):R.e?new x(6,"altKey",57,"metaKey"):new x(6,"altKey",5,"ctrlKey")}var y=function(w){B(f,w);function f(v){var C=w.call(this)||this;return C._onMouseMoveOrRelevantKeyDown=C._register(new $.a),C.onMouseMoveOrRelevantKeyDown=C._onMouseMoveOrRelevantKeyDown.event,C._onExecute=C._register(new $.a),C.onExecute=C._onExecute.event,C._onCancel=C._register(new $.a),C.onCancel=C._onCancel.event,C._editor=v,C._opts=h(C._editor.getOption(59)),C.lastMouseMoveEvent=null,C.hasTriggerKeyOnMouseDown=!1,C._register(C._editor.onDidChangeConfiguration(function(g){if(g.hasChanged(59)){var u=h(C._editor.getOption(59));if(C._opts.equals(u))return;C._opts=u,C.lastMouseMoveEvent=null,C.hasTriggerKeyOnMouseDown=!1,C._onCancel.fire()}})),C._register(C._editor.onMouseMove(function(g){return C.onEditorMouseMove(new D(g,C._opts))})),C._register(C._editor.onMouseDown(function(g){return C.onEditorMouseDown(new D(g,C._opts))})),C._register(C._editor.onMouseUp(function(g){return C.onEditorMouseUp(new D(g,C._opts))})),C._register(C._editor.onKeyDown(function(g){return C.onEditorKeyDown(new W(g,C._opts))})),C._register(C._editor.onKeyUp(function(g){return C.onEditorKeyUp(new W(g,C._opts))})),C._register(C._editor.onMouseDrag(function(){return C.resetHandler()})),C._register(C._editor.onDidChangeCursorSelection(function(g){return C.onDidChangeCursorSelection(g)})),C._register(C._editor.onDidChangeModel(function(g){return C.resetHandler()})),C._register(C._editor.onDidChangeModelContent(function(){return C.resetHandler()})),C._register(C._editor.onDidScrollChange(function(g){(g.scrollTopChanged||g.scrollLeftChanged)&&C.resetHandler()})),C}return f.prototype.onDidChangeCursorSelection=function(v){v.selection&&v.selection.startColumn!==v.selection.endColumn&&this.resetHandler()},f.prototype.onEditorMouseMove=function(v){this.lastMouseMoveEvent=v,this._onMouseMoveOrRelevantKeyDown.fire([v,null])},f.prototype.onEditorMouseDown=function(v){this.hasTriggerKeyOnMouseDown=v.hasTriggerModifier},f.prototype.onEditorMouseUp=function(v){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(v)},f.prototype.onEditorKeyDown=function(v){this.lastMouseMoveEvent&&(v.keyCodeIsTriggerKey||v.keyCodeIsSideBySideKey&&v.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,v]):v.hasTriggerModifier&&this._onCancel.fire()},f.prototype.onEditorKeyUp=function(v){v.keyCodeIsTriggerKey&&this._onCancel.fire()},f.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},f}(le.a)},ajgA:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return e.e(328).then(e.bind(null,"Fzfo"))}})},aokT:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("cGHE"),le=function(){function $(R,B,z,D){R>z||R===z&&B>D?(this.startLineNumber=z,this.startColumn=D,this.endLineNumber=R,this.endColumn=B):(this.startLineNumber=R,this.startColumn=B,this.endLineNumber=z,this.endColumn=D)}return $.prototype.isEmpty=function(){return $.isEmpty(this)},$.isEmpty=function(R){return R.startLineNumber===R.endLineNumber&&R.startColumn===R.endColumn},$.prototype.containsPosition=function(R){return $.containsPosition(this,R)},$.containsPosition=function(R,B){return B.lineNumber<R.startLineNumber||B.lineNumber>R.endLineNumber||B.lineNumber===R.startLineNumber&&B.column<R.startColumn?!1:!(B.lineNumber===R.endLineNumber&&B.column>R.endColumn)},$.prototype.containsRange=function(R){return $.containsRange(this,R)},$.containsRange=function(R,B){return B.startLineNumber<R.startLineNumber||B.endLineNumber<R.startLineNumber||(B.startLineNumber>R.endLineNumber||B.endLineNumber>R.endLineNumber||B.startLineNumber===R.startLineNumber&&B.startColumn<R.startColumn)?!1:!(B.endLineNumber===R.endLineNumber&&B.endColumn>R.endColumn)},$.prototype.strictContainsRange=function(R){return $.strictContainsRange(this,R)},$.strictContainsRange=function(R,B){return B.startLineNumber<R.startLineNumber||B.endLineNumber<R.startLineNumber||(B.startLineNumber>R.endLineNumber||B.endLineNumber>R.endLineNumber||B.startLineNumber===R.startLineNumber&&B.startColumn<=R.startColumn)?!1:!(B.endLineNumber===R.endLineNumber&&B.endColumn>=R.endColumn)},$.prototype.plusRange=function(R){return $.plusRange(this,R)},$.plusRange=function(R,B){var z,D,W,x;return B.startLineNumber<R.startLineNumber?(z=B.startLineNumber,D=B.startColumn):B.startLineNumber===R.startLineNumber?(z=B.startLineNumber,D=Math.min(B.startColumn,R.startColumn)):(z=R.startLineNumber,D=R.startColumn),B.endLineNumber>R.endLineNumber?(W=B.endLineNumber,x=B.endColumn):B.endLineNumber===R.endLineNumber?(W=B.endLineNumber,x=Math.max(B.endColumn,R.endColumn)):(W=R.endLineNumber,x=R.endColumn),new $(z,D,W,x)},$.prototype.intersectRanges=function(R){return $.intersectRanges(this,R)},$.intersectRanges=function(R,B){var z=R.startLineNumber,D=R.startColumn,W=R.endLineNumber,x=R.endColumn,h=B.startLineNumber,y=B.startColumn,w=B.endLineNumber,f=B.endColumn;return z<h?(z=h,D=y):z===h&&(D=Math.max(D,y)),W>w?(W=w,x=f):W===w&&(x=Math.min(x,f)),z>W||z===W&&D>x?null:new $(z,D,W,x)},$.prototype.equalsRange=function(R){return $.equalsRange(this,R)},$.equalsRange=function(R,B){return!!R&&!!B&&R.startLineNumber===B.startLineNumber&&R.startColumn===B.startColumn&&R.endLineNumber===B.endLineNumber&&R.endColumn===B.endColumn},$.prototype.getEndPosition=function(){return new T.a(this.endLineNumber,this.endColumn)},$.prototype.getStartPosition=function(){return new T.a(this.startLineNumber,this.startColumn)},$.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},$.prototype.setEndPosition=function(R,B){return new $(this.startLineNumber,this.startColumn,R,B)},$.prototype.setStartPosition=function(R,B){return new $(R,B,this.endLineNumber,this.endColumn)},$.prototype.collapseToStart=function(){return $.collapseToStart(this)},$.collapseToStart=function(R){return new $(R.startLineNumber,R.startColumn,R.startLineNumber,R.startColumn)},$.fromPositions=function(R,B){return B===void 0&&(B=R),new $(R.lineNumber,R.column,B.lineNumber,B.column)},$.lift=function(R){return R?new $(R.startLineNumber,R.startColumn,R.endLineNumber,R.endColumn):null},$.isIRange=function(R){return R&&typeof R.startLineNumber=="number"&&typeof R.startColumn=="number"&&typeof R.endLineNumber=="number"&&typeof R.endColumn=="number"},$.areIntersectingOrTouching=function(R,B){return R.endLineNumber<B.startLineNumber||R.endLineNumber===B.startLineNumber&&R.endColumn<B.startColumn?!1:!(B.endLineNumber<R.startLineNumber||B.endLineNumber===R.startLineNumber&&B.endColumn<R.startColumn)},$.areIntersecting=function(R,B){return R.endLineNumber<B.startLineNumber||R.endLineNumber===B.startLineNumber&&R.endColumn<=B.startColumn?!1:!(B.endLineNumber<R.startLineNumber||B.endLineNumber===R.startLineNumber&&B.endColumn<=R.startColumn)},$.compareRangesUsingStarts=function(R,B){if(R&&B){var z=R.startLineNumber|0,D=B.startLineNumber|0;if(z===D){var W=R.startColumn|0,x=B.startColumn|0;if(W===x){var h=R.endLineNumber|0,y=B.endLineNumber|0;if(h===y){var w=R.endColumn|0,f=B.endColumn|0;return w-f}return h-y}return W-x}return z-D}var v=R?1:0,C=B?1:0;return v-C},$.compareRangesUsingEnds=function(R,B){return R.endLineNumber===B.endLineNumber?R.endColumn===B.endColumn?R.startLineNumber===B.startLineNumber?R.startColumn-B.startColumn:R.startLineNumber-B.startLineNumber:R.endColumn-B.endColumn:R.endLineNumber-B.endLineNumber},$.spansMultipleLines=function(R){return R.endLineNumber>R.startLineNumber},$}()},bY76:function(Lt,N,e){"use strict";e.d(N,"a",function(){return f});var T=e("MNsG"),le=function(){var I=function(P,A){return I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,K){Q.__proto__=K}||function(Q,K){for(var H in K)K.hasOwnProperty(H)&&(Q[H]=K[H])},I(P,A)};return function(P,A){I(P,A);function Q(){this.constructor=P}P.prototype=A===null?Object.create(A):(Q.prototype=A.prototype,new Q)}}(),$,R=/^\w[\w\d+.-]*$/,B=/^\//,z=/^\/\//;function D(I,P){if(!I.scheme&&P)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+I.authority+'", path: "'+I.path+'", query: "'+I.query+'", fragment: "'+I.fragment+'"}');if(I.scheme&&!R.test(I.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(I.path){if(I.authority){if(!B.test(I.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(z.test(I.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function W(I,P){return!I&&!P?"file":I}function x(I,P){switch(I){case"https":case"http":case"file":P?P[0]!==y&&(P=y+P):P=y;break}return P}var h="",y="/",w=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,f=function(){function I(P,A,Q,K,H,V){V===void 0&&(V=!1),typeof P=="object"?(this.scheme=P.scheme||h,this.authority=P.authority||h,this.path=P.path||h,this.query=P.query||h,this.fragment=P.fragment||h):(this.scheme=W(P,V),this.authority=A||h,this.path=x(this.scheme,Q||h),this.query=K||h,this.fragment=H||h,D(this,V))}return I.isUri=function(P){return P instanceof I?!0:P?typeof P.authority=="string"&&typeof P.fragment=="string"&&typeof P.path=="string"&&typeof P.query=="string"&&typeof P.scheme=="string"&&typeof P.fsPath=="function"&&typeof P.with=="function"&&typeof P.toString=="function":!1},Object.defineProperty(I.prototype,"fsPath",{get:function(){return l(this)},enumerable:!0,configurable:!0}),I.prototype.with=function(P){if(!P)return this;var A=P.scheme,Q=P.authority,K=P.path,H=P.query,V=P.fragment;return A===void 0?A=this.scheme:A===null&&(A=h),Q===void 0?Q=this.authority:Q===null&&(Q=h),K===void 0?K=this.path:K===null&&(K=h),H===void 0?H=this.query:H===null&&(H=h),V===void 0?V=this.fragment:V===null&&(V=h),A===this.scheme&&Q===this.authority&&K===this.path&&H===this.query&&V===this.fragment?this:new C(A,Q,K,H,V)},I.parse=function(P,A){A===void 0&&(A=!1);var Q=w.exec(P);return Q?new C(Q[2]||h,L(Q[4]||h),L(Q[5]||h),L(Q[7]||h),L(Q[9]||h),A):new C(h,h,h,h,h)},I.file=function(P){var A=h;if(T.h&&(P=P.replace(/\\/g,y)),P[0]===y&&P[1]===y){var Q=P.indexOf(y,2);Q===-1?(A=P.substring(2),P=y):(A=P.substring(2,Q),P=P.substring(Q)||y)}return new C("file",A,P,h,h)},I.from=function(P){return new C(P.scheme,P.authority,P.path,P.query,P.fragment)},I.prototype.toString=function(P){return P===void 0&&(P=!1),c(this,P)},I.prototype.toJSON=function(){return this},I.revive=function(P){if(P){if(P instanceof I)return P;var A=new C(P);return A._formatted=P.external,A._fsPath=P._sep===v?P.fsPath:null,A}else return P},I}(),v=T.h?1:void 0,C=function(I){le(P,I);function P(){var A=I!==null&&I.apply(this,arguments)||this;return A._formatted=null,A._fsPath=null,A}return Object.defineProperty(P.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=l(this)),this._fsPath},enumerable:!0,configurable:!0}),P.prototype.toString=function(A){return A===void 0&&(A=!1),A?c(this,!0):(this._formatted||(this._formatted=c(this,!1)),this._formatted)},P.prototype.toJSON=function(){var A={$mid:1};return this._fsPath&&(A.fsPath=this._fsPath,A._sep=v),this._formatted&&(A.external=this._formatted),this.path&&(A.path=this.path),this.scheme&&(A.scheme=this.scheme),this.authority&&(A.authority=this.authority),this.query&&(A.query=this.query),this.fragment&&(A.fragment=this.fragment),A},P}(f),g=($={},$[58]="%3A",$[47]="%2F",$[63]="%3F",$[35]="%23",$[91]="%5B",$[93]="%5D",$[64]="%40",$[33]="%21",$[36]="%24",$[38]="%26",$[39]="%27",$[40]="%28",$[41]="%29",$[42]="%2A",$[43]="%2B",$[44]="%2C",$[59]="%3B",$[61]="%3D",$[32]="%20",$);function u(I,P){for(var A=void 0,Q=-1,K=0;K<I.length;K++){var H=I.charCodeAt(K);if(H>=97&&H<=122||H>=65&&H<=90||H>=48&&H<=57||H===45||H===46||H===95||H===126||P&&H===47)Q!==-1&&(A+=encodeURIComponent(I.substring(Q,K)),Q=-1),A!==void 0&&(A+=I.charAt(K));else{A===void 0&&(A=I.substr(0,K));var V=g[H];V!==void 0?(Q!==-1&&(A+=encodeURIComponent(I.substring(Q,K)),Q=-1),A+=V):Q===-1&&(Q=K)}}return Q!==-1&&(A+=encodeURIComponent(I.substring(Q))),A!==void 0?A:I}function s(I){for(var P=void 0,A=0;A<I.length;A++){var Q=I.charCodeAt(A);Q===35||Q===63?(P===void 0&&(P=I.substr(0,A)),P+=g[Q]):P!==void 0&&(P+=I[A])}return P!==void 0?P:I}function l(I){var P;return I.authority&&I.path.length>1&&I.scheme==="file"?P="//"+I.authority+I.path:I.path.charCodeAt(0)===47&&(I.path.charCodeAt(1)>=65&&I.path.charCodeAt(1)<=90||I.path.charCodeAt(1)>=97&&I.path.charCodeAt(1)<=122)&&I.path.charCodeAt(2)===58?P=I.path[1].toLowerCase()+I.path.substr(2):P=I.path,T.h&&(P=P.replace(/\//g,"\\")),P}function c(I,P){var A=P?s:u,Q="",K=I.scheme,H=I.authority,V=I.path,de=I.query,_e=I.fragment;if(K&&(Q+=K,Q+=":"),(H||K==="file")&&(Q+=y,Q+=y),H){var Se=H.indexOf("@");if(Se!==-1){var Ie=H.substr(0,Se);H=H.substr(Se+1),Se=Ie.indexOf(":"),Se===-1?Q+=A(Ie,!1):(Q+=A(Ie.substr(0,Se),!1),Q+=":",Q+=A(Ie.substr(Se+1),!1)),Q+="@"}H=H.toLowerCase(),Se=H.indexOf(":"),Se===-1?Q+=A(H,!1):(Q+=A(H.substr(0,Se),!1),Q+=H.substr(Se))}if(V){if(V.length>=3&&V.charCodeAt(0)===47&&V.charCodeAt(2)===58){var Pe=V.charCodeAt(1);Pe>=65&&Pe<=90&&(V="/"+String.fromCharCode(Pe+32)+":"+V.substr(3))}else if(V.length>=2&&V.charCodeAt(1)===58){var Pe=V.charCodeAt(0);Pe>=65&&Pe<=90&&(V=String.fromCharCode(Pe+32)+":"+V.substr(2))}Q+=A(V,!0)}return de&&(Q+="?",Q+=A(de,!1)),_e&&(Q+="#",Q+=P?_e:u(_e,!1)),Q}function p(I){try{return decodeURIComponent(I)}catch(P){return I.length>3?I.substr(0,3)+p(I.substr(3)):I}}var _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(I){return I.match(_)?I.replace(_,function(P){return p(P)}):I}},ba9Q:function(Lt,N,e){"use strict";e.r(N);var T=e("3/fG"),le=e("sswD"),$=e("LCkn"),R=e("aokT"),B=e("wQH0"),z=e("+Fos"),D=function(){var x=function(h,y){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,f){w.__proto__=f}||function(w,f){for(var v in f)f.hasOwnProperty(v)&&(w[v]=f[v])},x(h,y)};return function(h,y){x(h,y);function w(){this.constructor=h}h.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}}(),W=function(x){D(h,x);function h(){return x.call(this,{id:"editor.action.transposeLetters",label:T.a("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:B.a.writable,kbOpts:{kbExpr:B.a.textInputFocus,primary:0,mac:{primary:256|50},weight:100}})||this}return h.prototype.run=function(y,w){if(!w.hasModel())return;for(var f=w.getModel(),v=[],C=w.getSelections(),g=0,u=C;g<u.length;g++){var s=u[g];if(!s.isEmpty())continue;var l=s.startLineNumber,c=s.startColumn,p=f.getLineMaxColumn(l);if(l===1&&(c===1||c===2&&p===2))continue;var _=c===p?s.getPosition():z.a.rightPosition(f,s.getPosition().lineNumber,s.getPosition().column),L=z.a.leftPosition(f,_.lineNumber,_.column),I=z.a.leftPosition(f,L.lineNumber,L.column),P=f.getValueInRange(R.a.fromPositions(I,L)),A=f.getValueInRange(R.a.fromPositions(L,_)),Q=R.a.fromPositions(I,_);v.push(new $.a(Q,A+P))}v.length>0&&(w.pushUndoStop(),w.executeCommands(this.id,v),w.pushUndoStop())},h}(le.b);Object(le.f)(W)},baJR:function(Lt,N,e){"use strict";e.d(N,"b",function(){return B}),e.d(N,"c",function(){return z}),e.d(N,"a",function(){return D}),e.d(N,"d",function(){return x}),e.d(N,"e",function(){return y});var T=e("N0LK"),le=e("erNZ"),$=e("dBaI"),R=function(){function l(c,p){this.endIndex=c,this.type=p}return l}(),B=function(){function l(c,p){this.startOffset=c,this.endOffset=p}return l.prototype.equals=function(c){return this.startOffset===c.startOffset&&this.endOffset===c.endOffset},l}(),z=function(){function l(c,p,_,L,I,P,A,Q,K,H,V,de,_e,Se,Ie,Pe,Ve,ke){this.useMonospaceOptimizations=c,this.canUseHalfwidthRightwardsArrow=p,this.lineContent=_,this.continuesWithWrappedLine=L,this.isBasicASCII=I,this.containsRTL=P,this.fauxIndentLength=A,this.lineTokens=Q,this.lineDecorations=K,this.tabSize=H,this.startVisibleColumn=V,this.spaceWidth=de,this.middotWidth=_e,this.stopRenderingLineAfter=Se,this.renderWhitespace=Ie==="all"?3:Ie==="boundary"?1:Ie==="selection"?2:0,this.renderControlCharacters=Pe,this.fontLigatures=Ve,this.selectionsOnLine=ke&&ke.sort(function(se,ee){return se.startOffset<ee.startOffset?-1:1})}return l.prototype.sameSelection=function(c){if(this.selectionsOnLine===null)return c===null;if(c===null)return!1;if(c.length!==this.selectionsOnLine.length)return!1;for(var p=0;p<this.selectionsOnLine.length;p++)if(!this.selectionsOnLine[p].equals(c[p]))return!1;return!0},l.prototype.equals=function(c){return this.useMonospaceOptimizations===c.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===c.canUseHalfwidthRightwardsArrow&&this.lineContent===c.lineContent&&this.continuesWithWrappedLine===c.continuesWithWrappedLine&&this.isBasicASCII===c.isBasicASCII&&this.containsRTL===c.containsRTL&&this.fauxIndentLength===c.fauxIndentLength&&this.tabSize===c.tabSize&&this.startVisibleColumn===c.startVisibleColumn&&this.spaceWidth===c.spaceWidth&&this.stopRenderingLineAfter===c.stopRenderingLineAfter&&this.renderWhitespace===c.renderWhitespace&&this.renderControlCharacters===c.renderControlCharacters&&this.fontLigatures===c.fontLigatures&&$.a.equalsArr(this.lineDecorations,c.lineDecorations)&&this.lineTokens.equals(c.lineTokens)&&this.sameSelection(c.selectionsOnLine)},l}(),D=function(){function l(c,p){this.length=c,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return l.getPartIndex=function(c){return(c&4294901760)>>>16},l.getCharIndex=function(c){return(c&65535)>>>0},l.prototype.setPartData=function(c,p,_,L){var I=(p<<16|_<<0)>>>0;this._data[c]=I,this._absoluteOffsets[c]=L+_},l.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},l.prototype.charOffsetToPartData=function(c){return this.length===0?0:c<0?this._data[0]:c>=this.length?this._data[this.length-1]:this._data[c]},l.prototype.partDataToCharOffset=function(c,p,_){if(this.length===0)return 0;for(var L=(c<<16|_<<0)>>>0,I=0,P=this.length-1;I+1<P;){var A=I+P>>>1,Q=this._data[A];if(Q===L)return A;Q>L?P=A:I=A}if(I===P)return I;var K=this._data[I],H=this._data[P];if(K===L)return I;if(H===L)return P;var V=l.getPartIndex(K),de=l.getCharIndex(K),_e=l.getPartIndex(H),Se;V!==_e?Se=p:Se=l.getCharIndex(H);var Ie=_-de,Pe=Se-_;return Ie<=Pe?I:P},l}(),W=function(){function l(c,p,_){this.characterMapping=c,this.containsRTL=p,this.containsForeignElements=_}return l}();function x(l,c){if(l.lineContent.length===0){var p=0,_="<span><span>\xA0</span></span>";if(l.lineDecorations.length>0){for(var L=[],I=[],P=0,A=l.lineDecorations.length;P<A;P++){var Q=l.lineDecorations[P];Q.type===1&&(L.push(l.lineDecorations[P].className),p|=1),Q.type===2&&(I.push(l.lineDecorations[P].className),p|=2)}if(p!==0){var K=L.length>0?'<span class="'+L.join(" ")+'"></span>':"",H=I.length>0?'<span class="'+I.join(" ")+'"></span>':"";_="<span>"+K+H+"</span>"}}return c.appendASCIIString(_),new W(new D(0,0),!1,p)}return s(f(l),c)}var h=function(){function l(c,p,_,L){this.characterMapping=c,this.html=p,this.containsRTL=_,this.containsForeignElements=L}return l}();function y(l){var c=Object(le.a)(1e4),p=x(l,c);return new h(p.characterMapping,c.build(),p.containsRTL,p.containsForeignElements)}var w=function(){function l(c,p,_,L,I,P,A,Q,K,H,V,de,_e,Se,Ie){this.fontIsMonospace=c,this.canUseHalfwidthRightwardsArrow=p,this.lineContent=_,this.len=L,this.isOverflowing=I,this.parts=P,this.containsForeignElements=A,this.fauxIndentLength=Q,this.tabSize=K,this.startVisibleColumn=H,this.containsRTL=V,this.spaceWidth=de,this.middotWidth=_e,this.renderWhitespace=Se,this.renderControlCharacters=Ie}return l}();function f(l){var c=l.useMonospaceOptimizations,p=l.lineContent,_,L;l.stopRenderingLineAfter!==-1&&l.stopRenderingLineAfter<p.length?(_=!0,L=l.stopRenderingLineAfter):(_=!1,L=p.length);var I=v(l.lineTokens,l.fauxIndentLength,L);(l.renderWhitespace===3||l.renderWhitespace===1||l.renderWhitespace===2&&!!l.selectionsOnLine)&&(I=g(p,L,l.continuesWithWrappedLine,I,l.fauxIndentLength,l.tabSize,l.startVisibleColumn,c,l.selectionsOnLine,l.renderWhitespace===1));var P=0;if(l.lineDecorations.length>0){for(var A=0,Q=l.lineDecorations.length;A<Q;A++){var K=l.lineDecorations[A];K.type===3||K.type===1?P|=1:K.type===2&&(P|=2)}I=u(p,L,I,l.lineDecorations)}return l.containsRTL||(I=C(p,I,!l.isBasicASCII||l.fontLigatures)),new w(c,l.canUseHalfwidthRightwardsArrow,p,L,_,I,P,l.fauxIndentLength,l.tabSize,l.startVisibleColumn,l.containsRTL,l.spaceWidth,l.middotWidth,l.renderWhitespace,l.renderControlCharacters)}function v(l,c,p){var _=[],L=0;c>0&&(_[L++]=new R(c,""));for(var I=0,P=l.getCount();I<P;I++){var A=l.getEndOffset(I);if(A<=c)continue;var Q=l.getClassName(I);if(A>=p){_[L++]=new R(p,Q);break}_[L++]=new R(A,Q)}return _}function C(l,c,p){var _=0,L=[],I=0;if(p)for(var P=0,A=c.length;P<A;P++){var Q=c[P],K=Q.endIndex;if(_+50<K){for(var H=Q.type,V=-1,de=_,_e=_;_e<K;_e++)l.charCodeAt(_e)===32&&(V=_e),V!==-1&&_e-de>=50&&(L[I++]=new R(V+1,H),de=V+1,V=-1);de!==K&&(L[I++]=new R(K,H))}else L[I++]=Q;_=K}else for(var P=0,A=c.length;P<A;P++){var Q=c[P],K=Q.endIndex,Se=K-_;if(Se>50){for(var H=Q.type,Ie=Math.ceil(Se/50),_e=1;_e<Ie;_e++){var Pe=_+_e*50;L[I++]=new R(Pe,H)}L[I++]=new R(K,H)}else L[I++]=Q;_=K}return L}function g(l,c,p,_,L,I,P,A,Q,K){var H=[],V=0,de=0,_e=_[de].type,Se=_[de].endIndex,Ie=_.length,Pe=T.q(l),Ve;Pe===-1?(Pe=c,Ve=c):Ve=T.D(l);for(var ke=!1,se=0,ee=Q&&Q[se],ie=P%I,q=L;q<c;q++){var ce=l.charCodeAt(q);ee&&q>=ee.endOffset&&(se++,ee=Q&&Q[se]);var Z=void 0;if(q<Pe||q>Ve)Z=!0;else if(ce===9)Z=!0;else if(ce===32)if(K)if(ke)Z=!0;else{var ye=q+1<c?l.charCodeAt(q+1):0;Z=ye===32||ye===9}else Z=!0;else Z=!1;Z&&Q&&(Z=!!ee&&ee.startOffset<=q&&ee.endOffset>q),ke?(!Z||!A&&ie>=I)&&(H[V++]=new R(q,"vs-whitespace"),ie=ie%I):(q===Se||Z&&q>L)&&(H[V++]=new R(q,_e),ie=ie%I),ce===9?ie=I:T.y(ce)?ie+=2:ie++,ke=Z,q===Se&&(de++,de<Ie&&(_e=_[de].type,Se=_[de].endIndex))}var je=!1;if(ke)if(p&&K){var Ge=c>0?l.charCodeAt(c-1):0,ue=c>1?l.charCodeAt(c-2):0,ve=Ge===32&&ue!==32&&ue!==9;ve||(je=!0)}else je=!0;return H[V++]=new R(c,je?"vs-whitespace":_e),H}function u(l,c,p,_){_.sort($.a.compare);for(var L=$.b.normalize(l,_),I=L.length,P=0,A=[],Q=0,K=0,H=0,V=p.length;H<V;H++){for(var de=p[H],_e=de.endIndex,Se=de.type;P<I&&L[P].startOffset<_e;){var Ie=L[P];if(Ie.startOffset>K&&(K=Ie.startOffset,A[Q++]=new R(K,Se)),Ie.endOffset+1<=_e)K=Ie.endOffset+1,A[Q++]=new R(K,Se+" "+Ie.className),P++;else{K=_e,A[Q++]=new R(K,Se+" "+Ie.className);break}}_e>K&&(K=_e,A[Q++]=new R(K,Se))}var Pe=p[p.length-1].endIndex;if(P<I&&L[P].startOffset===Pe){for(var Ve=[];P<I&&L[P].startOffset===Pe;)Ve.push(L[P].className),P++;A[Q++]=new R(K,Ve.join(" "))}return A}function s(l,c){var p=l.fontIsMonospace,_=l.canUseHalfwidthRightwardsArrow,L=l.containsForeignElements,I=l.lineContent,P=l.len,A=l.isOverflowing,Q=l.parts,K=l.fauxIndentLength,H=l.tabSize,V=l.startVisibleColumn,de=l.containsRTL,_e=l.spaceWidth,Se=l.middotWidth,Ie=l.renderWhitespace,Pe=l.renderControlCharacters,Ve=Se>_e?11825:183,ke=new D(P+1,Q.length),se=0,ee=V,ie=0,q=0,ce=0;c.appendASCIIString("<span>");for(var Z=0,ye=Q.length;Z<ye;Z++){ce+=q;var je=Q[Z],Ge=je.endIndex,ue=je.type,ve=Ie!==0&&ue.indexOf("vs-whitespace")>=0;if(ie=0,c.appendASCIIString('<span class="'),c.appendASCIIString(ue),c.appendASCII(34),ve){for(var Ee=0,xe=se,Ce=ee;xe<Ge;xe++){var he=I.charCodeAt(xe),J=(he===9?H-Ce%H:1)|0;Ee+=J,xe>=K&&(Ce+=J)}if(!p){var b=ue==="vs-whitespace";(b||!L)&&(c.appendASCIIString(' style="display:inline-block;width:'),c.appendASCIIString(String(_e*Ee)),c.appendASCIIString('px"'))}for(c.appendASCII(62);se<Ge;se++){ke.setPartData(se,Z,ie,ce);var he=I.charCodeAt(se),J=void 0;if(he===9){J=H-ee%H|0,!_||J>1?c.write1(8594):c.write1(65515);for(var F=2;F<=J;F++)c.write1(160)}else J=1,c.write1(Ve);ie+=J,se>=K&&(ee+=J)}q=Ee}else{var Ee=0;for(de&&c.appendASCIIString(' dir="ltr"'),c.appendASCII(62);se<Ge;se++){ke.setPartData(se,Z,ie,ce);var he=I.charCodeAt(se),re=1,J=1;switch(he){case 9:re=H-ee%H,J=re;for(var F=1;F<=re;F++)c.write1(160);break;case 32:c.write1(160);break;case 60:c.appendASCIIString("&lt;");break;case 62:c.appendASCIIString("&gt;");break;case 38:c.appendASCIIString("&amp;");break;case 0:c.appendASCIIString("&#00;");break;case 65279:case 8232:c.write1(65533);break;default:T.y(he)&&J++,Pe&&he<32?c.write1(9216+he):c.write1(he)}ie+=re,Ee+=re,se>=K&&(ee+=J)}q=Ee}c.appendASCIIString("</span>")}return ke.setPartData(P,Q.length-1,ie,ce),A&&c.appendASCIIString("<span>&hellip;</span>"),c.appendASCIIString("</span>"),new W(ke,de,L)}},bexQ:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("Cg/j"),le=Object(T.c)("keybindingService")},bfR1:function(Lt,N,e){"use strict";e.r(N);var T=e("3/fG"),le=e("sswD"),$=e("Yr1X"),R=function(){var W=function(x,h){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var f in w)w.hasOwnProperty(f)&&(y[f]=w[f])},W(x,h)};return function(x,h){W(x,h);function y(){this.constructor=x}x.prototype=h===null?Object.create(h):(y.prototype=h.prototype,new y)}}(),B=function(W){R(x,W);function x(){return W.call(this,{id:"editor.action.fontZoomIn",label:T.a("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})||this}return x.prototype.run=function(h,y){$.a.setZoomLevel($.a.getZoomLevel()+1)},x}(le.b),z=function(W){R(x,W);function x(){return W.call(this,{id:"editor.action.fontZoomOut",label:T.a("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})||this}return x.prototype.run=function(h,y){$.a.setZoomLevel($.a.getZoomLevel()-1)},x}(le.b),D=function(W){R(x,W);function x(){return W.call(this,{id:"editor.action.fontZoomReset",label:T.a("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})||this}return x.prototype.run=function(h,y){$.a.setZoomLevel(0)},x}(le.b);Object(le.f)(B),Object(le.f)(z),Object(le.f)(D)},bk7F:function(Lt,N,e){"use strict";e.r(N),e.d(N,"BracketMatchingController",function(){return _});var T=e("8ATB"),le=e.n(T),$=e("3/fG"),R=e("X+cX"),B=e("pmY6"),z=e("sswD"),D=e("cGHE"),W=e("aokT"),x=e("gCVg"),h=e("wQH0"),y=e("M1Kb"),w=e("tX9W"),f=e("kYye"),v=e("MD5Z"),C=e("t9D7"),g=e("fjLI"),u=function(){var L=function(I,P){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,Q){A.__proto__=Q}||function(A,Q){for(var K in Q)Q.hasOwnProperty(K)&&(A[K]=Q[K])},L(I,P)};return function(I,P){L(I,P);function A(){this.constructor=I}I.prototype=P===null?Object.create(P):(A.prototype=P.prototype,new A)}}(),s=Object(v.Tb)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},$.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),l=function(L){u(I,L);function I(){return L.call(this,{id:"editor.action.jumpToBracket",label:$.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:h.a.editorTextFocus,primary:2048|1024|88,weight:100}})||this}return I.prototype.run=function(P,A){var Q=_.get(A);if(!Q)return;Q.jumpToBracket()},I}(z.b),c=function(L){u(I,L);function I(){return L.call(this,{id:"editor.action.selectToBracket",label:$.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 I.prototype.run=function(P,A,Q){var K=_.get(A);if(!K)return;var H=!0;Q&&Q.selectBrackets===!1&&(H=!1),K.selectToBracket(H)},I}(z.b),p=function(){function L(I,P,A){this.position=I,this.brackets=P,this.options=A}return L}(),_=function(L){u(I,L);function I(P){var A=L.call(this)||this;return A._editor=P,A._lastBracketsData=[],A._lastVersionId=0,A._decorations=[],A._updateBracketsSoon=A._register(new R.d(function(){return A._updateBrackets()},50)),A._matchBrackets=A._editor.getOption(53),A._updateBracketsSoon.schedule(),A._register(P.onDidChangeCursorPosition(function(Q){if(A._matchBrackets==="never")return;A._updateBracketsSoon.schedule()})),A._register(P.onDidChangeModelContent(function(Q){A._updateBracketsSoon.schedule()})),A._register(P.onDidChangeModel(function(Q){A._lastBracketsData=[],A._decorations=[],A._updateBracketsSoon.schedule()})),A._register(P.onDidChangeModelLanguageConfiguration(function(Q){A._lastBracketsData=[],A._updateBracketsSoon.schedule()})),A._register(P.onDidChangeConfiguration(function(Q){Q.hasChanged(53)&&(A._matchBrackets=A._editor.getOption(53),A._decorations=A._editor.deltaDecorations(A._decorations,[]),A._lastBracketsData=[],A._lastVersionId=0,A._updateBracketsSoon.schedule())})),A}return I.get=function(P){return P.getContribution(I.ID)},I.prototype.jumpToBracket=function(){if(!this._editor.hasModel())return;var P=this._editor.getModel(),A=this._editor.getSelections().map(function(Q){var K=Q.getStartPosition(),H=P.matchBracket(K),V=null;if(H)H[0].containsPosition(K)?V=H[1].getStartPosition():H[1].containsPosition(K)&&(V=H[0].getStartPosition());else{var de=P.findEnclosingBrackets(K);if(de)V=de[0].getStartPosition();else{var _e=P.findNextBracket(K);_e&&_e.range&&(V=_e.range.getStartPosition())}}return V?new x.a(V.lineNumber,V.column,V.lineNumber,V.column):new x.a(K.lineNumber,K.column,K.lineNumber,K.column)});this._editor.setSelections(A),this._editor.revealRange(A[0])},I.prototype.selectToBracket=function(P){if(!this._editor.hasModel())return;var A=this._editor.getModel(),Q=[];this._editor.getSelections().forEach(function(K){var H=K.getStartPosition(),V=A.matchBracket(H);if(!V&&(V=A.findEnclosingBrackets(H),!V)){var de=A.findNextBracket(H);de&&de.range&&(V=A.matchBracket(de.range.getStartPosition()))}var _e=null,Se=null;if(V){V.sort(W.a.compareRangesUsingStarts);var Ie=V[0],Pe=V[1];_e=P?Ie.getStartPosition():Ie.getEndPosition(),Se=P?Pe.getEndPosition():Pe.getStartPosition()}_e&&Se&&Q.push(new x.a(_e.lineNumber,_e.column,Se.lineNumber,Se.column))}),Q.length>0&&(this._editor.setSelections(Q),this._editor.revealRange(Q[0]))},I.prototype._updateBrackets=function(){if(this._matchBrackets==="never")return;this._recomputeBrackets();for(var P=[],A=0,Q=0,K=this._lastBracketsData;Q<K.length;Q++){var H=K[Q],V=H.brackets;V&&(P[A++]={range:V[0],options:H.options},P[A++]={range:V[1],options:H.options})}this._decorations=this._editor.deltaDecorations(this._decorations,P)},I.prototype._recomputeBrackets=function(){if(!this._editor.hasModel()){this._lastBracketsData=[],this._lastVersionId=0;return}var P=this._editor.getSelections();if(P.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}var A=this._editor.getModel(),Q=A.getVersionId(),K=[];this._lastVersionId===Q&&(K=this._lastBracketsData);for(var H=[],V=0,de=0,_e=P.length;de<_e;de++){var Se=P[de];Se.isEmpty()&&(H[V++]=Se.getStartPosition())}H.length>1&&H.sort(D.a.compare);for(var Ie=[],Pe=0,Ve=0,ke=K.length,de=0,_e=H.length;de<_e;de++){for(var se=H[de];Ve<ke&&K[Ve].position.isBefore(se);)Ve++;if(Ve<ke&&K[Ve].position.equals(se))Ie[Pe++]=K[Ve];else{var ee=A.matchBracket(se),ie=I._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!ee&&this._matchBrackets==="always"&&(ee=A.findEnclosingBrackets(se,20),ie=I._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),Ie[Pe++]=new p(se,ee,ie)}}this._lastBracketsData=Ie,this._lastVersionId=Q},I.ID="editor.contrib.bracketMatchingController",I._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=w.a.register({stickiness:1,className:"bracket-match",overviewRuler:{color:Object(C.f)(s),position:y.d.Center}}),I._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=w.a.register({stickiness:1,className:"bracket-match"}),I}(B.a);Object(z.h)(_.ID,_),Object(z.f)(c),Object(z.f)(l),Object(C.e)(function(L,I){var P=L.getColor(f.c);P&&I.addRule(".monaco-editor .bracket-match { background-color: "+P+"; }");var A=L.getColor(f.d);A&&I.addRule(".monaco-editor .bracket-match { border: 1px solid "+A+"; }")}),g.c.appendMenuItem(19,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:$.a({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},c2dO:function(Lt,N,e){"use strict";e.r(N),e.d(N,"LanguageServiceDefaultsImpl",function(){return R});var T=e("M/lh"),le=e.n(T);"use strict";var $=monaco.Emitter,R=function(){function s(l,c,p){this._onDidChange=new $,this._languageId=l,this.setOptions(c),this.setModeConfiguration(p)}return Object.defineProperty(s.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),s.prototype.setOptions=function(l){this._options=l||Object.create(null),this._onDidChange.fire(this)},s.prototype.setModeConfiguration=function(l){this._modeConfiguration=l||Object.create(null),this._onDidChange.fire(this)},s}(),B={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"},z={format:B,suggest:{html5:!0,angular1:!0,ionic:!0}},D={format:B,suggest:{html5:!0}},W={format:B,suggest:{html5:!0,razor:!0}};function x(s){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:s===h,documentFormattingEdits:s===h,documentRangeFormattingEdits:s===h}}var h="html",y="handlebars",w="razor",f=new R(h,z,x(h)),v=new R(y,D,x(y)),C=new R(w,W,x(w));function g(){return{htmlDefaults:f,razorDefaults:C,handlebarDefaults:v}}monaco.languages.html=g();function u(){return e.e(289).then(e.bind(null,"+lu7"))}monaco.languages.onLanguage(h,function(){u().then(function(s){return s.setupMode(f)})}),monaco.languages.onLanguage(y,function(){u().then(function(s){return s.setupMode(v)})}),monaco.languages.onLanguage(w,function(){u().then(function(s){return s.setupMode(C)})})},c9ML:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return e.e(336).then(e.bind(null,"QJnQ"))}})},cGHE:function(Lt,N,e){"use strict";e.d(N,"a",function(){return T});var T=function(){function le($,R){this.lineNumber=$,this.column=R}return le.prototype.with=function($,R){return $===void 0&&($=this.lineNumber),R===void 0&&(R=this.column),$===this.lineNumber&&R===this.column?this:new le($,R)},le.prototype.delta=function($,R){return $===void 0&&($=0),R===void 0&&(R=0),this.with(this.lineNumber+$,this.column+R)},le.prototype.equals=function($){return le.equals(this,$)},le.equals=function($,R){return!$&&!R?!0:!!$&&!!R&&$.lineNumber===R.lineNumber&&$.column===R.column},le.prototype.isBefore=function($){return le.isBefore(this,$)},le.isBefore=function($,R){return $.lineNumber<R.lineNumber?!0:R.lineNumber<$.lineNumber?!1:$.column<R.column},le.prototype.isBeforeOrEqual=function($){return le.isBeforeOrEqual(this,$)},le.isBeforeOrEqual=function($,R){return $.lineNumber<R.lineNumber?!0:R.lineNumber<$.lineNumber?!1:$.column<=R.column},le.compare=function($,R){var B=$.lineNumber|0,z=R.lineNumber|0;if(B===z){var D=$.column|0,W=R.column|0;return D-W}return B-z},le.prototype.clone=function(){return new le(this.lineNumber,this.column)},le.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},le.lift=function($){return new le($.lineNumber,$.column)},le.isIPosition=function($){return $&&typeof $.lineNumber=="number"&&typeof $.column=="number"},le}()},cIJc:function(Lt,N,e){"use strict";e.r(N);var T=e("6OMU"),le=e("JQT/"),$=e("/kV6"),R=e("pmY6"),B=e("sswD"),z=e("Vxe3"),D=e("MXAL"),W=e("aokT"),x=e("wQH0"),h=e("twdY"),y=e("pAvP"),w=e("OBOq"),f=e("/cxE"),v=e("bY76"),C=e("vATl"),g=e("sFUC"),u=e("cGHE"),s=e("gCVg"),l=e("G2kB"),c=e("0/Sa"),p=function(){function xe(){}return xe._handleEolEdits=function(Ce,he){for(var J=void 0,b=[],F=0,re=he;F<re.length;F++){var ne=re[F];typeof ne.eol=="number"&&(J=ne.eol),ne.range&&typeof ne.text=="string"&&b.push(ne)}return typeof J=="number"&&(Ce.hasModel()&&Ce.getModel().pushEOL(J)),b},xe._isFullModelReplaceEdit=function(Ce,he){if(!Ce.hasModel())return!1;var J=Ce.getModel(),b=J.validateRange(he.range),F=J.getFullModelRange();return F.equalsRange(b)},xe.execute=function(Ce,he){Ce.pushUndoStop();var J=xe._handleEolEdits(Ce,he);J.length===1&&xe._isFullModelReplaceEdit(Ce,J[0])?Ce.executeEdits("formatEditsCommand",J.map(function(b){return c.a.replace(W.a.lift(b.range),b.text)})):Ce.executeEdits("formatEditsCommand",J.map(function(b){return c.a.replaceMove(W.a.lift(b.range),b.text)})),Ce.pushUndoStop()},xe}(),_=e("3/fG"),L=function(){function xe(Ce){this.value=Ce,this._lower=Ce.toLowerCase()}return xe.toKey=function(Ce){return typeof Ce=="string"?Ce.toLowerCase():Ce._lower},xe}(),I=e("Cg/j"),P=e("24hK"),A=e("nnTU"),Q=e("746U"),K=function(xe,Ce,he,J){function b(F){return F instanceof he?F:new he(function(re){re(F)})}return new(he||(he=Promise))(function(F,re){function ne(Me){try{Oe(J.next(Me))}catch(Ue){re(Ue)}}function fe(Me){try{Oe(J.throw(Me))}catch(Ue){re(Ue)}}function Oe(Me){Me.done?F(Me.value):b(Me.value).then(ne,fe)}Oe((J=J.apply(xe,Ce||[])).next())})},H=function(xe,Ce){var he={label:0,sent:function(){if(F[0]&1)throw F[1];return F[1]},trys:[],ops:[]},J,b,F,re;return re={next:ne(0),throw:ne(1),return:ne(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function ne(Oe){return function(Me){return fe([Oe,Me])}}function fe(Oe){if(J)throw new TypeError("Generator is already executing.");for(;he;)try{if(J=1,b&&(F=Oe[0]&2?b.return:Oe[0]?b.throw||((F=b.return)&&F.call(b),0):b.next)&&!(F=F.call(b,Oe[1])).done)return F;(b=0,F)&&(Oe=[Oe[0]&2,F.value]);switch(Oe[0]){case 0:case 1:F=Oe;break;case 4:return he.label++,{value:Oe[1],done:!1};case 5:he.label++,b=Oe[1],Oe=[0];continue;case 7:Oe=he.ops.pop(),he.trys.pop();continue;default:if(!(F=he.trys,F=F.length>0&&F[F.length-1])&&(Oe[0]===6||Oe[0]===2)){he=0;continue}if(Oe[0]===3&&(!F||Oe[1]>F[0]&&Oe[1]<F[3])){he.label=Oe[1];break}if(Oe[0]===6&&he.label<F[1]){he.label=F[1],F=Oe;break}if(F&&he.label<F[2]){he.label=F[2],he.ops.push(Oe);break}F[2]&&he.ops.pop(),he.trys.pop();continue}Oe=Ce.call(xe,he)}catch(Me){Oe=[6,Me],b=0}finally{J=F=0}if(Oe[0]&5)throw Oe[1];return{value:Oe[0]?Oe[1]:void 0,done:!0}}};function V(xe){if(xe=xe.filter(function(F){return F.range}),!xe.length)return;for(var Ce=xe[0].range,he=1;he<xe.length;he++)Ce=W.a.plusRange(Ce,xe[he].range);var J=Ce.startLineNumber,b=Ce.endLineNumber;J===b?xe.length===1?Object(w.a)(_.a("hint11","Made 1 formatting edit on line {0}",J)):Object(w.a)(_.a("hintn1","Made {0} formatting edits on line {1}",xe.length,J)):xe.length===1?Object(w.a)(_.a("hint1n","Made 1 formatting edit between lines {0} and {1}",J,b)):Object(w.a)(_.a("hintnn","Made {0} formatting edits between lines {1} and {2}",xe.length,J,b))}function de(xe){for(var Ce=[],he=new Set,J=h.g.ordered(xe),b=0,F=J;b<F.length;b++){var re=F[b];Ce.push(re),re.extensionId&&he.add(L.toKey(re.extensionId))}for(var ne=h.j.ordered(xe),fe=function(Ue){if(Ue.extensionId){if(he.has(L.toKey(Ue.extensionId)))return"continue";he.add(L.toKey(Ue.extensionId))}Ce.push({displayName:Ue.displayName,extensionId:Ue.extensionId,provideDocumentFormattingEdits:function(Je,nt,vt){return Ue.provideDocumentRangeFormattingEdits(Je,Je.getFullModelRange(),nt,vt)}})},Oe=0,Me=ne;Oe<Me.length;Oe++){var re=Me[Oe];fe(re)}return Ce}var _e=function(){function xe(){}return xe.select=function(Ce,he,J){return K(this,void 0,void 0,function(){var b;return H(this,function(F){switch(F.label){case 0:return Ce.length===0?[2,void 0]:(b=xe._selectors.iterator().next().value,b?[4,b(Ce,he,J)]:[3,2]);case 1:return[2,F.sent()];case 2:return[2,Ce[0]]}})})},xe._selectors=new P.a,xe}();function Se(xe,Ce,he,J,b){return K(this,void 0,void 0,function(){var F,re,ne,fe;return H(this,function(Oe){switch(Oe.label){case 0:return F=xe.get(I.a),re=Object(g.a)(Ce)?Ce.getModel():Ce,ne=h.j.ordered(re),[4,_e.select(ne,re,J)];case 1:return fe=Oe.sent(),fe?[4,F.invokeFunction(Ie,fe,Ce,he,b)]:[3,3];case 2:Oe.sent(),Oe.label=3;case 3:return[2]}})})}function Ie(xe,Ce,he,J,b){return K(this,void 0,void 0,function(){var F,re,ne,fe,Oe,Me,Ue;return H(this,function(Je){switch(Je.label){case 0:F=xe.get(y.a),Object(g.a)(he)?(re=he.getModel(),ne=new C.b(he,1|4,b)):(re=he,ne=new C.d(he,b)),Je.label=1;case 1:return Je.trys.push([1,,4,5]),[4,Ce.provideDocumentRangeFormattingEdits(re,J,re.getFormattingOptions(),ne.token)];case 2:return Oe=Je.sent(),[4,F.computeMoreMinimalEdits(re.uri,Oe)];case 3:return fe=Je.sent(),ne.token.isCancellationRequested?[2,!0]:[3,5];case 4:return ne.dispose(),[7];case 5:return!fe||fe.length===0?[2,!1]:(Object(g.a)(he)?(p.execute(he,fe),V(fe),he.pushUndoStop(),he.revealPositionInCenterIfOutsideViewport(he.getPosition(),1)):(Me=fe[0].range,Ue=new s.a(Me.startLineNumber,Me.startColumn,Me.endLineNumber,Me.endColumn),re.pushEditOperations([Ue],fe.map(function(nt){return{text:nt.text,range:W.a.lift(nt.range),forceMoveMarkers:!0}}),function(nt){for(var vt=0,Rt=nt;vt<Rt.length;vt++){var Dt=Rt[vt].range;if(W.a.areIntersectingOrTouching(Dt,Ue))return[new s.a(Dt.startLineNumber,Dt.startColumn,Dt.endLineNumber,Dt.endColumn)]}return null})),[2,!0])}})})}function Pe(xe,Ce,he,J){return K(this,void 0,void 0,function(){var b,F,re,ne;return H(this,function(fe){switch(fe.label){case 0:return b=xe.get(I.a),F=Object(g.a)(Ce)?Ce.getModel():Ce,re=de(F),[4,_e.select(re,F,he)];case 1:return ne=fe.sent(),ne?[4,b.invokeFunction(Ve,ne,Ce,he,J)]:[3,3];case 2:fe.sent(),fe.label=3;case 3:return[2]}})})}function Ve(xe,Ce,he,J,b){return K(this,void 0,void 0,function(){var F,re,ne,fe,Oe,Me,Ue;return H(this,function(Je){switch(Je.label){case 0:F=xe.get(y.a),Object(g.a)(he)?(re=he.getModel(),ne=new C.b(he,1|4,b)):(re=he,ne=new C.d(he,b)),Je.label=1;case 1:return Je.trys.push([1,,4,5]),[4,Ce.provideDocumentFormattingEdits(re,re.getFormattingOptions(),ne.token)];case 2:return Oe=Je.sent(),[4,F.computeMoreMinimalEdits(re.uri,Oe)];case 3:return fe=Je.sent(),ne.token.isCancellationRequested?[2,!0]:[3,5];case 4:return ne.dispose(),[7];case 5:return!fe||fe.length===0?[2,!1]:(Object(g.a)(he)?(p.execute(he,fe),J!==2&&(V(fe),he.pushUndoStop(),he.revealPositionInCenterIfOutsideViewport(he.getPosition(),1))):(Me=fe[0].range,Ue=new s.a(Me.startLineNumber,Me.startColumn,Me.endLineNumber,Me.endColumn),re.pushEditOperations([Ue],fe.map(function(nt){return{text:nt.text,range:W.a.lift(nt.range),forceMoveMarkers:!0}}),function(nt){for(var vt=0,Rt=nt;vt<Rt.length;vt++){var Dt=Rt[vt].range;if(W.a.areIntersectingOrTouching(Dt,Ue))return[new s.a(Dt.startLineNumber,Dt.startColumn,Dt.endLineNumber,Dt.endColumn)]}return null})),[2,!0])}})})}function ke(xe,Ce,he,J,b){return K(this,void 0,void 0,function(){var F,re,ne,fe,Oe;return H(this,function(Me){switch(Me.label){case 0:F=h.j.ordered(Ce),re=0,ne=F,Me.label=1;case 1:return re<ne.length?(fe=ne[re],[4,Promise.resolve(fe.provideDocumentRangeFormattingEdits(Ce,he,J,b)).catch(f.f)]):[3,5];case 2:return Oe=Me.sent(),Object(T.q)(Oe)?[4,xe.computeMoreMinimalEdits(Ce.uri,Oe)]:[3,4];case 3:return[2,Me.sent()];case 4:return re++,[3,1];case 5:return[2,void 0]}})})}function se(xe,Ce,he,J){return K(this,void 0,void 0,function(){var b,F,re,ne,fe;return H(this,function(Oe){switch(Oe.label){case 0:b=de(Ce),F=0,re=b,Oe.label=1;case 1:return F<re.length?(ne=re[F],[4,Promise.resolve(ne.provideDocumentFormattingEdits(Ce,he,J)).catch(f.f)]):[3,5];case 2:return fe=Oe.sent(),Object(T.q)(fe)?[4,xe.computeMoreMinimalEdits(Ce.uri,fe)]:[3,4];case 3:return[2,Oe.sent()];case 4:return F++,[3,1];case 5:return[2,void 0]}})})}function ee(xe,Ce,he,J,b){var F=h.t.ordered(Ce);return F.length===0||F[0].autoFormatTriggerCharacters.indexOf(J)<0?Promise.resolve(void 0):Promise.resolve(F[0].provideOnTypeFormattingEdits(Ce,he,J,b,le.a.None)).catch(f.f).then(function(re){return xe.computeMoreMinimalEdits(Ce.uri,re)})}A.a.registerCommand("_executeFormatRangeProvider",function(xe){for(var Ce=[],he=1;he<arguments.length;he++)Ce[he-1]=arguments[he];var J=Ce[0],b=Ce[1],F=Ce[2];Object(Q.a)(v.a.isUri(J)),Object(Q.a)(W.a.isIRange(b));var re=xe.get(l.a).getModel(J);if(!re)throw Object(f.b)("resource");return ke(xe.get(y.a),re,W.a.lift(b),F,le.a.None)}),A.a.registerCommand("_executeFormatDocumentProvider",function(xe){for(var Ce=[],he=1;he<arguments.length;he++)Ce[he-1]=arguments[he];var J=Ce[0],b=Ce[1];Object(Q.a)(v.a.isUri(J));var F=xe.get(l.a).getModel(J);if(!F)throw Object(f.b)("resource");return se(xe.get(y.a),F,b,le.a.None)}),A.a.registerCommand("_executeFormatOnTypeProvider",function(xe){for(var Ce=[],he=1;he<arguments.length;he++)Ce[he-1]=arguments[he];var J=Ce[0],b=Ce[1],F=Ce[2],re=Ce[3];Object(Q.a)(v.a.isUri(J)),Object(Q.a)(u.a.isIPosition(b)),Object(Q.a)(typeof F=="string");var ne=xe.get(l.a).getModel(J);if(!ne)throw Object(f.b)("resource");return ee(xe.get(y.a),ne,u.a.lift(b),F,re)});var ie=e("T8No"),q=function(){var xe=function(Ce,he){return xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,b){J.__proto__=b}||function(J,b){for(var F in b)b.hasOwnProperty(F)&&(J[F]=b[F])},xe(Ce,he)};return function(Ce,he){xe(Ce,he);function J(){this.constructor=Ce}Ce.prototype=he===null?Object.create(he):(J.prototype=he.prototype,new J)}}(),ce=function(xe,Ce,he,J){var b=arguments.length,F=b<3?Ce:J===null?J=Object.getOwnPropertyDescriptor(Ce,he):J,re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")F=Reflect.decorate(xe,Ce,he,J);else for(var ne=xe.length-1;ne>=0;ne--)(re=xe[ne])&&(F=(b<3?re(F):b>3?re(Ce,he,F):re(Ce,he))||F);return b>3&&F&&Object.defineProperty(Ce,he,F),F},Z=function(xe,Ce){return function(he,J){Ce(he,J,xe)}},ye=function(xe,Ce,he,J){function b(F){return F instanceof he?F:new he(function(re){re(F)})}return new(he||(he=Promise))(function(F,re){function ne(Me){try{Oe(J.next(Me))}catch(Ue){re(Ue)}}function fe(Me){try{Oe(J.throw(Me))}catch(Ue){re(Ue)}}function Oe(Me){Me.done?F(Me.value):b(Me.value).then(ne,fe)}Oe((J=J.apply(xe,Ce||[])).next())})},je=function(xe,Ce){var he={label:0,sent:function(){if(F[0]&1)throw F[1];return F[1]},trys:[],ops:[]},J,b,F,re;return re={next:ne(0),throw:ne(1),return:ne(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function ne(Oe){return function(Me){return fe([Oe,Me])}}function fe(Oe){if(J)throw new TypeError("Generator is already executing.");for(;he;)try{if(J=1,b&&(F=Oe[0]&2?b.return:Oe[0]?b.throw||((F=b.return)&&F.call(b),0):b.next)&&!(F=F.call(b,Oe[1])).done)return F;(b=0,F)&&(Oe=[Oe[0]&2,F.value]);switch(Oe[0]){case 0:case 1:F=Oe;break;case 4:return he.label++,{value:Oe[1],done:!1};case 5:he.label++,b=Oe[1],Oe=[0];continue;case 7:Oe=he.ops.pop(),he.trys.pop();continue;default:if(!(F=he.trys,F=F.length>0&&F[F.length-1])&&(Oe[0]===6||Oe[0]===2)){he=0;continue}if(Oe[0]===3&&(!F||Oe[1]>F[0]&&Oe[1]<F[3])){he.label=Oe[1];break}if(Oe[0]===6&&he.label<F[1]){he.label=F[1],F=Oe;break}if(F&&he.label<F[2]){he.label=F[2],he.ops.push(Oe);break}F[2]&&he.ops.pop(),he.trys.pop();continue}Oe=Ce.call(xe,he)}catch(Me){Oe=[6,Me],b=0}finally{J=F=0}if(Oe[0]&5)throw Oe[1];return{value:Oe[0]?Oe[1]:void 0,done:!0}}},Ge=function(){function xe(Ce,he){var J=this;this._workerService=he,this._callOnDispose=new R.b,this._callOnModel=new R.b,this._editor=Ce,this._callOnDispose.add(Ce.onDidChangeConfiguration(function(){return J._update()})),this._callOnDispose.add(Ce.onDidChangeModel(function(){return J._update()})),this._callOnDispose.add(Ce.onDidChangeModelLanguage(function(){return J._update()})),this._callOnDispose.add(h.t.onDidChange(this._update,this))}return xe.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},xe.prototype._update=function(){var Ce=this;if(this._callOnModel.clear(),!this._editor.getOption(39))return;if(!this._editor.hasModel())return;var he=this._editor.getModel(),J=h.t.ordered(he)[0];if(!J||!J.autoFormatTriggerCharacters)return;for(var b=new D.b,F=0,re=J.autoFormatTriggerCharacters;F<re.length;F++){var ne=re[F];b.add(ne.charCodeAt(0))}this._callOnModel.add(this._editor.onDidType(function(fe){var Oe=fe.charCodeAt(fe.length-1);b.has(Oe)&&Ce._trigger(String.fromCharCode(Oe))}))},xe.prototype._trigger=function(Ce){var he=this;if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1)return;var J=this._editor.getModel(),b=this._editor.getPosition(),F=!1,re=this._editor.onDidChangeModelContent(function(ne){if(ne.isFlush){F=!0,re.dispose();return}for(var fe=0,Oe=ne.changes.length;fe<Oe;fe++){var Me=ne.changes[fe];if(Me.range.endLineNumber<=b.lineNumber){F=!0,re.dispose();return}}});ee(this._workerService,J,b,Ce,J.getFormattingOptions()).then(function(ne){if(re.dispose(),F)return;Object(T.q)(ne)&&(p.execute(he._editor,ne),V(ne))},function(ne){throw re.dispose(),ne})},xe.ID="editor.contrib.autoFormat",xe=ce([Z(1,y.a)],xe),xe}(),ue=function(){function xe(Ce,he){var J=this;this.editor=Ce,this._instantiationService=he,this._callOnDispose=new R.b,this._callOnModel=new R.b,this._callOnDispose.add(Ce.onDidChangeConfiguration(function(){return J._update()})),this._callOnDispose.add(Ce.onDidChangeModel(function(){return J._update()})),this._callOnDispose.add(Ce.onDidChangeModelLanguage(function(){return J._update()})),this._callOnDispose.add(h.j.onDidChange(this._update,this))}return xe.prototype.dispose=function(){this._callOnDispose.dispose(),this._callOnModel.dispose()},xe.prototype._update=function(){var Ce=this;if(this._callOnModel.clear(),!this.editor.getOption(38))return;if(!this.editor.hasModel())return;if(!h.j.has(this.editor.getModel()))return;this._callOnModel.add(this.editor.onDidPaste(function(he){var J=he.range;return Ce._trigger(J)}))},xe.prototype._trigger=function(Ce){if(!this.editor.hasModel())return;if(this.editor.getSelections().length>1)return;this._instantiationService.invokeFunction(Se,this.editor,Ce,2,le.a.None).catch(f.e)},xe.ID="editor.contrib.formatOnPaste",xe=ce([Z(1,I.a)],xe),xe}(),ve=function(xe){q(Ce,xe);function Ce(){return xe.call(this,{id:"editor.action.formatDocument",label:_.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:ie.a.and(x.a.writable,x.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:ie.a.and(x.a.editorTextFocus,x.a.hasDocumentFormattingProvider),primary:1024|512|36,linux:{primary:2048|1024|39},weight:100},contextMenuOpts:{when:x.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return Ce.prototype.run=function(he,J){return ye(this,void 0,void 0,function(){var b;return je(this,function(F){switch(F.label){case 0:return J.hasModel()?(b=he.get(I.a),[4,b.invokeFunction(Pe,J,1,le.a.None)]):[3,2];case 1:F.sent(),F.label=2;case 2:return[2]}})})},Ce}(B.b),Ee=function(xe){q(Ce,xe);function Ce(){return xe.call(this,{id:"editor.action.formatSelection",label:_.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:ie.a.and(x.a.writable,x.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:ie.a.and(x.a.editorTextFocus,x.a.hasDocumentSelectionFormattingProvider),primary:Object($.a)(2048|41,2048|36),weight:100},contextMenuOpts:{when:ie.a.and(x.a.hasDocumentSelectionFormattingProvider,x.a.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return Ce.prototype.run=function(he,J){return ye(this,void 0,void 0,function(){var b,F,re;return je(this,function(ne){switch(ne.label){case 0:return J.hasModel()?(b=he.get(I.a),F=J.getModel(),re=J.getSelection(),re.isEmpty()&&(re=new W.a(re.startLineNumber,1,re.startLineNumber,F.getLineMaxColumn(re.startLineNumber))),[4,b.invokeFunction(Se,J,re,1,le.a.None)]):[2];case 1:return ne.sent(),[2]}})})},Ce}(B.b);Object(B.h)(Ge.ID,Ge),Object(B.h)(ue.ID,ue),Object(B.f)(ve),Object(B.f)(Ee),A.a.registerCommand("editor.action.format",function(xe){return ye(void 0,void 0,void 0,function(){var Ce,he;return je(this,function(J){switch(J.label){case 0:return Ce=xe.get(z.a).getFocusedCodeEditor(),!Ce||!Ce.hasModel()?[2]:(he=xe.get(A.b),Ce.getSelection().isEmpty()?[4,he.executeCommand("editor.action.formatDocument")]:[3,2]);case 1:return J.sent(),[3,4];case 2:return[4,he.executeCommand("editor.action.formatSelection")];case 3:J.sent(),J.label=4;case 4:return[2]}})})})},cMOf:function(Lt,N,e){"use strict";e.d(N,"a",function(){return C});var T=e("undH"),le=e.n(T),$=e("pmY6"),R=e("D3Dy"),B=e("MNsG"),z=e("746U"),D=e("pg8w"),W=e("XSiN"),x=e("MI8n"),h=e("EffR"),y=e("4y0V"),w=function(){var g=function(u,s){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var p in c)c.hasOwnProperty(p)&&(l[p]=c[p])},g(u,s)};return function(u,s){g(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),f=function(){for(var g=0,u=0,s=arguments.length;u<s;u++)g+=arguments[u].length;for(var l=Array(g),c=0,u=0;u<s;u++)for(var p=arguments[u],_=0,L=p.length;_<L;_++,c++)l[c]=p[_];return l},v=!1,C=function(g){w(u,g);function u(s,l,c){c===void 0&&(c={});var p=g.call(this)||this;return p._state=3,p._onDidEnablementChange=p._register(new x.a),p.onDidEnablementChange=p._onDidEnablementChange.event,p._onDidStart=p._register(new x.a),p.onDidStart=p._onDidStart.event,p._onDidChange=p._register(new x.a),p.onDidChange=p._onDidChange.event,p._onDidReset=p._register(new x.a),p.onDidReset=p._onDidReset.event,p._onDidEnd=p._register(new x.a),p.onDidEnd=p._onDidEnd.event,p.linkedSash=void 0,p.orthogonalStartSashDisposables=p._register(new $.b),p.orthogonalEndSashDisposables=p._register(new $.b),p.el=Object(h.q)(s,Object(h.a)(".monaco-sash")),B.e&&Object(h.f)(p.el,"mac"),p._register(Object(y.a)(p.el,"mousedown")(p.onMouseDown,p)),p._register(Object(y.a)(p.el,"dblclick")(p.onMouseDoubleClick,p)),p._register(D.b.addTarget(p.el)),p._register(Object(y.a)(p.el,D.a.Start)(p.onTouchStart,p)),R.j&&Object(h.f)(p.el,"touch"),p.setOrientation(c.orientation||0),p.hidden=!1,p.layoutProvider=l,p.orthogonalStartSash=c.orthogonalStartSash,p.orthogonalEndSash=c.orthogonalEndSash,Object(h.Y)(p.el,"debug",v),p}return Object.defineProperty(u.prototype,"state",{get:function(){return this._state},set:function(s){if(this._state===s)return;Object(h.Y)(this.el,"disabled",s===0),Object(h.Y)(this.el,"minimum",s===1),Object(h.Y)(this.el,"maximum",s===2),this._state=s,this._onDidEnablementChange.fire(s)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(s){this.orthogonalStartSashDisposables.clear(),s?(this.orthogonalStartSashDisposables.add(s.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(s.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=s},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(s){this.orthogonalEndSashDisposables.clear(),s?(this.orthogonalEndSashDisposables.add(s.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(s.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=s},enumerable:!0,configurable:!0}),u.prototype.setOrientation=function(s){this.orientation=s,this.orientation===1?(Object(h.f)(this.el,"horizontal"),Object(h.P)(this.el,"vertical")):(Object(h.P)(this.el,"horizontal"),Object(h.f)(this.el,"vertical")),this.layoutProvider&&this.layout()},u.prototype.onMouseDown=function(s){var l=this;h.c.stop(s,!1);var c=!1;if(!s.__orthogonalSashEvent){var p=this.getOrthogonalSash(s);p&&(c=!0,s.__orthogonalSashEvent=!0,p.onMouseDown(s))}if(this.linkedSash&&!s.__linkedSashEvent&&(s.__linkedSashEvent=!0,this.linkedSash.onMouseDown(s)),!this.state)return;for(var _=f(Object(h.D)("iframe"),Object(h.D)("webview")),L=0,I=_;L<I.length;L++){var P=I[L];P.style.pointerEvents="none"}var A=new W.b(s),Q=A.posx,K=A.posy,H=A.altKey,V={startX:Q,currentX:Q,startY:K,currentY:K,altKey:H};Object(h.f)(this.el,"active"),this._onDidStart.fire(V);var de=Object(h.w)(this.el),_e=function(){var Ve="";c?Ve="all-scroll":l.orientation===1?l.state===1?Ve="s-resize":l.state===2?Ve="n-resize":Ve=B.e?"row-resize":"ns-resize":l.state===1?Ve="e-resize":l.state===2?Ve="w-resize":Ve=B.e?"col-resize":"ew-resize",de.innerHTML="* { cursor: "+Ve+" !important; }"},Se=new $.b;_e(),c||this.onDidEnablementChange(_e,null,Se);var Ie=function(Ve){h.c.stop(Ve,!1);var ke=new W.b(Ve),se={startX:Q,currentX:ke.posx,startY:K,currentY:ke.posy,altKey:H};l._onDidChange.fire(se)},Pe=function(Ve){h.c.stop(Ve,!1),l.el.removeChild(de),Object(h.P)(l.el,"active"),l._onDidEnd.fire(),Se.dispose();for(var ke=0,se=_;ke<se.length;ke++){var ee=se[ke];ee.style.pointerEvents="auto"}};Object(y.a)(window,"mousemove")(Ie,null,Se),Object(y.a)(window,"mouseup")(Pe,null,Se)},u.prototype.onMouseDoubleClick=function(s){var l=this.getOrthogonalSash(s);l&&l._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()},u.prototype.onTouchStart=function(s){var l=this;h.c.stop(s);var c=[],p=s.pageX,_=s.pageY,L=s.altKey;this._onDidStart.fire({startX:p,currentX:p,startY:_,currentY:_,altKey:L}),c.push(Object(h.j)(this.el,D.a.Change,function(I){z.h(I.pageX)&&z.h(I.pageY)&&l._onDidChange.fire({startX:p,currentX:I.pageX,startY:_,currentY:I.pageY,altKey:L})})),c.push(Object(h.j)(this.el,D.a.End,function(I){l._onDidEnd.fire(),Object($.f)(c)}))},u.prototype.layout=function(){var s=R.j?20:4;if(this.orientation===0){var l=this.layoutProvider;this.el.style.left=l.getVerticalSashLeft(this)-s/2+"px",l.getVerticalSashTop&&(this.el.style.top=l.getVerticalSashTop(this)+"px"),l.getVerticalSashHeight&&(this.el.style.height=l.getVerticalSashHeight(this)+"px")}else{var c=this.layoutProvider;this.el.style.top=c.getHorizontalSashTop(this)-s/2+"px",c.getHorizontalSashLeft&&(this.el.style.left=c.getHorizontalSashLeft(this)+"px"),c.getHorizontalSashWidth&&(this.el.style.width=c.getHorizontalSashWidth(this)+"px")}},u.prototype.hide=function(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")},u.prototype.onOrthogonalStartSashEnablementChange=function(s){Object(h.Y)(this.el,"orthogonal-start",s!==0)},u.prototype.onOrthogonalEndSashEnablementChange=function(s){Object(h.Y)(this.el,"orthogonal-end",s!==0)},u.prototype.getOrthogonalSash=function(s){if(this.orientation===0){if(s.offsetY<=4)return this.orthogonalStartSash;if(s.offsetY>=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(s.offsetX<=4)return this.orthogonalStartSash;if(s.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}return},u.prototype.dispose=function(){g.prototype.dispose.call(this),this.el.remove()},u}($.a)},cMvZ:function(Lt,N,e){"use strict";e.d(N,"a",function(){return g});var T=e("MI8n"),le=e("pmY6"),$=e("N0LK"),R=e("0JNc"),B=e("KDc4"),z=e("BFtn"),D=function(){function u(s){if(s.autoClosingPairs?this._autoClosingPairs=s.autoClosingPairs.map(function(c){return new B.b(c)}):s.brackets?this._autoClosingPairs=s.brackets.map(function(c){return new B.b({open:c[0],close:c[1]})}):this._autoClosingPairs=[],s.__electricCharacterSupport&&s.__electricCharacterSupport.docComment){var l=s.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new B.b({open:l.open,close:l.close||""}))}this._autoCloseBefore=typeof s.autoCloseBefore=="string"?s.autoCloseBefore:u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=s.surroundingPairs||this._autoClosingPairs}return u.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},u.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},u.shouldAutoClosePair=function(s,l,c){if(l.getTokenCount()===0)return!0;var p=l.findTokenIndexAtOffset(c-2),_=l.getStandardTokenType(p);return s.isOK(_)},u.prototype.getSurroundingPairs=function(){return this._surroundingPairs},u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])>
`,u}(),W=e("EIAu"),x=function(){function u(s){this._richEditBrackets=s}return u.prototype.getElectricCharacters=function(){var s=[];if(this._richEditBrackets)for(var l=0,c=this._richEditBrackets.brackets;l<c.length;l++)for(var p=c[l],_=0,L=p.close;_<L.length;_++){var I=L[_],P=I.charAt(I.length-1);s.push(P)}return s=s.filter(function(A,Q,K){return K.indexOf(A)===Q}),s},u.prototype.onElectricCharacter=function(s,l,c){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;var p=l.findTokenIndexAtOffset(c-1);if(Object(z.b)(l.getStandardTokenType(p)))return null;var _=this._richEditBrackets.reversedRegex,L=l.getLineContent().substring(0,c-1)+s,I=W.a.findPrevBracketInRange(_,1,L,0,L.length);if(!I)return null;var P=L.substring(I.startColumn-1,I.endColumn-1).toLowerCase(),A=this._richEditBrackets.textIsOpenBracket[P];if(A)return null;var Q=l.getActualLineContentBefore(I.startColumn-1);return/^\s*$/.test(Q)?{matchOpenBracket:P}:null},u}(),h=function(){function u(s){this._indentationRules=s}return u.prototype.shouldIncrease=function(s){return!!(this._indentationRules&&(this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(s)))},u.prototype.shouldDecrease=function(s){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(s))},u.prototype.shouldIndentNextLine=function(s){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(s))},u.prototype.shouldIgnore=function(s){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(s))},u.prototype.getIndentMetadata=function(s){var l=0;return this.shouldIncrease(s)&&(l+=1),this.shouldDecrease(s)&&(l+=2),this.shouldIndentNextLine(s)&&(l+=4),this.shouldIgnore(s)&&(l+=8),l},u}(),y=e("/cxE"),w=function(){function u(s){var l=this;s=s||{},s.brackets=s.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],s.brackets.forEach(function(c){var p=u._createOpenBracketRegExp(c[0]),_=u._createCloseBracketRegExp(c[1]);p&&_&&l._brackets.push({open:c[0],openRegExp:p,close:c[1],closeRegExp:_})}),this._regExpRules=s.onEnterRules||[]}return u.prototype.onEnter=function(s,l,c,p){if(s>=3)for(var _=0,L=this._regExpRules.length;_<L;_++){var I=this._regExpRules[_],P=[{reg:I.beforeText,text:c},{reg:I.afterText,text:p},{reg:I.oneLineAboveText,text:l}].every(function(Q){return Q.reg?Q.reg.test(Q.text):!0});if(P)return I.action}if(s>=2&&(c.length>0&&p.length>0))for(var _=0,L=this._brackets.length;_<L;_++){var A=this._brackets[_];if(A.openRegExp.test(c)&&A.closeRegExp.test(p))return{indentAction:B.a.IndentOutdent}}if(s>=2&&c.length>0)for(var _=0,L=this._brackets.length;_<L;_++){var A=this._brackets[_];if(A.openRegExp.test(c))return{indentAction:B.a.Indent}}return null},u._createOpenBracketRegExp=function(s){var l=$.p(s);return/\B/.test(l.charAt(0))||(l="\\b"+l),l+="\\s*$",u._safeRegExp(l)},u._createCloseBracketRegExp=function(s){var l=$.p(s);return/\B/.test(l.charAt(l.length-1))||(l=l+"\\b"),l="^\\s*"+l,u._safeRegExp(l)},u._safeRegExp=function(s){try{return new RegExp(s)}catch(l){return Object(y.e)(l),null}},u}(),f=function(){function u(s,l,c){this._languageIdentifier=s,this._brackets=null,this._electricCharacter=null;var p=null;l&&(p=l._conf),this._conf=u._mergeConf(p,c),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new w(this._conf):null,this.comments=u._handleComments(this._conf),this.characterPair=new D(this._conf),this.wordDefinition=this._conf.wordPattern||R.a,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new h(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}return Object.defineProperty(u.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new W.b(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"electricCharacter",{get:function(){return this._electricCharacter||(this._electricCharacter=new x(this.brackets)),this._electricCharacter},enumerable:!0,configurable:!0}),u.prototype.onEnter=function(s,l,c,p){return this._onEnterSupport?this._onEnterSupport.onEnter(s,l,c,p):null},u._mergeConf=function(s,l){return{comments:s?l.comments||s.comments:l.comments,brackets:s?l.brackets||s.brackets:l.brackets,wordPattern:s?l.wordPattern||s.wordPattern:l.wordPattern,indentationRules:s?l.indentationRules||s.indentationRules:l.indentationRules,onEnterRules:s?l.onEnterRules||s.onEnterRules:l.onEnterRules,autoClosingPairs:s?l.autoClosingPairs||s.autoClosingPairs:l.autoClosingPairs,surroundingPairs:s?l.surroundingPairs||s.surroundingPairs:l.surroundingPairs,autoCloseBefore:s?l.autoCloseBefore||s.autoCloseBefore:l.autoCloseBefore,folding:s?l.folding||s.folding:l.folding,__electricCharacterSupport:s?l.__electricCharacterSupport||s.__electricCharacterSupport:l.__electricCharacterSupport}},u._handleComments=function(s){var l=s.comments;if(!l)return null;var c={};if(l.lineComment&&(c.lineCommentToken=l.lineComment),l.blockComment){var p=l.blockComment,_=p[0],L=p[1];c.blockCommentStartToken=_,c.blockCommentEndToken=L}return c},u}(),v=function(){function u(s){this.languageIdentifier=s}return u}(),C=function(){function u(){this._entries=new Map,this._onDidChange=new T.a,this.onDidChange=this._onDidChange.event}return u.prototype.register=function(s,l){var c=this,p=this._getRichEditSupport(s.id),_=new f(s,p,l);return this._entries.set(s.id,_),this._onDidChange.fire(new v(s)),Object(le.h)(function(){c._entries.get(s.id)===_&&(c._entries.set(s.id,p),c._onDidChange.fire(new v(s)))})},u.prototype._getRichEditSupport=function(s){return this._entries.get(s)},u.prototype._getElectricCharacterSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.electricCharacter||null},u.prototype.getElectricCharacters=function(s){var l=this._getElectricCharacterSupport(s);return l?l.getElectricCharacters():[]},u.prototype.onElectricCharacter=function(s,l,c){var p=Object(z.a)(l,c-1),_=this._getElectricCharacterSupport(p.languageId);return _?_.onElectricCharacter(s,p,c-p.firstCharOffset):null},u.prototype.getComments=function(s){var l=this._getRichEditSupport(s);return l&&l.comments||null},u.prototype._getCharacterPairSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.characterPair||null},u.prototype.getAutoClosingPairs=function(s){var l=this._getCharacterPairSupport(s);return l?l.getAutoClosingPairs():[]},u.prototype.getAutoCloseBeforeSet=function(s){var l=this._getCharacterPairSupport(s);return l?l.getAutoCloseBeforeSet():D.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},u.prototype.getSurroundingPairs=function(s){var l=this._getCharacterPairSupport(s);return l?l.getSurroundingPairs():[]},u.prototype.shouldAutoClosePair=function(s,l,c){var p=Object(z.a)(l,c-1);return D.shouldAutoClosePair(s,p,c-p.firstCharOffset)},u.prototype.getWordDefinition=function(s){var l=this._getRichEditSupport(s);return l?Object(R.c)(l.wordDefinition||null):Object(R.c)(null)},u.prototype.getFoldingRules=function(s){var l=this._getRichEditSupport(s);return l?l.foldingRules:{}},u.prototype.getIndentRulesSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.indentRulesSupport||null},u.prototype.getPrecedingValidLine=function(s,l,c){var p=s.getLanguageIdAtPosition(l,0);if(l>1){var _=void 0,L=-1;for(_=l-1;_>=1;_--){if(s.getLanguageIdAtPosition(_,0)!==p)return L;var I=s.getLineContent(_);if(c.shouldIgnore(I)||/^\s+$/.test(I)||I===""){L=_;continue}return _}}return-1},u.prototype.getInheritIndentForLine=function(s,l,c,p){if(p===void 0&&(p=!0),s<4)return null;var _=this.getIndentRulesSupport(l.getLanguageIdentifier().id);if(!_)return null;if(c<=1)return{indentation:"",action:null};var L=this.getPrecedingValidLine(l,c,_);if(L<0)return null;if(L<1)return{indentation:"",action:null};var I=l.getLineContent(L);if(_.shouldIncrease(I)||_.shouldIndentNextLine(I))return{indentation:$.t(I),action:B.a.Indent,line:L};if(_.shouldDecrease(I))return{indentation:$.t(I),action:null,line:L};if(L===1)return{indentation:$.t(l.getLineContent(L)),action:null,line:L};var P=L-1,A=_.getIndentMetadata(l.getLineContent(P));if(!(A&(1|2))&&A&4){for(var Q=0,K=P-1;K>0;K--){if(_.shouldIndentNextLine(l.getLineContent(K)))continue;Q=K;break}return{indentation:$.t(l.getLineContent(Q+1)),action:null,line:Q+1}}if(p)return{indentation:$.t(l.getLineContent(L)),action:null,line:L};for(var K=L;K>0;K--){var H=l.getLineContent(K);if(_.shouldIncrease(H))return{indentation:$.t(H),action:B.a.Indent,line:K};if(_.shouldIndentNextLine(H)){for(var Q=0,V=K-1;V>0;V--){if(_.shouldIndentNextLine(l.getLineContent(K)))continue;Q=V;break}return{indentation:$.t(l.getLineContent(Q+1)),action:null,line:Q+1}}else if(_.shouldDecrease(H))return{indentation:$.t(H),action:null,line:K}}return{indentation:$.t(l.getLineContent(1)),action:null,line:1}},u.prototype.getGoodIndentForLine=function(s,l,c,p,_){if(s<4)return null;var L=this._getRichEditSupport(c);if(!L)return null;var I=this.getIndentRulesSupport(c);if(!I)return null;var P=this.getInheritIndentForLine(s,l,p),A=l.getLineContent(p);if(P){var Q=P.line;if(Q!==void 0){var K=L.onEnter(s,"",l.getLineContent(Q),"");if(K){var H=$.t(l.getLineContent(Q));return K.removeText&&(H=H.substring(0,H.length-K.removeText)),K.indentAction===B.a.Indent||K.indentAction===B.a.IndentOutdent?H=_.shiftIndent(H):K.indentAction===B.a.Outdent&&(H=_.unshiftIndent(H)),I.shouldDecrease(A)&&(H=_.unshiftIndent(H)),K.appendText&&(H+=K.appendText),$.t(H)}}return I.shouldDecrease(A)?P.action===B.a.Indent?P.indentation:_.unshiftIndent(P.indentation):P.action===B.a.Indent?_.shiftIndent(P.indentation):P.indentation}return null},u.prototype.getIndentForEnter=function(s,l,c,p){if(s<4)return null;l.forceTokenization(c.startLineNumber);var _=l.getLineTokens(c.startLineNumber),L=Object(z.a)(_,c.startColumn-1),I=L.getLineContent(),P=!1,A;L.firstCharOffset>0&&_.getLanguageId(0)!==L.languageId?(P=!0,A=I.substr(0,c.startColumn-1-L.firstCharOffset)):A=_.getLineContent().substring(0,c.startColumn-1);var Q;if(c.isEmpty())Q=I.substr(c.startColumn-1-L.firstCharOffset);else{var K=this.getScopedLineTokens(l,c.endLineNumber,c.endColumn);Q=K.getLineContent().substr(c.endColumn-1-L.firstCharOffset)}var H=this.getIndentRulesSupport(L.languageId);if(!H)return null;var V=A,de=$.t(A),_e={getLineTokens:function(ke){return l.getLineTokens(ke)},getLanguageIdentifier:function(){return l.getLanguageIdentifier()},getLanguageIdAtPosition:function(ke,se){return l.getLanguageIdAtPosition(ke,se)},getLineContent:function(ke){return ke===c.startLineNumber?V:l.getLineContent(ke)}},Se=$.t(_.getLineContent()),Ie=this.getInheritIndentForLine(s,_e,c.startLineNumber+1);if(!Ie){var Pe=P?Se:de;return{beforeEnter:Pe,afterEnter:Pe}}var Ve=P?Se:Ie.indentation;return Ie.action===B.a.Indent&&(Ve=p.shiftIndent(Ve)),H.shouldDecrease(Q)&&(Ve=p.unshiftIndent(Ve)),{beforeEnter:P?Se:de,afterEnter:Ve}},u.prototype.getIndentActionForType=function(s,l,c,p,_){if(s<4)return null;var L=this.getScopedLineTokens(l,c.startLineNumber,c.startColumn),I=this.getIndentRulesSupport(L.languageId);if(!I)return null;var P=L.getLineContent(),A=P.substr(0,c.startColumn-1-L.firstCharOffset),Q;if(c.isEmpty())Q=P.substr(c.startColumn-1-L.firstCharOffset);else{var K=this.getScopedLineTokens(l,c.endLineNumber,c.endColumn);Q=K.getLineContent().substr(c.endColumn-1-L.firstCharOffset)}if(!I.shouldDecrease(A+Q)&&I.shouldDecrease(A+p+Q)){var H=this.getInheritIndentForLine(s,l,c.startLineNumber,!1);if(!H)return null;var V=H.indentation;return H.action!==B.a.Indent&&(V=_.unshiftIndent(V)),V}return null},u.prototype.getIndentMetadata=function(s,l){var c=this.getIndentRulesSupport(s.getLanguageIdentifier().id);return c?l<1||l>s.getLineCount()?null:c.getIndentMetadata(s.getLineContent(l)):null},u.prototype.getEnterAction=function(s,l,c){var p=this.getScopedLineTokens(l,c.startLineNumber,c.startColumn),_=this._getRichEditSupport(p.languageId);if(!_)return null;var L=p.getLineContent(),I=L.substr(0,c.startColumn-1-p.firstCharOffset),P;if(c.isEmpty())P=L.substr(c.startColumn-1-p.firstCharOffset);else{var A=this.getScopedLineTokens(l,c.endLineNumber,c.endColumn);P=A.getLineContent().substr(c.endColumn-1-p.firstCharOffset)}var Q="";if(c.startLineNumber>1&&p.firstCharOffset===0){var K=this.getScopedLineTokens(l,c.startLineNumber-1);K.languageId===p.languageId&&(Q=K.getLineContent())}var H=_.onEnter(s,Q,I,P);if(!H)return null;var V=H.indentAction,de=H.appendText,_e=H.removeText||0;de||(V===B.a.Indent||V===B.a.IndentOutdent?de=" ":de="");var Se=this.getIndentationAtPosition(l,c.startLineNumber,c.startColumn);return _e&&(Se=Se.substring(0,Se.length-_e)),{indentAction:V,appendText:de,removeText:_e,indentation:Se}},u.prototype.getIndentationAtPosition=function(s,l,c){var p=s.getLineContent(l),_=$.t(p);return _.length>c-1&&(_=_.substring(0,c-1)),_},u.prototype.getScopedLineTokens=function(s,l,c){s.forceTokenization(l);var p=s.getLineTokens(l),_=typeof c=="undefined"?s.getLineMaxColumn(l)-1:c-1;return Object(z.a)(p,_)},u.prototype.getBracketsSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.brackets||null},u}(),g=new C},"ci+S":function(Lt,N,e){},cl4r:function(Lt,N,e){},cldp:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return e.e(287).then(e.bind(null,"7Xl7"))}})},cqdO:function(Lt,N,e){"use strict";e.d(N,"a",function(){return Se}),e.d(N,"f",function(){return Ve}),e.d(N,"e",function(){return ke}),e.d(N,"d",function(){return q}),e.d(N,"b",function(){return ce}),e.d(N,"c",function(){return he});var T=e("4rho"),le=e("3/fG"),$=e("pmY6"),R=e("746U"),B=e("6OMU"),z=e("ZCR3"),D=e("EffR"),W=e("MNsG"),x=e("pg8w"),h=e("uDWl"),y=e("MI8n"),w=e("4y0V"),f=function(){var J=function(b,F){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var fe in ne)ne.hasOwnProperty(fe)&&(re[fe]=ne[fe])},J(b,F)};return function(b,F){J(b,F);function re(){this.constructor=b}b.prototype=F===null?Object.create(F):(re.prototype=F.prototype,new re)}}(),v;(function(J){J.TREE="tree",J.FORM="form"})(v||(v={}));var C=function(J){f(b,J);function b(F,re){return J.call(this,"ListError ["+F+"] "+re)||this}return b}(Error),g=e("feEw"),u=e("zrhQ"),s=e("qj0h"),l=function(){function J(b){this.spliceables=b}return J.prototype.splice=function(b,F,re){this.spliceables.forEach(function(ne){return ne.splice(b,F,re)})},J}(),c=e("Sdnv"),p=e("fpMC"),_=function(){var J=function(b,F){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var fe in ne)ne.hasOwnProperty(fe)&&(re[fe]=ne[fe])},J(b,F)};return function(b,F){J(b,F);function re(){this.constructor=b}b.prototype=F===null?Object.create(F):(re.prototype=F.prototype,new re)}}(),L=function(){return L=Object.assign||function(J){for(var b,F=1,re=arguments.length;F<re;F++){b=arguments[F];for(var ne in b)Object.prototype.hasOwnProperty.call(b,ne)&&(J[ne]=b[ne])}return J},L.apply(this,arguments)},I=function(J,b,F,re){var ne=arguments.length,fe=ne<3?b:re===null?re=Object.getOwnPropertyDescriptor(b,F):re,Oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")fe=Reflect.decorate(J,b,F,re);else for(var Me=J.length-1;Me>=0;Me--)(Oe=J[Me])&&(fe=(ne<3?Oe(fe):ne>3?Oe(b,F,fe):Oe(b,F))||fe);return ne>3&&fe&&Object.defineProperty(b,F,fe),fe},P=function(){for(var J=0,b=0,F=arguments.length;b<F;b++)J+=arguments[b].length;for(var re=Array(J),ne=0,b=0;b<F;b++)for(var fe=arguments[b],Oe=0,Me=fe.length;Oe<Me;Oe++,ne++)re[ne]=fe[Oe];return re},A=function(){function J(b){this.trait=b,this.renderedElements=[]}return Object.defineProperty(J.prototype,"templateId",{get:function(){return"template:"+this.trait.trait},enumerable:!0,configurable:!0}),J.prototype.renderTemplate=function(b){return b},J.prototype.renderElement=function(b,F,re){var ne=Object(B.k)(this.renderedElements,function(Oe){return Oe.templateData===re});if(ne>=0){var fe=this.renderedElements[ne];this.trait.unrender(re),fe.index=F}else{var fe={index:F,templateData:re};this.renderedElements.push(fe)}this.trait.renderIndex(F,re)},J.prototype.splice=function(b,F,re){for(var ne=[],fe=0,Oe=this.renderedElements;fe<Oe.length;fe++){var Me=Oe[fe];Me.index<b?ne.push(Me):Me.index>=b+F&&ne.push({index:Me.index+re-F,templateData:Me.templateData})}this.renderedElements=ne},J.prototype.renderIndexes=function(b){for(var F=0,re=this.renderedElements;F<re.length;F++){var ne=re[F],fe=ne.index,Oe=ne.templateData;b.indexOf(fe)>-1&&this.trait.renderIndex(fe,Oe)}},J.prototype.disposeTemplate=function(b){var F=Object(B.k)(this.renderedElements,function(re){return re.templateData===b});if(F<0)return;this.renderedElements.splice(F,1)},J}(),Q=function(){function J(b){this._trait=b,this.indexes=[],this.sortedIndexes=[],this._onChange=new y.a,this.onChange=this._onChange.event}return Object.defineProperty(J.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"renderer",{get:function(){return new A(this)},enumerable:!0,configurable:!0}),J.prototype.splice=function(b,F,re){var ne=re.length-F,fe=b+F,Oe=P(this.sortedIndexes.filter(function(Me){return Me<b}),re.map(function(Me,Ue){return Me?Ue+b:-1}).filter(function(Me){return Me!==-1}),this.sortedIndexes.filter(function(Me){return Me>=fe}).map(function(Me){return Me+ne}));this.renderer.splice(b,F,re.length),this._set(Oe,Oe)},J.prototype.renderIndex=function(b,F){D.Y(F,this._trait,this.contains(b))},J.prototype.unrender=function(b){D.P(b,this._trait)},J.prototype.set=function(b,F){return this._set(b,P(b).sort(ve),F)},J.prototype._set=function(b,F,re){var ne=this.indexes,fe=this.sortedIndexes;this.indexes=b,this.sortedIndexes=F;var Oe=Ge(fe,b);return this.renderer.renderIndexes(Oe),this._onChange.fire({indexes:b,browserEvent:re}),ne},J.prototype.get=function(){return this.indexes},J.prototype.contains=function(b){return Object(B.c)(this.sortedIndexes,b,ve)>=0},J.prototype.dispose=function(){Object($.f)(this._onChange)},I([z.a],J.prototype,"renderer",null),J}(),K=function(J){_(b,J);function b(){return J.call(this,"focused")||this}return b.prototype.renderIndex=function(F,re){J.prototype.renderIndex.call(this,F,re),this.contains(F)?re.setAttribute("aria-selected","true"):re.removeAttribute("aria-selected")},b}(Q),H=function(){function J(b,F,re){this.trait=b,this.view=F,this.identityProvider=re}return J.prototype.splice=function(b,F,re){var ne=this;if(!this.identityProvider)return this.trait.splice(b,F,re.map(function(){return!1}));var fe=this.trait.get().map(function(Me){return ne.identityProvider.getId(ne.view.element(Me)).toString()}),Oe=re.map(function(Me){return fe.indexOf(ne.identityProvider.getId(Me).toString())>-1});this.trait.splice(b,F,Oe)},J}();function V(J){return J.tagName==="INPUT"||J.tagName==="TEXTAREA"}var de=function(){function J(b,F,re){this.list=b,this.view=F,this.disposables=new $.b;var ne=re.multipleSelectionSupport!==!1;this.openController=re.openController||ie;var fe=y.b.chain(Object(w.a)(F.domNode,"keydown")).filter(function(Oe){return!V(Oe.target)}).map(function(Oe){return new h.a(Oe)});fe.filter(function(Oe){return Oe.keyCode===3}).on(this.onEnter,this,this.disposables),fe.filter(function(Oe){return Oe.keyCode===16}).on(this.onUpArrow,this,this.disposables),fe.filter(function(Oe){return Oe.keyCode===18}).on(this.onDownArrow,this,this.disposables),fe.filter(function(Oe){return Oe.keyCode===11}).on(this.onPageUpArrow,this,this.disposables),fe.filter(function(Oe){return Oe.keyCode===12}).on(this.onPageDownArrow,this,this.disposables),fe.filter(function(Oe){return Oe.keyCode===9}).on(this.onEscape,this,this.disposables),ne&&fe.filter(function(Oe){return(W.e?Oe.metaKey:Oe.ctrlKey)&&Oe.keyCode===31}).on(this.onCtrlA,this,this.disposables)}return J.prototype.onEnter=function(b){b.preventDefault(),b.stopPropagation(),this.list.setSelection(this.list.getFocus(),b.browserEvent),this.openController.shouldOpen(b.browserEvent)&&this.list.open(this.list.getFocus(),b.browserEvent)},J.prototype.onUpArrow=function(b){b.preventDefault(),b.stopPropagation(),this.list.focusPrevious(1,!1,b.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},J.prototype.onDownArrow=function(b){b.preventDefault(),b.stopPropagation(),this.list.focusNext(1,!1,b.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},J.prototype.onPageUpArrow=function(b){b.preventDefault(),b.stopPropagation(),this.list.focusPreviousPage(b.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},J.prototype.onPageDownArrow=function(b){b.preventDefault(),b.stopPropagation(),this.list.focusNextPage(b.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},J.prototype.onCtrlA=function(b){b.preventDefault(),b.stopPropagation(),this.list.setSelection(Object(B.u)(this.list.length),b.browserEvent),this.view.domNode.focus()},J.prototype.onEscape=function(b){b.preventDefault(),b.stopPropagation(),this.list.setSelection([],b.browserEvent),this.view.domNode.focus()},J.prototype.dispose=function(){this.disposables.dispose()},J}(),_e;(function(J){J[J.Idle=0]="Idle",J[J.Typing=1]="Typing"})(_e||(_e={}));var Se=new(function(){function J(){}return J.prototype.mightProducePrintableCharacter=function(b){return b.ctrlKey||b.metaKey||b.altKey?!1:b.keyCode>=31&&b.keyCode<=56||b.keyCode>=21&&b.keyCode<=30||b.keyCode>=93&&b.keyCode<=102||b.keyCode>=80&&b.keyCode<=90},J}()),Ie=function(){function J(b,F,re,ne){this.list=b,this.view=F,this.keyboardNavigationLabelProvider=re,this.delegate=ne,this.enabled=!1,this.state=_e.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new $.b,this.disposables=new $.b,this.updateOptions(b.options)}return J.prototype.updateOptions=function(b){var F=typeof b.enableKeyboardNavigation=="undefined"?!0:!!b.enableKeyboardNavigation;F?this.enable():this.disable(),typeof b.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=b.automaticKeyboardNavigation)},J.prototype.enable=function(){var b=this;if(this.enabled)return;var F=y.b.chain(Object(w.a)(this.view.domNode,"keydown")).filter(function(fe){return!V(fe.target)}).filter(function(){return b.automaticKeyboardNavigation||b.triggered}).map(function(fe){return new h.a(fe)}).filter(function(fe){return b.delegate.mightProducePrintableCharacter(fe)}).forEach(function(fe){fe.stopPropagation(),fe.preventDefault()}).map(function(fe){return fe.browserEvent.key}).event,re=y.b.debounce(F,function(){return null},800),ne=y.b.reduce(y.b.any(F,re),function(fe,Oe){return Oe===null?null:(fe||"")+Oe});ne(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1},J.prototype.disable=function(){if(!this.enabled)return;this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1},J.prototype.onInput=function(b){if(!b){this.state=_e.Idle,this.triggered=!1;return}var F=this.list.getFocus(),re=F.length>0?F[0]:0,ne=this.state===_e.Idle?1:0;this.state=_e.Typing;for(var fe=0;fe<this.list.length;fe++){var Oe=(re+fe+ne)%this.list.length,Me=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(Oe)),Ue=Me&&Me.toString();if(typeof Ue=="undefined"||Object(p.g)(b,Ue)){this.list.setFocus([Oe]),this.list.reveal(Oe);return}}},J.prototype.dispose=function(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()},J}(),Pe=function(){function J(b,F){this.list=b,this.view=F,this.disposables=new $.b;var re=y.b.chain(Object(w.a)(F.domNode,"keydown")).filter(function(ne){return!V(ne.target)}).map(function(ne){return new h.a(ne)});re.filter(function(ne){return ne.keyCode===2&&!ne.ctrlKey&&!ne.metaKey&&!ne.shiftKey&&!ne.altKey}).on(this.onTab,this,this.disposables)}return J.prototype.onTab=function(b){if(b.target!==this.view.domNode)return;var F=this.list.getFocus();if(F.length===0)return;var re=this.view.domElement(F[0]);if(!re)return;var ne=re.querySelector("[tabIndex]");if(!ne||!(ne instanceof HTMLElement)||ne.tabIndex===-1)return;var fe=window.getComputedStyle(ne);if(fe.visibility==="hidden"||fe.display==="none")return;b.preventDefault(),b.stopPropagation(),ne.focus()},J.prototype.dispose=function(){this.disposables.dispose()},J}();function Ve(J){return W.e?J.browserEvent.metaKey:J.browserEvent.ctrlKey}function ke(J){return J.browserEvent.shiftKey}function se(J){return J instanceof MouseEvent&&J.button===2}var ee={isSelectionSingleChangeEvent:Ve,isSelectionRangeChangeEvent:ke},ie={shouldOpen:function(J){return J instanceof MouseEvent?!se(J):!0}},q=function(){function J(b){this.list=b,this.disposables=new $.b,this.multipleSelectionSupport=!(b.options.multipleSelectionSupport===!1),this.multipleSelectionSupport&&(this.multipleSelectionController=b.options.multipleSelectionController||ee),this.openController=b.options.openController||ie,this.mouseSupport=typeof b.options.mouseSupport=="undefined"||!!b.options.mouseSupport,this.mouseSupport&&(b.onMouseDown(this.onMouseDown,this,this.disposables),b.onContextMenu(this.onContextMenu,this,this.disposables),b.onMouseDblClick(this.onDoubleClick,this,this.disposables),b.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(x.b.addTarget(b.getHTMLElement()))),b.onMouseClick(this.onPointer,this,this.disposables),b.onMouseMiddleClick(this.onPointer,this,this.disposables),b.onTap(this.onPointer,this,this.disposables)}return J.prototype.isSelectionSingleChangeEvent=function(b){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(b):W.e?b.browserEvent.metaKey:b.browserEvent.ctrlKey},J.prototype.isSelectionRangeChangeEvent=function(b){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(b):b.browserEvent.shiftKey},J.prototype.isSelectionChangeEvent=function(b){return this.isSelectionSingleChangeEvent(b)||this.isSelectionRangeChangeEvent(b)},J.prototype.onMouseDown=function(b){document.activeElement!==b.browserEvent.target&&this.list.domFocus()},J.prototype.onContextMenu=function(b){var F=typeof b.index=="undefined"?[]:[b.index];this.list.setFocus(F,b.browserEvent)},J.prototype.onPointer=function(b){if(!this.mouseSupport)return;if(V(b.browserEvent.target))return;var F=this.list.getFocus()[0],re=this.list.getSelection();F=F===void 0?re[0]:F;var ne=b.index;if(typeof ne=="undefined"){this.list.setFocus([],b.browserEvent),this.list.setSelection([],b.browserEvent);return}if(this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(b))return this.changeSelection(b,F);if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(b))return this.changeSelection(b,F);this.list.setFocus([ne],b.browserEvent),se(b.browserEvent)||(this.list.setSelection([ne],b.browserEvent),this.openController.shouldOpen(b.browserEvent)&&this.list.open([ne],b.browserEvent))},J.prototype.onDoubleClick=function(b){if(V(b.browserEvent.target))return;if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(b))return;var F=this.list.getFocus();this.list.setSelection(F,b.browserEvent),this.list.pin(F)},J.prototype.changeSelection=function(b,F){var re=b.index;if(this.isSelectionRangeChangeEvent(b)&&F!==void 0){var ne=Math.min(F,re),fe=Math.max(F,re),Oe=Object(B.u)(ne,fe+1),Me=this.list.getSelection(),Ue=je(Ge(Me,[F]),F);if(Ue.length===0)return;var Je=Ge(Oe,ue(Me,Ue));this.list.setSelection(Je,b.browserEvent)}else if(this.isSelectionSingleChangeEvent(b)){var Me=this.list.getSelection(),Je=Me.filter(function(Rt){return Rt!==re});this.list.setFocus([re]),Me.length===Je.length?this.list.setSelection(P(Je,[re]),b.browserEvent):this.list.setSelection(Je,b.browserEvent)}},J.prototype.dispose=function(){this.disposables.dispose()},J}(),ce=function(){function J(b,F){this.styleElement=b,this.selectorSuffix=F}return J.prototype.style=function(b){var F=this.selectorSuffix&&"."+this.selectorSuffix,re=[];b.listBackground&&(b.listBackground.isOpaque()?re.push(".monaco-list"+F+" .monaco-list-rows { background: "+b.listBackground+"; }"):W.e||console.warn("List with id '"+this.selectorSuffix+"' was styled with a non-opaque background color. This will break sub-pixel antialiasing.")),b.listFocusBackground&&(re.push(".monaco-list"+F+":focus .monaco-list-row.focused { background-color: "+b.listFocusBackground+"; }"),re.push(".monaco-list"+F+":focus .monaco-list-row.focused:hover { background-color: "+b.listFocusBackground+"; }")),b.listFocusForeground&&re.push(".monaco-list"+F+":focus .monaco-list-row.focused { color: "+b.listFocusForeground+"; }"),b.listActiveSelectionBackground&&(re.push(".monaco-list"+F+":focus .monaco-list-row.selected { background-color: "+b.listActiveSelectionBackground+"; }"),re.push(".monaco-list"+F+":focus .monaco-list-row.selected:hover { background-color: "+b.listActiveSelectionBackground+"; }")),b.listActiveSelectionForeground&&re.push(".monaco-list"+F+":focus .monaco-list-row.selected { color: "+b.listActiveSelectionForeground+"; }"),b.listFocusAndSelectionBackground&&re.push(`
.monaco-drag-image,
.monaco-list`+F+":focus .monaco-list-row.selected.focused { background-color: "+b.listFocusAndSelectionBackground+`; }
`),b.listFocusAndSelectionForeground&&re.push(`
.monaco-drag-image,
.monaco-list`+F+":focus .monaco-list-row.selected.focused { color: "+b.listFocusAndSelectionForeground+`; }
`),b.listInactiveFocusBackground&&(re.push(".monaco-list"+F+" .monaco-list-row.focused { background-color: "+b.listInactiveFocusBackground+"; }"),re.push(".monaco-list"+F+" .monaco-list-row.focused:hover { background-color: "+b.listInactiveFocusBackground+"; }")),b.listInactiveSelectionBackground&&(re.push(".monaco-list"+F+" .monaco-list-row.selected { background-color: "+b.listInactiveSelectionBackground+"; }"),re.push(".monaco-list"+F+" .monaco-list-row.selected:hover { background-color: "+b.listInactiveSelectionBackground+"; }")),b.listInactiveSelectionForeground&&re.push(".monaco-list"+F+" .monaco-list-row.selected { color: "+b.listInactiveSelectionForeground+"; }"),b.listHoverBackground&&re.push(".monaco-list"+F+":not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: "+b.listHoverBackground+"; }"),b.listHoverForeground&&re.push(".monaco-list"+F+" .monaco-list-row:hover:not(.selected):not(.focused) { color: "+b.listHoverForeground+"; }"),b.listSelectionOutline&&re.push(".monaco-list"+F+" .monaco-list-row.selected { outline: 1px dotted "+b.listSelectionOutline+"; outline-offset: -1px; }"),b.listFocusOutline&&re.push(`
.monaco-drag-image,
.monaco-list`+F+":focus .monaco-list-row.focused { outline: 1px solid "+b.listFocusOutline+`; outline-offset: -1px; }
`),b.listInactiveFocusOutline&&re.push(".monaco-list"+F+" .monaco-list-row.focused { outline: 1px dotted "+b.listInactiveFocusOutline+"; outline-offset: -1px; }"),b.listHoverOutline&&re.push(".monaco-list"+F+" .monaco-list-row:hover { outline: 1px dashed "+b.listHoverOutline+"; outline-offset: -1px; }"),b.listDropBackground&&re.push(`
.monaco-list`+F+`.drop-target,
.monaco-list`+F+` .monaco-list-rows.drop-target,
.monaco-list`+F+" .monaco-list-row.drop-target { background-color: "+b.listDropBackground+` !important; color: inherit !important; }
`),b.listFilterWidgetBackground&&re.push(".monaco-list-type-filter { background-color: "+b.listFilterWidgetBackground+" }"),b.listFilterWidgetOutline&&re.push(".monaco-list-type-filter { border: 1px solid "+b.listFilterWidgetOutline+"; }"),b.listFilterWidgetNoMatchesOutline&&re.push(".monaco-list-type-filter.no-matches { border: 1px solid "+b.listFilterWidgetNoMatchesOutline+"; }"),b.listMatchesShadow&&re.push(".monaco-list-type-filter { box-shadow: 1px 1px 1px "+b.listMatchesShadow+"; }");var ne=re.join(`
`);ne!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=ne)},J}(),Z={listFocusBackground:u.a.fromHex("#7FB0D0"),listActiveSelectionBackground:u.a.fromHex("#0E639C"),listActiveSelectionForeground:u.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:u.a.fromHex("#094771"),listFocusAndSelectionForeground:u.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:u.a.fromHex("#3F3F46"),listHoverBackground:u.a.fromHex("#2A2D2E"),listDropBackground:u.a.fromHex("#383B3D"),treeIndentGuidesStroke:u.a.fromHex("#a9a9a9")},ye={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},ariaRootRole:v.TREE};function je(J,b){var F=J.indexOf(b);if(F===-1)return[];for(var re=[],ne=F-1;ne>=0&&J[ne]===b-(F-ne);)re.push(J[ne--]);for(re.reverse(),ne=F;ne<J.length&&J[ne]===b+(ne-F);)re.push(J[ne++]);return re}function Ge(J,b){for(var F=[],re=0,ne=0;re<J.length||ne<b.length;)if(re>=J.length)F.push(b[ne++]);else if(ne>=b.length)F.push(J[re++]);else if(J[re]===b[ne]){F.push(J[re]),re++,ne++;continue}else J[re]<b[ne]?F.push(J[re++]):F.push(b[ne++]);return F}function ue(J,b){for(var F=[],re=0,ne=0;re<J.length||ne<b.length;)if(re>=J.length)F.push(b[ne++]);else if(ne>=b.length)F.push(J[re++]);else if(J[re]===b[ne]){re++,ne++;continue}else J[re]<b[ne]?F.push(J[re++]):ne++;return F}var ve=function(J,b){return J-b},Ee=function(){function J(b,F){this._templateId=b,this.renderers=F}return Object.defineProperty(J.prototype,"templateId",{get:function(){return this._templateId},enumerable:!0,configurable:!0}),J.prototype.renderTemplate=function(b){return this.renderers.map(function(F){return F.renderTemplate(b)})},J.prototype.renderElement=function(b,F,re,ne){for(var fe=0,Oe=0,Me=this.renderers;Oe<Me.length;Oe++){var Ue=Me[Oe];Ue.renderElement(b,F,re[fe++],ne)}},J.prototype.disposeElement=function(b,F,re,ne){for(var fe=0,Oe=0,Me=this.renderers;Oe<Me.length;Oe++){var Ue=Me[Oe];Ue.disposeElement&&Ue.disposeElement(b,F,re[fe],ne),fe+=1}},J.prototype.disposeTemplate=function(b){for(var F=0,re=0,ne=this.renderers;re<ne.length;re++){var fe=ne[re];fe.disposeTemplate(b[F++])}},J}(),xe=function(){function J(b){this.accessibilityProvider=b,this.templateId="a18n"}return J.prototype.renderTemplate=function(b){return b},J.prototype.renderElement=function(b,F,re){var ne=this.accessibilityProvider.getAriaLabel(b);ne?re.setAttribute("aria-label",ne):re.removeAttribute("aria-label");var fe=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(b);typeof fe=="number"?re.setAttribute("aria-level",""+fe):re.removeAttribute("aria-level")},J.prototype.disposeTemplate=function(b){},J}(),Ce=function(){function J(b,F){this.list=b,this.dnd=F}return J.prototype.getDragElements=function(b){var F=this.list.getSelectedElements(),re=F.indexOf(b)>-1?F:[b];return re},J.prototype.getDragURI=function(b){return this.dnd.getDragURI(b)},J.prototype.getDragLabel=function(b,F){return this.dnd.getDragLabel?this.dnd.getDragLabel(b,F):void 0},J.prototype.onDragStart=function(b,F){this.dnd.onDragStart&&this.dnd.onDragStart(b,F)},J.prototype.onDragOver=function(b,F,re,ne){return this.dnd.onDragOver(b,F,re,ne)},J.prototype.onDragEnd=function(b){this.dnd.onDragEnd&&this.dnd.onDragEnd(b)},J.prototype.drop=function(b,F,re,ne){this.dnd.drop(b,F,re,ne)},J}(),he=function(){function J(b,F,re,ne,fe){fe===void 0&&(fe=ye),this.user=b,this._options=fe,this.eventBufferer=new y.c,this.disposables=new $.b,this._onDidOpen=new y.a,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new y.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new y.a,this.onDidDispose=this._onDidDispose.event,this.focus=new K,this.selection=new Q("selected"),Object(s.g)(fe,Z,!1);var Oe=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=fe.accessibilityProvider,this.accessibilityProvider&&(Oe.push(new xe(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),ne=ne.map(function(vt){return new Ee(vt.templateId,P(Oe,[vt]))});var Me=L(L({},fe),{dnd:fe.dnd&&new Ce(this,fe.dnd)});if(this.view=new g.b(F,re,ne,Me),typeof fe.ariaRole!="string"?this.view.domNode.setAttribute("role",v.TREE):this.view.domNode.setAttribute("role",fe.ariaRole),fe.styleController)this.styleController=fe.styleController(this.view.domId);else{var Ue=D.w(this.view.domNode);this.styleController=new ce(Ue,this.view.domId)}if(this.spliceable=new l([new H(this.focus,this.view,fe.identityProvider),new H(this.selection,this.view,fe.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=y.b.map(Object(w.a)(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=y.b.map(Object(w.a)(this.view.domNode,"blur",!0),function(){return null}),this.disposables.add(new Pe(this,this.view)),typeof fe.keyboardSupport!="boolean"||fe.keyboardSupport){var Je=new de(this,this.view,fe);this.disposables.add(Je)}if(fe.keyboardNavigationLabelProvider){var nt=fe.keyboardNavigationDelegate||Se;this.typeLabelController=new Ie(this,this.view,fe.keyboardNavigationLabelProvider,nt),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(fe)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),fe.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(le.a)("aria list","{0}. Use the navigation keys to navigate.",fe.ariaLabel))}return Object.defineProperty(J.prototype,"onFocusChange",{get:function(){var b=this;return y.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),function(F){return b.toListEvent(F)})},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"onSelectionChange",{get:function(){var b=this;return y.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(F){return b.toListEvent(F)})},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"onContextMenu",{get:function(){var b=this,F=y.b.chain(Object(w.a)(this.view.domNode,"keydown")).map(function(fe){return new h.a(fe)}).filter(function(fe){return b.didJustPressContextMenuKey=fe.keyCode===58||fe.shiftKey&&fe.keyCode===68}).filter(function(fe){return fe.preventDefault(),fe.stopPropagation(),!1}).event,re=y.b.chain(Object(w.a)(this.view.domNode,"keyup")).filter(function(){var fe=b.didJustPressContextMenuKey;return b.didJustPressContextMenuKey=!1,fe}).filter(function(){return b.getFocus().length>0&&!!b.view.domElement(b.getFocus()[0])}).map(function(fe){var Oe=b.getFocus()[0],Me=b.view.element(Oe),Ue=b.view.domElement(Oe);return{index:Oe,element:Me,anchor:Ue,browserEvent:fe}}).event,ne=y.b.chain(this.view.onContextMenu).filter(function(){return!b.didJustPressContextMenuKey}).map(function(fe){var Oe=fe.element,Me=fe.index,Ue=fe.browserEvent;return{element:Oe,index:Me,anchor:{x:Ue.clientX+1,y:Ue.clientY},browserEvent:Ue}}).event;return y.b.any(F,re,ne)},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"onKeyDown",{get:function(){return Object(w.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),J.prototype.createMouseController=function(b){return new q(this)},J.prototype.updateOptions=function(b){b===void 0&&(b={}),this._options=L(L({},this._options),b),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(J.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),J.prototype.splice=function(b,F,re){var ne=this;if(re===void 0&&(re=[]),b<0||b>this.view.length)throw new C(this.user,"Invalid start index: "+b);if(F<0)throw new C(this.user,"Invalid delete count: "+F);if(F===0&&re.length===0)return;this.eventBufferer.bufferEvents(function(){return ne.spliceable.splice(b,F,re)})},J.prototype.rerender=function(){this.view.rerender()},J.prototype.element=function(b){return this.view.element(b)},Object.defineProperty(J.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(b){this.view.setScrollTop(b)},enumerable:!0,configurable:!0}),J.prototype.domFocus=function(){this.view.domNode.focus()},J.prototype.layout=function(b,F){this.view.layout(b,F)},J.prototype.setSelection=function(b,F){for(var re=0,ne=b;re<ne.length;re++){var fe=ne[re];if(fe<0||fe>=this.length)throw new C(this.user,"Invalid index "+fe)}this.selection.set(b,F)},J.prototype.getSelection=function(){return this.selection.get()},J.prototype.getSelectedElements=function(){var b=this;return this.getSelection().map(function(F){return b.view.element(F)})},J.prototype.setFocus=function(b,F){for(var re=0,ne=b;re<ne.length;re++){var fe=ne[re];if(fe<0||fe>=this.length)throw new C(this.user,"Invalid index "+fe)}this.focus.set(b,F)},J.prototype.focusNext=function(b,F,re,ne){if(b===void 0&&(b=1),F===void 0&&(F=!1),this.length===0)return;var fe=this.focus.get(),Oe=this.findNextIndex(fe.length>0?fe[0]+b:0,F,ne);Oe>-1&&this.setFocus([Oe],re)},J.prototype.focusPrevious=function(b,F,re,ne){if(b===void 0&&(b=1),F===void 0&&(F=!1),this.length===0)return;var fe=this.focus.get(),Oe=this.findPreviousIndex(fe.length>0?fe[0]-b:0,F,ne);Oe>-1&&this.setFocus([Oe],re)},J.prototype.focusNextPage=function(b,F){var re=this,ne=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);ne=ne===0?0:ne-1;var fe=this.view.element(ne),Oe=this.getFocusedElements()[0];if(Oe!==fe){var Me=this.findPreviousIndex(ne,!1,F);Me>-1&&Oe!==this.view.element(Me)?this.setFocus([Me],b):this.setFocus([ne],b)}else{var Ue=this.view.getScrollTop();this.view.setScrollTop(Ue+this.view.renderHeight-this.view.elementHeight(ne)),this.view.getScrollTop()!==Ue&&setTimeout(function(){return re.focusNextPage(b,F)},0)}},J.prototype.focusPreviousPage=function(b,F){var re=this,ne,fe=this.view.getScrollTop();fe===0?ne=this.view.indexAt(fe):ne=this.view.indexAfter(fe-1);var Oe=this.view.element(ne),Me=this.getFocusedElements()[0];if(Me!==Oe){var Ue=this.findNextIndex(ne,!1,F);Ue>-1&&Me!==this.view.element(Ue)?this.setFocus([Ue],b):this.setFocus([ne],b)}else{var Je=fe;this.view.setScrollTop(fe-this.view.renderHeight),this.view.getScrollTop()!==Je&&setTimeout(function(){return re.focusPreviousPage(b,F)},0)}},J.prototype.focusLast=function(b,F){if(this.length===0)return;var re=this.findPreviousIndex(this.length-1,!1,F);re>-1&&this.setFocus([re],b)},J.prototype.focusFirst=function(b,F){if(this.length===0)return;var re=this.findNextIndex(0,!1,F);re>-1&&this.setFocus([re],b)},J.prototype.findNextIndex=function(b,F,re){F===void 0&&(F=!1);for(var ne=0;ne<this.length;ne++){if(b>=this.length&&!F)return-1;if(b=b%this.length,!re||re(this.element(b)))return b;b++}return-1},J.prototype.findPreviousIndex=function(b,F,re){F===void 0&&(F=!1);for(var ne=0;ne<this.length;ne++){if(b<0&&!F)return-1;if(b=(this.length+b%this.length)%this.length,!re||re(this.element(b)))return b;b--}return-1},J.prototype.getFocus=function(){return this.focus.get()},J.prototype.getFocusedElements=function(){var b=this;return this.getFocus().map(function(F){return b.view.element(F)})},J.prototype.reveal=function(b,F){if(b<0||b>=this.length)throw new C(this.user,"Invalid index "+b);var re=this.view.getScrollTop(),ne=this.view.elementTop(b),fe=this.view.elementHeight(b);if(Object(R.h)(F)){var Oe=fe-this.view.renderHeight;this.view.setScrollTop(Oe*Object(c.a)(F,0,1)+ne)}else{var Me=ne+fe,Ue=re+this.view.renderHeight;ne<re&&Me>=Ue||(ne<re?this.view.setScrollTop(ne):Me>=Ue&&this.view.setScrollTop(Me-this.view.renderHeight))}},J.prototype.getRelativeTop=function(b){if(b<0||b>=this.length)throw new C(this.user,"Invalid index "+b);var F=this.view.getScrollTop(),re=this.view.elementTop(b),ne=this.view.elementHeight(b);if(re<F||re+ne>F+this.view.renderHeight)return null;var fe=ne-this.view.renderHeight;return Math.abs((F-re)/fe)},J.prototype.getHTMLElement=function(){return this.view.domNode},J.prototype.open=function(b,F){for(var re=this,ne=0,fe=b;ne<fe.length;ne++){var Oe=fe[ne];if(Oe<0||Oe>=this.length)throw new C(this.user,"Invalid index "+Oe)}this._onDidOpen.fire({indexes:b,elements:b.map(function(Me){return re.view.element(Me)}),browserEvent:F})},J.prototype.pin=function(b,F){for(var re=this,ne=0,fe=b;ne<fe.length;ne++){var Oe=fe[ne];if(Oe<0||Oe>=this.length)throw new C(this.user,"Invalid index "+Oe)}this._onDidPin.fire({indexes:b,elements:b.map(function(Me){return re.view.element(Me)}),browserEvent:F})},J.prototype.style=function(b){this.styleController.style(b)},J.prototype.toListEvent=function(b){var F=this,re=b.indexes,ne=b.browserEvent;return{indexes:re,elements:re.map(function(fe){return F.view.element(fe)}),browserEvent:ne}},J.prototype._onFocusChange=function(){var b=this.focus.get();D.Y(this.view.domNode,"element-focused",b.length>0),this.onDidChangeActiveDescendant()},J.prototype.onDidChangeActiveDescendant=function(){var b,F=this.focus.get();if(F.length>0){var re=void 0;((b=this.accessibilityProvider)===null||b===void 0?void 0:b.getActiveDescendantId)&&(re=this.accessibilityProvider.getActiveDescendantId(this.view.element(F[0]))),this.view.domNode.setAttribute("aria-activedescendant",re||this.view.getElementDomId(F[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},J.prototype._onSelectionChange=function(){var b=this.selection.get();D.Y(this.view.domNode,"selection-none",b.length===0),D.Y(this.view.domNode,"selection-single",b.length===1),D.Y(this.view.domNode,"selection-multiple",b.length>1)},J.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},I([z.a],J.prototype,"onFocusChange",null),I([z.a],J.prototype,"onSelectionChange",null),I([z.a],J.prototype,"onContextMenu",null),J}()},d6R0:function(Lt,N,e){"use strict";e.r(N),e.d(N,"CodeLensContribution",function(){return ce});var T=e("X+cX"),le=e("/cxE"),$=e("pmY6"),R=e("vATl"),B=e("sswD"),z=e("twdY"),D=e("6OMU"),W=e("JQT/"),x=e("bY76"),h=e("G2kB"),y=function(){function Z(){this.lenses=[],this._disposables=new $.b}return Z.prototype.dispose=function(){this._disposables.dispose()},Z.prototype.add=function(ye,je){this._disposables.add(ye);for(var Ge=0,ue=ye.lenses;Ge<ue.length;Ge++){var ve=ue[Ge];this.lenses.push({symbol:ve,provider:je})}},Z}();function w(Z,ye){var je=z.b.ordered(Z),Ge=new Map,ue=new y,ve=je.map(function(Ee,xe){return Ge.set(Ee,xe),Promise.resolve(Ee.provideCodeLenses(Z,ye)).then(function(Ce){return Ce&&ue.add(Ce,Ee)}).catch(le.f)});return Promise.all(ve).then(function(){return ue.lenses=Object(D.r)(ue.lenses,function(Ee,xe){return Ee.symbol.range.startLineNumber<xe.symbol.range.startLineNumber?-1:Ee.symbol.range.startLineNumber>xe.symbol.range.startLineNumber?1:Ge.get(Ee.provider)<Ge.get(xe.provider)?-1:Ge.get(Ee.provider)>Ge.get(xe.provider)?1:Ee.symbol.range.startColumn<xe.symbol.range.startColumn?-1:Ee.symbol.range.startColumn>xe.symbol.range.startColumn?1:0}),ue})}Object(B.j)("_executeCodeLensProvider",function(Z,ye){var je=ye.resource,Ge=ye.itemResolveCount;if(!(je instanceof x.a))throw Object(le.b)();var ue=Z.get(h.a).getModel(je);if(!ue)throw Object(le.b)();var ve=[],Ee=new $.b;return w(ue,W.a.None).then(function(xe){Ee.add(xe);for(var Ce=[],he=function(re){typeof Ge=="undefined"||Boolean(re.symbol.command)?ve.push(re.symbol):Ge-- >0&&re.provider.resolveCodeLens&&Ce.push(Promise.resolve(re.provider.resolveCodeLens(ue,re.symbol,W.a.None)).then(function(ne){return ve.push(ne||re.symbol)}))},J=0,b=xe.lenses;J<b.length;J++){var F=b[J];he(F)}return Promise.all(Ce)}).then(function(){return ve}).finally(function(){setTimeout(function(){return Ee.dispose()},100)})});var f=e("RMfO"),v=e("EffR"),C=e("Vhoy"),g=e("N0LK"),u=e("aokT"),s=e("tX9W"),l=e("kYye"),c=e("MD5Z"),p=e("t9D7"),_=function(){function Z(ye,je){this.afterLineNumber=ye,this._onHeight=je,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}return Z.prototype.onComputedHeight=function(ye){this._lastHeight===void 0?this._lastHeight=ye:this._lastHeight!==ye&&(this._lastHeight=ye,this._onHeight())},Z}(),L=function(){function Z(ye,je,Ge){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=ye,this._id="codelens.widget-"+Z._idPool++,this.updatePosition(Ge),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration "+je}return Z.prototype.withCommands=function(ye,je){this._commands.clear();for(var Ge="",ue=!1,ve=0;ve<ye.length;ve++){var Ee=ye[ve];if(!Ee)continue;if(ue=!0,Ee.command){var xe=Object(C.c)(Object(g.o)(Ee.command.title));Ee.command.id?(Ge+="<a id="+ve+">"+xe+"</a>",this._commands.set(String(ve),Ee.command)):Ge+="<span>"+xe+"</span>",ve+1<ye.length&&(Ge+="<span>&#160;|&#160;</span>")}}ue?(Ge||(Ge="&#160;"),this._domNode.innerHTML=Ge,this._isEmpty&&je&&v.f(this._domNode,"fadein"),this._isEmpty=!1):this._domNode.innerHTML="<span>no commands</span>"},Z.prototype.getCommand=function(ye){return ye.parentElement===this._domNode?this._commands.get(ye.id):void 0},Z.prototype.getId=function(){return this._id},Z.prototype.getDomNode=function(){return this._domNode},Z.prototype.updatePosition=function(ye){var je=this._editor.getModel().getLineFirstNonWhitespaceColumn(ye);this._widgetPosition={position:{lineNumber:ye,column:je},preference:[1]}},Z.prototype.getPosition=function(){return this._widgetPosition||null},Z._idPool=0,Z}(),I=function(){function Z(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}return Z.prototype.addDecoration=function(ye,je){this._addDecorations.push(ye),this._addDecorationsCallbacks.push(je)},Z.prototype.removeDecoration=function(ye){this._removeDecorations.push(ye)},Z.prototype.commit=function(ye){for(var je=ye.deltaDecorations(this._removeDecorations,this._addDecorations),Ge=0,ue=je.length;Ge<ue;Ge++)this._addDecorationsCallbacks[Ge](je[Ge])},Z}(),P=function(){function Z(ye,je,Ge,ue,ve,Ee){var xe=this;this._isDisposed=!1,this._editor=je,this._className=Ge,this._data=ye,this._decorationIds=[];var Ce,he=[];this._data.forEach(function(J,b){J.symbol.command&&he.push(J.symbol),ue.addDecoration({range:J.symbol.range,options:s.a.EMPTY},function(F){return xe._decorationIds[b]=F}),Ce?Ce=u.a.plusRange(Ce,J.symbol.range):Ce=u.a.lift(J.symbol.range)}),this._viewZone=new _(Ce.startLineNumber-1,Ee),this._viewZoneId=ve.addZone(this._viewZone),he.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(he,!1))}return Z.prototype._createContentWidgetIfNecessary=function(){this._contentWidget||(this._contentWidget=new L(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))},Z.prototype.dispose=function(ye,je){this._decorationIds.forEach(ye.removeDecoration,ye),this._decorationIds=[],je&&je.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0},Z.prototype.isDisposed=function(){return this._isDisposed},Z.prototype.isValid=function(){var ye=this;return this._decorationIds.some(function(je,Ge){var ue=ye._editor.getModel().getDecorationRange(je),ve=ye._data[Ge].symbol;return!!(ue&&u.a.isEmpty(ve.range)===ue.isEmpty())})},Z.prototype.updateCodeLensSymbols=function(ye,je){var Ge=this;this._decorationIds.forEach(je.removeDecoration,je),this._decorationIds=[],this._data=ye,this._data.forEach(function(ue,ve){je.addDecoration({range:ue.symbol.range,options:s.a.EMPTY},function(Ee){return Ge._decorationIds[ve]=Ee})})},Z.prototype.computeIfNecessary=function(ye){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(var je=0;je<this._decorationIds.length;je++){var Ge=ye.getDecorationRange(this._decorationIds[je]);Ge&&(this._data[je].symbol.range=Ge)}return this._data},Z.prototype.updateCommands=function(ye){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(ye,!0);for(var je=0;je<this._data.length;je++){var Ge=ye[je];if(Ge){var ue=this._data[je].symbol;ue.command=Ge.command||ue.command}}},Z.prototype.getCommand=function(ye){var je;return(je=this._contentWidget)===null||je===void 0?void 0:je.getCommand(ye)},Z.prototype.getLineNumber=function(){var ye=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return ye?ye.startLineNumber:-1},Z.prototype.update=function(ye){if(this.isValid()){var je=this._editor.getModel().getDecorationRange(this._decorationIds[0]);je&&(this._viewZone.afterLineNumber=je.startLineNumber-1,ye.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(je.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}},Z}();Object(p.e)(function(Z,ye){var je=Z.getColor(l.e);je&&(ye.addRule(".monaco-editor .codelens-decoration { color: "+je+"; }"),ye.addRule(".monaco-editor .codelens-decoration .codicon { color: "+je+"; }"));var Ge=Z.getColor(c.n);Ge&&(ye.addRule(".monaco-editor .codelens-decoration > a:hover { color: "+Ge+" !important; }"),ye.addRule(".monaco-editor .codelens-decoration > a:hover .codicon { color: "+Ge+" !important; }"))});var A=e("nnTU"),Q=e("sM1p"),K=e("Cg/j"),H=e("9fML"),V=e("QDVR"),de=e("A+jI"),_e=e("C/vA"),Se=function(Z,ye,je,Ge){var ue=arguments.length,ve=ue<3?ye:Ge===null?Ge=Object.getOwnPropertyDescriptor(ye,je):Ge,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(Z,ye,je,Ge);else for(var xe=Z.length-1;xe>=0;xe--)(Ee=Z[xe])&&(ve=(ue<3?Ee(ve):ue>3?Ee(ye,je,ve):Ee(ye,je))||ve);return ue>3&&ve&&Object.defineProperty(ye,je,ve),ve},Ie=function(Z,ye){return function(je,Ge){ye(je,Ge,Z)}},Pe=Object(K.c)("ICodeLensCache"),Ve=function(){function Z(ye,je){this.lineCount=ye,this.data=je}return Z}(),ke=function(){function Z(ye){var je=this;this._fakeProvider=new(function(){function Ee(){}return Ee.prototype.provideCodeLenses=function(){throw new Error("not supported")},Ee}()),this._cache=new V.a(20,.75);var Ge="codelens/cache";Object(T.k)(function(){return ye.remove(Ge,1)});var ue="codelens/cache2",ve=ye.get(ue,1,"{}");this._deserialize(ve),Object(_e.a)(ye.onWillSaveState)(function(Ee){Ee.reason===de.c.SHUTDOWN&&ye.store(ue,je._serialize(),1)})}return Z.prototype.put=function(ye,je){var Ge=je.lenses.map(function(Ee){var xe;return{range:Ee.symbol.range,command:Ee.symbol.command&&{id:"",title:(xe=Ee.symbol.command)===null||xe===void 0?void 0:xe.title}}}),ue=new y;ue.add({lenses:Ge,dispose:function(){}},this._fakeProvider);var ve=new Ve(ye.getLineCount(),ue);this._cache.set(ye.uri.toString(),ve)},Z.prototype.get=function(ye){var je=this._cache.get(ye.uri.toString());return je&&je.lineCount===ye.getLineCount()?je.data:void 0},Z.prototype.delete=function(ye){this._cache.delete(ye.uri.toString())},Z.prototype._serialize=function(){var ye=Object.create(null);return this._cache.forEach(function(je,Ge){for(var ue=new Set,ve=0,Ee=je.data.lenses;ve<Ee.length;ve++){var xe=Ee[ve];ue.add(xe.symbol.range.startLineNumber)}ye[Ge]={lineCount:je.lineCount,lines:Object(V.e)(ue)}}),JSON.stringify(ye)},Z.prototype._deserialize=function(ye){try{var je=JSON.parse(ye);for(var Ge in je){for(var ue=je[Ge],ve=[],Ee=0,xe=ue.lines;Ee<xe.length;Ee++){var Ce=xe[Ee];ve.push({range:new u.a(Ce,1,Ce,11)})}var he=new y;he.add({lenses:ve,dispose:function(){}},this._fakeProvider),this._cache.set(Ge,new Ve(ue.lineCount,he))}}catch(J){}},Z=Se([Ie(0,de.a)],Z),Z}();Object(H.b)(Pe,ke);var se=e("7afs"),ee=function(Z,ye,je,Ge){var ue=arguments.length,ve=ue<3?ye:Ge===null?Ge=Object.getOwnPropertyDescriptor(ye,je):Ge,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(Z,ye,je,Ge);else for(var xe=Z.length-1;xe>=0;xe--)(Ee=Z[xe])&&(ve=(ue<3?Ee(ve):ue>3?Ee(ye,je,ve):Ee(ye,je))||ve);return ue>3&&ve&&Object.defineProperty(ye,je,ve),ve},ie=function(Z,ye){return function(je,Ge){ye(je,Ge,Z)}},q=function(){for(var Z=0,ye=0,je=arguments.length;ye<je;ye++)Z+=arguments[ye].length;for(var Ge=Array(Z),ue=0,ye=0;ye<je;ye++)for(var ve=arguments[ye],Ee=0,xe=ve.length;Ee<xe;Ee++,ue++)Ge[ue]=ve[Ee];return Ge},ce=function(){function Z(ye,je,Ge,ue){var ve=this;this._editor=ye,this._commandService=je,this._notificationService=Ge,this._codeLensCache=ue,this._globalToDispose=new $.b,this._localToDispose=new $.b,this._lenses=[],this._oldCodeLensModels=new $.b,this._modelChangeCounter=0,this._isEnabled=this._editor.getOption(11),this._globalToDispose.add(this._editor.onDidChangeModel(function(){return ve._onModelChange()})),this._globalToDispose.add(this._editor.onDidChangeModelLanguage(function(){return ve._onModelChange()})),this._globalToDispose.add(this._editor.onDidChangeConfiguration(function(){var Ee=ve._isEnabled;ve._isEnabled=ve._editor.getOption(11),Ee!==ve._isEnabled&&ve._onModelChange()})),this._globalToDispose.add(z.b.onDidChange(this._onModelChange,this)),this._globalToDispose.add(this._editor.onDidChangeConfiguration(function(Ee){Ee.hasChanged(34)&&ve._updateLensStyle()})),this._onModelChange(),this._styleClassName=Object(se.a)(this._editor.getId()).toString(16),this._styleElement=v.w(v.N(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}return Z.prototype.dispose=function(){this._localDispose(),this._globalToDispose.dispose(),this._oldCodeLensModels.dispose(),Object($.f)(this._currentCodeLensModel)},Z.prototype._updateLensStyle=function(){var ye=this._editor.getOptions(),je=ye.get(34),Ge=ye.get(49),ue=Math.round(Ge*1.1),ve=Math.round(je.fontSize*.9),Ee=`
.monaco-editor .codelens-decoration.`+this._styleClassName+" { height: "+ue+"px; line-height: "+Ge+"px; font-size: "+ve+"px; padding-right: "+Math.round(je.fontSize*.45)+`px;}
.monaco-editor .codelens-decoration.`+this._styleClassName+" > a > .codicon { line-height: "+Ge+"px; font-size: "+ve+`px; }
`;this._styleElement.innerHTML=Ee},Z.prototype._localDispose=function(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=void 0,this._modelChangeCounter++),this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0),this._localToDispose.clear(),this._oldCodeLensModels.clear(),Object($.f)(this._currentCodeLensModel)},Z.prototype._onModelChange=function(){var ye=this;this._localDispose();var je=this._editor.getModel();if(!je)return;if(!this._isEnabled)return;var Ge=this._codeLensCache.get(je);if(Ge&&this._renderCodeLensSymbols(Ge),!z.b.has(je)){Ge&&this._localToDispose.add(Object(T.g)(function(){var J=ye._codeLensCache.get(je);Ge===J&&(ye._codeLensCache.delete(je),ye._onModelChange())},30*1e3));return}for(var ue=0,ve=z.b.all(je);ue<ve.length;ue++){var Ee=ve[ue];if(typeof Ee.onDidChange=="function"){var xe=Ee.onDidChange(function(){return he.schedule()});this._localToDispose.add(xe)}}var Ce=this._detectVisibleLenses=new T.d(function(){return ye._onViewportChanged()},250),he=new T.d(function(){var J=++ye._modelChangeCounter;ye._currentFindCodeLensSymbolsPromise&&ye._currentFindCodeLensSymbolsPromise.cancel(),ye._currentFindCodeLensSymbolsPromise=Object(T.f)(function(b){return w(je,b)}),ye._currentFindCodeLensSymbolsPromise.then(function(b){J===ye._modelChangeCounter&&(ye._currentCodeLensModel&&ye._oldCodeLensModels.add(ye._currentCodeLensModel),ye._currentCodeLensModel=b,ye._codeLensCache.put(je,b),ye._renderCodeLensSymbols(b),Ce.schedule())},le.e)},250);this._localToDispose.add(he),this._localToDispose.add(Ce),this._localToDispose.add(this._editor.onDidChangeModelContent(function(){ye._editor.changeDecorations(function(J){ye._editor.changeViewZones(function(b){var F=[],re=-1;ye._lenses.forEach(function(fe){!fe.isValid()||re===fe.getLineNumber()?F.push(fe):(fe.update(b),re=fe.getLineNumber())});var ne=new I;F.forEach(function(fe){fe.dispose(ne,b),ye._lenses.splice(ye._lenses.indexOf(fe),1)}),ne.commit(J)})}),Ce.schedule(),he.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(function(J){J.scrollTopChanged&&ye._lenses.length>0&&Ce.schedule()})),this._localToDispose.add(this._editor.onDidLayoutChange(function(){Ce.schedule()})),this._localToDispose.add(Object($.h)(function(){if(ye._editor.getModel()){var J=R.c.capture(ye._editor);ye._editor.changeDecorations(function(b){ye._editor.changeViewZones(function(F){ye._disposeAllLenses(b,F)})}),J.restore(ye._editor)}else ye._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseUp(function(J){var b;if(J.target.type!==9)return;var F=J.target.element;if((F==null?void 0:F.tagName)==="SPAN"&&(F=F.parentElement),(F==null?void 0:F.tagName)==="A")for(var re=0,ne=ye._lenses;re<ne.length;re++){var fe=ne[re],Oe=fe.getCommand(F);if(Oe){(b=ye._commandService).executeCommand.apply(b,q([Oe.id],Oe.arguments||[])).catch(function(Me){return ye._notificationService.error(Me)});break}}})),he.schedule()},Z.prototype._disposeAllLenses=function(ye,je){for(var Ge=new I,ue=0,ve=this._lenses;ue<ve.length;ue++){var Ee=ve[ue];Ee.dispose(Ge,je)}ye&&Ge.commit(ye),this._lenses=[]},Z.prototype._renderCodeLensSymbols=function(ye){var je=this;if(!this._editor.hasModel())return;for(var Ge=this._editor.getModel().getLineCount(),ue=[],ve,Ee=0,xe=ye.lenses;Ee<xe.length;Ee++){var Ce=xe[Ee],he=Ce.symbol.range.startLineNumber;if(he<1||he>Ge)continue;ve&&ve[ve.length-1].symbol.range.startLineNumber===he?ve.push(Ce):(ve=[Ce],ue.push(ve))}var J=R.c.capture(this._editor);this._editor.changeDecorations(function(b){je._editor.changeViewZones(function(F){for(var re=new I,ne=0,fe=0;fe<ue.length&&ne<je._lenses.length;){var Oe=ue[fe][0].symbol.range.startLineNumber,Me=je._lenses[ne].getLineNumber();Me<Oe?(je._lenses[ne].dispose(re,F),je._lenses.splice(ne,1)):Me===Oe?(je._lenses[ne].updateCodeLensSymbols(ue[fe],re),fe++,ne++):(je._lenses.splice(ne,0,new P(ue[fe],je._editor,je._styleClassName,re,F,function(){return je._detectVisibleLenses&&je._detectVisibleLenses.schedule()})),ne++,fe++)}for(;ne<je._lenses.length;)je._lenses[ne].dispose(re,F),je._lenses.splice(ne,1);for(;fe<ue.length;)je._lenses.push(new P(ue[fe],je._editor,je._styleClassName,re,F,function(){return je._detectVisibleLenses&&je._detectVisibleLenses.schedule()})),fe++;re.commit(b)})}),J.restore(this._editor)},Z.prototype._onViewportChanged=function(){var ye=this;this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0);var je=this._editor.getModel();if(!je)return;var Ge=[],ue=[];if(this._lenses.forEach(function(Ee){var xe=Ee.computeIfNecessary(je);xe&&(Ge.push(xe),ue.push(Ee))}),Ge.length===0)return;var ve=Object(T.f)(function(Ee){var xe=Ge.map(function(Ce,he){var J=new Array(Ce.length),b=Ce.map(function(F,re){return!F.symbol.command&&typeof F.provider.resolveCodeLens=="function"?Promise.resolve(F.provider.resolveCodeLens(je,F.symbol,Ee)).then(function(ne){J[re]=ne},le.f):(J[re]=F.symbol,Promise.resolve(void 0))});return Promise.all(b).then(function(){!Ee.isCancellationRequested&&!ue[he].isDisposed()&&ue[he].updateCommands(J)})});return Promise.all(xe)});this._currentResolveCodeLensSymbolsPromise=ve,this._currentResolveCodeLensSymbolsPromise.then(function(){ye._currentCodeLensModel&&ye._codeLensCache.put(je,ye._currentCodeLensModel),ye._oldCodeLensModels.clear(),ve===ye._currentResolveCodeLensSymbolsPromise&&(ye._currentResolveCodeLensSymbolsPromise=void 0)},function(Ee){Object(le.e)(Ee),ve===ye._currentResolveCodeLensSymbolsPromise&&(ye._currentResolveCodeLensSymbolsPromise=void 0)})},Z.ID="css.editor.codeLens",Z=ee([ie(1,A.b),ie(2,Q.a),ie(3,Pe)],Z),Z}();Object(B.h)(ce.ID,ce)},dBaI:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le}),e.d(N,"b",function(){return B});var T=e("N0LK"),le=function(){function z(D,W,x,h){this.startColumn=D,this.endColumn=W,this.className=x,this.type=h}return z._equals=function(D,W){return D.startColumn===W.startColumn&&D.endColumn===W.endColumn&&D.className===W.className&&D.type===W.type},z.equalsArr=function(D,W){var x=D.length,h=W.length;if(x!==h)return!1;for(var y=0;y<x;y++)if(!z._equals(D[y],W[y]))return!1;return!0},z.filter=function(D,W,x,h){if(D.length===0)return[];for(var y=[],w=0,f=0,v=D.length;f<v;f++){var C=D[f],g=C.range;if(g.endLineNumber<W||g.startLineNumber>W)continue;if(g.isEmpty()&&(C.type===0||C.type===3))continue;var u=g.startLineNumber===W?g.startColumn:x,s=g.endLineNumber===W?g.endColumn:h;y[w++]=new z(u,s,C.inlineClassName,C.type)}return y},z.compare=function(D,W){return D.startColumn===W.startColumn?D.endColumn===W.endColumn?D.className<W.className?-1:D.className>W.className?1:0:D.endColumn-W.endColumn:D.startColumn-W.startColumn},z}(),$=function(){function z(D,W,x){this.startOffset=D,this.endOffset=W,this.className=x}return z}(),R=function(){function z(){this.stopOffsets=[],this.classNames=[],this.count=0}return z.prototype.consumeLowerThan=function(D,W,x){for(;this.count>0&&this.stopOffsets[0]<D;){for(var h=0;h+1<this.count&&this.stopOffsets[h]===this.stopOffsets[h+1];)h++;x.push(new $(W,this.stopOffsets[h],this.classNames.join(" "))),W=this.stopOffsets[h]+1,this.stopOffsets.splice(0,h+1),this.classNames.splice(0,h+1),this.count-=h+1}return this.count>0&&W<D&&(x.push(new $(W,D-1,this.classNames.join(" "))),W=D),W},z.prototype.insert=function(D,W){if(this.count===0||this.stopOffsets[this.count-1]<=D)this.stopOffsets.push(D),this.classNames.push(W);else for(var x=0;x<this.count;x++)if(this.stopOffsets[x]>=D){this.stopOffsets.splice(x,0,D),this.classNames.splice(x,0,W);break}this.count++;return},z}(),B=function(){function z(){}return z.normalize=function(D,W){if(W.length===0)return[];for(var x=[],h=new R,y=0,w=0,f=W.length;w<f;w++){var v=W[w],C=v.startColumn,g=v.endColumn,u=v.className;if(C>1){var s=D.charCodeAt(C-2);T.z(s)&&C--}if(g>1){var s=D.charCodeAt(g-2);T.z(s)&&g--}var l=C-1,c=g-2;y=h.consumeLowerThan(l,y,x),h.count===0&&(y=l),h.insert(c,u)}return h.consumeLowerThan(1073741824,y,x),x},z}()},dFcq:function(Lt,N,e){},"dH+W":function(Lt,N,e){"use strict";e.r(N),e.d(N,"DuplicateSelectionAction",function(){return H}),e.d(N,"AbstractSortLinesAction",function(){return Se}),e.d(N,"SortLinesAscendingAction",function(){return Ie}),e.d(N,"SortLinesDescendingAction",function(){return Pe}),e.d(N,"TrimTrailingWhitespaceAction",function(){return Ve}),e.d(N,"DeleteLinesAction",function(){return ke}),e.d(N,"IndentLinesAction",function(){return se}),e.d(N,"InsertLineBeforeAction",function(){return ie}),e.d(N,"InsertLineAfterAction",function(){return q}),e.d(N,"AbstractDeleteAllToBoundaryAction",function(){return ce}),e.d(N,"DeleteAllLeftAction",function(){return Z}),e.d(N,"DeleteAllRightAction",function(){return ye}),e.d(N,"JoinLinesAction",function(){return je}),e.d(N,"TransposeAction",function(){return Ge}),e.d(N,"AbstractCaseAction",function(){return ue}),e.d(N,"UpperCaseAction",function(){return ve}),e.d(N,"LowerCaseAction",function(){return Ee}),e.d(N,"TitleCaseAction",function(){return xe});var T=e("3/fG"),le=e("/kV6"),$=e("1YUG"),R=e("sswD"),B=e("LCkn"),z=e("N0LK"),D=e("0/Sa"),W=e("aokT"),x=function(){function Ce(he,J){this._selection=he,this._cursors=J,this._selectionId=null}return Ce.prototype.getEditOperations=function(he,J){for(var b=h(he,this._cursors),F=0,re=b.length;F<re;F++){var ne=b[F];J.addEditOperation(ne.range,ne.text)}this._selectionId=J.trackSelection(this._selection)},Ce.prototype.computeCursorState=function(he,J){return J.getTrackedSelection(this._selectionId)},Ce}();function h(Ce,he){he.sort(function(Rt,Dt){return Rt.lineNumber===Dt.lineNumber?Rt.column-Dt.column:Rt.lineNumber-Dt.lineNumber});for(var J=he.length-2;J>=0;J--)he[J].lineNumber===he[J+1].lineNumber&&he.splice(J,1);for(var b=[],F=0,re=0,ne=he.length,fe=1,Oe=Ce.getLineCount();fe<=Oe;fe++){var Me=Ce.getLineContent(fe),Ue=Me.length+1,Je=0;if(re<ne&&he[re].lineNumber===fe&&(Je=he[re].column,re++,Je===Ue))continue;if(Me.length===0)continue;var nt=z.D(Me),vt=0;if(nt===-1)vt=1;else if(nt!==Me.length-1)vt=nt+2;else continue;vt=Math.max(Je,vt),b[F++]=D.a.delete(new W.a(fe,vt,fe,Ue))}return b}var y=e("GR/f"),w=e("cGHE"),f=e("gCVg"),v=e("wQH0"),C=function(){function Ce(he,J){this._selection=he,this._isCopyingDown=J,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}return Ce.prototype.getEditOperations=function(he,J){var b=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,b.startLineNumber<b.endLineNumber&&b.endColumn===1&&(this._endLineNumberDelta=1,b=b.setEndPosition(b.endLineNumber-1,he.getLineMaxColumn(b.endLineNumber-1)));for(var F=[],re=b.startLineNumber;re<=b.endLineNumber;re++)F.push(he.getLineContent(re));var ne=F.join(`
`);ne===""&&(this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++)),this._isCopyingDown?J.addEditOperation(new W.a(b.startLineNumber,1,b.startLineNumber,1),ne+`
`):J.addEditOperation(new W.a(b.endLineNumber,he.getLineMaxColumn(b.endLineNumber),b.endLineNumber,he.getLineMaxColumn(b.endLineNumber)),`
`+ne),this._selectionId=J.trackSelection(b),this._selectionDirection=this._selection.getDirection()},Ce.prototype.computeCursorState=function(he,J){var b=J.getTrackedSelection(this._selectionId);if(this._startLineNumberDelta!==0||this._endLineNumberDelta!==0){var F=b.startLineNumber,re=b.startColumn,ne=b.endLineNumber,fe=b.endColumn;this._startLineNumberDelta!==0&&(F=F+this._startLineNumberDelta,re=1),this._endLineNumberDelta!==0&&(ne=ne+this._endLineNumberDelta,fe=1),b=f.a.createWithDirection(F,re,ne,fe,this._selectionDirection)}return b},Ce}(),g=e("zN7H"),u=e("KDc4"),s=e("cMvZ");function l(Ce,he){for(var J=0,b=0;b<Ce.length;b++)Ce.charAt(b)===" "?J+=he:J++;return J}function c(Ce,he,J){Ce=Ce<0?0:Ce;var b="";if(!J){var F=Math.floor(Ce/he);Ce=Ce%he;for(var re=0;re<F;re++)b+=" "}for(var re=0;re<Ce;re++)b+=" ";return b}var p=function(){function Ce(he,J,b){this._selection=he,this._isMovingDown=J,this._autoIndent=b,this._selectionId=null,this._moveEndLineSelectionShrink=!1}return Ce.prototype.getEditOperations=function(he,J){var b=he.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===b){this._selectionId=J.trackSelection(this._selection);return}if(!this._isMovingDown&&this._selection.startLineNumber===1){this._selectionId=J.trackSelection(this._selection);return}this._moveEndPositionDown=!1;var F=this._selection;F.startLineNumber<F.endLineNumber&&F.endColumn===1&&(this._moveEndPositionDown=!0,F=F.setEndPosition(F.endLineNumber-1,he.getLineMaxColumn(F.endLineNumber-1)));var re=he.getOptions(),ne=re.tabSize,fe=re.indentSize,Oe=re.insertSpaces,Me=this.buildIndentConverter(ne,fe,Oe),Ue={getLineTokens:function(Ct){return he.getLineTokens(Ct)},getLanguageIdentifier:function(){return he.getLanguageIdentifier()},getLanguageIdAtPosition:function(Ct,ht){return he.getLanguageIdAtPosition(Ct,ht)},getLineContent:null};if(F.startLineNumber===F.endLineNumber&&he.getLineMaxColumn(F.startLineNumber)===1){var Je=F.startLineNumber,nt=this._isMovingDown?Je+1:Je-1;he.getLineMaxColumn(nt)===1?J.addEditOperation(new W.a(1,1,1,1),null):(J.addEditOperation(new W.a(Je,1,Je,1),he.getLineContent(nt)),J.addEditOperation(new W.a(nt,1,nt,he.getLineMaxColumn(nt)),null)),F=new f.a(nt,1,nt,1)}else{var vt,Rt=void 0;if(this._isMovingDown){vt=F.endLineNumber+1,Rt=he.getLineContent(vt),J.addEditOperation(new W.a(vt-1,he.getLineMaxColumn(vt-1),vt,he.getLineMaxColumn(vt)),null);var Dt=Rt;if(this.shouldAutoIndent(he,F)){var Kt=this.matchEnterRule(he,Me,ne,vt,F.startLineNumber-1);if(Kt!==null){var ao=z.t(he.getLineContent(vt)),lo=Kt+l(ao,ne),so=c(lo,ne,Oe);Dt=so+this.trimLeft(Rt)}else{Ue.getLineContent=function(Ct){return Ct===F.startLineNumber?he.getLineContent(vt):he.getLineContent(Ct)};var jt=s.a.getGoodIndentForLine(this._autoIndent,Ue,he.getLanguageIdAtPosition(vt,1),F.startLineNumber,Me);if(jt!==null){var ao=z.t(he.getLineContent(vt)),lo=l(jt,ne),pt=l(ao,ne);if(lo!==pt){var so=c(lo,ne,Oe);Dt=so+this.trimLeft(Rt)}}}J.addEditOperation(new W.a(F.startLineNumber,1,F.startLineNumber,1),Dt+`
`);var gt=this.matchEnterRule(he,Me,ne,F.startLineNumber,F.startLineNumber,Dt);if(gt!==null)gt!==0&&this.getIndentEditsOfMovingBlock(he,J,F,ne,Oe,gt);else{Ue.getLineContent=function(Ct){return Ct===F.startLineNumber?Dt:Ct>=F.startLineNumber+1&&Ct<=F.endLineNumber+1?he.getLineContent(Ct-1):he.getLineContent(Ct)};var Tt=s.a.getGoodIndentForLine(this._autoIndent,Ue,he.getLanguageIdAtPosition(vt,1),F.startLineNumber+1,Me);if(Tt!==null){var ao=z.t(he.getLineContent(F.startLineNumber)),lo=l(Tt,ne),pt=l(ao,ne);if(lo!==pt){var it=lo-pt;this.getIndentEditsOfMovingBlock(he,J,F,ne,Oe,it)}}}}else J.addEditOperation(new W.a(F.startLineNumber,1,F.startLineNumber,1),Dt+`
`)}else if(vt=F.startLineNumber-1,Rt=he.getLineContent(vt),J.addEditOperation(new W.a(vt,1,vt+1,1),null),J.addEditOperation(new W.a(F.endLineNumber,he.getLineMaxColumn(F.endLineNumber),F.endLineNumber,he.getLineMaxColumn(F.endLineNumber)),`
`+Rt),this.shouldAutoIndent(he,F)){Ue.getLineContent=function(ht){return ht===vt?he.getLineContent(F.startLineNumber):he.getLineContent(ht)};var gt=this.matchEnterRule(he,Me,ne,F.startLineNumber,F.startLineNumber-2);if(gt!==null)gt!==0&&this.getIndentEditsOfMovingBlock(he,J,F,ne,Oe,gt);else{var et=s.a.getGoodIndentForLine(this._autoIndent,Ue,he.getLanguageIdAtPosition(F.startLineNumber,1),vt,Me);if(et!==null){var ut=z.t(he.getLineContent(F.startLineNumber)),lo=l(et,ne),pt=l(ut,ne);if(lo!==pt){var it=lo-pt;this.getIndentEditsOfMovingBlock(he,J,F,ne,Oe,it)}}}}}this._selectionId=J.trackSelection(F)},Ce.prototype.buildIndentConverter=function(he,J,b){return{shiftIndent:function(F){return g.a.shiftIndent(F,F.length+1,he,J,b)},unshiftIndent:function(F){return g.a.unshiftIndent(F,F.length+1,he,J,b)}}},Ce.prototype.matchEnterRule=function(he,J,b,F,re,ne){for(var fe=re;fe>=1;){var Oe=void 0;fe===re&&ne!==void 0?Oe=ne:Oe=he.getLineContent(fe);var Me=z.D(Oe);if(Me>=0)break;fe--}if(fe<1||F>he.getLineCount())return null;var Ue=he.getLineMaxColumn(fe),Je=s.a.getEnterAction(this._autoIndent,he,new W.a(fe,Ue,fe,Ue));if(Je){var nt=Je.indentation;Je.indentAction===u.a.None||Je.indentAction===u.a.Indent?nt=Je.indentation+Je.appendText:Je.indentAction===u.a.IndentOutdent?nt=Je.indentation:Je.indentAction===u.a.Outdent&&(nt=J.unshiftIndent(Je.indentation)+Je.appendText);var vt=he.getLineContent(F);if(this.trimLeft(vt).indexOf(this.trimLeft(nt))>=0){var Rt=z.t(he.getLineContent(F)),Dt=z.t(nt),Kt=s.a.getIndentMetadata(he,F);Kt!==null&&Kt&2&&(Dt=J.unshiftIndent(Dt));var ao=l(Dt,b),lo=l(Rt,b);return ao-lo}}return null},Ce.prototype.trimLeft=function(he){return he.replace(/^\s+/,"")},Ce.prototype.shouldAutoIndent=function(he,J){if(this._autoIndent<4)return!1;if(!he.isCheapToTokenize(J.startLineNumber))return!1;var b=he.getLanguageIdAtPosition(J.startLineNumber,1),F=he.getLanguageIdAtPosition(J.endLineNumber,1);return b!==F?!1:!(s.a.getIndentRulesSupport(b)===null)},Ce.prototype.getIndentEditsOfMovingBlock=function(he,J,b,F,re,ne){for(var fe=b.startLineNumber;fe<=b.endLineNumber;fe++){var Oe=he.getLineContent(fe),Me=z.t(Oe),Ue=l(Me,F),Je=Ue+ne,nt=c(Je,F,re);nt!==Me&&(J.addEditOperation(new W.a(fe,1,fe,Me.length+1),nt),fe===b.endLineNumber&&b.endColumn<=Me.length+1&&nt===""&&(this._moveEndLineSelectionShrink=!0))}},Ce.prototype.computeCursorState=function(he,J){var b=J.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(b=b.setEndPosition(b.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&b.startLineNumber<b.endLineNumber&&(b=b.setEndPosition(b.endLineNumber,2)),b},Ce}(),_=function(){function Ce(he,J){this.selection=he,this.descending=J,this.selectionId=null}return Ce.getCollator=function(){return Ce._COLLATOR||(Ce._COLLATOR=new Intl.Collator),Ce._COLLATOR},Ce.prototype.getEditOperations=function(he,J){var b=I(he,this.selection,this.descending);b&&J.addEditOperation(b.range,b.text),this.selectionId=J.trackSelection(this.selection)},Ce.prototype.computeCursorState=function(he,J){return J.getTrackedSelection(this.selectionId)},Ce.canRun=function(he,J,b){if(he===null)return!1;var F=L(he,J,b);if(!F)return!1;for(var re=0,ne=F.before.length;re<ne;re++)if(F.before[re]!==F.after[re])return!0;return!1},Ce._COLLATOR=null,Ce}();function L(Ce,he,J){var b=he.startLineNumber,F=he.endLineNumber;if(he.endColumn===1&&F--,b>=F)return null;for(var re=[],ne=b;ne<=F;ne++)re.push(Ce.getLineContent(ne));var fe=re.slice(0);return fe.sort(_.getCollator().compare),J===!0&&(fe=fe.reverse()),{startLineNumber:b,endLineNumber:F,before:re,after:fe}}function I(Ce,he,J){var b=L(Ce,he,J);return b?D.a.replace(new W.a(b.startLineNumber,1,b.endLineNumber,Ce.getLineMaxColumn(b.endLineNumber)),b.after.join(`
`)):null}var P=function(){var Ce=function(he,J){return Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,F){b.__proto__=F}||function(b,F){for(var re in F)F.hasOwnProperty(re)&&(b[re]=F[re])},Ce(he,J)};return function(he,J){Ce(he,J);function b(){this.constructor=he}he.prototype=J===null?Object.create(J):(b.prototype=J.prototype,new b)}}(),A=function(Ce){P(he,Ce);function he(J,b){var F=Ce.call(this,b)||this;return F.down=J,F}return he.prototype.run=function(J,b){for(var F=[],re=b.getSelections()||[],ne=0,fe=re;ne<fe.length;ne++){var Oe=fe[ne];F.push(new C(Oe,this.down))}b.pushUndoStop(),b.executeCommands(this.id,F),b.pushUndoStop()},he}(R.b),Q=function(Ce){P(he,Ce);function he(){return Ce.call(this,!1,{id:"editor.action.copyLinesUpAction",label:T.a("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:512|1024|16,linux:{primary:2048|512|1024|16},weight:100},menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})||this}return he}(A),K=function(Ce){P(he,Ce);function he(){return Ce.call(this,!0,{id:"editor.action.copyLinesDownAction",label:T.a("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:512|1024|18,linux:{primary:2048|512|1024|18},weight:100},menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})||this}return he}(A),H=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:"editor.action.duplicateSelection",label:T.a("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:v.a.writable,menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})||this}return he.prototype.run=function(J,b,F){if(!b.hasModel())return;for(var re=[],ne=b.getSelections(),fe=b.getModel(),Oe=0,Me=ne;Oe<Me.length;Oe++){var Ue=Me[Oe];if(Ue.isEmpty())re.push(new C(Ue,!0));else{var Je=new f.a(Ue.endLineNumber,Ue.endColumn,Ue.endLineNumber,Ue.endColumn);re.push(new B.c(Je,fe.getValueInRange(Ue)))}}b.pushUndoStop(),b.executeCommands(this.id,re),b.pushUndoStop()},he}(R.b),V=function(Ce){P(he,Ce);function he(J,b){var F=Ce.call(this,b)||this;return F.down=J,F}return he.prototype.run=function(J,b){for(var F=[],re=b.getSelections()||[],ne=b.getOption(8),fe=0,Oe=re;fe<Oe.length;fe++){var Me=Oe[fe];F.push(new p(Me,this.down,ne))}b.pushUndoStop(),b.executeCommands(this.id,F),b.pushUndoStop()},he}(R.b),de=function(Ce){P(he,Ce);function he(){return Ce.call(this,!1,{id:"editor.action.moveLinesUpAction",label:T.a("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:512|16,linux:{primary:512|16},weight:100},menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})||this}return he}(V),_e=function(Ce){P(he,Ce);function he(){return Ce.call(this,!0,{id:"editor.action.moveLinesDownAction",label:T.a("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:512|18,linux:{primary:512|18},weight:100},menuOpts:{menuId:25,group:"2_line",title:T.a({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})||this}return he}(V),Se=function(Ce){P(he,Ce);function he(J,b){var F=Ce.call(this,b)||this;return F.descending=J,F}return he.prototype.run=function(J,b){for(var F=b.getSelections()||[],re=0,ne=F;re<ne.length;re++){var fe=ne[re];if(!_.canRun(b.getModel(),fe,this.descending))return}for(var Oe=[],Me=0,Ue=F.length;Me<Ue;Me++)Oe[Me]=new _(F[Me],this.descending);b.pushUndoStop(),b.executeCommands(this.id,Oe),b.pushUndoStop()},he}(R.b),Ie=function(Ce){P(he,Ce);function he(){return Ce.call(this,!1,{id:"editor.action.sortLinesAscending",label:T.a("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:v.a.writable})||this}return he}(Se),Pe=function(Ce){P(he,Ce);function he(){return Ce.call(this,!0,{id:"editor.action.sortLinesDescending",label:T.a("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:v.a.writable})||this}return he}(Se),Ve=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:he.ID,label:T.a("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:Object(le.a)(2048|41,2048|54),weight:100}})||this}return he.prototype.run=function(J,b,F){var re=[];F.reason==="auto-save"&&(re=(b.getSelections()||[]).map(function(Oe){return new w.a(Oe.positionLineNumber,Oe.positionColumn)}));var ne=b.getSelection();if(ne===null)return;var fe=new x(ne,re);b.pushUndoStop(),b.executeCommands(this.id,[fe]),b.pushUndoStop()},he.ID="editor.action.trimTrailingWhitespace",he}(R.b),ke=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:"editor.action.deleteLines",label:T.a("lines.delete","Delete Line"),alias:"Delete Line",precondition:v.a.writable,kbOpts:{kbExpr:v.a.textInputFocus,primary:2048|1024|41,weight:100}})||this}return he.prototype.run=function(J,b){if(!b.hasModel())return;var F=this._getLinesToRemove(b),re=b.getModel();if(re.getLineCount()===1&&re.getLineMaxColumn(1)===1)return;for(var ne=0,fe=[],Oe=[],Me=0,Ue=F.length;Me<Ue;Me++){var Je=F[Me],nt=Je.startLineNumber,vt=Je.endLineNumber,Rt=1,Dt=re.getLineMaxColumn(vt);vt<re.getLineCount()?(vt+=1,Dt=1):nt>1&&(nt-=1,Rt=re.getLineMaxColumn(nt)),fe.push(D.a.replace(new f.a(nt,Rt,vt,Dt),"")),Oe.push(new f.a(nt-ne,Je.positionColumn,nt-ne,Je.positionColumn)),ne+=Je.endLineNumber-Je.startLineNumber+1}b.pushUndoStop(),b.executeEdits(this.id,fe,Oe),b.pushUndoStop()},he.prototype._getLinesToRemove=function(J){var b=J.getSelections().map(function(fe){var Oe=fe.endLineNumber;return fe.startLineNumber<fe.endLineNumber&&fe.endColumn===1&&(Oe-=1),{startLineNumber:fe.startLineNumber,selectionStartColumn:fe.selectionStartColumn,endLineNumber:Oe,positionColumn:fe.positionColumn}});b.sort(function(fe,Oe){return fe.startLineNumber===Oe.startLineNumber?fe.endLineNumber-Oe.endLineNumber:fe.startLineNumber-Oe.startLineNumber});for(var F=[],re=b[0],ne=1;ne<b.length;ne++)re.endLineNumber+1>=b[ne].startLineNumber?re.endLineNumber=b[ne].endLineNumber:(F.push(re),re=b[ne]);return F.push(re),F},he}(R.b),se=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:"editor.action.indentLines",label:T.a("lines.indent","Indent Line"),alias:"Indent Line",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|89,weight:100}})||this}return he.prototype.run=function(J,b){var F=b._getCursors();if(!F)return;b.pushUndoStop(),b.executeCommands(this.id,y.a.indent(F.context.config,b.getModel(),b.getSelections())),b.pushUndoStop()},he}(R.b),ee=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:"editor.action.outdentLines",label:T.a("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|87,weight:100}})||this}return he.prototype.run=function(J,b){$.CoreEditingCommands.Outdent.runEditorCommand(J,b,null)},he}(R.b),ie=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:"editor.action.insertLineBefore",label:T.a("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|1024|3,weight:100}})||this}return he.prototype.run=function(J,b){var F=b._getCursors();if(!F)return;b.pushUndoStop(),b.executeCommands(this.id,y.a.lineInsertBefore(F.context.config,b.getModel(),b.getSelections()))},he}(R.b),q=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:"editor.action.insertLineAfter",label:T.a("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|3,weight:100}})||this}return he.prototype.run=function(J,b){var F=b._getCursors();if(!F)return;b.pushUndoStop(),b.executeCommands(this.id,y.a.lineInsertAfter(F.context.config,b.getModel(),b.getSelections()))},he}(R.b),ce=function(Ce){P(he,Ce);function he(){return Ce!==null&&Ce.apply(this,arguments)||this}return he.prototype.run=function(J,b){if(!b.hasModel())return;for(var F=b.getSelection(),re=this._getRangesToDelete(b),ne=[],fe=0,Oe=re.length-1;fe<Oe;fe++){var Me=re[fe],Ue=re[fe+1];W.a.intersectRanges(Me,Ue)===null?ne.push(Me):re[fe+1]=W.a.plusRange(Me,Ue)}ne.push(re[re.length-1]);var Je=this._getEndCursorState(F,ne),nt=ne.map(function(vt){return D.a.replace(vt,"")});b.pushUndoStop(),b.executeEdits(this.id,nt,Je),b.pushUndoStop()},he}(R.b),Z=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:"deleteAllLeft",label:T.a("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:v.a.writable,kbOpts:{kbExpr:v.a.textInputFocus,primary:0,mac:{primary:2048|1},weight:100}})||this}return he.prototype._getEndCursorState=function(J,b){var F=null,re=[],ne=0;return b.forEach(function(fe){var Oe;if(fe.endColumn===1&&ne>0){var Me=fe.startLineNumber-ne;Oe=new f.a(Me,fe.startColumn,Me,fe.startColumn)}else Oe=new f.a(fe.startLineNumber,fe.startColumn,fe.startLineNumber,fe.startColumn);ne+=fe.endLineNumber-fe.startLineNumber,fe.intersectRanges(J)?F=Oe:re.push(Oe)}),F&&re.unshift(F),re},he.prototype._getRangesToDelete=function(J){var b=J.getSelections();if(b===null)return[];var F=b,re=J.getModel();return re===null?[]:(F.sort(W.a.compareRangesUsingStarts),F=F.map(function(ne){if(ne.isEmpty())if(ne.startColumn===1){var fe=Math.max(1,ne.startLineNumber-1),Oe=ne.startLineNumber===1?1:re.getLineContent(fe).length+1;return new W.a(fe,Oe,ne.startLineNumber,1)}else return new W.a(ne.startLineNumber,1,ne.startLineNumber,ne.startColumn);else return new W.a(ne.startLineNumber,1,ne.endLineNumber,ne.endColumn)}),F)},he}(ce),ye=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:"deleteAllRight",label:T.a("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:v.a.writable,kbOpts:{kbExpr:v.a.textInputFocus,primary:0,mac:{primary:256|41,secondary:[2048|20]},weight:100}})||this}return he.prototype._getEndCursorState=function(J,b){for(var F=null,re=[],ne=0,fe=b.length,Oe=0;ne<fe;ne++){var Me=b[ne],Ue=new f.a(Me.startLineNumber-Oe,Me.startColumn,Me.startLineNumber-Oe,Me.startColumn);Me.intersectRanges(J)?F=Ue:re.push(Ue)}return F&&re.unshift(F),re},he.prototype._getRangesToDelete=function(J){var b=J.getModel();if(b===null)return[];var F=J.getSelections();if(F===null)return[];var re=F.map(function(ne){if(ne.isEmpty()){var fe=b.getLineMaxColumn(ne.startLineNumber);return ne.startColumn===fe?new W.a(ne.startLineNumber,ne.startColumn,ne.startLineNumber+1,1):new W.a(ne.startLineNumber,ne.startColumn,ne.startLineNumber,fe)}return ne});return re.sort(W.a.compareRangesUsingStarts),re},he}(ce),je=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:"editor.action.joinLines",label:T.a("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:0,mac:{primary:256|40},weight:100}})||this}return he.prototype.run=function(J,b){var F=b.getSelections();if(F===null)return;var re=b.getSelection();if(re===null)return;F.sort(W.a.compareRangesUsingStarts);var ne=[],fe=F.reduce(function(Nt,bt){return Nt.isEmpty()?Nt.endLineNumber===bt.startLineNumber?(re.equalsSelection(Nt)&&(re=bt),bt):bt.startLineNumber>Nt.endLineNumber+1?(ne.push(Nt),bt):new f.a(Nt.startLineNumber,Nt.startColumn,bt.endLineNumber,bt.endColumn):bt.startLineNumber>Nt.endLineNumber?(ne.push(Nt),bt):new f.a(Nt.startLineNumber,Nt.startColumn,bt.endLineNumber,bt.endColumn)});ne.push(fe);var Oe=b.getModel();if(Oe===null)return;for(var Me=[],Ue=[],Je=re,nt=0,vt=0,Rt=ne.length;vt<Rt;vt++){var Dt=ne[vt],Kt=Dt.startLineNumber,ao=1,lo=0,so=void 0,jt=void 0,pt=Oe.getLineContent(Dt.endLineNumber).length-Dt.endColumn;if(Dt.isEmpty()||Dt.startLineNumber===Dt.endLineNumber){var gt=Dt.getStartPosition();gt.lineNumber<Oe.getLineCount()?(so=Kt+1,jt=Oe.getLineMaxColumn(so)):(so=gt.lineNumber,jt=Oe.getLineMaxColumn(gt.lineNumber))}else so=Dt.endLineNumber,jt=Oe.getLineMaxColumn(so);for(var Tt=Oe.getLineContent(Kt),it=Kt+1;it<=so;it++){var et=Oe.getLineContent(it),ut=Oe.getLineFirstNonWhitespaceColumn(it);if(ut>=1){var Ct=!0;Tt===""&&(Ct=!1),Ct&&(Tt.charAt(Tt.length-1)===" "||Tt.charAt(Tt.length-1)===" ")&&(Ct=!1,Tt=Tt.replace(/[\s\uFEFF\xA0]+$/g," "));var ht=et.substr(ut-1);Tt+=(Ct?" ":"")+ht,Ct?lo=ht.length+1:lo=ht.length}else lo=0}var Et=new W.a(Kt,ao,so,jt);if(!Et.isEmpty()){var Yt=void 0;Dt.isEmpty()?(Me.push(D.a.replace(Et,Tt)),Yt=new f.a(Et.startLineNumber-nt,Tt.length-lo+1,Kt-nt,Tt.length-lo+1)):Dt.startLineNumber===Dt.endLineNumber?(Me.push(D.a.replace(Et,Tt)),Yt=new f.a(Dt.startLineNumber-nt,Dt.startColumn,Dt.endLineNumber-nt,Dt.endColumn)):(Me.push(D.a.replace(Et,Tt)),Yt=new f.a(Dt.startLineNumber-nt,Dt.startColumn,Dt.startLineNumber-nt,Tt.length-pt)),W.a.intersectRanges(Et,re)!==null?Je=Yt:Ue.push(Yt)}nt+=Et.endLineNumber-Et.startLineNumber}Ue.unshift(Je),b.pushUndoStop(),b.executeEdits(this.id,Me,Ue),b.pushUndoStop()},he}(R.b),Ge=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:"editor.action.transpose",label:T.a("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:v.a.writable})||this}return he.prototype.run=function(J,b){var F=b.getSelections();if(F===null)return;var re=b.getModel();if(re===null)return;for(var ne=[],fe=0,Oe=F.length;fe<Oe;fe++){var Me=F[fe];if(!Me.isEmpty())continue;var Ue=Me.getStartPosition(),Je=re.getLineMaxColumn(Ue.lineNumber);if(Ue.column>=Je){if(Ue.lineNumber===re.getLineCount())continue;var nt=new W.a(Ue.lineNumber,Math.max(1,Ue.column-1),Ue.lineNumber+1,1),vt=re.getValueInRange(nt).split("").reverse().join("");ne.push(new B.a(new f.a(Ue.lineNumber,Math.max(1,Ue.column-1),Ue.lineNumber+1,1),vt))}else{var nt=new W.a(Ue.lineNumber,Math.max(1,Ue.column-1),Ue.lineNumber,Ue.column+1),vt=re.getValueInRange(nt).split("").reverse().join("");ne.push(new B.b(nt,vt,new f.a(Ue.lineNumber,Ue.column+1,Ue.lineNumber,Ue.column+1)))}}b.pushUndoStop(),b.executeCommands(this.id,ne),b.pushUndoStop()},he}(R.b),ue=function(Ce){P(he,Ce);function he(){return Ce!==null&&Ce.apply(this,arguments)||this}return he.prototype.run=function(J,b){var F=b.getSelections();if(F===null)return;var re=b.getModel();if(re===null)return;for(var ne=b.getOption(96),fe=[],Oe=0,Me=F.length;Oe<Me;Oe++){var Ue=F[Oe];if(Ue.isEmpty()){var Je=Ue.getStartPosition(),nt=re.getWordAtPosition(Je);if(!nt)continue;var vt=new W.a(Je.lineNumber,nt.startColumn,Je.lineNumber,nt.endColumn),Rt=re.getValueInRange(vt);fe.push(new B.b(vt,this._modifyText(Rt,ne),new f.a(Je.lineNumber,Je.column,Je.lineNumber,Je.column)))}else{var Rt=re.getValueInRange(Ue);fe.push(new B.b(Ue,this._modifyText(Rt,ne),Ue))}}b.pushUndoStop(),b.executeCommands(this.id,fe),b.pushUndoStop()},he}(R.b),ve=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:"editor.action.transformToUppercase",label:T.a("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:v.a.writable})||this}return he.prototype._modifyText=function(J,b){return J.toLocaleUpperCase()},he}(ue),Ee=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:"editor.action.transformToLowercase",label:T.a("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:v.a.writable})||this}return he.prototype._modifyText=function(J,b){return J.toLocaleLowerCase()},he}(ue),xe=function(Ce){P(he,Ce);function he(){return Ce.call(this,{id:"editor.action.transformToTitlecase",label:T.a("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:v.a.writable})||this}return he.prototype._modifyText=function(J,b){for(var F=`\r
`+b,re=F.split(""),ne="",fe=!0,Oe=0;Oe<J.length;Oe++){var Me=J[Oe];re.indexOf(Me)>=0?(fe=!0,ne+=Me):fe?(fe=!1,ne+=Me.toLocaleUpperCase()):ne+=Me.toLocaleLowerCase()}return ne},he}(ue);Object(R.f)(Q),Object(R.f)(K),Object(R.f)(H),Object(R.f)(de),Object(R.f)(_e),Object(R.f)(Ie),Object(R.f)(Pe),Object(R.f)(Ve),Object(R.f)(ke),Object(R.f)(se),Object(R.f)(ee),Object(R.f)(ie),Object(R.f)(q),Object(R.f)(Z),Object(R.f)(ye),Object(R.f)(je),Object(R.f)(Ge),Object(R.f)(ve),Object(R.f)(Ee),Object(R.f)(xe)},dgXF:function(Lt,N,e){"use strict";e.r(N),e.d(N,"FoldingController",function(){return F}),e.d(N,"foldBackgroundBackground",function(){return so});var T=e("CjOT"),le=e("3/fG"),$=e("746U"),R=e("N0LK"),B=e("X+cX"),z=e("/kV6"),D=e("pmY6"),W=e("sswD"),x=e("MI8n"),h=65535,y=16777215,w=4278190080,f=function(){function jt(pt,gt,Tt){if(pt.length!==gt.length||pt.length>h)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=Tt,this._parentsComputed=!1}return jt.prototype.ensureParentIndices=function(){var pt=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var gt=[],Tt=function(Et,Yt){var Nt=gt[gt.length-1];return pt.getStartLineNumber(Nt)<=Et&&pt.getEndLineNumber(Nt)>=Yt},it=0,et=this._startIndexes.length;it<et;it++){var ut=this._startIndexes[it],Ct=this._endIndexes[it];if(ut>y||Ct>y)throw new Error("startLineNumber or endLineNumber must not exceed "+y);for(;gt.length>0&&!Tt(ut,Ct);)gt.pop();var ht=gt.length>0?gt[gt.length-1]:-1;gt.push(it),this._startIndexes[it]=ut+((ht&255)<<24),this._endIndexes[it]=Ct+((ht&65280)<<16)}}},Object.defineProperty(jt.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),jt.prototype.getStartLineNumber=function(pt){return this._startIndexes[pt]&y},jt.prototype.getEndLineNumber=function(pt){return this._endIndexes[pt]&y},jt.prototype.getType=function(pt){return this._types?this._types[pt]:void 0},jt.prototype.hasTypes=function(){return!!this._types},jt.prototype.isCollapsed=function(pt){var gt=pt/32|0,Tt=pt%32;return(this._collapseStates[gt]&1<<Tt)!==0},jt.prototype.setCollapsed=function(pt,gt){var Tt=pt/32|0,it=pt%32,et=this._collapseStates[Tt];gt?this._collapseStates[Tt]=et|1<<it:this._collapseStates[Tt]=et&~(1<<it)},jt.prototype.toRegion=function(pt){return new v(this,pt)},jt.prototype.getParentIndex=function(pt){this.ensureParentIndices();var gt=((this._startIndexes[pt]&w)>>>24)+((this._endIndexes[pt]&w)>>>16);return gt===h?-1:gt},jt.prototype.contains=function(pt,gt){return this.getStartLineNumber(pt)<=gt&&this.getEndLineNumber(pt)>=gt},jt.prototype.findIndex=function(pt){var gt=0,Tt=this._startIndexes.length;if(Tt===0)return-1;for(;gt<Tt;){var it=Math.floor((gt+Tt)/2);pt<this.getStartLineNumber(it)?Tt=it:gt=it+1}return gt-1},jt.prototype.findRange=function(pt){var gt=this.findIndex(pt);if(gt>=0){var Tt=this.getEndLineNumber(gt);if(Tt>=pt)return gt;for(gt=this.getParentIndex(gt);gt!==-1;){if(this.contains(gt,pt))return gt;gt=this.getParentIndex(gt)}}return-1},jt.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(", ")},jt}(),v=function(){function jt(pt,gt){this.ranges=pt,this.index=gt}return Object.defineProperty(jt.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0}),jt.prototype.containedBy=function(pt){return pt.startLineNumber<=this.startLineNumber&&pt.endLineNumber>=this.endLineNumber},jt.prototype.containsLine=function(pt){return this.startLineNumber<=pt&&pt<=this.endLineNumber},jt}(),C=function(){function jt(pt,gt){this._updateEventEmitter=new x.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=pt,this._decorationProvider=gt,this._regions=new f(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}return Object.defineProperty(jt.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),jt.prototype.toggleCollapseState=function(pt){var gt=this;if(!pt.length)return;var Tt={};this._decorationProvider.changeDecorations(function(it){for(var et=0,ut=pt;et<ut.length;et++){var Ct=ut[et],ht=Ct.regionIndex,Et=gt._editorDecorationIds[ht];if(Et&&!Tt[Et]){Tt[Et]=!0;var Yt=!gt._regions.isCollapsed(ht);gt._regions.setCollapsed(ht,Yt),it.changeDecorationOptions(Et,gt._decorationProvider.getDecorationOption(Yt))}}}),this._updateEventEmitter.fire({model:this,collapseStateChanged:pt})},jt.prototype.update=function(pt,gt){var Tt=this;gt===void 0&&(gt=[]);for(var it=[],et=function(Ye,ze){for(var Ke=0,ge=gt;Ke<ge.length;Ke++){var G=ge[Ke];if(Ye<G&&G<=ze)return!0}return!1},ut=function(Ye,ze){var Ke=pt.getStartLineNumber(Ye);ze&&et(Ke,pt.getEndLineNumber(Ye))&&(ze=!1),pt.setCollapsed(Ye,ze);var ge=Tt._textModel.getLineMaxColumn(Ke),G={startLineNumber:Ke,startColumn:ge,endLineNumber:Ke,endColumn:ge};it.push({range:G,options:Tt._decorationProvider.getDecorationOption(ze)})},Ct=0,ht=function(){for(;Ct<Tt._regions.length;){var Ye=Tt._regions.isCollapsed(Ct);if(Ct++,Ye)return Ct-1}return-1},Et=0,Yt=ht();Yt!==-1&&Et<pt.length;){var Nt=this._textModel.getDecorationRange(this._editorDecorationIds[Yt]);if(Nt){var bt=Nt.startLineNumber;if(this._textModel.getLineMaxColumn(bt)===Nt.startColumn)for(;Et<pt.length;){var $e=pt.getStartLineNumber(Et);if(bt>=$e)ut(Et,bt===$e),Et++;else break}}Yt=ht()}for(;Et<pt.length;)ut(Et,!1),Et++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,it),this._regions=pt,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})},jt.prototype.getMemento=function(){for(var pt=[],gt=0;gt<this._regions.length;gt++)if(this._regions.isCollapsed(gt)){var Tt=this._textModel.getDecorationRange(this._editorDecorationIds[gt]);if(Tt){var it=Tt.startLineNumber,et=Tt.endLineNumber+this._regions.getEndLineNumber(gt)-this._regions.getStartLineNumber(gt);pt.push({startLineNumber:it,endLineNumber:et})}}return pt.length>0?pt:void 0},jt.prototype.applyMemento=function(pt){if(!Array.isArray(pt))return;for(var gt=[],Tt=0,it=pt;Tt<it.length;Tt++){var et=it[Tt],ut=this.getRegionAtLine(et.startLineNumber);ut&&!ut.isCollapsed&&gt.push(ut)}this.toggleCollapseState(gt)},jt.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])},jt.prototype.getAllRegionsAtLine=function(pt,gt){var Tt=[];if(this._regions)for(var it=this._regions.findRange(pt),et=1;it>=0;){var ut=this._regions.toRegion(it);(!gt||gt(ut,et))&&Tt.push(ut),et++,it=ut.parentIndex}return Tt},jt.prototype.getRegionAtLine=function(pt){if(this._regions){var gt=this._regions.findRange(pt);if(gt>=0)return this._regions.toRegion(gt)}return null},jt.prototype.getRegionsInside=function(pt,gt){var Tt=[],it=pt?pt.regionIndex+1:0,et=pt?pt.endLineNumber:Number.MAX_VALUE;if(gt&&gt.length===2)for(var ut=[],Ct=it,ht=this._regions.length;Ct<ht;Ct++){var Et=this._regions.toRegion(Ct);if(this._regions.getStartLineNumber(Ct)<et){for(;ut.length>0&&!Et.containedBy(ut[ut.length-1]);)ut.pop();ut.push(Et),gt(Et,ut.length)&&Tt.push(Et)}else break}else for(var Ct=it,ht=this._regions.length;Ct<ht;Ct++){var Et=this._regions.toRegion(Ct);if(this._regions.getStartLineNumber(Ct)<et)(!gt||gt(Et))&&Tt.push(Et);else break}return Tt},jt}();function g(jt,pt,gt){for(var Tt=[],it=function(ht){var Et=jt.getRegionAtLine(ht);if(Et){var Yt=!Et.isCollapsed;if(Tt.push(Et),pt>1){var Nt=jt.getRegionsInside(Et,function(bt,$e){return bt.isCollapsed!==Yt&&$e<pt});Tt.push.apply(Tt,Nt)}}},et=0,ut=gt;et<ut.length;et++){var Ct=ut[et];it(Ct)}jt.toggleCollapseState(Tt)}function u(jt,pt,gt,Tt){gt===void 0&&(gt=Number.MAX_VALUE);var it=[];if(Tt&&Tt.length>0)for(var et=0,ut=Tt;et<ut.length;et++){var Ct=ut[et],ht=jt.getRegionAtLine(Ct);if(ht&&(ht.isCollapsed!==pt&&it.push(ht),gt>1)){var Et=jt.getRegionsInside(ht,function(Yt,Nt){return Yt.isCollapsed!==pt&&Nt<gt});it.push.apply(it,Et)}}else{var Et=jt.getRegionsInside(null,function(Nt,bt){return Nt.isCollapsed!==pt&&bt<gt});it.push.apply(it,Et)}jt.toggleCollapseState(it)}function s(jt,pt,gt,Tt){for(var it=[],et=0,ut=Tt;et<ut.length;et++){var Ct=ut[et],ht=jt.getAllRegionsAtLine(Ct,function(Et,Yt){return Et.isCollapsed!==pt&&Yt<=gt});it.push.apply(it,ht)}jt.toggleCollapseState(it)}function l(jt,pt,gt){for(var Tt=[],it=0,et=gt;it<et.length;it++){var ut=et[it],Ct=jt.getAllRegionsAtLine(ut,function(ht){return ht.isCollapsed!==pt});Ct.length>0&&Tt.push(Ct[0])}jt.toggleCollapseState(Tt)}function c(jt,pt,gt,Tt){var it=function(ut,Ct){return Ct===pt&&ut.isCollapsed!==gt&&!Tt.some(function(ht){return ut.containsLine(ht)})},et=jt.getRegionsInside(null,it);jt.toggleCollapseState(et)}function p(jt,pt,gt){for(var Tt=jt.textModel,it=jt.regions,et=[],ut=it.length-1;ut>=0;ut--)if(gt!==it.isCollapsed(ut)){var Ct=it.getStartLineNumber(ut);pt.test(Tt.getLineContent(Ct))&&et.push(it.toRegion(ut))}jt.toggleCollapseState(et)}function _(jt,pt,gt){for(var Tt=jt.regions,it=[],et=Tt.length-1;et>=0;et--)gt!==Tt.isCollapsed(et)&&pt===Tt.getType(et)&&it.push(Tt.toRegion(et));jt.toggleCollapseState(it)}var L=e("tX9W"),I=function(){function jt(pt){this.editor=pt,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}return jt.prototype.getDecorationOption=function(pt){return pt?this.showFoldingHighlights?jt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:jt.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?jt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:jt.EXPANDED_VISUAL_DECORATION},jt.prototype.deltaDecorations=function(pt,gt){return this.editor.deltaDecorations(pt,gt)},jt.prototype.changeDecorations=function(pt){return this.editor.changeDecorations(pt)},jt.COLLAPSED_VISUAL_DECORATION=L.a.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),jt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=L.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),jt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=L.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),jt.EXPANDED_VISUAL_DECORATION=L.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),jt}(),P=e("wQH0"),A=e("aokT"),Q=e("6OMU"),K=function(){function jt(pt){var gt=this;this._updateEventEmitter=new x.a,this._foldingModel=pt,this._foldingModelListener=pt.onDidChange(function(Tt){return gt.updateHiddenRanges()}),this._hiddenRanges=[],pt.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(jt.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(jt.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),jt.prototype.updateHiddenRanges=function(){for(var pt=!1,gt=[],Tt=0,it=0,et=Number.MAX_VALUE,ut=-1,Ct=this._foldingModel.regions;Tt<Ct.length;Tt++){if(!Ct.isCollapsed(Tt))continue;var ht=Ct.getStartLineNumber(Tt)+1,Et=Ct.getEndLineNumber(Tt);if(et<=ht&&Et<=ut)continue;!pt&&it<this._hiddenRanges.length&&this._hiddenRanges[it].startLineNumber===ht&&this._hiddenRanges[it].endLineNumber===Et?(gt.push(this._hiddenRanges[it]),it++):(pt=!0,gt.push(new A.a(ht,1,Et,1))),et=ht,ut=Et}(pt||it<this._hiddenRanges.length)&&this.applyHiddenRanges(gt)},jt.prototype.applyMemento=function(pt){if(!Array.isArray(pt)||pt.length===0)return!1;for(var gt=[],Tt=0,it=pt;Tt<it.length;Tt++){var et=it[Tt];if(!et.startLineNumber||!et.endLineNumber)return!1;gt.push(new A.a(et.startLineNumber+1,1,et.endLineNumber,1))}return this.applyHiddenRanges(gt),!0},jt.prototype.getMemento=function(){return this._hiddenRanges.map(function(pt){return{startLineNumber:pt.startLineNumber-1,endLineNumber:pt.endLineNumber}})},jt.prototype.applyHiddenRanges=function(pt){this._hiddenRanges=pt,this._updateEventEmitter.fire(pt)},jt.prototype.hasRanges=function(){return this._hiddenRanges.length>0},jt.prototype.isHidden=function(pt){return V(this._hiddenRanges,pt)!==null},jt.prototype.adjustSelections=function(pt){for(var gt=this,Tt=!1,it=this._foldingModel.textModel,et=null,ut=function(bt){return(!et||!H(bt,et))&&(et=V(gt._hiddenRanges,bt)),et?et.startLineNumber-1:null},Ct=0,ht=pt.length;Ct<ht;Ct++){var Et=pt[Ct],Yt=ut(Et.startLineNumber);Yt&&(Et=Et.setStartPosition(Yt,it.getLineMaxColumn(Yt)),Tt=!0);var Nt=ut(Et.endLineNumber);Nt&&(Et=Et.setEndPosition(Nt,it.getLineMaxColumn(Nt)),Tt=!0),pt[Ct]=Et}return Tt},jt.prototype.dispose=function(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},jt}();function H(jt,pt){return jt>=pt.startLineNumber&&jt<=pt.endLineNumber}function V(jt,pt){var gt=Object(Q.i)(jt,function(Tt){return pt<Tt.startLineNumber})-1;return gt>=0&&jt[gt].endLineNumber>=pt?jt[gt]:null}var de=e("cMvZ"),_e=5e3,Se="indent",Ie=function(){function jt(pt){this.editorModel=pt,this.id=Se}return jt.prototype.dispose=function(){},jt.prototype.compute=function(pt){var gt=de.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),Tt=gt&&!!gt.offSide,it=gt&&gt.markers;return Promise.resolve(Ve(this.editorModel,Tt,it))},jt}(),Pe=function(){function jt(pt){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=pt}return jt.prototype.insertFirst=function(pt,gt,Tt){if(pt>y||gt>y)return;var it=this._length;this._startIndexes[it]=pt,this._endIndexes[it]=gt,this._length++,Tt<1e3&&(this._indentOccurrences[Tt]=(this._indentOccurrences[Tt]||0)+1)},jt.prototype.toIndentRanges=function(pt){if(this._length<=this._foldingRangesLimit){for(var gt=new Uint32Array(this._length),Tt=new Uint32Array(this._length),it=this._length-1,et=0;it>=0;it--,et++)gt[et]=this._startIndexes[it],Tt[et]=this._endIndexes[it];return new f(gt,Tt)}else{for(var ut=0,Ct=this._indentOccurrences.length,it=0;it<this._indentOccurrences.length;it++){var ht=this._indentOccurrences[it];if(ht){if(ht+ut>this._foldingRangesLimit){Ct=it;break}ut+=ht}}for(var Et=pt.getOptions().tabSize,gt=new Uint32Array(this._foldingRangesLimit),Tt=new Uint32Array(this._foldingRangesLimit),it=this._length-1,et=0;it>=0;it--){var Yt=this._startIndexes[it],Nt=pt.getLineContent(Yt),bt=L.b.computeIndentLevel(Nt,Et);(bt<Ct||bt===Ct&&ut++<this._foldingRangesLimit)&&(gt[et]=Yt,Tt[et]=this._endIndexes[it],et++)}return new f(gt,Tt)}},jt}();function Ve(jt,pt,gt,Tt){Tt===void 0&&(Tt=_e);var it=jt.getOptions().tabSize,et=new Pe(Tt),ut=void 0;gt&&(ut=new RegExp("("+gt.start.source+")|(?:"+gt.end.source+")"));var Ct=[],ht=jt.getLineCount()+1;Ct.push({indent:-1,endAbove:ht,line:ht});for(var Et=jt.getLineCount();Et>0;Et--){var Yt=jt.getLineContent(Et),Nt=L.b.computeIndentLevel(Yt,it),bt=Ct[Ct.length-1];if(Nt===-1){pt&&(bt.endAbove=Et);continue}var $e=void 0;if(ut&&($e=Yt.match(ut)))if($e[1]){for(var Ye=Ct.length-1;Ye>0&&Ct[Ye].indent!==-2;)Ye--;if(Ye>0){Ct.length=Ye+1,bt=Ct[Ye],et.insertFirst(Et,bt.line,Nt),bt.line=Et,bt.indent=Nt,bt.endAbove=Et;continue}}else{Ct.push({indent:-2,endAbove:Et,line:Et});continue}if(bt.indent>Nt){do Ct.pop(),bt=Ct[Ct.length-1];while(bt.indent>Nt);var ze=bt.endAbove-1;ze-Et>=1&&et.insertFirst(Et,ze,Nt)}bt.indent===Nt?bt.endAbove=Et:Ct.push({indent:Nt,endAbove:Et,line:Et})}return et.toIndentRanges(jt)}var ke=e("twdY"),se=e("/cxE"),ee=5e3,ie={},q="syntax",ce=function(){function jt(pt,gt,Tt){Tt===void 0&&(Tt=ee),this.editorModel=pt,this.providers=gt,this.limit=Tt,this.id=q}return jt.prototype.compute=function(pt){var gt=this;return Z(this.providers,this.editorModel,pt).then(function(Tt){if(Tt){var it=je(Tt,gt.limit);return it}return null})},jt.prototype.dispose=function(){},jt}();function Z(jt,pt,gt){var Tt=null,it=jt.map(function(et,ut){return Promise.resolve(et.provideFoldingRanges(pt,ie,gt)).then(function(Ct){if(gt.isCancellationRequested)return;if(Array.isArray(Ct)){Array.isArray(Tt)||(Tt=[]);for(var ht=pt.getLineCount(),Et=0,Yt=Ct;Et<Yt.length;Et++){var Nt=Yt[Et];Nt.start>0&&Nt.end>Nt.start&&Nt.end<=ht&&Tt.push({start:Nt.start,end:Nt.end,rank:ut,kind:Nt.kind})}}},se.f)});return Promise.all(it).then(function(et){return Tt})}var ye=function(){function jt(pt){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=pt}return jt.prototype.add=function(pt,gt,Tt,it){if(pt>y||gt>y)return;var et=this._length;this._startIndexes[et]=pt,this._endIndexes[et]=gt,this._nestingLevels[et]=it,this._types[et]=Tt,this._length++,it<30&&(this._nestingLevelCounts[it]=(this._nestingLevelCounts[it]||0)+1)},jt.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var pt=new Uint32Array(this._length),gt=new Uint32Array(this._length),Tt=0;Tt<this._length;Tt++)pt[Tt]=this._startIndexes[Tt],gt[Tt]=this._endIndexes[Tt];return new f(pt,gt,this._types)}else{for(var it=0,et=this._nestingLevelCounts.length,Tt=0;Tt<this._nestingLevelCounts.length;Tt++){var ut=this._nestingLevelCounts[Tt];if(ut){if(ut+it>this._foldingRangesLimit){et=Tt;break}it+=ut}}for(var pt=new Uint32Array(this._foldingRangesLimit),gt=new Uint32Array(this._foldingRangesLimit),Ct=[],Tt=0,ht=0;Tt<this._length;Tt++){var Et=this._nestingLevels[Tt];(Et<et||Et===et&&it++<this._foldingRangesLimit)&&(pt[ht]=this._startIndexes[Tt],gt[ht]=this._endIndexes[Tt],Ct[ht]=this._types[Tt],ht++)}return new f(pt,gt,Ct)}},jt}();function je(jt,pt){for(var gt=jt.sort(function(Et,Yt){var Nt=Et.start-Yt.start;return Nt===0&&(Nt=Et.rank-Yt.rank),Nt}),Tt=new ye(pt),it=void 0,et=[],ut=0,Ct=gt;ut<Ct.length;ut++){var ht=Ct[ut];if(!it)it=ht,Tt.add(ht.start,ht.end,ht.kind&&ht.kind.value,et.length);else if(ht.start>it.start)if(ht.end<=it.end)et.push(it),it=ht,Tt.add(ht.start,ht.end,ht.kind&&ht.kind.value,et.length);else{if(ht.start>it.end){do it=et.pop();while(it&&ht.start>it.end);it&&et.push(it),it=ht}Tt.add(ht.start,ht.end,ht.kind&&ht.kind.value,et.length)}}return Tt.toIndentRanges()}var Ge="init",ue=function(){function jt(pt,gt,Tt,it){if(this.editorModel=pt,this.id=Ge,gt.length){var et=function(ut){return{range:{startLineNumber:ut.startLineNumber,startColumn:0,endLineNumber:ut.endLineNumber,endColumn:pt.getLineLength(ut.endLineNumber)},options:{stickiness:1}}};this.decorationIds=pt.deltaDecorations([],gt.map(et)),this.timeout=setTimeout(Tt,it)}}return jt.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)},jt.prototype.compute=function(pt){var gt=[];if(this.decorationIds)for(var Tt=0,it=this.decorationIds;Tt<it.length;Tt++){var et=it[Tt],ut=this.editorModel.getDecorationRange(et);ut&&gt.push({start:ut.startLineNumber,end:ut.endLineNumber,rank:1})}return Promise.resolve(je(gt,Number.MAX_VALUE))},jt}(),ve=e("T8No"),Ee=e("t9D7"),xe=e("MD5Z"),Ce=function(){var jt=function(pt,gt){return jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tt,it){Tt.__proto__=it}||function(Tt,it){for(var et in it)it.hasOwnProperty(et)&&(Tt[et]=it[et])},jt(pt,gt)};return function(pt,gt){jt(pt,gt);function Tt(){this.constructor=pt}pt.prototype=gt===null?Object.create(gt):(Tt.prototype=gt.prototype,new Tt)}}(),he=function(jt,pt,gt,Tt){var it=arguments.length,et=it<3?pt:Tt===null?Tt=Object.getOwnPropertyDescriptor(pt,gt):Tt,ut;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")et=Reflect.decorate(jt,pt,gt,Tt);else for(var Ct=jt.length-1;Ct>=0;Ct--)(ut=jt[Ct])&&(et=(it<3?ut(et):it>3?ut(pt,gt,et):ut(pt,gt))||et);return it>3&&et&&Object.defineProperty(pt,gt,et),et},J=function(jt,pt){return function(gt,Tt){pt(gt,Tt,jt)}},b=new ve.d("foldingEnabled",!1),F=function(jt){Ce(pt,jt);function pt(gt,Tt){var it=jt.call(this)||this;it.contextKeyService=Tt,it.localToDispose=it._register(new D.b),it.editor=gt;var et=it.editor.getOptions();return it._isEnabled=et.get(30),it._useFoldingProviders=et.get(31)!=="indentation",it.foldingModel=null,it.hiddenRangeModel=null,it.rangeProvider=null,it.foldingRegionPromise=null,it.foldingStateMemento=null,it.foldingModelPromise=null,it.updateScheduler=null,it.cursorChangedScheduler=null,it.mouseDownInfo=null,it.foldingDecorationProvider=new I(gt),it.foldingDecorationProvider.autoHideFoldingControls=et.get(84)==="mouseover",it.foldingDecorationProvider.showFoldingHighlights=et.get(32),it.foldingEnabled=b.bindTo(it.contextKeyService),it.foldingEnabled.set(it._isEnabled),it._register(it.editor.onDidChangeModel(function(){return it.onModelChanged()})),it._register(it.editor.onDidChangeConfiguration(function(ut){if(ut.hasChanged(30)){var Ct=it.editor.getOptions();it._isEnabled=Ct.get(30),it.foldingEnabled.set(it._isEnabled),it.onModelChanged()}if(ut.hasChanged(84)||ut.hasChanged(32)){var ht=it.editor.getOptions();it.foldingDecorationProvider.autoHideFoldingControls=ht.get(84)==="mouseover",it.foldingDecorationProvider.showFoldingHighlights=ht.get(32),it.onModelContentChanged()}if(ut.hasChanged(31)){var Et=it.editor.getOptions();it._useFoldingProviders=Et.get(31)!=="indentation",it.onFoldingStrategyChanged()}})),it.onModelChanged(),it}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 Tt=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),it=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:Tt,lineCount:gt.getLineCount(),provider:it}}return},pt.prototype.restoreViewState=function(gt){var Tt=this.editor.getModel();if(!Tt||!this._isEnabled||Tt.isTooLargeForTokenization()||!this.hiddenRangeModel)return;if(!gt||!gt.collapsedRegions||gt.lineCount!==Tt.getLineCount())return;(gt.provider===q||gt.provider===Ge)&&(this.foldingStateMemento=gt);var it=gt.collapsedRegions;if(this.hiddenRangeModel.applyMemento(it)){var et=this.getFoldingModel();et&&et.then(function(ut){ut&&ut.applyMemento(it)}).then(void 0,se.e)}},pt.prototype.onModelChanged=function(){var gt=this;this.localToDispose.clear();var Tt=this.editor.getModel();if(!this._isEnabled||!Tt||Tt.isTooLargeForTokenization())return;this.foldingModel=new C(Tt,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new K(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(function(it){return gt.onHiddenRangesChanges(it)})),this.updateScheduler=new B.a(200),this.cursorChangedScheduler=new B.d(function(){return gt.revealCursor()},200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(ke.o.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(it){return gt.onEditorMouseDown(it)})),this.localToDispose.add(this.editor.onMouseUp(function(it){return gt.onEditorMouseUp(it)})),this.localToDispose.add({dispose:function(){gt.foldingRegionPromise&&(gt.foldingRegionPromise.cancel(),gt.foldingRegionPromise=null),gt.updateScheduler&&gt.updateScheduler.cancel(),gt.updateScheduler=null,gt.foldingModel=null,gt.foldingModelPromise=null,gt.hiddenRangeModel=null,gt.cursorChangedScheduler=null,gt.foldingStateMemento=null,gt.rangeProvider&&gt.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 Tt=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new Ie(gt),this._useFoldingProviders&&this.foldingModel){var it=ke.o.ordered(this.foldingModel.textModel);if(it.length===0&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var et=this.rangeProvider=new ue(gt,this.foldingStateMemento.collapsedRegions,function(){Tt.foldingStateMemento=null,Tt.onFoldingStrategyChanged()},3e4);return et}else it.length>0&&(this.rangeProvider=new ce(gt,it))}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 Tt=gt.foldingModel;if(!Tt)return null;var it=gt.foldingRegionPromise=Object(B.f)(function(et){return gt.getRangeProvider(Tt.textModel).compute(et)});return it.then(function(et){if(et&&it===gt.foldingRegionPromise){var ut=gt.editor.getSelections(),Ct=ut?ut.map(function(ht){return ht.startLineNumber}):[];Tt.update(et,Ct)}return Tt})}).then(void 0,function(Tt){return Object(se.e)(Tt),null}))},pt.prototype.onHiddenRangesChanges=function(gt){if(this.hiddenRangeModel&&gt.length){var Tt=this.editor.getSelections();Tt&&(this.hiddenRangeModel.adjustSelections(Tt)&&this.editor.setSelections(Tt))}this.editor.setHiddenAreas(gt)},pt.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},pt.prototype.revealCursor=function(){var gt=this,Tt=this.getFoldingModel();if(!Tt)return;Tt.then(function(it){if(it){var et=gt.editor.getSelections();if(et&&et.length>0){for(var ut=[],Ct=function(Nt){var bt=Nt.selectionStartLineNumber;gt.hiddenRangeModel&&gt.hiddenRangeModel.isHidden(bt)&&ut.push.apply(ut,it.getAllRegionsAtLine(bt,function($e){return $e.isCollapsed&&bt>$e.startLineNumber}))},ht=0,Et=et;ht<Et.length;ht++){var Yt=Et[ht];Ct(Yt)}ut.length&&(it.toggleCollapseState(ut),gt.reveal(et[0].getPosition()))}}}).then(void 0,se.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 Tt=gt.target.range,it=!1;switch(gt.target.type){case 4:var et=gt.target.detail,ut=gt.target.element.offsetLeft,Ct=et.offsetX-ut;if(Ct<5)return;it=!0;break;case 6:{if(this.hiddenRangeModel.hasRanges()){var ht=this.editor.getModel();if(ht&&Tt.startColumn===ht.getLineMaxColumn(Tt.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:Tt.startLineNumber,iconClicked:it}},pt.prototype.onEditorMouseUp=function(gt){var Tt=this,it=this.getFoldingModel();if(!it||!this.mouseDownInfo||!gt.target)return;var et=this.mouseDownInfo.lineNumber,ut=this.mouseDownInfo.iconClicked,Ct=gt.target.range;if(!Ct||Ct.startLineNumber!==et)return;if(ut){if(gt.target.type!==4)return}else{var ht=this.editor.getModel();if(!ht||Ct.startColumn!==ht.getLineMaxColumn(et))return}it.then(function(Et){if(Et){var Yt=Et.getRegionAtLine(et);if(Yt&&Yt.startLineNumber===et){var Nt=Yt.isCollapsed;if(ut||Nt){var bt=[],$e=gt.event.middleButton||gt.event.shiftKey;if($e)for(var Ye=0,ze=Et.getRegionsInside(Yt);Ye<ze.length;Ye++){var Ke=ze[Ye];Ke.isCollapsed===Nt&&bt.push(Ke)}(Nt||!$e||bt.length===0)&&bt.push(Yt),Et.toggleCollapseState(bt),Tt.reveal({lineNumber:et,column:1})}}}}).then(void 0,se.e)},pt.prototype.reveal=function(gt){this.editor.revealPositionInCenterIfOutsideViewport(gt,0)},pt.ID="editor.contrib.folding",pt=he([J(1,ve.c)],pt),pt}(D.a),re=function(jt){Ce(pt,jt);function pt(){return jt!==null&&jt.apply(this,arguments)||this}return pt.prototype.runEditorCommand=function(gt,Tt,it){var et=this,ut=F.get(Tt);if(!ut)return;var Ct=ut.getFoldingModel();if(Ct)return this.reportTelemetry(gt,Tt),Ct.then(function(ht){if(ht){et.invoke(ut,ht,Tt,it);var Et=Tt.getSelection();Et&&ut.reveal(Et.getStartPosition())}})},pt.prototype.getSelectedLines=function(gt){var Tt=gt.getSelections();return Tt?Tt.map(function(it){return it.startLineNumber}):[]},pt.prototype.getLineNumbers=function(gt,Tt){return gt&&gt.selectionLines?gt.selectionLines.map(function(it){return it+1}):this.getSelectedLines(Tt)},pt.prototype.run=function(gt,Tt){},pt}(W.b);function ne(jt){if(!$.k(jt)){if(!$.i(jt))return!1;var pt=jt;if(!$.k(pt.levels)&&!$.h(pt.levels))return!1;if(!$.k(pt.direction)&&!$.j(pt.direction))return!1;if(!$.k(pt.selectionLines)&&(!$.d(pt.selectionLines)||!pt.selectionLines.every($.h)))return!1}return!0}var fe=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.unfold",label:le.a("unfoldAction.label","Unfold"),alias:"Unfold",precondition:b,kbOpts:{kbExpr:P.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:ne,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,Tt,it,et){var ut=et&&et.levels||1,Ct=this.getLineNumbers(et,it);et&&et.direction==="up"?s(Tt,!1,ut,Ct):u(Tt,!1,ut,Ct)},pt}(re),Oe=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.unfoldRecursively",label:le.a("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:b,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|89),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it,et){u(Tt,!1,Number.MAX_VALUE,this.getSelectedLines(it))},pt}(re),Me=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.fold",label:le.a("foldAction.label","Fold"),alias:"Fold",precondition:b,kbOpts:{kbExpr:P.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:ne,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,Tt,it,et){var ut=this.getLineNumbers(et,it),Ct=et&&et.levels,ht=et&&et.direction;typeof Ct!="number"&&typeof ht!="string"?l(Tt,!0,ut):ht==="up"?s(Tt,!0,Ct||1,ut):u(Tt,!0,Ct||1,ut)},pt}(re),Ue=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.toggleFold",label:le.a("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:b,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|42),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){var et=this.getSelectedLines(it);g(Tt,1,et)},pt}(re),Je=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.foldRecursively",label:le.a("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:b,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|87),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){var et=this.getSelectedLines(it);u(Tt,!0,Number.MAX_VALUE,et)},pt}(re),nt=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.foldAllBlockComments",label:le.a("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:b,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|85),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){if(Tt.regions.hasTypes())_(Tt,ke.n.Comment.value,!0);else{var et=it.getModel();if(!et)return;var ut=de.a.getComments(et.getLanguageIdentifier().id);if(ut&&ut.blockCommentStartToken){var Ct=new RegExp("^\\s*"+Object(R.p)(ut.blockCommentStartToken));p(Tt,Ct,!0)}}},pt}(re),vt=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.foldAllMarkerRegions",label:le.a("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:b,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|29),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){if(Tt.regions.hasTypes())_(Tt,ke.n.Region.value,!0);else{var et=it.getModel();if(!et)return;var ut=de.a.getFoldingRules(et.getLanguageIdentifier().id);if(ut&&ut.markers&&ut.markers.start){var Ct=new RegExp(ut.markers.start);p(Tt,Ct,!0)}}},pt}(re),Rt=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.unfoldAllMarkerRegions",label:le.a("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:b,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|30),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){if(Tt.regions.hasTypes())_(Tt,ke.n.Region.value,!1);else{var et=it.getModel();if(!et)return;var ut=de.a.getFoldingRules(et.getLanguageIdentifier().id);if(ut&&ut.markers&&ut.markers.start){var Ct=new RegExp(ut.markers.start);p(Tt,Ct,!1)}}},pt}(re),Dt=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.foldAll",label:le.a("foldAllAction.label","Fold All"),alias:"Fold All",precondition:b,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|21),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){u(Tt,!0)},pt}(re),Kt=function(jt){Ce(pt,jt);function pt(){return jt.call(this,{id:"editor.unfoldAll",label:le.a("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:b,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|40),weight:100}})||this}return pt.prototype.invoke=function(gt,Tt,it){u(Tt,!1)},pt}(re),ao=function(jt){Ce(pt,jt);function pt(){return jt!==null&&jt.apply(this,arguments)||this}return pt.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(pt.ID_PREFIX.length))},pt.prototype.invoke=function(gt,Tt,it){c(Tt,this.getFoldingLevel(),!0,this.getSelectedLines(it))},pt.ID_PREFIX="editor.foldLevel",pt.ID=function(gt){return pt.ID_PREFIX+gt},pt}(re);Object(W.h)(F.ID,F),Object(W.f)(fe),Object(W.f)(Oe),Object(W.f)(Me),Object(W.f)(Je),Object(W.f)(Dt),Object(W.f)(Kt),Object(W.f)(nt),Object(W.f)(vt),Object(W.f)(Rt),Object(W.f)(Ue);for(var lo=1;lo<=7;lo++)Object(W.i)(new ao({id:ao.ID(lo),label:le.a("foldLevelAction.label","Fold Level {0}",lo),alias:"Fold Level "+lo,precondition:b,kbOpts:{kbExpr:P.a.editorTextFocus,primary:Object(z.a)(2048|41,2048|21+lo),weight:100}}));var so=Object(xe.Tb)("editor.foldBackground",{light:Object(xe.fc)(xe.K,.3),dark:Object(xe.fc)(xe.K,.3),hc:null},le.a("editorSelectionBackground","Color of the editor selection."));Object(Ee.e)(function(jt,pt){var gt=jt.getColor(so);gt&&pt.addRule(".monaco-editor .folded-background { background-color: "+gt+"; }")})},e0rL:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le}),e.d(N,"b",function(){return $});var T=e("Cg/j"),le=Object(T.c)("textResourceConfigurationService"),$=Object(T.c)("textResourcePropertiesService")},e1ni:function(Lt,N,e){},eC1c:function(Lt,N,e){},eLzo:function(Lt,N,e){"use strict";e.d(N,"a",function(){return $}),e.d(N,"b",function(){return R}),e.d(N,"c",function(){return z}),e.d(N,"e",function(){return W}),e.d(N,"d",function(){return x});var T=e("6OMU"),le=e("Vhoy"),$=function(){function h(y,w){y===void 0&&(y=""),w===void 0&&(w=!1);var f,v;this._value=y,typeof w=="boolean"?(this._isTrusted=w,this._supportThemeIcons=!1):(this._isTrusted=(f=w.isTrusted)!==null&&f!==void 0?f:!1,this._supportThemeIcons=(v=w.supportThemeIcons)!==null&&v!==void 0?v:!1)}return Object.defineProperty(h.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"isTrusted",{get:function(){return this._isTrusted},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"supportThemeIcons",{get:function(){return this._supportThemeIcons},enumerable:!0,configurable:!0}),h.prototype.appendText=function(y){return this._value+=(this._supportThemeIcons?Object(le.a)(y):y).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&").replace(`
`,`
`),this},h.prototype.appendMarkdown=function(y){return this._value+=y,this},h.prototype.appendCodeblock=function(y,w){return this._value+="\n```",this._value+=y,this._value+=`
`,this._value+=w,this._value+="\n```\n",this},h}();function R(h){return B(h)?!h.value:Array.isArray(h)?h.every(R):!0}function B(h){return h instanceof $?!0:h&&typeof h=="object"?typeof h.value=="string"&&(typeof h.isTrusted=="boolean"||h.isTrusted===void 0)&&(typeof h.supportThemeIcons=="boolean"||h.supportThemeIcons===void 0):!1}function z(h,y){return!h&&!y?!0:!h||!y?!1:Array.isArray(h)&&Array.isArray(y)?Object(T.g)(h,y,D):B(h)&&B(y)?D(h,y):!1}function D(h,y){return h===y?!0:!h||!y?!1:h.value===y.value&&h.isTrusted===y.isTrusted&&h.supportThemeIcons===y.supportThemeIcons}function W(h){return h&&h.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function x(h){var y=[],w=h.split("|").map(function(c){return c.trim()});h=w[0];var f=w[1];if(f){var v=/height=(\d+)/.exec(f),C=/width=(\d+)/.exec(f),g=v?v[1]:"",u=C?C[1]:"",s=isFinite(parseInt(u)),l=isFinite(parseInt(g));s&&y.push('width="'+u+'"'),l&&y.push('height="'+g+'"')}return{href:h,dimensions:y}}},eizg:function(Lt,N,e){},ep4t:function(Lt,N,e){"use strict";e.r(N),e.d(N,"SuggestController",function(){return on}),e.d(N,"TriggerSuggestAction",function(){return dn});var T=e("OBOq"),le=e("6OMU"),$=e("/cxE"),R=e("/kV6"),B=e("pmY6"),z=e("sswD"),D=e("0/Sa"),W=e("aokT"),x=e("wQH0"),h=e("tXSY"),y=e("uACm"),w=e("QDVR"),f=e("A+jI"),v=e("twdY"),C=e("X+cX"),g=e("Cg/j"),u=e("+7oY"),s=e("9fML"),l=function(){var St=function(st,rt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Mt,be){Mt.__proto__=be}||function(Mt,be){for(var M in be)be.hasOwnProperty(M)&&(Mt[M]=be[M])},St(st,rt)};return function(st,rt){St(st,rt);function Mt(){this.constructor=st}st.prototype=rt===null?Object.create(rt):(Mt.prototype=rt.prototype,new Mt)}}(),c=function(St,st,rt,Mt){var be=arguments.length,M=be<3?st:Mt===null?Mt=Object.getOwnPropertyDescriptor(st,rt):Mt,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(St,st,rt,Mt);else for(var X=St.length-1;X>=0;X--)(j=St[X])&&(M=(be<3?j(M):be>3?j(st,rt,M):j(st,rt))||M);return be>3&&M&&Object.defineProperty(st,rt,M),M},p=function(St,st){return function(rt,Mt){st(rt,Mt,St)}},_=function(){function St(){}return St.prototype.select=function(st,rt,Mt){if(Mt.length===0)return 0;for(var be=Mt[0].score[0],M=1;M<Mt.length;M++){var j=Mt[M],X=j.score,Te=j.completion;if(X[0]!==be)break;if(Te.preselect)return M}return 0},St}(),L=function(St){l(st,St);function st(){return St!==null&&St.apply(this,arguments)||this}return st.prototype.memorize=function(rt,Mt,be){},st.prototype.toJSON=function(){return},st.prototype.fromJSON=function(){},st}(_),I=function(St){l(st,St);function st(){var rt=St!==null&&St.apply(this,arguments)||this;return rt._cache=new w.a(300,.66),rt._seq=0,rt}return st.prototype.memorize=function(rt,Mt,be){var M=be.completion.label,j=rt.getLanguageIdentifier().language+"/"+M;this._cache.set(j,{touch:this._seq++,type:be.completion.kind,insertText:be.completion.insertText})},st.prototype.select=function(rt,Mt,be){if(be.length===0)return 0;var M=rt.getLineContent(Mt.lineNumber).substr(Mt.column-10,Mt.column-1);if(/\s$/.test(M))return St.prototype.select.call(this,rt,Mt,be);for(var j=be[0].score[0],X=-1,Te=-1,Ae=-1,Ne=0;Ne<be.length&&!(be[Ne].score[0]!==j);Ne++){var lt=rt.getLanguageIdentifier().language+"/"+be[Ne].completion.label,ft=this._cache.peek(lt);if(ft&&ft.touch>Ae&&ft.type===be[Ne].completion.kind&&ft.insertText===be[Ne].completion.insertText&&(Ae=ft.touch,Te=Ne),be[Ne].completion.preselect&&X===-1)return X=Ne}return Te!==-1?Te:X!==-1?X:0},st.prototype.toJSON=function(){var rt=[];return this._cache.forEach(function(Mt,be){rt.push([be,Mt])}),rt},st.prototype.fromJSON=function(rt){this._cache.clear();for(var Mt=0,be=0,M=rt;be<M.length;be++){var j=M[be],X=j[0],Te=j[1];Te.touch=Mt,Te.type=typeof Te.type=="number"?Te.type:Object(v.E)(Te.type),this._cache.set(X,Te)}this._seq=this._cache.size},st}(_),P=function(St){l(st,St);function st(){var rt=St!==null&&St.apply(this,arguments)||this;return rt._trie=w.c.forStrings(),rt._seq=0,rt}return st.prototype.memorize=function(rt,Mt,be){var M=rt.getWordUntilPosition(Mt).word,j=rt.getLanguageIdentifier().language+"/"+M;this._trie.set(j,{type:be.completion.kind,insertText:be.completion.insertText,touch:this._seq++})},st.prototype.select=function(rt,Mt,be){var M=rt.getWordUntilPosition(Mt).word;if(!M)return St.prototype.select.call(this,rt,Mt,be);var j=rt.getLanguageIdentifier().language+"/"+M,X=this._trie.get(j);if(X||(X=this._trie.findSubstr(j)),X)for(var Te=0;Te<be.length;Te++){var Ae=be[Te].completion,Ne=Ae.kind,lt=Ae.insertText;if(Ne===X.type&&lt===X.insertText)return Te}return St.prototype.select.call(this,rt,Mt,be)},st.prototype.toJSON=function(){var rt=[];return this._trie.forEach(function(Mt,be){return rt.push([be,Mt])}),rt.sort(function(Mt,be){return-(Mt[1].touch-be[1].touch)}).forEach(function(Mt,be){return Mt[1].touch=be}),rt.slice(0,200)},st.prototype.fromJSON=function(rt){if(this._trie.clear(),rt.length>0){this._seq=rt[0][1].touch+1;for(var Mt=0,be=rt;Mt<be.length;Mt++){var M=be[Mt],j=M[0],X=M[1];X.type=typeof X.type=="number"?X.type:Object(v.E)(X.type),this._trie.set(j,X)}}},st}(_),A=function(St){l(st,St);function st(rt,Mt){var be=St.call(this)||this;be._storageService=rt,be._configService=Mt,be._storagePrefix="suggest/memories";var M=function(){var j=be._configService.getValue("editor.suggestSelection"),X=be._configService.getValue("editor.suggest.shareSuggestSelections");be._update(j,X,!1)};return be._persistSoon=be._register(new C.d(function(){return be._saveState()},500)),be._register(rt.onWillSaveState(function(j){j.reason===f.c.SHUTDOWN&&be._saveState()})),be._register(be._configService.onDidChangeConfiguration(function(j){(j.affectsConfiguration("editor.suggestSelection")||j.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&M()})),be._register(be._storageService.onDidChangeStorage(function(j){j.scope===0&&j.key.indexOf(be._storagePrefix)===0&&(document.hasFocus()||be._update(be._mode,be._shareMem,!0))})),M(),be}return st.prototype._update=function(rt,Mt,be){if(!be&&this._mode===rt&&this._shareMem===Mt)return;this._shareMem=Mt,this._mode=rt,this._strategy=rt==="recentlyUsedByPrefix"?new P:rt==="recentlyUsed"?new I:new L;try{var M=Mt?0:1,j=this._storageService.get(this._storagePrefix+"/"+this._mode,M);j&&this._strategy.fromJSON(JSON.parse(j))}catch(X){}},st.prototype.memorize=function(rt,Mt,be){this._strategy.memorize(rt,Mt,be),this._persistSoon.schedule()},st.prototype.select=function(rt,Mt,be){return this._strategy.select(rt,Mt,be)},st.prototype._saveState=function(){var rt=JSON.stringify(this._strategy),Mt=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,rt,Mt)},st=c([p(0,f.a),p(1,u.a)],st),st}(B.a),Q=Object(g.c)("ISuggestMemories");Object(s.b)(Q,A,!0);var K=e("3/fG"),H=e("nnTU"),V=e("T8No"),de=e("nrhi"),_e=e("QVNv"),Se=function(St,st,rt,Mt){var be=arguments.length,M=be<3?st:Mt===null?Mt=Object.getOwnPropertyDescriptor(st,rt):Mt,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(St,st,rt,Mt);else for(var X=St.length-1;X>=0;X--)(j=St[X])&&(M=(be<3?j(M):be>3?j(st,rt,M):j(st,rt))||M);return be>3&&M&&Object.defineProperty(st,rt,M),M},Ie=function(St,st){return function(rt,Mt){st(rt,Mt,St)}},Pe=function(){function St(st,rt){this._editor=st,this._index=0,this._ckOtherSuggestions=St.OtherSuggestions.bindTo(rt)}return St.prototype.dispose=function(){this.reset()},St.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(B.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},St.prototype.set=function(st,rt){var Mt=this,be=st.model,M=st.index;if(be.items.length===0){this.reset();return}var j=St._moveIndex(!0,be,M);if(j===M){this.reset();return}this._acceptNext=rt,this._model=be,this._index=M,this._listener=this._editor.onDidChangeCursorPosition(function(){Mt._ignore||Mt.reset()}),this._ckOtherSuggestions.set(!0)},St._moveIndex=function(st,rt,Mt){for(var be=Mt;!(be=(be+rt.items.length+(st?1:-1))%rt.items.length,be===Mt);)if(!rt.items[be].completion.additionalTextEdits)break;return be},St.prototype.next=function(){this._move(!0)},St.prototype.prev=function(){this._move(!1)},St.prototype._move=function(st){if(!this._model)return;try{this._ignore=!0,this._index=St._moveIndex(st,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},St.OtherSuggestions=new V.d("hasOtherSuggestions",!1),St=Se([Ie(1,V.c)],St),St}(),Ve=e("MI8n"),ke=e("gCVg"),se=e("fpMC"),ee=e("N0LK"),ie=function(){function St(st,rt){this.leadingLineContent=st,this.characterCountDelta=rt}return St}(),q=function(){function St(st,rt,Mt,be,M,j){this._snippetCompareFn=St._compareCompletionItems,this._items=st,this._column=rt,this._wordDistance=be,this._options=M,this._refilterKind=1,this._lineContext=Mt,j==="top"?this._snippetCompareFn=St._compareCompletionItemsSnippetsUp:j==="bottom"&&(this._snippetCompareFn=St._compareCompletionItemsSnippetsDown)}return Object.defineProperty(St.prototype,"lineContext",{get:function(){return this._lineContext},set:function(st){(this._lineContext.leadingLineContent!==st.leadingLineContent||this._lineContext.characterCountDelta!==st.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta<st.characterCountDelta&&this._filteredItems?2:1,this._lineContext=st)},enumerable:!0,configurable:!0}),Object.defineProperty(St.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(St.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete},enumerable:!0,configurable:!0}),St.prototype.adopt=function(st){for(var rt=new Array,Mt=0;Mt<this._items.length;)st.has(this._items[Mt].provider)?Mt++:(rt.push(this._items[Mt]),this._items[Mt]=this._items[this._items.length-1],this._items.pop());return this._refilterKind=1,rt},Object.defineProperty(St.prototype,"stats",{get:function(){return this._ensureCachedState(),this._stats},enumerable:!0,configurable:!0}),St.prototype._ensureCachedState=function(){this._refilterKind!==0&&this._createCachedState()},St.prototype._createCachedState=function(){this._isIncomplete=new Set,this._stats={suggestionCount:0,snippetCount:0,textCount:0};for(var st=this._lineContext,rt=st.leadingLineContent,Mt=st.characterCountDelta,be="",M="",j=this._refilterKind===1?this._items:this._filteredItems,X=[],Te=!this._options.filterGraceful||j.length>2e3?se.d:se.e,Ae=0;Ae<j.length;Ae++){var Ne=j[Ae];Ne.container.incomplete&&this._isIncomplete.add(Ne.provider);var lt=Ne.position.column-Ne.editStart.column,ft=lt+Mt-(Ne.position.column-this._column);if(be.length!==ft&&(be=ft===0?"":rt.slice(-ft),M=be.toLowerCase()),Ne.word=be,ft===0)Ne.score=se.a.Default;else{for(var At=0;At<lt;){var Ft=be.charCodeAt(At);if(Ft===32||Ft===9)At+=1;else break}var Ut=typeof Ne.completion.label=="string"?Ne.completion.label:Ne.completion.label.name;if(At>=ft)Ne.score=se.a.Default;else if(typeof Ne.completion.filterText=="string"){var Vt=Te(be,M,At,Ne.completion.filterText,Ne.filterTextLow,0,!1);if(!Vt)continue;Object(ee.f)(Ne.completion.filterText,Ut)===0?Ne.score=Vt:(Ne.score=Object(se.b)(be,M,At,Ut,Ne.labelLow,0),Ne.score[0]=Vt[0])}else{var Vt=Te(be,M,At,Ut,Ne.labelLow,0,!1);if(!Vt)continue;Ne.score=Vt}}Ne.idx=Ae,Ne.distance=this._wordDistance.distance(Ne.position,Ne.completion),X.push(Ne),this._stats.suggestionCount++;switch(Ne.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=X.sort(this._snippetCompareFn),this._refilterKind=0},St._compareCompletionItems=function(st,rt){return st.score[0]>rt.score[0]?-1:st.score[0]<rt.score[0]?1:st.distance<rt.distance?-1:st.distance>rt.distance?1:st.idx<rt.idx?-1:st.idx>rt.idx?1:0},St._compareCompletionItemsSnippetsDown=function(st,rt){if(st.completion.kind!==rt.completion.kind){if(st.completion.kind===25)return 1;if(rt.completion.kind===25)return-1}return St._compareCompletionItems(st,rt)},St._compareCompletionItemsSnippetsUp=function(st,rt){if(st.completion.kind!==rt.completion.kind){if(st.completion.kind===25)return-1;if(rt.completion.kind===25)return 1}return St._compareCompletionItems(st,rt)},St}(),ce=e("JQT/"),Z=e("Z7SF"),ye=function(){var St=function(st,rt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Mt,be){Mt.__proto__=be}||function(Mt,be){for(var M in be)be.hasOwnProperty(M)&&(Mt[M]=be[M])},St(st,rt)};return function(st,rt){St(st,rt);function Mt(){this.constructor=st}st.prototype=rt===null?Object.create(rt):(Mt.prototype=rt.prototype,new Mt)}}(),je=function(St,st,rt,Mt){function be(M){return M instanceof rt?M:new rt(function(j){j(M)})}return new(rt||(rt=Promise))(function(M,j){function X(Ne){try{Ae(Mt.next(Ne))}catch(lt){j(lt)}}function Te(Ne){try{Ae(Mt.throw(Ne))}catch(lt){j(lt)}}function Ae(Ne){Ne.done?M(Ne.value):be(Ne.value).then(X,Te)}Ae((Mt=Mt.apply(St,st||[])).next())})},Ge=function(St,st){var rt={label:0,sent:function(){if(M[0]&1)throw M[1];return M[1]},trys:[],ops:[]},Mt,be,M,j;return j={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(j[Symbol.iterator]=function(){return this}),j;function X(Ae){return function(Ne){return Te([Ae,Ne])}}function Te(Ae){if(Mt)throw new TypeError("Generator is already executing.");for(;rt;)try{if(Mt=1,be&&(M=Ae[0]&2?be.return:Ae[0]?be.throw||((M=be.return)&&M.call(be),0):be.next)&&!(M=M.call(be,Ae[1])).done)return M;(be=0,M)&&(Ae=[Ae[0]&2,M.value]);switch(Ae[0]){case 0:case 1:M=Ae;break;case 4:return rt.label++,{value:Ae[1],done:!1};case 5:rt.label++,be=Ae[1],Ae=[0];continue;case 7:Ae=rt.ops.pop(),rt.trys.pop();continue;default:if(!(M=rt.trys,M=M.length>0&&M[M.length-1])&&(Ae[0]===6||Ae[0]===2)){rt=0;continue}if(Ae[0]===3&&(!M||Ae[1]>M[0]&&Ae[1]<M[3])){rt.label=Ae[1];break}if(Ae[0]===6&&rt.label<M[1]){rt.label=M[1],M=Ae;break}if(M&&rt.label<M[2]){rt.label=M[2],rt.ops.push(Ae);break}M[2]&&rt.ops.pop(),rt.trys.pop();continue}Ae=st.call(St,rt)}catch(Ne){Ae=[6,Ne],be=0}finally{Mt=M=0}if(Ae[0]&5)throw Ae[1];return{value:Ae[0]?Ae[1]:void 0,done:!0}}},ue=function(){function St(){}return St.create=function(st,rt){return je(this,void 0,void 0,function(){var Mt,be,M,j;return Ge(this,function(X){switch(X.label){case 0:return rt.getOption(89).localityBonus?rt.hasModel()?(Mt=rt.getModel(),be=rt.getPosition(),st.canComputeWordRanges(Mt.uri)?[4,new Z.a().provideSelectionRanges(Mt,[be])]:[2,St.None]):[2,St.None]:[2,St.None];case 1:return M=X.sent(),!M||M.length===0||M[0].length===0?[2,St.None]:[4,st.computeWordRanges(Mt.uri,M[0][0].range)];case 2:return j=X.sent(),[2,new(function(Te){ye(Ae,Te);function Ae(){return Te!==null&&Te.apply(this,arguments)||this}return Ae.prototype.distance=function(Ne,lt){if(!j||!be.equals(rt.getPosition()))return 0;if(lt.kind===17)return 2<<20;var ft=typeof lt.label=="string"?lt.label:lt.label.name,At=j[ft];if(Object(le.p)(At))return 2<<20;for(var Ft=Object(le.c)(At,W.a.fromPositions(Ne),W.a.compareRangesUsingStarts),Ut=Ft>=0?At[Ft]:At[Math.max(0,~Ft-1)],Vt=M.length,oo=0,Zt=M[0];oo<Zt.length;oo++){var mo=Zt[oo];if(!W.a.containsRange(mo.range,Ut))break;Vt-=1}return Vt},Ae}(St))]}})})},St.None=new(function(st){ye(rt,st);function rt(){return st!==null&&st.apply(this,arguments)||this}return rt.prototype.distance=function(){return 0},rt}(St)),St}(),ve=function(){function St(st,rt,Mt,be){this.leadingLineContent=st.getLineContent(rt.lineNumber).substr(0,rt.column-1),this.leadingWord=st.getWordUntilPosition(rt),this.lineNumber=rt.lineNumber,this.column=rt.column,this.auto=Mt,this.shy=be}return St.shouldAutoTrigger=function(st){if(!st.hasModel())return!1;var rt=st.getModel(),Mt=st.getPosition();rt.tokenizeIfCheap(Mt.lineNumber);var be=rt.getWordAtPosition(Mt);return be?be.endColumn!==Mt.column?!1:!!isNaN(Number(be.word)):!1},St}(),Ee=function(){function St(st,rt){var Mt=this;this._editor=st,this._editorWorker=rt,this._toDispose=new B.b,this._quickSuggestDelay=10,this._triggerCharacterListener=new B.b,this._triggerQuickSuggest=new C.e,this._state=0,this._completionDisposables=new B.b,this._onDidCancel=new Ve.a,this._onDidTrigger=new Ve.a,this._onDidSuggest=new Ve.a,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._currentSelection=this._editor.getSelection()||new ke.a(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(function(){Mt._updateTriggerCharacters(),Mt.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(function(){Mt._updateTriggerCharacters(),Mt.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(function(){Mt._updateTriggerCharacters(),Mt._updateQuickSuggest()})),this._toDispose.add(v.d.onDidChange(function(){Mt._updateTriggerCharacters(),Mt._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(function(M){Mt._onCursorChange(M)}));var be=!1;this._toDispose.add(this._editor.onDidCompositionStart(function(){be=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(function(){be=!1,Mt._refilterCompletionItems()})),this._toDispose.add(this._editor.onDidChangeModelContent(function(){be||Mt._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}return St.prototype.dispose=function(){Object(B.f)(this._triggerCharacterListener),Object(B.f)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()},St.prototype._updateQuickSuggest=function(){this._quickSuggestDelay=this._editor.getOption(67),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&this._quickSuggestDelay!==0||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)},St.prototype._updateTriggerCharacters=function(){var st=this;if(this._triggerCharacterListener.clear(),this._editor.getOption(68)||!this._editor.hasModel()||!this._editor.getOption(92))return;for(var rt=new Map,Mt=0,be=v.d.all(this._editor.getModel());Mt<be.length;Mt++)for(var M=be[Mt],j=0,X=M.triggerCharacters||[];j<X.length;j++){var Te=X[j],Ae=rt.get(Te);Ae||(Ae=new Set,Ae.add(Object(_e.c)()),rt.set(Te,Ae)),Ae.add(M)}var Ne=function(lt){if(!lt){var ft=st._editor.getPosition(),At=st._editor.getModel();lt=At.getLineContent(ft.lineNumber).substr(0,ft.column-1)}var Ft="";Object(ee.A)(lt.charCodeAt(lt.length-1))?Object(ee.z)(lt.charCodeAt(lt.length-2))&&(Ft=lt.substr(lt.length-2)):Ft=lt.charAt(lt.length-1);var Ut=rt.get(Ft);if(Ut){var Vt=st._completionModel?st._completionModel.adopt(Ut):void 0;st.trigger({auto:!0,shy:!1,triggerCharacter:Ft},Boolean(st._completionModel),Ut,Vt)}};this._triggerCharacterListener.add(this._editor.onDidType(Ne)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(Ne))},Object.defineProperty(St.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),St.prototype.cancel=function(st){st===void 0&&(st=!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:st}))},St.prototype.clear=function(){this._completionDisposables.clear()},St.prototype._updateActiveSuggestSession=function(){this._state!==0&&(!this._editor.hasModel()||!v.d.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._state===2,shy:!1},!0))},St.prototype._onCursorChange=function(st){var rt=this;if(!this._editor.hasModel())return;var Mt=this._editor.getModel(),be=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!st.selection.isEmpty()||st.reason!==0||st.source!=="keyboard"&&st.source!=="deleteLeft"){this.cancel();return}if(!v.d.has(Mt))return;if(this._state===0){if(this._editor.getOption(66)===!1)return;if(!be.containsRange(this._currentSelection)&&!be.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(89).snippetsPreventQuickSuggestions&&h.SnippetController2.get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(function(){if(rt._state!==0)return;if(!ve.shouldAutoTrigger(rt._editor))return;if(!rt._editor.hasModel())return;var M=rt._editor.getModel(),j=rt._editor.getPosition(),X=rt._editor.getOption(66);if(X===!1)return;if(!(X===!0)){M.tokenizeIfCheap(j.lineNumber);var Te=M.getLineTokens(j.lineNumber),Ae=Te.getStandardTokenType(Te.findTokenIndexAtOffset(Math.max(j.column-1-1,0))),Ne=X.other&&Ae===0||X.comments&&Ae===1||X.strings&&Ae===2;if(!Ne)return}rt.trigger({auto:!0,shy:!1})},this._quickSuggestDelay)}},St.prototype._refilterCompletionItems=function(){var st=this;Promise.resolve().then(function(){if(st._state===0)return;if(!st._editor.hasModel())return;var rt=st._editor.getModel(),Mt=st._editor.getPosition(),be=new ve(rt,Mt,st._state===2,!1);st._onNewContext(be)})},St.prototype.trigger=function(st,rt,Mt,be){var M=this;if(rt===void 0&&(rt=!1),!this._editor.hasModel())return;var j=this._editor.getModel(),X=st.auto,Te=new ve(j,this._editor.getPosition(),X,st.shy);this.cancel(rt),this._state=X?2:1,this._onDidTrigger.fire({auto:X,shy:st.shy,position:this._editor.getPosition()}),this._context=Te;var Ae;st.triggerCharacter?Ae={triggerKind:1,triggerCharacter:st.triggerCharacter}:Mt&&Mt.size>0?Ae={triggerKind:2}:Ae={triggerKind:0},this._requestToken=new ce.b;var Ne=this._editor.getOption(86),lt=1;switch(Ne){case"top":lt=0;break;case"bottom":lt=2;break}var ft=St._createItemKindFilter(this._editor),At=ue.create(this._editorWorker,this._editor),Ft=Object(_e.e)(j,this._editor.getPosition(),new _e.a(lt,ft,Mt),Ae,this._requestToken.token);Promise.all([Ft,At]).then(function(Ut){var Vt=Ut[0],oo=Ut[1];if(Object(B.f)(M._requestToken),M._state===0)return;if(!M._editor.hasModel())return;var Zt=M._editor.getModel();if(Object(le.q)(be)){var mo=Object(_e.d)(lt);Vt=Vt.concat(be).sort(mo)}var mt=new ve(Zt,M._editor.getPosition(),X,st.shy);M._completionModel=new q(Vt,M._context.column,{leadingLineContent:mt.leadingLineContent,characterCountDelta:mt.column-M._context.column},oo,M._editor.getOption(89),M._editor.getOption(86));for(var He=0,De=Vt;He<De.length;He++){var ot=De[He];Object(B.g)(ot.container)&&M._completionDisposables.add(ot.container)}M._onNewContext(mt)}).catch($.e)},St._createItemKindFilter=function(st){var rt=new Set,Mt=st.getOption(86);Mt==="none"&&rt.add(25);var be=st.getOption(89);return be.showMethods||rt.add(0),be.showFunctions||rt.add(1),be.showConstructors||rt.add(2),be.showFields||rt.add(3),be.showVariables||rt.add(4),be.showClasses||rt.add(5),be.showStructs||rt.add(6),be.showInterfaces||rt.add(7),be.showModules||rt.add(8),be.showProperties||rt.add(9),be.showEvents||rt.add(10),be.showOperators||rt.add(11),be.showUnits||rt.add(12),be.showValues||rt.add(13),be.showConstants||rt.add(14),be.showEnums||rt.add(15),be.showEnumMembers||rt.add(16),be.showKeywords||rt.add(17),be.showWords||rt.add(18),be.showColors||rt.add(19),be.showFiles||rt.add(20),be.showReferences||rt.add(21),be.showColors||rt.add(22),be.showFolders||rt.add(23),be.showTypeParameters||rt.add(24),be.showSnippets||rt.add(25),rt},St.prototype._onNewContext=function(st){if(!this._context)return;if(st.lineNumber!==this._context.lineNumber){this.cancel();return}if(st.leadingWord.startColumn<this._context.leadingWord.startColumn){this.cancel();return}if(st.column<this._context.column){st.leadingWord.word?this.trigger({auto:this._context.auto,shy:!1},!0):this.cancel();return}if(!this._completionModel)return;if(st.column>this._context.column&&this._completionModel.incomplete.size>0&&st.leadingWord.word.length!==0){var rt=this._completionModel.incomplete,Mt=this._completionModel.adopt(rt);this.trigger({auto:this._state===2,shy:!1},!0,rt,Mt)}else{var be=this._completionModel.lineContext,M=!1;if(this._completionModel.lineContext={leadingLineContent:st.leadingLineContent,characterCountDelta:st.column-this._context.column},this._completionModel.items.length===0){if(ve.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn<st.leadingWord.startColumn){this.trigger({auto:this._context.auto,shy:!1},!0);return}if(this._context.auto){this.cancel();return}else if(this._completionModel.lineContext=be,M=this._completionModel.items.length>0,M&&st.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:M})}},St}(),xe=e("CClx"),Ce=e("nn6Y"),he=e("k76M"),J=e("jqj9"),b=e("EffR"),F=e("cqdO"),re=e("GJhM"),ne=e("bexQ"),fe=e("XXUj"),Oe=e("ptcw"),Me=e("t9D7"),Ue=e("MD5Z"),Je=e("3qCu"),nt=e("WBhO"),vt=e("W9cx"),Rt=e("xONI"),Dt=e("tYmi"),Kt=e("gslv"),ao=e("MqQJ"),lo;(function(St){St[St.FILE=0]="FILE",St[St.FOLDER=1]="FOLDER",St[St.ROOT_FOLDER=2]="ROOT_FOLDER"})(lo||(lo={}));function so(St,st,rt,Mt){var be=Mt===lo.ROOT_FOLDER?["rootfolder-icon"]:Mt===lo.FOLDER?["folder-icon"]:["file-icon"];if(rt){var M;if(rt.scheme===Dt.b.data){var j=Kt.a.parseMetaData(rt);M=j.get(Kt.a.META_DATA_LABEL)}else M=pt(Object(Kt.c)(rt).toLowerCase());if(Mt===lo.FOLDER)be.push(M+"-name-folder-icon");else{if(M){be.push(M+"-name-file-icon");for(var X=M.split("."),Te=1;Te<X.length;Te++)be.push(X.slice(Te).join(".")+"-ext-file-icon");be.push("ext-file-icon")}var Ae=jt(St,st,rt);Ae&&be.push(pt(Ae)+"-lang-file-icon")}}return be}function jt(St,st,rt){if(!rt)return null;var Mt=null;if(rt.scheme===Dt.b.data){var be=Kt.a.parseMetaData(rt),M=be.get(Kt.a.META_DATA_MIME);M&&(Mt=st.getModeId(M))}else{var j=St.getModel(rt);j&&(Mt=j.getModeId())}return Mt&&Mt!==ao.c?Mt:st.getModeIdByFilepathOrFirstLine(rt)}function pt(St){return St.replace(/\s/g,"\\$&")}var gt=e("G2kB"),Tt=e("bY76"),it=e("eLzo"),et=e("cGHE"),ut=function(){return ut=Object.assign||function(St){for(var st,rt=1,Mt=arguments.length;rt<Mt;rt++){st=arguments[rt];for(var be in st)Object.prototype.hasOwnProperty.call(st,be)&&(St[be]=st[be])}return St},ut.apply(this,arguments)},Ct=function(St,st,rt,Mt){var be=arguments.length,M=be<3?st:Mt===null?Mt=Object.getOwnPropertyDescriptor(st,rt):Mt,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(St,st,rt,Mt);else for(var X=St.length-1;X>=0;X--)(j=St[X])&&(M=(be<3?j(M):be>3?j(st,rt,M):j(st,rt))||M);return be>3&&M&&Object.defineProperty(st,rt,M),M},ht=function(St,st){return function(rt,Mt){st(rt,Mt,St)}},Et=function(St,st,rt,Mt){function be(M){return M instanceof rt?M:new rt(function(j){j(M)})}return new(rt||(rt=Promise))(function(M,j){function X(Ne){try{Ae(Mt.next(Ne))}catch(lt){j(lt)}}function Te(Ne){try{Ae(Mt.throw(Ne))}catch(lt){j(lt)}}function Ae(Ne){Ne.done?M(Ne.value):be(Ne.value).then(X,Te)}Ae((Mt=Mt.apply(St,st||[])).next())})},Yt=function(St,st){var rt={label:0,sent:function(){if(M[0]&1)throw M[1];return M[1]},trys:[],ops:[]},Mt,be,M,j;return j={next:X(0),throw:X(1),return:X(2)},typeof Symbol=="function"&&(j[Symbol.iterator]=function(){return this}),j;function X(Ae){return function(Ne){return Te([Ae,Ne])}}function Te(Ae){if(Mt)throw new TypeError("Generator is already executing.");for(;rt;)try{if(Mt=1,be&&(M=Ae[0]&2?be.return:Ae[0]?be.throw||((M=be.return)&&M.call(be),0):be.next)&&!(M=M.call(be,Ae[1])).done)return M;(be=0,M)&&(Ae=[Ae[0]&2,M.value]);switch(Ae[0]){case 0:case 1:M=Ae;break;case 4:return rt.label++,{value:Ae[1],done:!1};case 5:rt.label++,be=Ae[1],Ae=[0];continue;case 7:Ae=rt.ops.pop(),rt.trys.pop();continue;default:if(!(M=rt.trys,M=M.length>0&&M[M.length-1])&&(Ae[0]===6||Ae[0]===2)){rt=0;continue}if(Ae[0]===3&&(!M||Ae[1]>M[0]&&Ae[1]<M[3])){rt.label=Ae[1];break}if(Ae[0]===6&&rt.label<M[1]){rt.label=M[1],M=Ae;break}if(M&&rt.label<M[2]){rt.label=M[2],rt.ops.push(Ae);break}M[2]&&rt.ops.pop(),rt.trys.pop();continue}Ae=st.call(St,rt)}catch(Ne){Ae=[6,Ne],be=0}finally{Mt=M=0}if(Ae[0]&5)throw Ae[1];return{value:Ae[0]?Ae[1]:void 0,done:!0}}},Nt=!1,bt=Object(Ue.Tb)("editorSuggestWidget.background",{dark:Ue.Q,light:Ue.Q,hc:Ue.Q},K.a("editorSuggestWidgetBackground","Background color of the suggest widget.")),$e=Object(Ue.Tb)("editorSuggestWidget.border",{dark:Ue.R,light:Ue.R,hc:Ue.R},K.a("editorSuggestWidgetBorder","Border color of the suggest widget.")),Ye=Object(Ue.Tb)("editorSuggestWidget.foreground",{dark:Ue.x,light:Ue.x,hc:Ue.x},K.a("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),ze=Object(Ue.Tb)("editorSuggestWidget.selectedBackground",{dark:Ue.rb,light:Ue.rb,hc:Ue.rb},K.a("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),Ke=Object(Ue.Tb)("editorSuggestWidget.highlightForeground",{dark:Ue.tb,light:Ue.tb,hc:Ue.tb},K.a("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),ge=/^(#([\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 G(St,st){var rt=typeof St.completion.label=="string"?St.completion.label:St.completion.label.name;return rt.match(ge)?(st[0]=rt,!0):typeof St.completion.documentation=="string"&&St.completion.documentation.match(ge)?(st[0]=St.completion.documentation,!0):!1}function oe(St){if(!St)return!1;var st=St.completion;return st.documentation?!0:st.detail&&st.detail!==st.label}function Y(St){return"suggest-aria-id:"+St}var ae=function(){function St(st,rt,Mt,be,M,j){this.widget=st,this.editor=rt,this.triggerKeybindingLabel=Mt,this._modelService=be,this._modeService=M,this._themeService=j}return Object.defineProperty(St.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),St.prototype.renderTemplate=function(st){var rt=this,Mt=Object.create(null);Mt.disposables=new B.b,Mt.root=st,Object(b.f)(Mt.root,"show-file-icons"),Mt.icon=Object(b.q)(st,Object(b.a)(".icon")),Mt.colorspan=Object(b.q)(Mt.icon,Object(b.a)("span.colorspan"));var be=Object(b.q)(st,Object(b.a)(".contents")),M=Object(b.q)(be,Object(b.a)(".main"));Mt.left=Object(b.q)(M,Object(b.a)("span.left")),Mt.right=Object(b.q)(M,Object(b.a)("span.right")),Mt.iconContainer=Object(b.q)(Mt.left,Object(b.a)(".icon-label.codicon")),Mt.iconLabel=new Rt.a(Mt.left,{supportHighlights:!0,supportCodicons:!0}),Mt.disposables.add(Mt.iconLabel),Mt.signatureLabel=Object(b.q)(Mt.left,Object(b.a)("span.signature-label")),Mt.qualifierLabel=Object(b.q)(Mt.left,Object(b.a)("span.qualifier-label")),Mt.detailsLabel=Object(b.q)(Mt.right,Object(b.a)("span.details-label")),Mt.readMore=Object(b.q)(Mt.right,Object(b.a)("span.readMore.codicon.codicon-info")),Mt.readMore.title=K.a("readMore","Read More...{0}",this.triggerKeybindingLabel);var j=function(){var X=rt.editor.getOptions(),Te=X.get(34),Ae=Te.fontFamily,Ne=Te.fontFeatureSettings,lt=X.get(90)||Te.fontSize,ft=X.get(91)||Te.lineHeight,At=Te.fontWeight,Ft=lt+"px",Ut=ft+"px";Mt.root.style.fontSize=Ft,Mt.root.style.fontWeight=At,M.style.fontFamily=Ae,M.style.fontFeatureSettings=Ne,M.style.lineHeight=Ut,Mt.icon.style.height=Ut,Mt.icon.style.width=Ut,Mt.readMore.style.height=Ut,Mt.readMore.style.width=Ut};return j(),Mt.disposables.add(Ve.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(X){return X.hasChanged(34)||X.hasChanged(90)||X.hasChanged(91)}).on(j,null)),Mt},St.prototype.renderElement=function(st,rt,Mt){var be=this,M=Mt,j=st.completion,X=typeof j.label=="string"?j.label:j.label.name;M.root.id=Y(rt),M.icon.className="icon "+Object(v.F)(j.kind),M.colorspan.style.backgroundColor="";var Te={labelEscapeNewLines:!0,matches:Object(se.c)(st.score)},Ae=[];if(j.kind===19&&G(st,Ae))M.icon.className="icon customcolor",M.iconContainer.className="icon hide",M.colorspan.style.backgroundColor=Ae[0];else if(j.kind===20&&this._themeService.getIconTheme().hasFileIcons){M.icon.className="icon hide",M.iconContainer.className="icon hide";var Ne=so(this._modelService,this._modeService,Tt.a.from({scheme:"fake",path:X}),lo.FILE),lt=so(this._modelService,this._modeService,Tt.a.from({scheme:"fake",path:j.detail}),lo.FILE);Te.extraClasses=Ne.length>lt.length?Ne:lt}else j.kind===23&&this._themeService.getIconTheme().hasFolderIcons?(M.icon.className="icon hide",M.iconContainer.className="icon hide",Te.extraClasses=Object(le.m)([so(this._modelService,this._modeService,Tt.a.from({scheme:"fake",path:X}),lo.FOLDER),so(this._modelService,this._modeService,Tt.a.from({scheme:"fake",path:j.detail}),lo.FOLDER)])):(M.icon.className="icon hide",M.iconContainer.className="",Object(b.g)(M.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(v.F)(j.kind)));j.tags&&j.tags.indexOf(1)>=0&&(Te.extraClasses=(Te.extraClasses||[]).concat(["deprecated"]),Te.matches=[]),M.iconLabel.setLabel(X,void 0,Te),typeof j.label=="string"?(M.signatureLabel.textContent="",M.qualifierLabel.textContent="",M.detailsLabel.textContent=(j.detail||"").replace(/\n.*$/m,""),Object(b.P)(M.right,"always-show-details")):(M.signatureLabel.textContent=(j.label.signature||"").replace(/\n.*$/m,""),M.qualifierLabel.textContent=(j.label.qualifier||"").replace(/\n.*$/m,""),M.detailsLabel.textContent=(j.label.type||"").replace(/\n.*$/m,""),Object(b.f)(M.right,"always-show-details")),oe(st)?(Object(b.f)(M.right,"can-expand-details"),Object(b.X)(M.readMore),M.readMore.onmousedown=function(ft){ft.stopPropagation(),ft.preventDefault()},M.readMore.onclick=function(ft){ft.stopPropagation(),ft.preventDefault(),be.widget.toggleDetails()}):(Object(b.P)(M.right,"can-expand-details"),Object(b.J)(M.readMore),M.readMore.onmousedown=null,M.readMore.onclick=null)},St.prototype.disposeTemplate=function(st){st.disposables.dispose()},St=Ct([ht(3,gt.a),ht(4,nt.a),ht(5,Me.c)],St),St}(),Fe=function(){function St(st,rt,Mt,be,M){var j=this;this.widget=rt,this.editor=Mt,this.markdownRenderer=be,this.kbToggleDetails=M,this.borderWidth=1,this.disposables=new B.b,this.el=Object(b.q)(st,Object(b.a)(".details")),this.disposables.add(Object(B.h)(function(){return st.removeChild(j.el)})),this.body=Object(b.a)(".body"),this.scrollbar=new re.a(this.body,{}),Object(b.q)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(b.q)(this.body,Object(b.a)(".header")),this.close=Object(b.q)(this.header,Object(b.a)("span.codicon.codicon-close")),this.close.title=K.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(b.q)(this.header,Object(b.a)("p.type")),this.docs=Object(b.q)(this.body,Object(b.a)("p.docs")),this.configureFont(),Ve.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(X){return X.hasChanged(34)}).on(this.configureFont,this,this.disposables),be.onDidRenderCodeBlock(function(){return j.scrollbar.scanDomNode()},this,this.disposables)}return Object.defineProperty(St.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),St.prototype.renderLoading=function(){this.type.textContent=K.a("loading","Loading..."),this.docs.textContent=""},St.prototype.renderItem=function(st,rt){var Mt=this;this.renderDisposeable=Object(B.f)(this.renderDisposeable);var be=st.completion,M=be.documentation,j=be.detail;if(rt){var X="";X+="score: "+st.score[0]+(st.word?", compared '"+(st.completion.filterText&&st.completion.filterText+" (filterText)"||st.completion.label)+"' with '"+st.word+"'":" (no prefix)")+`
`,X+="distance: "+st.distance+`, see localityBonus-setting
`,X+="index: "+st.idx+", based on "+(st.completion.sortText&&'sortText: "'+st.completion.sortText+'"'||"label")+`
`,M=new it.a().appendCodeblock("empty",X),j="Provider: "+st.provider._debugDisplayName}if(!rt&&!oe(st)){this.type.textContent="",this.docs.textContent="",Object(b.f)(this.el,"no-docs");return}if(Object(b.P)(this.el,"no-docs"),typeof M=="string")Object(b.P)(this.docs,"markdown-docs"),this.docs.textContent=M;else{Object(b.f)(this.docs,"markdown-docs"),this.docs.innerHTML="";var Te=this.markdownRenderer.render(M);this.renderDisposeable=Te,this.docs.appendChild(Te.element)}j?(this.type.innerText=j,Object(b.X)(this.type)):(this.type.innerText="",Object(b.J)(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(Ae){Ae.preventDefault(),Ae.stopPropagation()},this.close.onclick=function(Ae){Ae.preventDefault(),Ae.stopPropagation(),Mt.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()},St.prototype.scrollDown=function(st){st===void 0&&(st=8),this.body.scrollTop+=st},St.prototype.scrollUp=function(st){st===void 0&&(st=8),this.body.scrollTop-=st},St.prototype.scrollTop=function(){this.body.scrollTop=0},St.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},St.prototype.pageDown=function(){this.scrollDown(80)},St.prototype.pageUp=function(){this.scrollUp(80)},St.prototype.setBorderWidth=function(st){this.borderWidth=st},St.prototype.configureFont=function(){var st=this.editor.getOptions(),rt=st.get(34),Mt=rt.fontFamily,be=st.get(90)||rt.fontSize,M=st.get(91)||rt.lineHeight,j=rt.fontWeight,X=be+"px",Te=M+"px";this.el.style.fontSize=X,this.el.style.fontWeight=j,this.el.style.fontFeatureSettings=rt.fontFeatureSettings,this.type.style.fontFamily=Mt,this.close.style.height=Te,this.close.style.width=Te},St.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(B.f)(this.renderDisposeable)},St}(),dt=function(){function St(st,rt,Mt,be,M,j,X,Te,Ae){var Ne=this,lt,ft;this.editor=st,this.telemetryService=rt,this.keybindingService=Mt,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=B.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new C.e,this.toDispose=new B.b,this.onDidSelectEmitter=new Ve.a,this.onDidFocusEmitter=new Ve.a,this.onDidHideEmitter=new Ve.a,this.onDidShowEmitter=new Ve.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 Ve.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;var At=this.toDispose.add(new Je.a(st,X,Te)),Ft=(ft=(lt=Mt.lookupKeybinding("toggleSuggestionDetails"))===null||lt===void 0?void 0:lt.getLabel())!==null&&ft!==void 0?ft:"";this.msgDetailsLess=K.a("detail.less","{0} for less...",Ft),this.msgDetailMore=K.a("detail.more","{0} for more...",Ft),this.isAuto=!1,this.focusedItem=null,this.storageService=j,this.element=Object(b.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(b.j)(this.element,"click",function(Zt){Zt.target===Ne.element&&Ne.hideWidget()})),this.messageElement=Object(b.q)(this.element,Object(b.a)(".message")),this.listElement=Object(b.q)(this.element,Object(b.a)(".tree"));var Ut=function(){return Object(b.Y)(Ne.element,"with-status-bar",!Ne.editor.getOption(89).hideStatusBar)};Ut(),this.statusBarElement=Object(b.q)(this.element,Object(b.a)(".suggest-status-bar")),this.statusBarLeftSpan=Object(b.q)(this.statusBarElement,Object(b.a)("span")),this.statusBarRightSpan=Object(b.q)(this.statusBarElement,Object(b.a)("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=Ae.createInstance(Fe,this.element,this,this.editor,At,Ft);var Vt=function(){return Object(b.Y)(Ne.element,"no-icons",!Ne.editor.getOption(89).showIcons)};Vt();var oo=Ae.createInstance(ae,this,this.editor,Ft);this.list=new F.c("SuggestWidget",this.listElement,this,[oo],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(Zt){var mo=typeof Zt.completion.label=="string"?Zt.completion.label:Zt.completion.label.name;if(Zt.isResolved&&Ne.expandDocsSettingFromStorage()){var mt=Zt.completion,He=mt.documentation,De=mt.detail,ot=ee.r("{0}{1}",De||"",He?typeof He=="string"?He:He.value:"");return K.a("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",mo,ot)}else return mo}}}),this.toDispose.add(Object(Oe.b)(this.list,M,{listInactiveFocusBackground:ze,listInactiveFocusOutline:Ue.b})),this.toDispose.add(M.onThemeChange(function(Zt){return Ne.onThemeChange(Zt)})),this.toDispose.add(st.onDidLayoutChange(function(){return Ne.onEditorLayoutChange()})),this.toDispose.add(this.list.onMouseDown(function(Zt){return Ne.onListMouseDownOrTap(Zt)})),this.toDispose.add(this.list.onTap(function(Zt){return Ne.onListMouseDownOrTap(Zt)})),this.toDispose.add(this.list.onSelectionChange(function(Zt){return Ne.onListSelection(Zt)})),this.toDispose.add(this.list.onFocusChange(function(Zt){return Ne.onListFocus(Zt)})),this.toDispose.add(this.editor.onDidChangeCursorSelection(function(){return Ne.onCursorSelectionChanged()})),this.toDispose.add(this.editor.onDidChangeConfiguration(function(Zt){Zt.hasChanged(89)&&(Ut(),Vt())})),this.suggestWidgetVisible=_e.b.Visible.bindTo(be),this.suggestWidgetMultipleSuggestions=_e.b.MultipleSuggestions.bindTo(be),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(M.getTheme()),this.toDispose.add(Object(b.o)(this.details.element,"keydown",function(Zt){Ne._onDetailsKeydown.fire(Zt)})),this.toDispose.add(this.editor.onMouseDown(function(Zt){return Ne.onEditorMouseDown(Zt)}))}return St.prototype.onEditorMouseDown=function(st){this.details.element.contains(st.target.element)?this.details.element.focus():this.element.contains(st.target.element)&&this.editor.focus()},St.prototype.onCursorSelectionChanged=function(){if(this.state===0)return;this.editor.layoutContentWidget(this)},St.prototype.onEditorLayoutChange=function(){(this.state===3||this.state===5)&&this.expandDocsSettingFromStorage()&&this.expandSideOrBelow()},St.prototype.onListMouseDownOrTap=function(st){if(typeof st.element=="undefined"||typeof st.index=="undefined")return;st.browserEvent.preventDefault(),st.browserEvent.stopPropagation(),this.select(st.element,st.index)},St.prototype.onListSelection=function(st){if(!st.elements.length)return;this.select(st.elements[0],st.indexes[0])},St.prototype.select=function(st,rt){var Mt=this.completionModel;if(!Mt)return;this.onDidSelectEmitter.fire({item:st,index:rt,model:Mt}),this.editor.focus()},St.prototype.onThemeChange=function(st){var rt=st.getColor(bt);rt&&(this.listElement.style.backgroundColor=rt.toString(),this.statusBarElement.style.backgroundColor=rt.toString(),this.details.element.style.backgroundColor=rt.toString(),this.messageElement.style.backgroundColor=rt.toString());var Mt=st.getColor($e);Mt&&(this.listElement.style.borderColor=Mt.toString(),this.statusBarElement.style.borderColor=Mt.toString(),this.details.element.style.borderColor=Mt.toString(),this.messageElement.style.borderColor=Mt.toString(),this.detailsBorderColor=Mt.toString());var be=st.getColor(Ue.V);be&&(this.detailsFocusBorderColor=be.toString()),this.details.setBorderWidth(st.type==="hc"?2:1)},St.prototype.onListFocus=function(st){var rt=this,Mt,be;if(this.ignoreFocusEvents)return;if(!st.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 M=st.elements[0],j=st.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,M!==this.focusedItem){var X=this.editor.getOption(89).insertMode==="insert",Te=(Mt=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))===null||Mt===void 0?void 0:Mt.getLabel(),Ae=(be=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))===null||be===void 0?void 0:be.getLabel();et.a.equals(M.editInsertEnd,M.editReplaceEnd)?this.setStatusBarLeftText(K.a("accept","{0} to accept",Te)):X?this.setStatusBarLeftText(K.a("insert","{0} to insert, {1} to replace",Te,Ae)):this.setStatusBarLeftText(K.a("replace","{0} to replace, {1} to insert",Te,Ae)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=M,this.list.reveal(j),this.currentSuggestionDetails=Object(C.f)(function(Ne){return Et(rt,void 0,void 0,function(){var lt,ft,At=this;return Yt(this,function(Ft){switch(Ft.label){case 0:return lt=Object(C.g)(function(){return At.showDetails(!0)},250),Ne.onCancellationRequested(function(){return lt.dispose()}),[4,M.resolve(Ne)];case 1:return ft=Ft.sent(),lt.dispose(),[2,ft]}})})}),this.currentSuggestionDetails.then(function(){if(j>=rt.list.length||M!==rt.list.element(j))return;rt.ignoreFocusEvents=!0,rt.list.splice(j,1,[M]),rt.list.setFocus([j]),rt.ignoreFocusEvents=!1,rt.expandDocsSettingFromStorage()?rt.showDetails(!1):Object(b.P)(rt.element,"docs-side"),oe(rt.focusedItem)?rt.expandDocsSettingFromStorage()?rt.setStatusBarRightText(rt.msgDetailsLess):rt.setStatusBarRightText(rt.msgDetailMore):rt.statusBarRightSpan.innerText="",rt.editor.setAriaOptions({activeDescendant:Y(j)})}).catch($.e)}this.onDidFocusEmitter.fire({item:M,index:j,model:this.completionModel})},St.prototype.setState=function(st){if(!this.element)return;var rt=this.state!==st;this.state=st,Object(b.Y)(this.element,"frozen",st===4);switch(st){case 0:Object(b.J)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,rt&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=St.LOADING_MESSAGE,Object(b.J)(this.listElement,this.details.element,this.statusBarElement),Object(b.X)(this.messageElement),Object(b.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=St.NO_SUGGESTIONS_MESSAGE,Object(b.J)(this.listElement,this.details.element,this.statusBarElement),Object(b.X)(this.messageElement),Object(b.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(b.J)(this.messageElement),Object(b.X)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(b.J)(this.messageElement),Object(b.X)(this.listElement),this.show();break;case 5:Object(b.J)(this.messageElement),Object(b.X)(this.details.element,this.listElement,this.statusBarElement),this.show();break}},St.prototype.showTriggered=function(st,rt){var Mt=this;if(this.state!==0)return;this.isAuto=!!st,this.isAuto||(this.loadingTimeout=Object(C.g)(function(){return Mt.setState(1)},rt))},St.prototype.showSuggestions=function(st,rt,Mt,be){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==st&&(this.completionModel=st),Mt&&this.state!==2&&this.state!==0){this.setState(4);return}var M=this.completionModel.items.length,j=M===0;if(this.suggestWidgetMultipleSuggestions.set(M>1),j)be?this.setState(0):this.setState(2),this.completionModel=null;else{if(this.state!==3){var X=this.completionModel.stats;X.wasAutomaticallyTriggered=!!be,this.telemetryService.publicLog("suggestWidget",ut({},X))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),Mt?this.setState(4):this.setState(3),this.list.reveal(rt,0),this.list.setFocus([rt]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}},St.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}},St.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},St.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}},St.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}},St.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},St.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}},St.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},St.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")},St.prototype.toggleDetails=function(){if(!oe(this.list.getFocusedElements()[0]))return;if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(b.J)(this.details.element),Object(b.P)(this.element,"docs-side"),Object(b.P)(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")}},St.prototype.showDetails=function(st){st||this.expandSideOrBelow(),Object(b.X)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",st?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()},St.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},St.prototype.show=function(){var st=this,rt=this.updateListHeight();rt!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=rt),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){Object(b.f)(st.element,"visible"),st.onDidShowEmitter.fire(st)},100)},St.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(b.P)(this.element,"visible")},St.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},St.prototype.getPosition=function(){if(this.state===0)return null;var st=[2,1];return this.preferDocPositionTop&&(st=[1]),{position:this.editor.getPosition(),preference:st}},St.prototype.getDomNode=function(){return this.element},St.prototype.getId=function(){return St.ID},St.prototype.isFrozen=function(){return this.state===4},St.prototype.updateListHeight=function(){var st=0;if(this.state===2||this.state===1)st=this.unfocusedHeight;else{var rt=this.list.contentHeight/this.unfocusedHeight,Mt=this.editor.getOption(89).maxVisibleSuggestions;st=Math.min(rt,Mt)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=st+"px",this.statusBarElement.style.top=st+"px",this.list.layout(st),st},St.prototype.adjustDocsPosition=function(){if(!this.editor.hasModel())return;var st=this.editor.getOption(49),rt=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),Mt=Object(b.C)(this.editor.getDomNode()),be=Mt.left+rt.left,M=Mt.top+rt.top+rt.height,j=Object(b.C)(this.element),X=j.left,Te=j.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetY<Te&&!this.preferDocPositionTop){this.preferDocPositionTop=!0,this.adjustDocsPosition();return}this.docsPositionPreviousWidgetY=Te,X<be-this.listWidth?Object(b.f)(this.element,"list-right"):Object(b.P)(this.element,"list-right"),Object(b.I)(this.element,"docs-side")&&M-st>Te&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")},St.prototype.expandSideOrBelow=function(){if(!oe(this.focusedItem)&&this.firstFocusInCurrentList){Object(b.P)(this.element,"docs-side"),Object(b.P)(this.element,"docs-below");return}var st=this.element.style.maxWidth.match(/(\d+)px/);!st||Number(st[1])<this.maxWidgetWidth?(Object(b.f)(this.element,"docs-below"),Object(b.P)(this.element,"docs-side")):oe(this.focusedItem)&&(Object(b.f)(this.element,"docs-side"),Object(b.P)(this.element,"docs-below"))},Object.defineProperty(St.prototype,"maxWidgetHeight",{get:function(){return this.unfocusedHeight*this.editor.getOption(89).maxVisibleSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(St.prototype,"unfocusedHeight",{get:function(){var st=this.editor.getOptions();return st.get(91)||st.get(34).lineHeight},enumerable:!0,configurable:!0}),St.prototype.getHeight=function(st){return this.unfocusedHeight},St.prototype.getTemplateId=function(st){return"suggestion"},St.prototype.expandDocsSettingFromStorage=function(){return this.storageService.getBoolean("expandSuggestionDocs",0,Nt)},St.prototype.updateExpandDocsSetting=function(st){this.storageService.store("expandSuggestionDocs",st,0)},St.prototype.setStatusBarLeftText=function(st){this.statusBarLeftSpan.innerText=st},St.prototype.setStatusBarRightText=function(st){this.statusBarRightSpan.innerText=st},St.prototype.dispose=function(){this.details.dispose(),this.list.dispose(),this.toDispose.dispose(),this.loadingTimeout.dispose(),this.showTimeout.dispose()},St.ID="editor.widget.suggestWidget",St.LOADING_MESSAGE=K.a("suggestWidget.loading","Loading..."),St.NO_SUGGESTIONS_MESSAGE=K.a("suggestWidget.noSuggestions","No suggestions."),St=Ct([ht(1,fe.a),ht(2,ne.a),ht(3,V.c),ht(4,Me.c),ht(5,f.a),ht(6,nt.a),ht(7,vt.a),ht(8,g.a)],St),St}();Object(Me.e)(function(St,st){var rt=St.getColor(Ke);rt&&st.addRule(".monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: "+rt+"; }");var Mt=St.getColor(Ye);Mt&&st.addRule(".monaco-editor .suggest-widget { color: "+Mt+"; }");var be=St.getColor(Ue.ec);be&&st.addRule(".monaco-editor .suggest-widget a { color: "+be+"; }");var M=St.getColor(Ue.dc);M&&st.addRule(".monaco-editor .suggest-widget code { background-color: "+M+"; }")});var Ot=function(){var St=function(st,rt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Mt,be){Mt.__proto__=be}||function(Mt,be){for(var M in be)be.hasOwnProperty(M)&&(Mt[M]=be[M])},St(st,rt)};return function(st,rt){St(st,rt);function Mt(){this.constructor=st}st.prototype=rt===null?Object.create(rt):(Mt.prototype=rt.prototype,new Mt)}}(),Qt=function(St,st,rt,Mt){var be=arguments.length,M=be<3?st:Mt===null?Mt=Object.getOwnPropertyDescriptor(st,rt):Mt,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(St,st,rt,Mt);else for(var X=St.length-1;X>=0;X--)(j=St[X])&&(M=(be<3?j(M):be>3?j(st,rt,M):j(st,rt))||M);return be>3&&M&&Object.defineProperty(st,rt,M),M},to=function(St,st){return function(rt,Mt){st(rt,Mt,St)}},fo=function(St){Ot(st,St);function st(rt,Mt){var be=St.call(this)||this;return be._editor=rt,be._enabled=!1,be._ckAtEnd=st.AtEnd.bindTo(Mt),be._register(be._editor.onDidChangeConfiguration(function(M){return M.hasChanged(94)&&be._update()})),be._update(),be}return st.prototype.dispose=function(){St.prototype.dispose.call(this),Object(B.f)(this._selectionListener),this._ckAtEnd.reset()},st.prototype._update=function(){var rt=this,Mt=this._editor.getOption(94)==="on";if(this._enabled===Mt)return;if(this._enabled=Mt,this._enabled){var be=function(){if(!rt._editor.hasModel()){rt._ckAtEnd.set(!1);return}var M=rt._editor.getModel(),j=rt._editor.getSelection(),X=M.getWordAtPosition(j.getStartPosition());if(!X){rt._ckAtEnd.set(!1);return}rt._ckAtEnd.set(X.endColumn===j.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(be),be()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},st.AtEnd=new V.d("atEndOfWord",!1),st=Qt([to(1,V.c)],st),st}(B.a),ho=e("pAvP"),_o=e("746U"),Do=e("MXAL"),Ro=function(){function St(st,rt,Mt){var be=this;this._disposables=new B.b,this._disposables.add(rt.onDidShow(function(){return be._onItem(rt.getFocusedItem())})),this._disposables.add(rt.onDidFocus(this._onItem,this)),this._disposables.add(rt.onDidHide(this.reset,this)),this._disposables.add(st.onWillType(function(M){if(be._active&&!rt.isFrozen()){var j=M.charCodeAt(M.length-1);be._active.acceptCharacters.has(j)&&st.getOption(0)&&Mt(be._active.item)}}))}return St.prototype._onItem=function(st){if(!st||!Object(le.q)(st.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===st.item)return;for(var rt=new Do.b,Mt=0,be=st.item.completion.commitCharacters;Mt<be.length;Mt++){var M=be[Mt];M.length>0&&rt.add(M.charCodeAt(0))}this._active={acceptCharacters:rt,item:st}},St.prototype.reset=function(){this._active=void 0},St.prototype.dispose=function(){this._disposables.dispose()},St}(),jo=e("MNsG"),Eo=e("4y0V"),Wo=function(){var St=function(st,rt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Mt,be){Mt.__proto__=be}||function(Mt,be){for(var M in be)be.hasOwnProperty(M)&&(Mt[M]=be[M])},St(st,rt)};return function(st,rt){St(st,rt);function Mt(){this.constructor=st}st.prototype=rt===null?Object.create(rt):(Mt.prototype=rt.prototype,new Mt)}}(),Ho=function(){function St(st){var rt=this;this._controller=st,this._disposables=new B.b,this._decorations=[],this._disposables.add(st.model.onDidSuggest(function(Mt){if(!Mt.shy){var be=rt._controller.widget.getValue(),M=be.getFocusedItem();M&&rt._highlight(M.item),rt._widgetListener||(rt._widgetListener=be.onDidFocus(function(j){return rt._highlight(j.item)}))}})),this._disposables.add(st.model.onDidCancel(function(){rt._reset()}))}return St.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(B.f)(this._widgetListener),Object(B.f)(this._shiftKeyListener)},St.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},St.prototype._highlight=function(st){var rt=this,Mt;this._currentItem=st;var be=this._controller.editor.getOption(89),M=[];if(be.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=Fo.event(function(){return rt._highlight(rt._currentItem)}));var j=this._controller.getOverwriteInfo(st,Fo.isPressed),X=this._controller.editor.getPosition();if(be.insertMode==="insert"&&j.overwriteAfter>0)M=[{range:new W.a(X.lineNumber,X.column,X.lineNumber,X.column+j.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if(be.insertMode==="replace"&&j.overwriteAfter===0){var Te=(Mt=this._controller.editor.getModel())===null||Mt===void 0?void 0:Mt.getWordAtPosition(X);Te&&Te.endColumn>X.column&&(M=[{range:new W.a(X.lineNumber,X.column,X.lineNumber,Te.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,M)},St}(),Fo=new(function(St){Wo(st,St);function st(){var rt=St.call(this)||this;return rt._subscriptions=new B.b,rt._isPressed=!1,rt._subscriptions.add(Object(Eo.a)(document.body,"keydown")(function(Mt){return rt.isPressed=Mt.shiftKey})),rt._subscriptions.add(Object(Eo.a)(document.body,"keyup")(function(){return rt.isPressed=!1})),rt._subscriptions.add(Object(Eo.a)(document.body,"mouseleave")(function(){return rt.isPressed=!1})),rt._subscriptions.add(Object(Eo.a)(document.body,"blur")(function(){return rt.isPressed=!1})),rt}return Object.defineProperty(st.prototype,"isPressed",{get:function(){return this._isPressed},set:function(rt){this._isPressed!==rt&&(this._isPressed=rt,this.fire(rt))},enumerable:!0,configurable:!0}),st.prototype.dispose=function(){this._subscriptions.dispose(),St.prototype.dispose.call(this)},st}(Ve.a)),Io=function(){var St=function(st,rt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Mt,be){Mt.__proto__=be}||function(Mt,be){for(var M in be)be.hasOwnProperty(M)&&(Mt[M]=be[M])},St(st,rt)};return function(st,rt){St(st,rt);function Mt(){this.constructor=st}st.prototype=rt===null?Object.create(rt):(Mt.prototype=rt.prototype,new Mt)}}(),tn=function(){return tn=Object.assign||function(St){for(var st,rt=1,Mt=arguments.length;rt<Mt;rt++){st=arguments[rt];for(var be in st)Object.prototype.hasOwnProperty.call(st,be)&&(St[be]=st[be])}return St},tn.apply(this,arguments)},un=function(St,st,rt,Mt){var be=arguments.length,M=be<3?st:Mt===null?Mt=Object.getOwnPropertyDescriptor(st,rt):Mt,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(St,st,rt,Mt);else for(var X=St.length-1;X>=0;X--)(j=St[X])&&(M=(be<3?j(M):be>3?j(st,rt,M):j(st,rt))||M);return be>3&&M&&Object.defineProperty(st,rt,M),M},Vo=function(St,st){return function(rt,Mt){st(rt,Mt,St)}},Cn=function(){for(var St=0,st=0,rt=arguments.length;st<rt;st++)St+=arguments[st].length;for(var Mt=Array(St),be=0,st=0;st<rt;st++)for(var M=arguments[st],j=0,X=M.length;j<X;j++,be++)Mt[be]=M[j];return Mt},pn=!1,rn=function(){function St(st,rt){this._model=st,this._position=rt;var Mt=st.getLineMaxColumn(rt.lineNumber);if(Mt!==rt.column){var be=st.getOffsetAt(rt),M=st.getPositionAt(be+1);this._marker=st.deltaDecorations([],[{range:W.a.fromPositions(rt,M),options:{stickiness:1}}])}}return St.prototype.dispose=function(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])},St.prototype.delta=function(st){if(this._model.isDisposed()||this._position.lineNumber!==st.lineNumber)return 0;if(this._marker){var rt=this._model.getDecorationRange(this._marker[0]),Mt=this._model.getOffsetAt(rt.getStartPosition());return Mt-this._model.getOffsetAt(st)}else return this._model.getLineMaxColumn(st.lineNumber)-st.column},St}(),on=function(){function St(st,rt,Mt,be,M,j){var X=this;this._memoryService=Mt,this._commandService=be,this._contextKeyService=M,this._instantiationService=j,this._lineSuffix=new B.d,this._toDispose=new B.b,this.editor=st,this.model=new Ee(this.editor,rt),this.widget=this._toDispose.add(new C.b(function(){var Ne=X._instantiationService.createInstance(dt,X.editor);X._toDispose.add(Ne),X._toDispose.add(Ne.onDidSelect(function(At){return X._insertSuggestion(At,0)},X));var lt=new Ro(X.editor,Ne,function(At){return X._insertSuggestion(At,2)});X._toDispose.add(lt),X._toDispose.add(X.model.onDidSuggest(function(At){At.completionModel.items.length===0&&lt.reset()}));var ft=_e.b.MakesTextEdit.bindTo(X._contextKeyService);return X._toDispose.add(Ne.onDidFocus(function(At){var Ft=At.item,Ut=X.editor.getPosition(),Vt=Ft.editStart.column,oo=Ut.column,Zt=!0;if(X.editor.getOption(1)==="smart"&&X.model.state===2&&!Ft.completion.command&&!Ft.completion.additionalTextEdits&&!(Ft.completion.insertTextRules&4)&&oo-Vt===Ft.completion.insertText.length){var mo=X.editor.getModel().getValueInRange({startLineNumber:Ut.lineNumber,startColumn:Vt,endLineNumber:Ut.lineNumber,endColumn:oo});Zt=mo!==Ft.completion.insertText}ft.set(Zt)})),X._toDispose.add(Object(B.h)(function(){return ft.reset()})),X._toDispose.add(Ne.onDetailsKeyDown(function(At){if(At.toKeybinding().equals(new R.e(!0,!1,!1,!1,33))||jo.e&&At.toKeybinding().equals(new R.e(!1,!1,!1,!0,33))){At.stopPropagation();return}At.toKeybinding().isModifierKey()||X.editor.focus()})),Ne})),this._alternatives=this._toDispose.add(new C.b(function(){return X._toDispose.add(new Pe(X.editor,X._contextKeyService))})),this._toDispose.add(j.createInstance(fo,st)),this._toDispose.add(this.model.onDidTrigger(function(Ne){X.widget.getValue().showTriggered(Ne.auto,Ne.shy?250:50),X._lineSuffix.value=new rn(X.editor.getModel(),Ne.position)})),this._toDispose.add(this.model.onDidSuggest(function(Ne){if(!Ne.shy){var lt=X._memoryService.select(X.editor.getModel(),X.editor.getPosition(),Ne.completionModel.items);X.widget.getValue().showSuggestions(Ne.completionModel,lt,Ne.isFrozen,Ne.auto)}})),this._toDispose.add(this.model.onDidCancel(function(Ne){Ne.retrigger||X.widget.getValue().hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(function(){pn||(X.model.cancel(),X.model.clear())}));var Te=_e.b.AcceptSuggestionsOnEnter.bindTo(M),Ae=function(){var Ne=X.editor.getOption(1);Te.set(Ne==="on"||Ne==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(function(){return Ae()})),Ae(),this._toDispose.add(new Ho(this))}return St.get=function(st){return st.getContribution(St.ID)},St.prototype.dispose=function(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()},St.prototype._insertSuggestion=function(st,rt){var Mt,be=this;if(!st||!st.item){this._alternatives.getValue().reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;var M=this.editor.getModel(),j=M.getAlternativeVersionId(),X=st.item,Te=X.completion;rt&1||this.editor.pushUndoStop();var Ae=this.getOverwriteInfo(X,Boolean(rt&8));this._memoryService.memorize(M,this.editor.getPosition(),X),Array.isArray(Te.additionalTextEdits)&&this.editor.executeEdits("suggestController.additionalTextEdits",Te.additionalTextEdits.map(function(lt){return D.a.replace(W.a.lift(lt.range),lt.text)}));var Ne=Te.insertText;Te.insertTextRules&4||(Ne=y.c.escape(Ne)),h.SnippetController2.get(this.editor).insert(Ne,{overwriteBefore:Ae.overwriteBefore,overwriteAfter:Ae.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(Te.insertTextRules&1)}),rt&2||this.editor.pushUndoStop(),Te.command?Te.command.id===dn.id?this.model.trigger({auto:!0,shy:!1},!0):((Mt=this._commandService).executeCommand.apply(Mt,Cn([Te.command.id],Te.command.arguments?Cn(Te.command.arguments):[])).catch($.e).finally(function(){return be.model.clear()}),this.model.cancel()):(this.model.cancel(),this.model.clear()),rt&4&&this._alternatives.getValue().set(st,function(lt){for(;M.canUndo();){j!==M.getAlternativeVersionId()&&M.undo(),be._insertSuggestion(lt,1|2|(rt&8?8:0));break}}),this._alertCompletionItem(st.item)},St.prototype.getOverwriteInfo=function(st,rt){Object(_o.a)(this.editor.hasModel());var Mt=this.editor.getOption(89).insertMode==="replace";rt&&(Mt=!Mt);var be=st.position.column-st.editStart.column,M=(Mt?st.editReplaceEnd.column:st.editInsertEnd.column)-st.position.column,j=this.editor.getPosition().column-st.position.column,X=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:be+j,overwriteAfter:M+X}},St.prototype._alertCompletionItem=function(st){var rt=st.completion,Mt=typeof rt.label=="string"?rt.label:rt.label.name;if(Object(le.q)(rt.additionalTextEdits)){var be=K.a("arai.alert.snippet","Accepting '{0}' made {1} additional edits",Mt,rt.additionalTextEdits.length);Object(T.a)(be)}},St.prototype.triggerSuggest=function(st){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,st),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())},St.prototype.triggerSuggestAndAcceptBest=function(st){var rt=this;if(!this.editor.hasModel())return;var Mt=this.editor.getPosition(),be=function(){Mt.equals(rt.editor.getPosition())&&rt._commandService.executeCommand(st.fallback)},M=function(j){if(j.completion.insertTextRules&4||j.completion.additionalTextEdits)return!0;var X=rt.editor.getPosition(),Te=j.editStart.column,Ae=X.column;if(Ae-Te!==j.completion.insertText.length)return!0;var Ne=rt.editor.getModel().getValueInRange({startLineNumber:X.lineNumber,startColumn:Te,endLineNumber:X.lineNumber,endColumn:Ae});return Ne!==j.completion.insertText};Ve.b.once(this.model.onDidTrigger)(function(j){var X=[];Ve.b.any(rt.model.onDidTrigger,rt.model.onDidCancel)(function(){Object(B.f)(X),be()},void 0,X),rt.model.onDidSuggest(function(Te){var Ae=Te.completionModel;if(Object(B.f)(X),Ae.items.length===0){be();return}var Ne=rt._memoryService.select(rt.editor.getModel(),rt.editor.getPosition(),Ae.items),lt=Ae.items[Ne];if(!M(lt)){be();return}rt.editor.pushUndoStop(),rt._insertSuggestion({index:Ne,item:lt,model:Ae},4|1|2)},void 0,X)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(Mt.lineNumber,0),this.editor.focus()},St.prototype.acceptSelectedSuggestion=function(st,rt){var Mt=this.widget.getValue().getFocusedItem(),be=0;st&&(be|=4),rt&&(be|=8),this._insertSuggestion(Mt,be)},St.prototype.acceptNextSuggestion=function(){this._alternatives.getValue().next()},St.prototype.acceptPrevSuggestion=function(){this._alternatives.getValue().prev()},St.prototype.cancelSuggestWidget=function(){this.model.cancel(),this.model.clear(),this.widget.getValue().hideWidget()},St.prototype.selectNextSuggestion=function(){this.widget.getValue().selectNext()},St.prototype.selectNextPageSuggestion=function(){this.widget.getValue().selectNextPage()},St.prototype.selectLastSuggestion=function(){this.widget.getValue().selectLast()},St.prototype.selectPrevSuggestion=function(){this.widget.getValue().selectPrevious()},St.prototype.selectPrevPageSuggestion=function(){this.widget.getValue().selectPreviousPage()},St.prototype.selectFirstSuggestion=function(){this.widget.getValue().selectFirst()},St.prototype.toggleSuggestionDetails=function(){this.widget.getValue().toggleDetails()},St.prototype.toggleExplainMode=function(){this.widget.getValue().toggleExplainMode()},St.prototype.toggleSuggestionFocus=function(){this.widget.getValue().toggleDetailsFocus()},St.ID="editor.contrib.suggestController",St=un([Vo(1,ho.a),Vo(2,Q),Vo(3,H.b),Vo(4,V.c),Vo(5,g.a)],St),St}(),dn=function(St){Io(st,St);function st(){return St.call(this,{id:st.id,label:K.a("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:V.a.and(x.a.writable,x.a.hasCompletionItemProvider),kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|10,mac:{primary:256|10,secondary:[512|9]},weight:100}})||this}return st.prototype.run=function(rt,Mt){var be=on.get(Mt);if(!be)return;be.triggerSuggest()},st.id="editor.action.triggerSuggest",st}(z.b);Object(z.h)(on.ID,on),Object(z.f)(dn);var Uo=100+90,Bo=z.c.bindToContribution(on.get);Object(z.g)(new Bo({id:"acceptSelectedSuggestion",precondition:_e.b.Visible,handler:function(St){St.acceptSelectedSuggestion(!0,!1)}})),de.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:V.a.and(_e.b.Visible,x.a.textInputFocus),primary:2,weight:Uo}),de.a.registerKeybindingRule({id:"acceptSelectedSuggestion",when:V.a.and(_e.b.Visible,x.a.textInputFocus,_e.b.AcceptSuggestionsOnEnter,_e.b.MakesTextEdit),primary:3,weight:Uo}),Object(z.g)(new Bo({id:"acceptAlternativeSelectedSuggestion",precondition:V.a.and(_e.b.Visible,x.a.textInputFocus),kbOpts:{weight:Uo,kbExpr:x.a.textInputFocus,primary:1024|3,secondary:[1024|2]},handler:function(St){St.acceptSelectedSuggestion(!1,!0)}})),H.a.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(z.g)(new Bo({id:"hideSuggestWidget",precondition:_e.b.Visible,handler:function(St){return St.cancelSuggestWidget()},kbOpts:{weight:Uo,kbExpr:x.a.textInputFocus,primary:9,secondary:[1024|9]}})),Object(z.g)(new Bo({id:"selectNextSuggestion",precondition:V.a.and(_e.b.Visible,_e.b.MultipleSuggestions),handler:function(St){return St.selectNextSuggestion()},kbOpts:{weight:Uo,kbExpr:x.a.textInputFocus,primary:18,secondary:[2048|18],mac:{primary:18,secondary:[2048|18,256|44]}}})),Object(z.g)(new Bo({id:"selectNextPageSuggestion",precondition:V.a.and(_e.b.Visible,_e.b.MultipleSuggestions),handler:function(St){return St.selectNextPageSuggestion()},kbOpts:{weight:Uo,kbExpr:x.a.textInputFocus,primary:12,secondary:[2048|12]}})),Object(z.g)(new Bo({id:"selectLastSuggestion",precondition:V.a.and(_e.b.Visible,_e.b.MultipleSuggestions),handler:function(St){return St.selectLastSuggestion()}})),Object(z.g)(new Bo({id:"selectPrevSuggestion",precondition:V.a.and(_e.b.Visible,_e.b.MultipleSuggestions),handler:function(St){return St.selectPrevSuggestion()},kbOpts:{weight:Uo,kbExpr:x.a.textInputFocus,primary:16,secondary:[2048|16],mac:{primary:16,secondary:[2048|16,256|46]}}})),Object(z.g)(new Bo({id:"selectPrevPageSuggestion",precondition:V.a.and(_e.b.Visible,_e.b.MultipleSuggestions),handler:function(St){return St.selectPrevPageSuggestion()},kbOpts:{weight:Uo,kbExpr:x.a.textInputFocus,primary:11,secondary:[2048|11]}})),Object(z.g)(new Bo({id:"selectFirstSuggestion",precondition:V.a.and(_e.b.Visible,_e.b.MultipleSuggestions),handler:function(St){return St.selectFirstSuggestion()}})),Object(z.g)(new Bo({id:"toggleSuggestionDetails",precondition:_e.b.Visible,handler:function(St){return St.toggleSuggestionDetails()},kbOpts:{weight:Uo,kbExpr:x.a.textInputFocus,primary:2048|10,mac:{primary:256|10}}})),Object(z.g)(new Bo({id:"toggleExplainMode",precondition:_e.b.Visible,handler:function(St){return St.toggleExplainMode()},kbOpts:{weight:100,primary:2048|85}})),Object(z.g)(new Bo({id:"toggleSuggestionFocus",precondition:_e.b.Visible,handler:function(St){return St.toggleSuggestionFocus()},kbOpts:{weight:Uo,kbExpr:x.a.textInputFocus,primary:2048|512|10,mac:{primary:256|512|10}}})),Object(z.g)(new Bo({id:"insertBestCompletion",precondition:V.a.and(V.a.equals("config.editor.tabCompletion","on"),fo.AtEnd,_e.b.Visible.toNegated(),Pe.OtherSuggestions.toNegated(),h.SnippetController2.InSnippetMode.toNegated()),handler:function(St,st){St.triggerSuggestAndAcceptBest(Object(_o.i)(st)?tn({fallback:"tab"},st):{fallback:"tab"})},kbOpts:{weight:Uo,primary:2}})),Object(z.g)(new Bo({id:"insertNextSuggestion",precondition:V.a.and(V.a.equals("config.editor.tabCompletion","on"),Pe.OtherSuggestions,_e.b.Visible.toNegated(),h.SnippetController2.InSnippetMode.toNegated()),handler:function(St){return St.acceptNextSuggestion()},kbOpts:{weight:Uo,kbExpr:x.a.textInputFocus,primary:2}})),Object(z.g)(new Bo({id:"insertPrevSuggestion",precondition:V.a.and(V.a.equals("config.editor.tabCompletion","on"),Pe.OtherSuggestions,_e.b.Visible.toNegated(),h.SnippetController2.InSnippetMode.toNegated()),handler:function(St){return St.acceptPrevSuggestion()},kbOpts:{weight:Uo,kbExpr:x.a.textInputFocus,primary:1024|2}}))},epnl:function(Lt,N,e){},eq1K:function(Lt,N,e){},erNZ:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("N0LK"),le;typeof TextDecoder!="undefined"?le=function(B){return new $(B)}:le=function(B){return new R};var $=function(){function B(z){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=z|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return B.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},B.prototype.build=function(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},B.prototype._buildBuffer=function(){if(this._bufferLength===0)return"";var z=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(z)},B.prototype._flushBuffer=function(){var z=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[z]:this._completedStrings[this._completedStrings.length]=z},B.prototype.write1=function(z){var D=this._capacity-this._bufferLength;D<=1&&((D===0||T.z(z))&&this._flushBuffer()),this._buffer[this._bufferLength++]=z},B.prototype.appendASCII=function(z){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=z},B.prototype.appendASCIIString=function(z){var D=z.length;if(this._bufferLength+D>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=z;return}for(var W=0;W<D;W++)this._buffer[this._bufferLength++]=z.charCodeAt(W)},B}(),R=function(){function B(){this._pieces=[],this._piecesLen=0}return B.prototype.reset=function(){this._pieces=[],this._piecesLen=0},B.prototype.build=function(){return this._pieces.join("")},B.prototype.write1=function(z){this._pieces[this._piecesLen++]=String.fromCharCode(z)},B.prototype.appendASCII=function(z){this._pieces[this._piecesLen++]=String.fromCharCode(z)},B.prototype.appendASCIIString=function(z){this._pieces[this._piecesLen++]=z},B}()},fD5p:function(Lt,N,e){"use strict";e.r(N),e.d(N,"ContextMenuController",function(){return u});var T=e("3/fG"),le=e("EffR"),$=e("WqXY"),R=e("pmY6"),B=e("sswD"),z=e("wQH0"),D=e("fjLI"),W=e("T8No"),x=e("Uzvx"),h=e("bexQ"),y=e("2gzu"),w=function(){var l=function(c,p){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,L){_.__proto__=L}||function(_,L){for(var I in L)L.hasOwnProperty(I)&&(_[I]=L[I])},l(c,p)};return function(c,p){l(c,p);function _(){this.constructor=c}c.prototype=p===null?Object.create(p):(_.prototype=p.prototype,new _)}}(),f=function(l){w(c,l);function c(p,_){var L=l.call(this,p,_,"contextsubmenu")||this;return L.entries=_,L}return c}(y.b),v=function(){var l=function(c,p){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,L){_.__proto__=L}||function(_,L){for(var I in L)L.hasOwnProperty(I)&&(_[I]=L[I])},l(c,p)};return function(c,p){l(c,p);function _(){this.constructor=c}c.prototype=p===null?Object.create(p):(_.prototype=p.prototype,new _)}}(),C=function(l,c,p,_){var L=arguments.length,I=L<3?c:_===null?_=Object.getOwnPropertyDescriptor(c,p):_,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(l,c,p,_);else for(var A=l.length-1;A>=0;A--)(P=l[A])&&(I=(L<3?P(I):L>3?P(c,p,I):P(c,p))||I);return L>3&&I&&Object.defineProperty(c,p,I),I},g=function(l,c){return function(p,_){c(p,_,l)}},u=function(){function l(c,p,_,L,I,P){var A=this;this._contextMenuService=p,this._contextViewService=_,this._contextKeyService=L,this._keybindingService=I,this._menuService=P,this._toDispose=new R.b,this._contextMenuIsBeingShownCount=0,this._editor=c,this._toDispose.add(this._editor.onContextMenu(function(Q){return A._onContextMenu(Q)})),this._toDispose.add(this._editor.onMouseWheel(function(Q){A._contextMenuIsBeingShownCount>0&&A._contextViewService.hideContextView()})),this._toDispose.add(this._editor.onKeyDown(function(Q){Q.keyCode===58&&(Q.preventDefault(),Q.stopPropagation(),A.showContextMenu())}))}return l.get=function(c){return c.getContribution(l.ID)},l.prototype._onContextMenu=function(c){if(!this._editor.hasModel())return;if(!this._editor.getOption(14)){this._editor.focus(),c.target.position&&!this._editor.getSelection().containsPosition(c.target.position)&&this._editor.setPosition(c.target.position);return}if(c.target.type===12)return;if(c.event.preventDefault(),c.target.type!==6&&c.target.type!==7&&c.target.type!==1)return;if(this._editor.focus(),c.target.position){for(var p=!1,_=0,L=this._editor.getSelections();_<L.length;_++){var I=L[_];if(I.containsPosition(c.target.position)){p=!0;break}}p||this._editor.setPosition(c.target.position)}var P=null;c.target.type!==1&&(P={x:c.event.posx-1,width:2,y:c.event.posy-1,height:2}),this.showContextMenu(P)},l.prototype.showContextMenu=function(c){if(!this._editor.getOption(14))return;if(!this._editor.hasModel())return;if(!this._contextMenuService){this._editor.focus();return}var p=this._getMenuActions(this._editor.getModel(),7);p.length>0&&this._doShowContextMenu(p,c)},l.prototype._getMenuActions=function(c,p){var _=[],L=this._menuService.createMenu(p,this._contextKeyService),I=L.getActions({arg:c.uri});L.dispose();for(var P=0,A=I;P<A.length;P++){for(var Q=A[P],K=Q[1],H=0,V=0,de=K;V<de.length;V++){var _e=de[V];if(_e instanceof D.d){var Se=this._getMenuActions(c,_e.item.submenu);Se.length>0&&(_.push(new f(_e.label,Se)),H++)}else _.push(_e),H++}H&&_.push(new $.d)}return _.length&&_.pop(),_},l.prototype._doShowContextMenu=function(c,p){var _=this;if(p===void 0&&(p=null),!this._editor.hasModel())return;var L=this._editor.getOption(44);if(this._editor.updateOptions({hover:{enabled:!1}}),!p){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();var I=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),P=le.C(this._editor.getDomNode()),A=P.left+I.left,Q=P.top+I.top+I.height;p={x:A,y:Q}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({getAnchor:function(){return p},getActions:function(){return c},getActionViewItem:function(K){var H=_._keybindingFor(K);if(H)return new $.b(K,K,{label:!0,keybinding:H.getLabel(),isMenu:!0});var V=K;return typeof V.getActionViewItem=="function"?V.getActionViewItem():new $.b(K,K,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:function(K){return _._keybindingFor(K)},onHide:function(K){_._contextMenuIsBeingShownCount--,_._editor.focus(),_._editor.updateOptions({hover:L})}})},l.prototype._keybindingFor=function(c){return this._keybindingService.lookupKeybinding(c.id)},l.prototype.dispose=function(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()},l.ID="editor.contrib.contextmenu",l=C([g(1,x.a),g(2,x.b),g(3,W.c),g(4,h.a),g(5,D.a)],l),l}(),s=function(l){v(c,l);function c(){return l.call(this,{id:"editor.action.showContextMenu",label:T.a("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:1024|68,weight:100}})||this}return c.prototype.run=function(p,_){var L=u.get(_);L.showContextMenu()},c}(B.b);Object(B.h)(u.ID,u),Object(B.f)(s)},feEw:function(Lt,N,e){"use strict";e.d(N,"a",function(){return I}),e.d(N,"b",function(){return K});var T=e("qj0h"),le=e("pmY6"),$=e("pg8w"),R=e("EffR"),B=e("MI8n"),z=e("4y0V"),D=e("GJhM"),W=e("nuFA");function x(H,V){for(var de=[],_e=0,Se=V;_e<Se.length;_e++){var Ie=Se[_e];if(H.start>=Ie.range.end)continue;if(H.end<Ie.range.start)break;var Pe=W.a.intersect(H,Ie.range);if(W.a.isEmpty(Pe))continue;de.push({range:Pe,size:Ie.size})}return de}function h(H,V){var de=H.start,_e=H.end;return{start:de+V,end:_e+V}}function y(H){for(var V=[],de=null,_e=0,Se=H;_e<Se.length;_e++){var Ie=Se[_e],Pe=Ie.range.start,Ve=Ie.range.end,ke=Ie.size;if(de&&ke===de.size){de.range.end=Ve;continue}de={range:{start:Pe,end:Ve},size:ke},V.push(de)}return V}function w(){for(var H=[],V=0;V<arguments.length;V++)H[V]=arguments[V];return y(H.reduce(function(de,_e){return de.concat(_e)},[]))}var f=function(){function H(){this.groups=[],this._size=0}return H.prototype.splice=function(V,de,_e){_e===void 0&&(_e=[]);var Se=_e.length-de,Ie=x({start:0,end:V},this.groups),Pe=x({start:V+de,end:Number.POSITIVE_INFINITY},this.groups).map(function(ke){return{range:h(ke.range,Se),size:ke.size}}),Ve=_e.map(function(ke,se){return{range:{start:V+se,end:V+se+1},size:ke.size}});this.groups=w(Ie,Ve,Pe),this._size=this.groups.reduce(function(ke,se){return ke+se.size*(se.range.end-se.range.start)},0)},Object.defineProperty(H.prototype,"count",{get:function(){var V=this.groups.length;return V?this.groups[V-1].range.end:0},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),H.prototype.indexAt=function(V){if(V<0)return-1;for(var de=0,_e=0,Se=0,Ie=this.groups;Se<Ie.length;Se++){var Pe=Ie[Se],Ve=Pe.range.end-Pe.range.start,ke=_e+Ve*Pe.size;if(V<ke)return de+Math.floor((V-_e)/Pe.size);de+=Ve,_e=ke}return de},H.prototype.indexAfter=function(V){return Math.min(this.indexAt(V)+1,this.count)},H.prototype.positionAt=function(V){if(V<0)return-1;for(var de=0,_e=0,Se=0,Ie=this.groups;Se<Ie.length;Se++){var Pe=Ie[Se],Ve=Pe.range.end-Pe.range.start,ke=_e+Ve;if(V<ke)return de+(V-_e)*Pe.size;de+=Ve*Pe.size,_e=ke}return-1},H}();function v(H){try{H.parentElement&&H.parentElement.removeChild(H)}catch(V){}}var C=function(){function H(V){this.renderers=V,this.cache=new Map}return H.prototype.alloc=function(V){var de=this.getTemplateCache(V).pop();if(!de){var _e=Object(R.a)(".monaco-list-row"),Se=this.getRenderer(V),Ie=Se.renderTemplate(_e);de={domNode:_e,templateId:V,templateData:Ie}}return de},H.prototype.release=function(V){if(!V)return;this.releaseRow(V)},H.prototype.releaseRow=function(V){var de=V.domNode,_e=V.templateId;de&&(Object(R.P)(de,"scrolling"),v(de));var Se=this.getTemplateCache(_e);Se.push(V)},H.prototype.getTemplateCache=function(V){var de=this.cache.get(V);return de||(de=[],this.cache.set(V,de)),de},H.prototype.dispose=function(){var V=this;this.cache.forEach(function(de,_e){for(var Se=0,Ie=de;Se<Ie.length;Se++){var Pe=Ie[Se],Ve=V.getRenderer(_e);Ve.disposeTemplate(Pe.templateData),Pe.domNode=null,Pe.templateData=null}}),this.cache.clear()},H.prototype.getRenderer=function(V){var de=this.renderers.get(V);if(!de)throw new Error("No renderer found for "+V);return de},H}(),g=e("ZCR3"),u=e("6OMU"),s=e("ZQ78"),l=e("X+cX"),c=e("D3Dy"),p=function(H,V,de,_e){var Se=arguments.length,Ie=Se<3?V:_e===null?_e=Object.getOwnPropertyDescriptor(V,de):_e,Pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ie=Reflect.decorate(H,V,de,_e);else for(var Ve=H.length-1;Ve>=0;Ve--)(Pe=H[Ve])&&(Ie=(Se<3?Pe(Ie):Se>3?Pe(V,de,Ie):Pe(V,de))||Ie);return Se>3&&Ie&&Object.defineProperty(V,de,Ie),Ie},_=function(){for(var H=0,V=0,de=arguments.length;V<de;V++)H+=arguments[V].length;for(var _e=Array(H),Se=0,V=0;V<de;V++)for(var Ie=arguments[V],Pe=0,Ve=Ie.length;Pe<Ve;Pe++,Se++)_e[Se]=Ie[Pe];return _e},L={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(H){return[H]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},I=function(){function H(V){this.elements=V}return H.prototype.update=function(){},H.prototype.getData=function(){return this.elements},H}(),P=function(){function H(V){this.elements=V}return H.prototype.update=function(){},H.prototype.getData=function(){return this.elements},H}(),A=function(){function H(){this.types=[],this.files=[]}return H.prototype.update=function(V){var de;if(V.types&&(de=this.types).splice.apply(de,_([0,this.types.length],V.types)),V.files){this.files.splice(0,this.files.length);for(var _e=0;_e<V.files.length;_e++){var Se=V.files.item(_e);Se&&(Se.size||Se.type)&&this.files.push(Se)}}},H.prototype.getData=function(){return{types:this.types,files:this.files}},H}();function Q(H,V){return Array.isArray(H)&&Array.isArray(V)?Object(u.g)(H,V):H===V}var K=function(){function H(V,de,_e,Se){var Ie=this;if(Se===void 0&&(Se=L),this.virtualDelegate=de,this.domId="list_id_"+ ++H.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new l.a(50),this.splicing=!1,this.dragOverAnimationStopDisposable=le.a.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=le.a.None,this.onDragLeaveTimeout=le.a.None,this.disposables=new le.b,this._onDidChangeContentHeight=new B.a,Se.horizontalScrolling&&Se.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new f;for(var Pe=0,Ve=_e;Pe<Ve.length;Pe++){var ke=Ve[Pe];this.renderers.set(ke.templateId,ke)}this.cache=this.disposables.add(new C(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",R.f(this.domNode,this.domId),this.domNode.tabIndex=0,R.Y(this.domNode,"mouse-support",typeof Se.mouseSupport=="boolean"?Se.mouseSupport:!0),this.horizontalScrolling=Object(T.f)(Se,function(se){return se.horizontalScrolling},L.horizontalScrolling),R.Y(this.domNode,"horizontal-scrolling",this.horizontalScrolling),this.additionalScrollHeight=typeof Se.additionalScrollHeight=="undefined"?0:Se.additionalScrollHeight,this.ariaProvider=Se.ariaProvider||{getSetSize:function(se,ee,ie){return ie},getPosInSet:function(se,ee){return ee+1}},this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.disposables.add($.b.addTarget(this.rowsContainer)),this.scrollableElement=this.disposables.add(new D.b(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:this.horizontalScrolling?1:2,vertical:Object(T.f)(Se,function(se){return se.verticalScrollMode},L.verticalScrollMode),useShadows:Object(T.f)(Se,function(se){return se.useShadows},L.useShadows)})),this.domNode.appendChild(this.scrollableElement.getDomNode()),V.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),Object(z.a)(this.rowsContainer,$.a.Change)(this.onTouchChange,this,this.disposables),Object(z.a)(this.scrollableElement.getDomNode(),"scroll")(function(se){return se.target.scrollTop=0},null,this.disposables),B.b.map(Object(z.a)(this.domNode,"dragover"),function(se){return Ie.toDragEvent(se)})(this.onDragOver,this,this.disposables),B.b.map(Object(z.a)(this.domNode,"drop"),function(se){return Ie.toDragEvent(se)})(this.onDrop,this,this.disposables),Object(z.a)(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),Object(z.a)(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=Object(T.f)(Se,function(se){return se.setRowLineHeight},L.setRowLineHeight),this.supportDynamicHeights=Object(T.f)(Se,function(se){return se.supportDynamicHeights},L.supportDynamicHeights),this.dnd=Object(T.f)(Se,function(se){return se.dnd},L.dnd),this.layout()}return Object.defineProperty(H.prototype,"contentHeight",{get:function(){return this.rangeMap.size},enumerable:!0,configurable:!0}),H.prototype.splice=function(V,de,_e){if(_e===void 0&&(_e=[]),this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(V,de,_e)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}},H.prototype._splice=function(V,de,_e){var Se,Ie=this;_e===void 0&&(_e=[]);for(var Pe=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Ve={start:V,end:V+de},ke=W.a.intersect(Pe,Ve),se=ke.start;se<ke.end;se++)this.removeItemFromDOM(se);var ee={start:V+de,end:this.items.length},ie=W.a.intersect(ee,Pe),q=W.a.relativeComplement(ee,Pe),ce=_e.map(function(fe){return{id:String(Ie.itemId++),element:fe,templateId:Ie.virtualDelegate.getTemplateId(fe),size:Ie.virtualDelegate.getHeight(fe),width:void 0,hasDynamicHeight:!!Ie.virtualDelegate.hasDynamicHeight&&Ie.virtualDelegate.hasDynamicHeight(fe),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:le.a.None}}),Z;V===0&&de>=this.items.length?(this.rangeMap=new f,this.rangeMap.splice(0,0,ce),this.items=ce,Z=[]):(this.rangeMap.splice(V,de,ce),Z=(Se=this.items).splice.apply(Se,_([V,de],ce)));for(var ye=_e.length-de,je=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Ge=h(ie,ye),ue=W.a.intersect(je,Ge),se=ue.start;se<ue.end;se++)this.updateItemInDOM(this.items[se],se);for(var ve=W.a.relativeComplement(Ge,je),Ee=0,xe=ve;Ee<xe.length;Ee++)for(var Ce=xe[Ee],se=Ce.start;se<Ce.end;se++)this.removeItemFromDOM(se);for(var he=q.map(function(fe){return h(fe,ye)}),J={start:V,end:V+_e.length},b=_([J],he).map(function(fe){return W.a.intersect(je,fe)}),F=this.getNextToLastElement(b),re=0,ne=b;re<ne.length;re++)for(var Ce=ne[re],se=Ce.start;se<Ce.end;se++)this.insertItemInDOM(se,F);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),Z.map(function(fe){return fe.element})},H.prototype.eventuallyUpdateScrollDimensions=function(){var V=this;this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=R.W(function(){V.scrollableElement.setScrollDimensions({scrollHeight:V.scrollHeight}),V.updateScrollWidth(),V.scrollableElementUpdateDisposable=null}))},H.prototype.eventuallyUpdateScrollWidth=function(){var V=this;if(!this.horizontalScrolling)return;this.scrollableElementWidthDelayer.trigger(function(){return V.updateScrollWidth()})},H.prototype.updateScrollWidth=function(){if(!this.horizontalScrolling)return;this.items.length===0&&this.scrollableElement.setScrollDimensions({scrollWidth:0});for(var V=0,de=0,_e=this.items;de<_e.length;de++){var Se=_e[de];typeof Se.width!="undefined"&&(V=Math.max(V,Se.width))}this.scrollWidth=V,this.scrollableElement.setScrollDimensions({scrollWidth:V+10})},H.prototype.rerender=function(){if(!this.supportDynamicHeights)return;for(var V=0,de=this.items;V<de.length;V++){var _e=de[V];_e.lastDynamicHeightWidth=void 0}this._rerender(this.lastRenderTop,this.lastRenderHeight)},Object.defineProperty(H.prototype,"length",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"renderHeight",{get:function(){var V=this.scrollableElement.getScrollDimensions();return V.height},enumerable:!0,configurable:!0}),H.prototype.element=function(V){return this.items[V].element},H.prototype.domElement=function(V){var de=this.items[V].row;return de&&de.domNode},H.prototype.elementHeight=function(V){return this.items[V].size},H.prototype.elementTop=function(V){return this.rangeMap.positionAt(V)},H.prototype.indexAt=function(V){return this.rangeMap.indexAt(V)},H.prototype.indexAfter=function(V){return this.rangeMap.indexAfter(V)},H.prototype.layout=function(V,de){var _e={height:typeof V=="number"?V:R.A(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,_e.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(_e),typeof de!="undefined"&&(this.renderWidth=de,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof de=="number"?de:R.B(this.domNode)}))},H.prototype.render=function(V,de,_e,Se){for(var Ie=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Pe=this.getRenderRange(V,de),Ve=W.a.relativeComplement(Pe,Ie),ke=W.a.relativeComplement(Ie,Pe),se=this.getNextToLastElement(Ve),ee=0,ie=Ve;ee<ie.length;ee++)for(var q=ie[ee],ce=q.start;ce<q.end;ce++)this.insertItemInDOM(ce,se);for(var Z=0,ye=ke;Z<ye.length;Z++)for(var q=ye[Z],ce=q.start;ce<q.end;ce++)this.removeItemFromDOM(ce);this.rowsContainer.style.left="-"+_e+"px",this.rowsContainer.style.top="-"+V+"px",this.horizontalScrolling&&(this.rowsContainer.style.width=Math.max(Se,this.renderWidth)+"px"),this.lastRenderTop=V,this.lastRenderHeight=de},H.prototype.insertItemInDOM=function(V,de){var _e=this,Se=this.items[V];if(!Se.row){Se.row=this.cache.alloc(Se.templateId);var Ie=this.ariaProvider.getRole?this.ariaProvider.getRole(Se.element):"treeitem";Se.row.domNode.setAttribute("role",Ie);var Pe=this.ariaProvider.isChecked?this.ariaProvider.isChecked(Se.element):void 0;typeof Pe!="undefined"&&Se.row.domNode.setAttribute("aria-checked",String(Pe))}Se.row.domNode.parentElement||(de?this.rowsContainer.insertBefore(Se.row.domNode,de):this.rowsContainer.appendChild(Se.row.domNode)),this.updateItemInDOM(Se,V);var Ve=this.renderers.get(Se.templateId);if(!Ve)throw new Error("No renderer found for template id "+Se.templateId);Ve&&Ve.renderElement(Se.element,V,Se.row.templateData,Se.size);var ke=this.dnd.getDragURI(Se.element);if(Se.dragStartDisposable.dispose(),Se.row.domNode.draggable=!!ke,ke){var se=Object(z.a)(Se.row.domNode,"dragstart");Se.dragStartDisposable=se(function(ee){return _e.onDragStart(Se.element,ke,ee)})}this.horizontalScrolling&&(this.measureItemWidth(Se),this.eventuallyUpdateScrollWidth())},H.prototype.measureItemWidth=function(V){if(!V.row||!V.row.domNode)return;V.row.domNode.style.width=c.h?"-moz-fit-content":"fit-content",V.width=R.B(V.row.domNode);var de=window.getComputedStyle(V.row.domNode);de.paddingLeft&&(V.width+=parseFloat(de.paddingLeft)),de.paddingRight&&(V.width+=parseFloat(de.paddingRight)),V.row.domNode.style.width=""},H.prototype.updateItemInDOM=function(V,de){V.row.domNode.style.top=this.elementTop(de)+"px",V.row.domNode.style.height=V.size+"px",this.setRowLineHeight&&(V.row.domNode.style.lineHeight=V.size+"px"),V.row.domNode.setAttribute("data-index",""+de),V.row.domNode.setAttribute("data-last-element",de===this.length-1?"true":"false"),V.row.domNode.setAttribute("aria-setsize",String(this.ariaProvider.getSetSize(V.element,de,this.length))),V.row.domNode.setAttribute("aria-posinset",String(this.ariaProvider.getPosInSet(V.element,de))),V.row.domNode.setAttribute("id",this.getElementDomId(de)),R.Y(V.row.domNode,"drop-target",V.dropTarget)},H.prototype.removeItemFromDOM=function(V){var de=this.items[V];de.dragStartDisposable.dispose();var _e=this.renderers.get(de.templateId);_e&&_e.disposeElement&&_e.disposeElement(de.element,V,de.row.templateData,de.size),this.cache.release(de.row),de.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()},H.prototype.getScrollTop=function(){var V=this.scrollableElement.getScrollPosition();return V.scrollTop},H.prototype.setScrollTop=function(V){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:V})},Object.defineProperty(H.prototype,"scrollTop",{get:function(){return this.getScrollTop()},set:function(V){this.setScrollTop(V)},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"scrollHeight",{get:function(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"onMouseClick",{get:function(){var V=this;return B.b.map(Object(z.a)(this.domNode,"click"),function(de){return V.toMouseEvent(de)})},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"onMouseDblClick",{get:function(){var V=this;return B.b.map(Object(z.a)(this.domNode,"dblclick"),function(de){return V.toMouseEvent(de)})},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"onMouseMiddleClick",{get:function(){var V=this;return B.b.filter(B.b.map(Object(z.a)(this.domNode,"auxclick"),function(de){return V.toMouseEvent(de)}),function(de){return de.browserEvent.button===1})},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"onMouseDown",{get:function(){var V=this;return B.b.map(Object(z.a)(this.domNode,"mousedown"),function(de){return V.toMouseEvent(de)})},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"onContextMenu",{get:function(){var V=this;return B.b.map(Object(z.a)(this.domNode,"contextmenu"),function(de){return V.toMouseEvent(de)})},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"onTouchStart",{get:function(){var V=this;return B.b.map(Object(z.a)(this.domNode,"touchstart"),function(de){return V.toTouchEvent(de)})},enumerable:!0,configurable:!0}),Object.defineProperty(H.prototype,"onTap",{get:function(){var V=this;return B.b.map(Object(z.a)(this.rowsContainer,$.a.Tap),function(de){return V.toGestureEvent(de)})},enumerable:!0,configurable:!0}),H.prototype.toMouseEvent=function(V){var de=this.getItemIndexFromEventTarget(V.target||null),_e=typeof de=="undefined"?void 0:this.items[de],Se=_e&&_e.element;return{browserEvent:V,index:de,element:Se}},H.prototype.toTouchEvent=function(V){var de=this.getItemIndexFromEventTarget(V.target||null),_e=typeof de=="undefined"?void 0:this.items[de],Se=_e&&_e.element;return{browserEvent:V,index:de,element:Se}},H.prototype.toGestureEvent=function(V){var de=this.getItemIndexFromEventTarget(V.initialTarget||null),_e=typeof de=="undefined"?void 0:this.items[de],Se=_e&&_e.element;return{browserEvent:V,index:de,element:Se}},H.prototype.toDragEvent=function(V){var de=this.getItemIndexFromEventTarget(V.target||null),_e=typeof de=="undefined"?void 0:this.items[de],Se=_e&&_e.element;return{browserEvent:V,index:de,element:Se}},H.prototype.onScroll=function(V){try{this.render(V.scrollTop,V.height,V.scrollLeft,V.scrollWidth),this.supportDynamicHeights&&this._rerender(V.scrollTop,V.height)}catch(de){throw console.error("Got bad scroll event:",V),de}},H.prototype.onTouchChange=function(V){V.preventDefault(),V.stopPropagation(),this.scrollTop-=V.translationY},H.prototype.onDragStart=function(V,de,_e){if(!_e.dataTransfer)return;var Se=this.dnd.getDragElements(V);if(_e.dataTransfer.effectAllowed="copyMove",_e.dataTransfer.setData(s.a.RESOURCES,JSON.stringify([de])),_e.dataTransfer.setDragImage){var Ie=void 0;this.dnd.getDragLabel&&(Ie=this.dnd.getDragLabel(Se,_e)),typeof Ie=="undefined"&&(Ie=String(Se.length));var Pe=R.a(".monaco-drag-image");Pe.textContent=Ie,document.body.appendChild(Pe),_e.dataTransfer.setDragImage(Pe,-10,-10),setTimeout(function(){return document.body.removeChild(Pe)},0)}this.currentDragData=new I(Se),s.c.CurrentDragAndDropData=new P(Se),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,_e)},H.prototype.onDragOver=function(V){var de=this;if(V.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),s.c.CurrentDragAndDropData&&s.c.CurrentDragAndDropData.getData()==="vscode-ui")return!1;if(this.setupDragAndDropScrollTopAnimation(V.browserEvent),!V.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(s.c.CurrentDragAndDropData)this.currentDragData=s.c.CurrentDragAndDropData;else{if(!V.browserEvent.dataTransfer.types)return!1;this.currentDragData=new A}var _e=this.dnd.onDragOver(this.currentDragData,V.element,V.index,V.browserEvent);if(this.canDrop=typeof _e=="boolean"?_e:_e.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;V.browserEvent.dataTransfer.dropEffect=typeof _e!="boolean"&&_e.effect===0?"copy":"move";var Se;if(typeof _e!="boolean"&&_e.feedback?Se=_e.feedback:typeof V.index=="undefined"?Se=[-1]:Se=[V.index],Se=Object(u.e)(Se).filter(function(se){return se>=-1&&se<de.length}).sort(function(se,ee){return se-ee}),Se=Se[0]===-1?[-1]:Se,Q(this.currentDragFeedback,Se))return!0;if(this.currentDragFeedback=Se,this.currentDragFeedbackDisposable.dispose(),Se[0]===-1)R.f(this.domNode,"drop-target"),R.f(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Object(le.h)(function(){R.P(de.domNode,"drop-target"),R.P(de.rowsContainer,"drop-target")});else{for(var Ie=0,Pe=Se;Ie<Pe.length;Ie++){var Ve=Pe[Ie],ke=this.items[Ve];ke.dropTarget=!0,ke.row&&ke.row.domNode&&R.f(ke.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Object(le.h)(function(){for(var se=0,ee=Se;se<ee.length;se++){var ie=ee[se],q=de.items[ie];q.dropTarget=!1,q.row&&q.row.domNode&&R.P(q.row.domNode,"drop-target")}})}return!0},H.prototype.onDragLeave=function(){var V=this;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(l.g)(function(){return V.clearDragOverFeedback()},100)},H.prototype.onDrop=function(V){if(!this.canDrop)return;var de=this.currentDragData;if(this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,s.c.CurrentDragAndDropData=void 0,!de||!V.browserEvent.dataTransfer)return;V.browserEvent.preventDefault(),de.update(V.browserEvent.dataTransfer),this.dnd.drop(de,V.element,V.index,V.browserEvent)},H.prototype.onDragEnd=function(V){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,s.c.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(V)},H.prototype.clearDragOverFeedback=function(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=le.a.None},H.prototype.setupDragAndDropScrollTopAnimation=function(V){var de=this;if(!this.dragOverAnimationDisposable){var _e=R.F(this.domNode).top;this.dragOverAnimationDisposable=R.p(this.animateDragAndDropScrollTop.bind(this,_e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(l.g)(function(){de.dragOverAnimationDisposable&&(de.dragOverAnimationDisposable.dispose(),de.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=V.pageY},H.prototype.animateDragAndDropScrollTop=function(V){if(this.dragOverMouseY===void 0)return;var de=this.dragOverMouseY-V,_e=this.renderHeight-35;de<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(de-35))):de>_e&&(this.scrollTop+=Math.min(14,Math.floor(.3*(de-_e))))},H.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},H.prototype.getItemIndexFromEventTarget=function(V){for(var de=V;de instanceof HTMLElement&&de!==this.rowsContainer;){var _e=de.getAttribute("data-index");if(_e){var Se=Number(_e);if(!isNaN(Se))return Se}de=de.parentElement}return},H.prototype.getRenderRange=function(V,de){return{start:this.rangeMap.indexAt(V),end:this.rangeMap.indexAfter(V+de-1)}},H.prototype._rerender=function(V,de){var _e=this.getRenderRange(V,de),Se,Ie;V===this.elementTop(_e.start)?(Se=_e.start,Ie=0):_e.end-_e.start>1&&(Se=_e.start+1,Ie=this.elementTop(Se)-V);for(var Pe=0;;){for(var Ve=this.getRenderRange(V,de),ke=!1,se=Ve.start;se<Ve.end;se++){var ee=this.probeDynamicHeight(se);ee!==0&&this.rangeMap.splice(se,1,[this.items[se]]),Pe+=ee,ke=ke||ee!==0}if(!ke){Pe!==0&&this.eventuallyUpdateScrollDimensions();for(var ie=W.a.relativeComplement(_e,Ve),q=0,ce=ie;q<ce.length;q++)for(var Z=ce[q],se=Z.start;se<Z.end;se++)this.items[se].row&&this.removeItemFromDOM(se);for(var ye=W.a.relativeComplement(Ve,_e),je=0,Ge=ye;je<Ge.length;je++)for(var Z=Ge[je],se=Z.start;se<Z.end;se++){var ue=se+1,ve=ue<this.items.length?this.items[ue].row:null,Ee=ve?ve.domNode:null;this.insertItemInDOM(se,Ee)}for(var se=Ve.start;se<Ve.end;se++)this.items[se].row&&this.updateItemInDOM(this.items[se],se);typeof Se=="number"&&(this.scrollTop=this.elementTop(Se)-Ie),this._onDidChangeContentHeight.fire(this.contentHeight);return}}},H.prototype.probeDynamicHeight=function(V){var de=this.items[V];if(!de.hasDynamicHeight||de.lastDynamicHeightWidth===this.renderWidth)return 0;var _e=de.size,Se=this.cache.alloc(de.templateId);Se.domNode.style.height="",this.rowsContainer.appendChild(Se.domNode);var Ie=this.renderers.get(de.templateId);return Ie&&(Ie.renderElement(de.element,V,Se.templateData,void 0),Ie.disposeElement&&Ie.disposeElement(de.element,V,Se.templateData,void 0)),de.size=Se.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(de.element,de.size),de.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(Se.domNode),this.cache.release(Se),de.size-_e},H.prototype.getNextToLastElement=function(V){var de=V[V.length-1];if(!de)return null;var _e=this.items[de.end];return _e&&_e.row?_e.row.domNode:null},H.prototype.getElementDomId=function(V){return this.domId+"_"+V},H.prototype.dispose=function(){if(this.items){for(var V=0,de=this.items;V<de.length;V++){var _e=de[V];if(_e.row){var Se=this.renderers.get(_e.row.templateId);Se&&Se.disposeTemplate(_e.row.templateData)}}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(le.f)(this.disposables)},H.InstanceCount=0,p([g.a],H.prototype,"onMouseClick",null),p([g.a],H.prototype,"onMouseDblClick",null),p([g.a],H.prototype,"onMouseMiddleClick",null),p([g.a],H.prototype,"onMouseDown",null),p([g.a],H.prototype,"onContextMenu",null),p([g.a],H.prototype,"onTouchStart",null),p([g.a],H.prototype,"onTap",null),H}()},fjLI:function(Lt,N,e){"use strict";e.d(N,"e",function(){return h}),e.d(N,"a",function(){return y}),e.d(N,"c",function(){return w}),e.d(N,"d",function(){return v}),e.d(N,"b",function(){return C});var T=e("8HAY"),le=e("Cg/j"),$=e("T8No"),R=e("nnTU"),B=e("MI8n"),z=function(){var g=function(u,s){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var p in c)c.hasOwnProperty(p)&&(l[p]=c[p])},g(u,s)};return function(u,s){g(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),D=function(g,u,s,l){var c=arguments.length,p=c<3?u:l===null?l=Object.getOwnPropertyDescriptor(u,s):l,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(g,u,s,l);else for(var L=g.length-1;L>=0;L--)(_=g[L])&&(p=(c<3?_(p):c>3?_(u,s,p):_(u,s))||p);return c>3&&p&&Object.defineProperty(u,s,p),p},W=function(g,u){return function(s,l){u(s,l,g)}},x=function(){for(var g=0,u=0,s=arguments.length;u<s;u++)g+=arguments[u].length;for(var l=Array(g),c=0,u=0;u<s;u++)for(var p=arguments[u],_=0,L=p.length;_<L;_++,c++)l[c]=p[_];return l};function h(g){return g.command!==void 0}var y=Object(le.c)("menuService"),w=new(function(){function g(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new B.a,this.onDidChangeMenu=this._onDidChangeMenu.event}return g.prototype.addCommand=function(u){var s=this;return this._commands.set(u.id,u),this._onDidChangeMenu.fire(0),{dispose:function(){s._commands.delete(u.id)&&s._onDidChangeMenu.fire(0)}}},g.prototype.getCommand=function(u){return this._commands.get(u)},g.prototype.getCommands=function(){var u=new Map;return this._commands.forEach(function(s,l){return u.set(l,s)}),u},g.prototype.appendMenuItem=function(u,s){var l=this,c=this._menuItems.get(u);return c?c.push(s):(c=[s],this._menuItems.set(u,c)),this._onDidChangeMenu.fire(u),{dispose:function(){var p=c.indexOf(s);p>=0&&(c.splice(p,1),l._onDidChangeMenu.fire(u))}}},g.prototype.getMenuItems=function(u){var s=(this._menuItems.get(u)||[]).slice(0);return u===0&&this._appendImplicitItems(s),s},g.prototype._appendImplicitItems=function(u){for(var s=new Set,l=u.filter(function(P){return h(P)}),c=0,p=l;c<p.length;c++){var _=p[c],L=_.command,I=_.alt;s.add(L.id),I&&s.add(I.id)}this._commands.forEach(function(P,A){s.has(A)||u.push({command:P})})},g}()),f=function(g){z(u,g);function u(s,l,c){var p=g.call(this,s,l)||this;return p._commandService=c,p}return u.prototype.run=function(){for(var s,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return(s=this._commandService).executeCommand.apply(s,x([this.id],l))},u=D([W(2,R.b)],u),u}(T.a),v=function(g){z(u,g);function u(s){var l=this;return typeof s.title=="string"?l=g.call(this,"",s.title,"submenu")||this:l=g.call(this,"",s.title.value,"submenu")||this,l.item=s,l}return u}(T.a),C=function(g){z(u,g);function u(s,l,c,p,_){var L=this;return typeof s.title=="string"?L=g.call(this,s.id,s.title,_)||this:L=g.call(this,s.id,s.title.value,_)||this,L._cssClass=void 0,L._enabled=!s.precondition||p.contextMatchesRules(s.precondition),L._checked=Boolean(s.toggled&&p.contextMatchesRules(s.toggled)),L._options=c||{},L.item=s,L.alt=l?new u(l,void 0,L._options,p,_):void 0,L}return u.prototype.dispose=function(){this.alt&&this.alt.dispose(),g.prototype.dispose.call(this)},u.prototype.run=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];var c=[];return this._options.arg&&(c=x(c,[this._options.arg])),this._options.shouldForwardArgs&&(c=x(c,s)),g.prototype.run.apply(this,c)},u=D([W(3,$.c),W(4,R.b)],u),u}(f)},fpMC:function(Lt,N,e){"use strict";e.d(N,"g",function(){return R}),e.d(N,"f",function(){return A}),e.d(N,"b",function(){return Q}),e.d(N,"c",function(){return K}),e.d(N,"a",function(){return q}),e.d(N,"d",function(){return ce}),e.d(N,"e",function(){return xe});var T=e("QDVR"),le=e("N0LK");function $(){for(var J=[],b=0;b<arguments.length;b++)J[b]=arguments[b];return function(F,re){for(var ne=0,fe=J.length;ne<fe;ne++){var Oe=J[ne](F,re);if(Oe)return Oe}return null}}var R=B.bind(void 0,!0);function B(J,b,F){if(!F||F.length<b.length)return null;var re;return J?re=le.O(F,b):re=F.indexOf(b)===0,re?b.length>0?[{start:0,end:b.length}]:[]:null}function z(J,b){var F=b.toLowerCase().indexOf(J.toLowerCase());return F===-1?null:[{start:F,end:F+J.length}]}function D(J,b){return W(J.toLowerCase(),b.toLowerCase(),0,0)}function W(J,b,F,re){if(F===J.length)return[];if(re===b.length)return null;if(J[F]===b[re]){var ne=null;return(ne=W(J,b,F+1,re+1))?C({start:re,end:re+1},ne):null}return W(J,b,F,re+1)}function x(J){return 97<=J&&J<=122}function h(J){return 65<=J&&J<=90}function y(J){return 48<=J&&J<=57}function w(J){return J===32||J===9||J===10||J===13}var f=new Set;"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(function(J){return f.add(J.charCodeAt(0))});function v(J){return x(J)||h(J)||y(J)}function C(J,b){return b.length===0?b=[J]:J.end===b[0].start?b[0].start=J.start:b.unshift(J),b}function g(J,b){for(var F=b;F<J.length;F++){var re=J.charCodeAt(F);if(h(re)||y(re)||F>0&&!v(J.charCodeAt(F-1)))return F}return J.length}function u(J,b,F,re){if(F===J.length)return[];if(re===b.length)return null;if(J[F]!==b[re].toLowerCase())return null;var ne=null,fe=re+1;for(ne=u(J,b,F+1,re+1);!ne&&(fe=g(b,fe))<b.length;)ne=u(J,b,F+1,fe),fe++;return ne===null?null:C({start:re,end:re+1},ne)}function s(J){for(var b=0,F=0,re=0,ne=0,fe=0,Oe=0;Oe<J.length;Oe++)fe=J.charCodeAt(Oe),h(fe)&&b++,x(fe)&&F++,v(fe)&&re++,y(fe)&&ne++;var Me=b/J.length,Ue=F/J.length,Je=re/J.length,nt=ne/J.length;return{upperPercent:Me,lowerPercent:Ue,alphaPercent:Je,numericPercent:nt}}function l(J){var b=J.upperPercent,F=J.lowerPercent;return F===0&&b>.6}function c(J){var b=J.upperPercent,F=J.lowerPercent,re=J.alphaPercent,ne=J.numericPercent;return F>.2&&b<.8&&re>.6&&ne<.2}function p(J){for(var b=0,F=0,re=0,ne=0,fe=0;fe<J.length;fe++)re=J.charCodeAt(fe),h(re)&&b++,x(re)&&F++,w(re)&&ne++;return(b===0||F===0)&&ne===0?J.length<=30:b<=5}function _(J,b){if(!b)return null;if(b=b.trim(),b.length===0)return null;if(!p(J))return null;if(b.length>60)return null;var F=s(b);if(!c(F)){if(!l(F))return null;b=b.toLowerCase()}var re=null,ne=0;for(J=J.toLowerCase();ne<b.length&&(re=u(J,b,0,ne))===null;)ne=g(b,ne+1);return re}var L=$(R,_,z),I=$(R,_,D),P=new T.a(1e4);function A(J,b,F){if(F===void 0&&(F=!1),typeof J!="string"||typeof b!="string")return null;var re=P.get(J);re||(re=new RegExp(le.k(J),"i"),P.set(J,re));var ne=re.exec(b);return ne?[{start:ne.index,end:ne.index+ne[0].length}]:F?I(J,b):L(J,b)}function Q(J,b,F,re,ne,fe){var Oe=ce(J,b,0,re,ne,0,!0);if(Oe)return Oe;for(var Me=0,Ue=0,Je=fe,nt=0;nt<b.length&&nt<H;++nt){var vt=ne.indexOf(b.charAt(nt),Je);if(vt>=0)Ue+=1,Me+=Math.pow(2,vt),Je=vt+1;else if(Me!==0)break}return[Ue,Me,fe]}function K(J){if(typeof J=="undefined")return[];for(var b=J[1].toString(2),F=J[2],re=[],ne=F;ne<H;ne++)if(b[b.length-(ne+1)]==="1"){var fe=re[re.length-1];fe&&fe.end===ne?fe.end=ne+1:re.push({start:ne,end:ne+1})}return re}var H=128;function V(){for(var J=[],b=[0],F=1;F<=H;F++)b.push(-F);for(var F=0;F<=H;F++){var re=b.slice(0);re[0]=-F,J.push(re)}return J}var de=V(),_e=V(),Se=V(),Ie=!1;function Pe(J,b,F,re,ne){function fe(Ue,Je,nt){for(nt===void 0&&(nt=" ");Ue.length<Je;)Ue=nt+Ue;return Ue}for(var Oe=" | |"+re.split("").map(function(Ue){return fe(Ue,3)}).join("|")+`
`,Me=0;Me<=F;Me++)Me===0?Oe+=" |":Oe+=b[Me-1]+"|",Oe+=J[Me].slice(0,ne+1).map(function(Ue){return fe(Ue.toString(),3)}).join("|")+`
`;return Oe}function Ve(J,b,F,re){J=J.substr(b),F=F.substr(re),console.log(Pe(de,J,J.length,F,F.length)),console.log(Pe(Se,J,J.length,F,F.length)),console.log(Pe(_e,J,J.length,F,F.length))}function ke(J,b){if(b<0||b>=J.length)return!1;var F=J.charCodeAt(b);switch(F){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 se(J,b){if(b<0||b>=J.length)return!1;var F=J.charCodeAt(b);switch(F){case 32:case 9:return!0;default:return!1}}function ee(J,b,F){return b[J]!==F[J]}function ie(J,b,F,re,ne,fe){for(;b<F&&ne<fe;)J[b]===re[ne]&&(b+=1),ne+=1;return b===F}var q;(function(J){J.Default=Object.freeze([-100,0,0]);function b(F){return!F||F[0]===-100&&F[1]===0&&F[2]===0}J.isDefault=b})(q||(q={}));function ce(J,b,F,re,ne,fe,Oe){var Me=J.length>H?H:J.length,Ue=re.length>H?H:re.length;if(F>=Me||fe>=Ue||Me-F>Ue-fe)return;if(!ie(b,F,Me,ne,fe,Ue))return;var Je=1,nt=1,vt=F,Rt=fe;for(Je=1,vt=F;vt<Me;Je++,vt++)for(nt=1,Rt=fe;Rt<Ue;nt++,Rt++){var Dt=Z(J,b,vt,F,re,ne,Rt);_e[Je][nt]=Dt;var Kt=de[Je-1][nt-1]+(Dt>1?1:Dt),ao=de[Je-1][nt]+-1,lo=de[Je][nt-1]+-1;lo>=ao?lo>Kt?(de[Je][nt]=lo,Se[Je][nt]=4):lo===Kt?(de[Je][nt]=lo,Se[Je][nt]=4|2):(de[Je][nt]=Kt,Se[Je][nt]=2):ao>Kt?(de[Je][nt]=ao,Se[Je][nt]=1):ao===Kt?(de[Je][nt]=ao,Se[Je][nt]=1|2):(de[Je][nt]=Kt,Se[Je][nt]=2)}return Ie&&Ve(J,F,re,fe),ye=0,Ge=-100,ue=fe,ve=Oe,Ee(Je-1,nt-1,Me===Ue?1:0,0,!1),ye===0?void 0:[Ge,je,fe]}function Z(J,b,F,re,ne,fe,Oe){return b[F]!==fe[Oe]?-1:Oe===F-re||ee(Oe,ne,fe)&&(Oe===0||!ee(Oe-1,ne,fe))?J[F]===ne[Oe]?7:5:ke(fe,Oe)&&(Oe===0||!ke(fe,Oe-1))||(ke(fe,Oe-1)||se(fe,Oe-1))?5:1}var ye=0,je=0,Ge=0,ue=0,ve=!1;function Ee(J,b,F,re,ne){if(ye>=10||F<-25)return;for(var fe=0;J>0&&b>0;){var Oe=_e[J][b],Me=Se[J][b];if(Me===4)b-=1,ne?F-=5:re!==0&&(F-=1),ne=!1,fe=0;else if(Me&2)if(Me&4&&Ee(J,b-1,re!==0?F-1:F,re,ne),F+=Oe,J-=1,b-=1,ne=!0,re+=Math.pow(2,b+ue),Oe===1){if(fe+=1,J===0&&!ve)return}else F+=1+fe*(Oe-1),fe=0;else return}F-=b>=3?9:b*3,ye+=1,F>Ge&&(Ge=F,je=re)}function xe(J,b,F,re,ne,fe,Oe){return Ce(J,b,F,re,ne,fe,!0,Oe)}function Ce(J,b,F,re,ne,fe,Oe,Me){var Ue=ce(J,b,F,re,ne,fe,Me);if(Ue&&!Oe)return Ue;if(J.length>=3)for(var Je=Math.min(7,J.length-1),nt=F+1;nt<Je;nt++){var vt=he(J,nt);if(vt){var Rt=ce(vt,vt.toLowerCase(),F,re,ne,fe,Me);Rt&&(Rt[0]-=3,(!Ue||Rt[0]>Ue[0])&&(Ue=Rt))}}return Ue}function he(J,b){if(b+1>=J.length)return;var F=J[b],re=J[b+1];return F===re?void 0:J.slice(0,b)+re+F+J.slice(b+2)}},gCVg:function(Lt,N,e){"use strict";e.d(N,"a",function(){return R});var T=e("cGHE"),le=e("aokT"),$=function(){var B=function(z,D){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,x){W.__proto__=x}||function(W,x){for(var h in x)x.hasOwnProperty(h)&&(W[h]=x[h])},B(z,D)};return function(z,D){B(z,D);function W(){this.constructor=z}z.prototype=D===null?Object.create(D):(W.prototype=D.prototype,new W)}}(),R=function(B){$(z,B);function z(D,W,x,h){var y=B.call(this,D,W,x,h)||this;return y.selectionStartLineNumber=D,y.selectionStartColumn=W,y.positionLineNumber=x,y.positionColumn=h,y}return z.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},z.prototype.equalsSelection=function(D){return z.selectionsEqual(this,D)},z.selectionsEqual=function(D,W){return D.selectionStartLineNumber===W.selectionStartLineNumber&&D.selectionStartColumn===W.selectionStartColumn&&D.positionLineNumber===W.positionLineNumber&&D.positionColumn===W.positionColumn},z.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},z.prototype.setEndPosition=function(D,W){return this.getDirection()===0?new z(this.startLineNumber,this.startColumn,D,W):new z(D,W,this.startLineNumber,this.startColumn)},z.prototype.getPosition=function(){return new T.a(this.positionLineNumber,this.positionColumn)},z.prototype.setStartPosition=function(D,W){return this.getDirection()===0?new z(D,W,this.endLineNumber,this.endColumn):new z(this.endLineNumber,this.endColumn,D,W)},z.fromPositions=function(D,W){return W===void 0&&(W=D),new z(D.lineNumber,D.column,W.lineNumber,W.column)},z.liftSelection=function(D){return new z(D.selectionStartLineNumber,D.selectionStartColumn,D.positionLineNumber,D.positionColumn)},z.selectionsArrEqual=function(D,W){if(D&&!W||!D&&W)return!1;if(!D&&!W)return!0;if(D.length!==W.length)return!1;for(var x=0,h=D.length;x<h;x++)if(!this.selectionsEqual(D[x],W[x]))return!1;return!0},z.isISelection=function(D){return D&&typeof D.selectionStartLineNumber=="number"&&typeof D.selectionStartColumn=="number"&&typeof D.positionLineNumber=="number"&&typeof D.positionColumn=="number"},z.createWithDirection=function(D,W,x,h,y){return y===0?new z(D,W,x,h):new z(x,h,D,W)},z}(le.a)},gJAb:function(Lt,N,e){"use strict";e.r(N);var T=e("EzsQ"),le=e.n(T),$=e("zrhQ"),R=e("pmY6"),B=e("N0LK"),z=e("sswD"),D=e("twdY"),W=e("i/Ef"),x=e("WBhO"),h=e("scqD"),y=e("MD5Z"),w=e("t9D7"),f=e("A9l+"),v=function(){var _=function(L,I){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,A){P.__proto__=A}||function(P,A){for(var Q in A)A.hasOwnProperty(Q)&&(P[Q]=A[Q])},_(L,I)};return function(L,I){_(L,I);function P(){this.constructor=L}L.prototype=I===null?Object.create(I):(P.prototype=I.prototype,new P)}}(),C=function(_,L,I,P){var A=arguments.length,Q=A<3?L:P===null?P=Object.getOwnPropertyDescriptor(L,I):P,K;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Q=Reflect.decorate(_,L,I,P);else for(var H=_.length-1;H>=0;H--)(K=_[H])&&(Q=(A<3?K(Q):A>3?K(L,I,Q):K(L,I))||Q);return A>3&&Q&&Object.defineProperty(L,I,Q),Q},g=function(_,L){return function(I,P){L(I,P,_)}},u=function(_){v(L,_);function L(I,P,A){var Q=_.call(this)||this;return Q._editor=I,Q._modeService=A,Q._widget=null,Q._register(Q._editor.onDidChangeModel(function(K){return Q.stop()})),Q._register(Q._editor.onDidChangeModelLanguage(function(K){return Q.stop()})),Q._register(D.B.onDidChange(function(K){return Q.stop()})),Q}return L.get=function(I){return I.getContribution(L.ID)},L.prototype.dispose=function(){this.stop(),_.prototype.dispose.call(this)},L.prototype.launch=function(){if(this._widget)return;if(!this._editor.hasModel())return;this._widget=new p(this._editor,this._modeService)},L.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},L.ID="editor.contrib.inspectTokens",L=C([g(1,h.a),g(2,x.a)],L),L}(R.a),s=function(_){v(L,_);function L(){return _.call(this,{id:"editor.action.inspectTokens",label:f.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})||this}return L.prototype.run=function(I,P){var A=u.get(P);A&&A.launch()},L}(z.b);function l(_){for(var L="",I=0,P=_.length;I<P;I++){var A=_.charCodeAt(I);switch(A){case 9:L+="&rarr;";break;case 32:L+="&middot;";break;case 60:L+="&lt;";break;case 62:L+="&gt;";break;case 38:L+="&amp;";break;default:L+=String.fromCharCode(A)}}return L}function c(_){var L=D.B.get(_.language);return L||{getInitialState:function(){return W.c},tokenize:function(I,P,A){return Object(W.d)(_.language,I,P,A)},tokenize2:function(I,P,A){return Object(W.e)(_.id,I,P,A)}}}var p=function(_){v(L,_);function L(I,P){var A=_.call(this)||this;return A.allowEditorOverflow=!0,A._editor=I,A._modeService=P,A._model=A._editor.getModel(),A._domNode=document.createElement("div"),A._domNode.className="tokens-inspect-widget",A._tokenizationSupport=c(A._model.getLanguageIdentifier()),A._compute(A._editor.getPosition()),A._register(A._editor.onDidChangeCursorPosition(function(Q){return A._compute(A._editor.getPosition())})),A._editor.addContentWidget(A),A}return L.prototype.dispose=function(){this._editor.removeContentWidget(this),_.prototype.dispose.call(this)},L.prototype.getId=function(){return L._ID},L.prototype._compute=function(I){for(var P=this._getTokensAtLine(I.lineNumber),A=0,Q=P.tokens1.length-1;Q>=0;Q--){var K=P.tokens1[Q];if(I.column-1>=K.offset){A=Q;break}}for(var H=0,Q=P.tokens2.length>>>1;Q>=0;Q--)if(I.column-1>=P.tokens2[Q<<1]){H=Q;break}var V="",de=this._model.getLineContent(I.lineNumber),_e="";if(A<P.tokens1.length){var Se=P.tokens1[A].offset,Ie=A+1<P.tokens1.length?P.tokens1[A+1].offset:de.length;_e=de.substring(Se,Ie)}V+='<h2 class="tm-token">'+l(_e)+'<span class="tm-token-length">('+_e.length+" "+(_e.length===1?"char":"chars")+")</span></h2>",V+='<hr class="tokens-inspect-separator" style="clear:both"/>';var Pe=this._decodeMetadata(P.tokens2[(H<<1)+1]);V+='<table class="tm-metadata-table"><tbody>',V+='<tr><td class="tm-metadata-key">language</td><td class="tm-metadata-value">'+Object(B.o)(Pe.languageIdentifier.language)+"</td>",V+='<tr><td class="tm-metadata-key">token type</td><td class="tm-metadata-value">'+this._tokenTypeToString(Pe.tokenType)+"</td>",V+='<tr><td class="tm-metadata-key">font style</td><td class="tm-metadata-value">'+this._fontStyleToString(Pe.fontStyle)+"</td>",V+='<tr><td class="tm-metadata-key">foreground</td><td class="tm-metadata-value">'+$.a.Format.CSS.formatHex(Pe.foreground)+"</td>",V+='<tr><td class="tm-metadata-key">background</td><td class="tm-metadata-value">'+$.a.Format.CSS.formatHex(Pe.background)+"</td>",V+="</tbody></table>",V+='<hr class="tokens-inspect-separator"/>',A<P.tokens1.length&&(V+='<span class="tm-token-type">'+Object(B.o)(P.tokens1[A].type)+"</span>"),this._domNode.innerHTML=V,this._editor.layoutContentWidget(this)},L.prototype._decodeMetadata=function(I){var P=D.B.getColorMap(),A=D.A.getLanguageId(I),Q=D.A.getTokenType(I),K=D.A.getFontStyle(I),H=D.A.getForeground(I),V=D.A.getBackground(I);return{languageIdentifier:this._modeService.getLanguageIdentifier(A),tokenType:Q,fontStyle:K,foreground:P[H],background:P[V]}},L.prototype._tokenTypeToString=function(I){switch(I){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},L.prototype._fontStyleToString=function(I){var P="";return I&1&&(P+="italic "),I&2&&(P+="bold "),I&4&&(P+="underline "),P.length===0&&(P="---"),P},L.prototype._getTokensAtLine=function(I){var P=this._getStateBeforeLine(I),A=this._tokenizationSupport.tokenize(this._model.getLineContent(I),P,0),Q=this._tokenizationSupport.tokenize2(this._model.getLineContent(I),P,0);return{startState:P,tokens1:A.tokens,tokens2:Q.tokens,endState:A.endState}},L.prototype._getStateBeforeLine=function(I){for(var P=this._tokenizationSupport.getInitialState(),A=1;A<I;A++){var Q=this._tokenizationSupport.tokenize(this._model.getLineContent(A),P,0);P=Q.endState}return P},L.prototype.getDomNode=function(){return this._domNode},L.prototype.getPosition=function(){return{position:this._editor.getPosition(),preference:[2,1]}},L._ID="editor.contrib.inspectTokensWidget",L}(R.a);Object(z.h)(u.ID,u),Object(z.f)(s),Object(w.e)(function(_,L){var I=_.getColor(y.B);if(I){var P=_.type===w.b?2:1;L.addRule(".monaco-editor .tokens-inspect-widget { border: "+P+"px solid "+I+"; }"),L.addRule(".monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: "+I+"; }")}var A=_.getColor(y.A);A&&L.addRule(".monaco-editor .tokens-inspect-widget { background-color: "+A+"; }");var Q=_.getColor(y.C);Q&&L.addRule(".monaco-editor .tokens-inspect-widget { color: "+Q+"; }")})},gqHg:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return e.e(21).then(e.bind(null,"fhwZ"))}}),Object(T.a)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return e.e(21).then(e.bind(null,"fhwZ"))}})},gslv:function(Lt,N,e){"use strict";e.d(N,"c",function(){return x}),e.d(N,"e",function(){return y}),e.d(N,"b",function(){return w}),e.d(N,"d",function(){return f}),e.d(N,"f",function(){return v}),e.d(N,"g",function(){return C}),e.d(N,"h",function(){return u}),e.d(N,"a",function(){return s});var T=e("PTeM"),le=e("MrjW"),$=e("bY76"),R=e("N0LK"),B=e("tYmi"),z=e("MNsG"),D=function(){for(var l=0,c=0,p=arguments.length;c<p;c++)l+=arguments[c].length;for(var _=Array(l),L=0,c=0;c<p;c++)for(var I=arguments[c],P=0,A=I.length;P<A;P++,L++)_[L]=I[P];return _};function W(l){return l&&l.scheme===B.b.file?!z.d:!0}function x(l){return w(l)||l.authority}function h(l,c){return l===c||Object(R.n)(l,c)}function y(l,c,p){if(p===void 0&&(p=W(l)),l===c)return!0;if(!l||!c)return!1;if(l.scheme!==c.scheme||!h(l.authority,c.authority))return!1;var _=l.path||"/",L=c.path||"/";return _===L||p&&Object(R.n)(_||"/",L||"/")}function w(l){return le.posix.basename(l.path)}function f(l){if(l.path.length===0)return l;if(l.scheme===B.b.file)return $.a.file(le.dirname(g(l)));var c=le.posix.dirname(l.path);return l.authority&&c.length&&c.charCodeAt(0)!==47&&(console.error('dirname("'+l.toString+")) resulted in a relative path"),c="/"),l.with({path:c})}function v(l){for(var c,p=[],_=1;_<arguments.length;_++)p[_-1]=arguments[_];var L;return l.scheme===B.b.file?L=$.a.file(le.join.apply(le,D([g(l)],p))).path:L=(c=le.posix).join.apply(c,D([l.path||"/"],p)),l.with({path:L})}function C(l){if(!l.path.length)return l;var c;return l.scheme===B.b.file?c=$.a.file(le.normalize(g(l))).path:c=le.posix.normalize(l.path),l.with({path:c})}function g(l){var c,p=l.path;return l.authority&&p.length>1&&l.scheme===B.b.file?c="//"+l.authority+p:z.h&&p.charCodeAt(0)===47&&T.b(p.charCodeAt(1))&&p.charCodeAt(2)===58?c=p.substr(1):c=p,z.h&&(c=c.replace(/\//g,"\\")),c}function u(l,c,p){if(p===void 0&&(p=W(l)),l.scheme!==c.scheme||!h(l.authority,c.authority))return;if(l.scheme===B.b.file){var _=le.relative(l.path,c.path);return z.h?T.c(_):_}var L=l.path||"/",I=c.path||"/";if(p){for(var P=0,A=Math.min(L.length,I.length);P<A&&!(L.charCodeAt(P)!==I.charCodeAt(P)&&L.charAt(P).toLowerCase()!==I.charAt(P).toLowerCase());P++);L=I.substr(0,P)+L.substr(P)}return le.posix.relative(L,I)}var s;(function(l){l.META_DATA_LABEL="label",l.META_DATA_DESCRIPTION="description",l.META_DATA_SIZE="size",l.META_DATA_MIME="mime";function c(p){var _=new Map,L=p.path.substring(p.path.indexOf(";")+1,p.path.lastIndexOf(";"));L.split(";").forEach(function(P){var A=P.split(":"),Q=A[0],K=A[1];Q&&K&&_.set(Q,K)});var I=p.path.substring(0,p.path.indexOf(";"));return I&&_.set(l.META_DATA_MIME,I),_}l.parseMetaData=c})(s||(s={}))},hFdI:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.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 e.e(306).then(e.bind(null,"tpLM"))}})},hHjc:function(Lt,N,e){},hJVp:function(Lt,N,e){"use strict";e.d(N,"a",function(){return u}),e.d(N,"e",function(){return s}),e.d(N,"f",function(){return l}),e.d(N,"d",function(){return c}),e.d(N,"b",function(){return p}),e.d(N,"c",function(){return L});var T=e("6OMU"),le=e("JQT/"),$=e("/cxE"),R=e("pmY6"),B=e("bY76"),z=e("vATl"),D=e("sswD"),W=e("aokT"),x=e("gCVg"),h=e("twdY"),y=e("G2kB"),w=e("nlbu"),f=function(){var P=function(A,Q){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,H){K.__proto__=H}||function(K,H){for(var V in H)H.hasOwnProperty(V)&&(K[V]=H[V])},P(A,Q)};return function(A,Q){P(A,Q);function K(){this.constructor=A}A.prototype=Q===null?Object.create(Q):(K.prototype=Q.prototype,new K)}}(),v=function(P,A,Q,K){function H(V){return V instanceof Q?V:new Q(function(de){de(V)})}return new(Q||(Q=Promise))(function(V,de){function _e(Pe){try{Ie(K.next(Pe))}catch(Ve){de(Ve)}}function Se(Pe){try{Ie(K.throw(Pe))}catch(Ve){de(Ve)}}function Ie(Pe){Pe.done?V(Pe.value):H(Pe.value).then(_e,Se)}Ie((K=K.apply(P,A||[])).next())})},C=function(P,A){var Q={label:0,sent:function(){if(V[0]&1)throw V[1];return V[1]},trys:[],ops:[]},K,H,V,de;return de={next:_e(0),throw:_e(1),return:_e(2)},typeof Symbol=="function"&&(de[Symbol.iterator]=function(){return this}),de;function _e(Ie){return function(Pe){return Se([Ie,Pe])}}function Se(Ie){if(K)throw new TypeError("Generator is already executing.");for(;Q;)try{if(K=1,H&&(V=Ie[0]&2?H.return:Ie[0]?H.throw||((V=H.return)&&V.call(H),0):H.next)&&!(V=V.call(H,Ie[1])).done)return V;(H=0,V)&&(Ie=[Ie[0]&2,V.value]);switch(Ie[0]){case 0:case 1:V=Ie;break;case 4:return Q.label++,{value:Ie[1],done:!1};case 5:Q.label++,H=Ie[1],Ie=[0];continue;case 7:Ie=Q.ops.pop(),Q.trys.pop();continue;default:if(!(V=Q.trys,V=V.length>0&&V[V.length-1])&&(Ie[0]===6||Ie[0]===2)){Q=0;continue}if(Ie[0]===3&&(!V||Ie[1]>V[0]&&Ie[1]<V[3])){Q.label=Ie[1];break}if(Ie[0]===6&&Q.label<V[1]){Q.label=V[1],V=Ie;break}if(V&&Q.label<V[2]){Q.label=V[2],Q.ops.push(Ie);break}V[2]&&Q.ops.pop(),Q.trys.pop();continue}Ie=A.call(P,Q)}catch(Pe){Ie=[6,Pe],H=0}finally{K=V=0}if(Ie[0]&5)throw Ie[1];return{value:Ie[0]?Ie[1]:void 0,done:!0}}},g=function(){for(var P=0,A=0,Q=arguments.length;A<Q;A++)P+=arguments[A].length;for(var K=Array(P),H=0,A=0;A<Q;A++)for(var V=arguments[A],de=0,_e=V.length;de<_e;de++,H++)K[H]=V[de];return K},u="editor.action.codeAction",s="editor.action.refactor",l="editor.action.sourceAction",c="editor.action.organizeImports",p="editor.action.fixAll",_=function(P){f(A,P);function A(Q,K){var H=P.call(this)||this;return H._register(K),H.allActions=Object(T.r)(g(Q),A.codeActionsComparator),H.validActions=H.allActions.filter(function(V){return!V.disabled}),H}return A.codeActionsComparator=function(Q,K){return Object(T.q)(Q.diagnostics)?Object(T.q)(K.diagnostics)?Q.diagnostics[0].message.localeCompare(K.diagnostics[0].message):-1:Object(T.q)(K.diagnostics)?1:0},Object.defineProperty(A.prototype,"hasAutoFix",{get:function(){return this.validActions.some(function(Q){return!!Q.kind&&w.b.QuickFix.contains(new w.b(Q.kind))&&!!Q.isPreferred})},enumerable:!0,configurable:!0}),A}(R.a);function L(P,A,Q,K){var H=this,V,de=Q.filter||{},_e={only:(V=de.include)===null||V===void 0?void 0:V.value,trigger:Q.type},Se=new z.d(P,K),Ie=I(P,de),Pe=new R.b,Ve=Ie.map(function(se){return v(H,void 0,void 0,function(){var ee,ie;return C(this,function(q){switch(q.label){case 0:return q.trys.push([0,2,,3]),[4,se.provideCodeActions(P,A,_e,Se.token)];case 1:return ee=q.sent(),Se.token.isCancellationRequested||!ee?[2,[]]:(Pe.add(ee),[2,ee.actions.filter(function(ce){return ce&&Object(w.c)(de,ce)})]);case 2:if(ie=q.sent(),Object($.d)(ie))throw ie;return Object($.f)(ie),[2,[]];case 3:return[2]}})})}),ke=h.a.onDidChange(function(){var se=h.a.all(P);Object(T.g)(se,Ie)||Se.cancel()});return Promise.all(Ve).then(T.m).then(function(se){return new _(se,Pe)}).finally(function(){ke.dispose(),Se.dispose()})}function I(P,A){return h.a.all(P).filter(function(Q){return Q.providedCodeActionKinds?Q.providedCodeActionKinds.some(function(K){return Object(w.d)(A,new w.b(K))}):!0})}Object(D.j)("_executeCodeActionProvider",function(P,A){return v(this,void 0,void 0,function(){var Q,K,H,V,de,_e;return C(this,function(Se){switch(Se.label){case 0:if(Q=A.resource,K=A.rangeOrSelection,H=A.kind,!(Q instanceof B.a))throw Object($.b)();if(V=P.get(y.a).getModel(Q),!V)throw Object($.b)();if(de=x.a.isISelection(K)?x.a.liftSelection(K):W.a.isIRange(K)?V.validateRange(K):void 0,!de)throw Object($.b)();return[4,L(V,de,{type:2,filter:{includeSourceActions:!0,include:H&&H.value?new w.b(H.value):void 0}},le.a.None)];case 1:return _e=Se.sent(),setTimeout(function(){return _e.dispose()},100),[2,_e.validActions]}})})})},"i/Ef":function(Lt,N,e){"use strict";e.d(N,"c",function(){return R}),e.d(N,"b",function(){return B}),e.d(N,"a",function(){return z}),e.d(N,"d",function(){return D}),e.d(N,"e",function(){return W});var T=e("Tcc1"),le=e("twdY"),$=function(){function x(){}return x.prototype.clone=function(){return this},x.prototype.equals=function(h){return this===h},x}(),R=new $,B="vs.editor.nullMode",z=new le.r(B,0);function D(x,h,y,w){return new T.b([new T.a(w,"",x)],y)}function W(x,h,y,w){var f=new Uint32Array(2);return f[0]=w,f[1]=(x<<0|0<<8|0<<11|1<<14|2<<23)>>>0,new T.c(f,y===null?R:y)}},"i/Rh":function(Lt,N,e){},i04g:function(Lt,N,e){"use strict";e.d(N,"b",function(){return $}),e.d(N,"a",function(){return R});var T=e("3/fG"),le=function(){function z(D,W,x){x===void 0&&(x=W),this.modifierLabels=[null],this.modifierLabels[2]=D,this.modifierLabels[1]=W,this.modifierLabels[3]=x}return z.prototype.toLabel=function(D,W,x){if(W.length===0)return null;for(var h=[],y=0,w=W.length;y<w;y++){var f=W[y],v=x(f);if(v===null)return null;h[y]=B(f,v,this.modifierLabels[D])}return h.join(" ")},z}(),$=new le({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:T.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:T.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:T.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:T.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),R=new le({ctrlKey:T.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:T.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:T.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:T.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:T.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:T.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function B(z,D,W){if(D===null)return"";var x=[];return z.ctrlKey&&x.push(W.ctrlKey),z.shiftKey&&x.push(W.shiftKey),z.altKey&&x.push(W.altKey),z.metaKey&&x.push(W.metaKey),x.push(D),x.join(W.separator)}},iDAx:function(Lt,N,e){"use strict";e.d(N,"b",function(){return v}),e.d(N,"a",function(){return p}),e.d(N,"d",function(){return Se}),e.d(N,"c",function(){return Ie});var T=e("3/fG"),le=e("MI8n"),$=e("pmY6"),R=e("qj0h"),B=e("6OMU"),z=e("/UlZ"),D=e("Yr1X"),W=e("+3Gp"),x=e("CRAX"),h=e("ic2d"),y=e("vl9R"),w=function(){var Pe=function(Ve,ke){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ee){se.__proto__=ee}||function(se,ee){for(var ie in ee)ee.hasOwnProperty(ie)&&(se[ie]=ee[ie])},Pe(Ve,ke)};return function(Ve,ke){Pe(Ve,ke);function se(){this.constructor=Ve}Ve.prototype=ke===null?Object.create(ke):(se.prototype=ke.prototype,new se)}}(),f=function(){return f=Object.assign||function(Pe){for(var Ve,ke=1,se=arguments.length;ke<se;ke++){Ve=arguments[ke];for(var ee in Ve)Object.prototype.hasOwnProperty.call(Ve,ee)&&(Pe[ee]=Ve[ee])}return Pe},f.apply(this,arguments)},v=new(function(){function Pe(){this._tabFocus=!1,this._onDidChangeTabFocus=new le.a,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return Pe.prototype.getTabFocusMode=function(){return this._tabFocus},Pe.prototype.setTabFocusMode=function(Ve){if(this._tabFocus===Ve)return;this._tabFocus=Ve,this._onDidChangeTabFocus.fire(this._tabFocus)},Pe}()),C=Object.hasOwnProperty,g=function(){function Pe(){this._values=[]}return Pe.prototype._read=function(Ve){return this._values[Ve]},Pe.prototype.get=function(Ve){return this._values[Ve]},Pe.prototype._write=function(Ve,ke){this._values[Ve]=ke},Pe}(),u=function(){function Pe(){this._values=[]}return Pe.prototype._read=function(Ve){return this._values[Ve]},Pe.prototype._write=function(Ve,ke){this._values[Ve]=ke},Pe}(),s=function(){function Pe(){}return Pe.readOptions=function(Ve){for(var ke=Ve,se=new u,ee=0,ie=z.i;ee<ie.length;ee++){var q=ie[ee],ce=q.name==="_never_"?void 0:ke[q.name];se._write(q.id,ce)}return se},Pe.validateOptions=function(Ve){for(var ke=new z.h,se=0,ee=z.i;se<ee.length;se++){var ie=ee[se];ke._write(ie.id,ie.validate(Ve._read(ie.id)))}return ke},Pe.computeOptions=function(Ve,ke){for(var se=new g,ee=0,ie=z.i;ee<ie.length;ee++){var q=ie[ee];se._write(q.id,q.compute(ke,se,Ve._read(q.id)))}return se},Pe._deepEquals=function(Ve,ke){if(typeof Ve!="object"||typeof ke!="object")return Ve===ke;if(Array.isArray(Ve)||Array.isArray(ke))return Array.isArray(Ve)&&Array.isArray(ke)?B.g(Ve,ke):!1;for(var se in Ve)if(!Pe._deepEquals(Ve[se],ke[se]))return!1;return!0},Pe.checkEquals=function(Ve,ke){for(var se=[],ee=!1,ie=0,q=z.i;ie<q.length;ie++){var ce=q[ie],Z=!Pe._deepEquals(Ve._read(ce.id),ke._read(ce.id));se[ce.id]=Z,Z&&(ee=!0)}return ee?new z.a(se):null},Pe}();function l(Pe){var Ve=Pe.wordWrap;Ve===!0?Pe.wordWrap="on":Ve===!1&&(Pe.wordWrap="off");var ke=Pe.lineNumbers;ke===!0?Pe.lineNumbers="on":ke===!1&&(Pe.lineNumbers="off");var se=Pe.autoClosingBrackets;se===!1&&(Pe.autoClosingBrackets="never",Pe.autoClosingQuotes="never",Pe.autoSurround="never");var ee=Pe.cursorBlinking;ee==="visible"&&(Pe.cursorBlinking="solid");var ie=Pe.renderWhitespace;ie===!0?Pe.renderWhitespace="boundary":ie===!1&&(Pe.renderWhitespace="none");var q=Pe.renderLineHighlight;q===!0?Pe.renderLineHighlight="line":q===!1&&(Pe.renderLineHighlight="none");var ce=Pe.acceptSuggestionOnEnter;ce===!0?Pe.acceptSuggestionOnEnter="on":ce===!1&&(Pe.acceptSuggestionOnEnter="off");var Z=Pe.tabCompletion;Z===!1?Pe.tabCompletion="off":Z===!0&&(Pe.tabCompletion="onlySnippets");var ye=Pe.suggest;if(ye&&typeof ye.filteredTypes=="object"&&ye.filteredTypes){var je={};je.method="showMethods",je.function="showFunctions",je.constructor="showConstructors",je.field="showFields",je.variable="showVariables",je.class="showClasses",je.struct="showStructs",je.interface="showInterfaces",je.module="showModules",je.property="showProperties",je.event="showEvents",je.operator="showOperators",je.unit="showUnits",je.value="showValues",je.constant="showConstants",je.enum="showEnums",je.enumMember="showEnumMembers",je.keyword="showKeywords",je.text="showWords",je.color="showColors",je.file="showFiles",je.reference="showReferences",je.folder="showFolders",je.typeParameter="showTypeParameters",je.snippet="showSnippets",Object(y.c)(je,function(xe){var Ce=ye.filteredTypes[xe.key];Ce===!1&&(ye[xe.value]=Ce)})}var Ge=Pe.hover;Ge===!0?Pe.hover={enabled:!0}:Ge===!1&&(Pe.hover={enabled:!1});var ue=Pe.parameterHints;ue===!0?Pe.parameterHints={enabled:!0}:ue===!1&&(Pe.parameterHints={enabled:!1});var ve=Pe.autoIndent;ve===!0?Pe.autoIndent="full":ve===!1&&(Pe.autoIndent="advanced");var Ee=Pe.matchBrackets;Ee===!0?Pe.matchBrackets="always":Ee===!1&&(Pe.matchBrackets="never")}function c(Pe){var Ve=R.c(Pe);return l(Ve),Ve}var p=function(Pe){w(Ve,Pe);function Ve(ke,se){var ee=Pe.call(this)||this;return ee._onDidChange=ee._register(new le.a),ee.onDidChange=ee._onDidChange.event,ee.isSimpleWidget=ke,ee._isDominatedByLongLines=!1,ee._lineNumbersDigitCount=1,ee._rawOptions=c(se),ee._readOptions=s.readOptions(ee._rawOptions),ee._validatedOptions=s.validateOptions(ee._readOptions),ee._register(D.a.onDidChangeZoomLevel(function(ie){return ee._recomputeOptions()})),ee._register(v.onDidChangeTabFocus(function(ie){return ee._recomputeOptions()})),ee}return Ve.prototype.observeReferenceElement=function(ke){},Ve.prototype.dispose=function(){Pe.prototype.dispose.call(this)},Ve.prototype._recomputeOptions=function(){var ke=this.options,se=this._computeInternalOptions();if(!ke)this.options=se;else{var ee=s.checkEquals(ke,se);if(ee===null)return;this.options=se,this._onDidChange.fire(ee)}},Ve.prototype.getRawOptions=function(){return this._rawOptions},Ve.prototype._computeInternalOptions=function(){var ke=this._getEnvConfiguration(),se=W.a.createFromValidatedSettings(this._validatedOptions,ke.zoomLevel,this.isSimpleWidget),ee={outerWidth:ke.outerWidth,outerHeight:ke.outerHeight,fontInfo:this.readConfiguration(se),extraEditorClassName:ke.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:ke.emptySelectionClipboard,pixelRatio:ke.pixelRatio,tabFocusMode:v.getTabFocusMode(),accessibilitySupport:ke.accessibilitySupport};return s.computeOptions(this._validatedOptions,ee)},Ve._subsetEquals=function(ke,se){for(var ee in se)if(C.call(se,ee)){var ie=se[ee],q=ke[ee];if(q===ie)continue;if(Array.isArray(q)&&Array.isArray(ie)){if(!B.g(q,ie))return!1;continue}if(typeof q=="object"&&typeof ie=="object"){if(!this._subsetEquals(q,ie))return!1;continue}return!1}return!0},Ve.prototype.updateOptions=function(ke){if(typeof ke=="undefined")return;var se=c(ke);if(Ve._subsetEquals(this._rawOptions,se))return;this._rawOptions=R.g(this._rawOptions,se||{}),this._readOptions=s.readOptions(this._rawOptions),this._validatedOptions=s.validateOptions(this._readOptions),this._recomputeOptions()},Ve.prototype.setIsDominatedByLongLines=function(ke){this._isDominatedByLongLines=ke,this._recomputeOptions()},Ve.prototype.setMaxLineNumber=function(ke){var se=Ve._digitCount(ke);if(this._lineNumbersDigitCount===se)return;this._lineNumbersDigitCount=se,this._recomputeOptions()},Ve._digitCount=function(ke){for(var se=0;ke;)ke=Math.floor(ke/10),se++;return se||1},Ve}($.a),_=Object.freeze({id:"editor",order:5,type:"object",title:T.a("editorConfigurationTitle","Editor"),scope:5}),L=h.a.as(x.a.Configuration),I=f(f({},_),{properties:{"editor.tabSize":{type:"number",default:z.c.tabSize,minimum:1,markdownDescription:T.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:z.c.insertSpaces,markdownDescription:T.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:z.c.detectIndentation,markdownDescription:T.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:z.c.trimAutoWhitespace,description:T.a("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:z.c.largeFileOptimizations,description:T.a("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:T.a("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{type:"boolean",default:!1,description:T.a("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:T.a("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:T.a("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:T.a("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:T.a("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:T.a("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:T.a("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}});function P(Pe){return typeof Pe.type!="undefined"||typeof Pe.anyOf!="undefined"}for(var A=0,Q=z.i;A<Q.length;A++){var K=Q[A],H=K.schema;if(typeof H!="undefined")if(P(H))I.properties["editor."+K.name]=H;else for(var V in H)C.call(H,V)&&(I.properties[V]=H[V])}var de=null;function _e(){return de===null&&(de=Object.create(null),Object.keys(I.properties).forEach(function(Pe){de[Pe]=!0})),de}function Se(Pe){var Ve=_e();return Ve["editor."+Pe]||!1}function Ie(Pe){var Ve=_e();return Ve["diffEditor."+Pe]||!1}L.registerConfiguration(I)},iJk1:function(Lt,N,e){},iLY9:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return e.e(326).then(e.bind(null,"8ahN"))}})},iNS8:function(Lt,N,e){"use strict";e.d(N,"a",function(){return Se}),e.d(N,"b",function(){return Ie}),e.d(N,"d",function(){return Ve}),e.d(N,"c",function(){return se}),e.d(N,"p",function(){return ee}),e.d(N,"q",function(){return ie}),e.d(N,"r",function(){return q}),e.d(N,"e",function(){return ce}),e.d(N,"j",function(){return Z}),e.d(N,"l",function(){return ye}),e.d(N,"k",function(){return je}),e.d(N,"n",function(){return Ge}),e.d(N,"o",function(){return ue}),e.d(N,"f",function(){return ve}),e.d(N,"g",function(){return Ee}),e.d(N,"m",function(){return xe}),e.d(N,"h",function(){return Ce}),e.d(N,"i",function(){return he});var T=e("e1ni"),le=e("EffR"),$=e("WqXY"),R=e("8HAY"),B=e("zrhQ"),z=e("MI8n"),D=e("qj0h"),W=e("N0LK"),x=e("Vxe3"),h=e("03kh"),y=e("uWgD"),w=e("cMOf"),f=e("nD70"),v=e("pmY6"),C=e("aokT"),g=e("tX9W"),u=new B.a(new B.c(0,122,204)),s={showArrow:!0,showFrame:!0,className:"",frameColor:u,arrowColor:u,keepEditorSelection:!1},l="vs.editor.contrib.zoneWidget",c=function(){function J(b,F,re,ne,fe,Oe){this.id="",this.domNode=b,this.afterLineNumber=F,this.afterColumn=re,this.heightInLines=ne,this._onDomNodeTop=fe,this._onComputedHeight=Oe}return J.prototype.onDomNodeTop=function(b){this._onDomNodeTop(b)},J.prototype.onComputedHeight=function(b){this._onComputedHeight(b)},J}(),p=function(){function J(b,F){this._id=b,this._domNode=F}return J.prototype.getId=function(){return this._id},J.prototype.getDomNode=function(){return this._domNode},J.prototype.getPosition=function(){return null},J}(),_=function(){function J(b){this._editor=b,this._ruleName=J._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}return J.prototype.dispose=function(){this.hide(),le.O(this._ruleName)},Object.defineProperty(J.prototype,"color",{set:function(b){this._color!==b&&(this._color=b,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"height",{set:function(b){this._height!==b&&(this._height=b,this._updateStyle())},enumerable:!0,configurable:!0}),J.prototype._updateStyle=function(){le.O(this._ruleName),le.v(".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; ")},J.prototype.show=function(b){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:C.a.fromPositions(b),options:{className:this._ruleName,stickiness:1}}])},J.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},J._IdGenerator=new f.a(".arrow-decoration-"),J}(),L=function(){function J(b,F){var re=this;F===void 0&&(F={}),this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._positionMarkerId=[],this._viewZone=null,this._disposables=new v.b,this.container=null,this._isShowing=!1,this.editor=b,this.options=D.c(F),D.g(this.options,s,!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(ne){var fe=re._getWidth(ne);re.domNode.style.width=fe+"px",re.domNode.style.left=re._getLeft(ne)+"px",re._onWidth(fe)}))}return J.prototype.dispose=function(){var b=this;this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(function(F){b._viewZone&&F.removeZone(b._viewZone.id),b._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()},J.prototype.create=function(){le.f(this.domNode,"zone-widget"),this.options.className&&le.f(this.domNode,this.options.className),this.container=document.createElement("div"),le.f(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new _(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},J.prototype.style=function(b){b.frameColor&&(this.options.frameColor=b.frameColor),b.arrowColor&&(this.options.arrowColor=b.arrowColor),this._applyStyles()},J.prototype._applyStyles=function(){if(this.container&&this.options.frameColor){var b=this.options.frameColor.toString();this.container.style.borderTopColor=b,this.container.style.borderBottomColor=b}if(this._arrow&&this.options.arrowColor){var F=this.options.arrowColor.toString();this._arrow.color=F}},J.prototype._getWidth=function(b){return b.width-b.minimapWidth-b.verticalScrollbarWidth},J.prototype._getLeft=function(b){return b.minimapWidth>0&&b.minimapLeft===0?b.minimapWidth:0},J.prototype._onViewZoneTop=function(b){this.domNode.style.top=b+"px"},J.prototype._onViewZoneHeight=function(b){if(this.domNode.style.height=b+"px",this.container){var F=b-this._decoratingElementsHeight();this.container.style.height=F+"px";var re=this.editor.getLayoutInfo();this._doLayout(F,this._getWidth(re))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(J.prototype,"position",{get:function(){var b=this._positionMarkerId[0];if(!b)return;var F=this.editor.getModel();if(!F)return;var re=F.getDecorationRange(b);return re?re.getStartPosition():void 0},enumerable:!0,configurable:!0}),J.prototype.show=function(b,F){var re=C.a.isIRange(b)?C.a.lift(b):C.a.fromPositions(b);this._isShowing=!0,this._showImpl(re,F),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:re,options:g.a.EMPTY}])},J.prototype.hide=function(){var b=this;this._viewZone&&(this.editor.changeViewZones(function(F){b._viewZone&&F.removeZone(b._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},J.prototype._decoratingElementsHeight=function(){var b=this.editor.getOption(49),F=0;if(this.options.showArrow){var re=Math.round(b/3);F+=2*re}if(this.options.showFrame){var ne=Math.round(b/9);F+=2*ne}return F},J.prototype._showImpl=function(b,F){var re=this,ne=b.getStartPosition(),fe=this.editor.getLayoutInfo(),Oe=this._getWidth(fe);this.domNode.style.width=Oe+"px",this.domNode.style.left=this._getLeft(fe)+"px";var Me=document.createElement("div");Me.style.overflow="hidden";var Ue=this.editor.getOption(49),Je=this.editor.getLayoutInfo().height/Ue*.8;F>=Je&&(F=Je);var nt=0,vt=0;if(this._arrow&&this.options.showArrow&&(nt=Math.round(Ue/3),this._arrow.height=nt,this._arrow.show(ne)),this.options.showFrame&&(vt=Math.round(Ue/9)),this.editor.changeViewZones(function(lo){re._viewZone&&lo.removeZone(re._viewZone.id),re._overlayWidget&&(re.editor.removeOverlayWidget(re._overlayWidget),re._overlayWidget=null),re.domNode.style.top="-1000px",re._viewZone=new c(Me,ne.lineNumber,ne.column,F,function(so){return re._onViewZoneTop(so)},function(so){return re._onViewZoneHeight(so)}),re._viewZone.id=lo.addZone(re._viewZone),re._overlayWidget=new p(l+re._viewZone.id,re.domNode),re.editor.addOverlayWidget(re._overlayWidget)}),this.container&&this.options.showFrame){var Rt=this.options.frameWidth?this.options.frameWidth:vt;this.container.style.borderTopWidth=Rt+"px",this.container.style.borderBottomWidth=Rt+"px"}var Dt=F*Ue-this._decoratingElementsHeight();this.container&&(this.container.style.top=nt+"px",this.container.style.height=Dt+"px",this.container.style.overflow="hidden"),this._doLayout(Dt,Oe),this.options.keepEditorSelection||this.editor.setSelection(b);var Kt=this.editor.getModel();if(Kt){var ao=b.endLineNumber+1;ao<=Kt.getLineCount()?this.revealLine(ao,!1):this.revealLine(Kt.getLineCount(),!0)}},J.prototype.revealLine=function(b,F){F?this.editor.revealLineInCenter(b,0):this.editor.revealLine(b,0)},J.prototype.setCssClass=function(b,F){if(!this.container)return;F&&this.container.classList.remove(F),le.f(this.container,b)},J.prototype._onWidth=function(b){},J.prototype._doLayout=function(b,F){},J.prototype._relayout=function(b){var F=this;this._viewZone&&this._viewZone.heightInLines!==b&&this.editor.changeViewZones(function(re){F._viewZone&&(F._viewZone.heightInLines=b,re.layoutZone(F._viewZone.id))})},J.prototype._initSash=function(){var b=this;if(this._resizeSash)return;this._resizeSash=this._disposables.add(new w.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0);var F;this._disposables.add(this._resizeSash.onDidStart(function(re){b._viewZone&&(F={startY:re.startY,heightInLines:b._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(function(){F=void 0})),this._disposables.add(this._resizeSash.onDidChange(function(re){if(F){var ne=(re.currentY-F.startY)/b.editor.getOption(49),fe=ne<0?Math.ceil(ne):Math.floor(ne),Oe=F.heightInLines+fe;Oe>5&&Oe<35&&b._relayout(Oe)}}))},J.prototype.getHorizontalSashLeft=function(){return 0},J.prototype.getHorizontalSashTop=function(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},J.prototype.getHorizontalSashWidth=function(){var b=this.editor.getLayoutInfo();return b.width-b.minimapWidth},J}(),I=e("3/fG"),P=e("T8No"),A=e("Cg/j"),Q=e("9fML"),K=e("sswD"),H=e("MD5Z"),V=function(){var J=function(b,F){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var fe in ne)ne.hasOwnProperty(fe)&&(re[fe]=ne[fe])},J(b,F)};return function(b,F){J(b,F);function re(){this.constructor=b}b.prototype=F===null?Object.create(F):(re.prototype=F.prototype,new re)}}(),de=function(J,b,F,re){var ne=arguments.length,fe=ne<3?b:re===null?re=Object.getOwnPropertyDescriptor(b,F):re,Oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")fe=Reflect.decorate(J,b,F,re);else for(var Me=J.length-1;Me>=0;Me--)(Oe=J[Me])&&(fe=(ne<3?Oe(fe):ne>3?Oe(b,F,fe):Oe(b,F))||fe);return ne>3&&fe&&Object.defineProperty(b,F,fe),fe},_e=function(J,b){return function(F,re){b(F,re,J)}},Se=Object(A.c)("IPeekViewService");Object(Q.b)(Se,function(){function J(){this._widgets=new Map}return J.prototype.addExclusiveWidget=function(b,F){var re=this,ne=this._widgets.get(b);ne&&(ne.listener.dispose(),ne.widget.dispose());var fe=function(){var Oe=re._widgets.get(b);Oe&&Oe.widget===F&&(Oe.listener.dispose(),re._widgets.delete(b))};this._widgets.set(b,{widget:F,listener:F.onDidClose(fe)})},J}());var Ie;(function(J){J.inPeekEditor=new P.d("inReferenceSearchEditor",!0),J.notInPeekEditor=J.inPeekEditor.toNegated()})(Ie||(Ie={}));var Pe=function(){function J(b,F){b instanceof h.a&&Ie.inPeekEditor.bindTo(F)}return J.prototype.dispose=function(){},J.ID="editor.contrib.referenceController",J=de([_e(1,P.c)],J),J}();Object(K.h)(Pe.ID,Pe);function Ve(J){var b=J.get(x.a).getFocusedCodeEditor();return b instanceof h.a?b.getParentEditor():b}var ke={headerBackgroundColor:B.a.white,primaryHeadingColor:B.a.fromHex("#333333"),secondaryHeadingColor:B.a.fromHex("#6c6c6cb3")},se=function(J){V(b,J);function b(F,re){re===void 0&&(re={});var ne=J.call(this,F,re)||this;return ne._onDidClose=new z.a,ne.onDidClose=ne._onDidClose.event,D.g(ne.options,ke,!1),ne}return b.prototype.dispose=function(){J.prototype.dispose.call(this),this._onDidClose.fire(this)},b.prototype.style=function(F){var re=this.options;F.headerBackgroundColor&&(re.headerBackgroundColor=F.headerBackgroundColor),F.primaryHeadingColor&&(re.primaryHeadingColor=F.primaryHeadingColor),F.secondaryHeadingColor&&(re.secondaryHeadingColor=F.secondaryHeadingColor),J.prototype.style.call(this,F)},b.prototype._applyStyles=function(){J.prototype._applyStyles.call(this);var F=this.options;this._headElement&&F.headerBackgroundColor&&(this._headElement.style.backgroundColor=F.headerBackgroundColor.toString()),this._primaryHeading&&F.primaryHeadingColor&&(this._primaryHeading.style.color=F.primaryHeadingColor.toString()),this._secondaryHeading&&F.secondaryHeadingColor&&(this._secondaryHeading.style.color=F.secondaryHeadingColor.toString()),this._bodyElement&&F.frameColor&&(this._bodyElement.style.borderColor=F.frameColor.toString())},b.prototype._fillContainer=function(F){this.setCssClass("peekview-widget"),this._headElement=le.a(".head"),this._bodyElement=le.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),F.appendChild(this._headElement),F.appendChild(this._bodyElement)},b.prototype._fillHead=function(F){var re=this,ne=le.a(".peekview-title");le.q(this._headElement,ne),le.o(ne,"click",function(Me){return re._onTitleClick(Me)}),this._fillTitleIcon(ne),this._primaryHeading=le.a("span.filename"),this._secondaryHeading=le.a("span.dirname"),this._metaHeading=le.a("span.meta"),le.q(ne,this._primaryHeading,this._secondaryHeading,this._metaHeading);var fe=le.a(".peekview-actions");le.q(this._headElement,fe);var Oe=this._getActionBarOptions();this._actionbarWidget=new $.a(fe,Oe),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new R.a("peekview.close",I.a("label.close","Close"),"codicon-close",!0,function(){return re.dispose(),Promise.resolve()}),{label:!1,icon:!0})},b.prototype._fillTitleIcon=function(F){},b.prototype._getActionBarOptions=function(){return{}},b.prototype._onTitleClick=function(F){},b.prototype.setTitle=function(F,re){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=W.o(F),this._primaryHeading.setAttribute("aria-label",F),re?this._secondaryHeading.innerHTML=W.o(re):le.t(this._secondaryHeading))},b.prototype.setMetaTitle=function(F){this._metaHeading&&(F?(this._metaHeading.innerHTML=W.o(F),le.X(this._metaHeading)):le.J(this._metaHeading))},b.prototype._doLayout=function(F,re){if(!this._isShowing&&F<0){this.dispose();return}var ne=Math.ceil(this.editor.getOption(49)*1.2),fe=Math.round(F-(ne+2));this._doLayoutHead(ne,re),this._doLayoutBody(fe,re)},b.prototype._doLayoutHead=function(F,re){this._headElement&&(this._headElement.style.height=F+"px",this._headElement.style.lineHeight=this._headElement.style.height)},b.prototype._doLayoutBody=function(F,re){this._bodyElement&&(this._bodyElement.style.height=F+"px")},b}(L),ee=Object(H.Tb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},I.a("peekViewTitleBackground","Background color of the peek view title area.")),ie=Object(H.Tb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},I.a("peekViewTitleForeground","Color of the peek view title.")),q=Object(H.Tb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},I.a("peekViewTitleInfoForeground","Color of the peek view title info.")),ce=Object(H.Tb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:H.e},I.a("peekViewBorder","Color of the peek view borders and arrow.")),Z=Object(H.Tb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:B.a.black},I.a("peekViewResultsBackground","Background color of the peek view result list.")),ye=Object(H.Tb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:B.a.white},I.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),je=Object(H.Tb)("peekViewResult.fileForeground",{dark:B.a.white,light:"#1E1E1E",hc:B.a.white},I.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Ge=Object(H.Tb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},I.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),ue=Object(H.Tb)("peekViewResult.selectionForeground",{dark:B.a.white,light:"#6C6C6C",hc:B.a.white},I.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),ve=Object(H.Tb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:B.a.black},I.a("peekViewEditorBackground","Background color of the peek view editor.")),Ee=Object(H.Tb)("peekViewEditorGutter.background",{dark:ve,light:ve,hc:ve},I.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),xe=Object(H.Tb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},I.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Ce=Object(H.Tb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},I.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),he=Object(H.Tb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:H.b},I.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},ic2d:function(Lt,N,e){"use strict";e.d(N,"a",function(){return R});var T=e("746U"),le=e("FWmy"),$=function(){function B(){this.data=new Map}return B.prototype.add=function(z,D){le.a(T.j(z)),le.a(T.i(D)),le.a(!this.data.has(z),"There is already an extension with this id"),this.data.set(z,D)},B.prototype.as=function(z){return this.data.get(z)||null},B}(),R=new $},"ij/i":function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return e.e(332).then(e.bind(null,"3MdH"))}})},iuje:function(Lt,N,e){"use strict";e.d(N,"c",function(){return T}),e.d(N,"a",function(){return le}),e.d(N,"b",function(){return $});function T(R){return R&&typeof R.id=="string"}var le={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},$={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"}},j2o1:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return e.e(324).then(e.bind(null,"ppMK"))}})},"jAJ/":function(Lt,N,e){"use strict";e.d(N,"a",function(){return D}),e.d(N,"d",function(){return h}),e.d(N,"c",function(){return w}),e.d(N,"e",function(){return C}),e.d(N,"b",function(){return g});var T=e("N0LK"),le=e("5v8Y"),$=e("cGHE"),R=e("aokT"),B=e("M1Kb"),z=999,D=function(){function u(s,l,c,p){this.searchString=s,this.isRegex=l,this.matchCase=c,this.wordSeparators=p}return u.prototype.parseSearchRequest=function(){if(this.searchString==="")return null;var s;this.isRegex?s=W(this.searchString):s=this.searchString.indexOf(`
`)>=0;var l=null;try{l=T.l(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:s,global:!0,unicode:!0})}catch(p){return null}if(!l)return null;var c=!this.isRegex&&!s;return c&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(c=this.matchCase),new x(l,this.wordSeparators?Object(le.a)(this.wordSeparators):null,c?this.searchString:null)},u}();function W(u){if(!u||u.length===0)return!1;for(var s=0,l=u.length;s<l;s++){var c=u.charCodeAt(s);if(c===92){if(s++,s>=l)break;var p=u.charCodeAt(s);if(p===110||p===114||p===87||p===119)return!0}}return!1}var x=function(){function u(s,l,c){this.regex=s,this.wordSeparators=l,this.simpleSearch=c}return u}();function h(u,s,l){if(!l)return new B.b(u,null);for(var c=[],p=0,_=s.length;p<_;p++)c[p]=s[p];return new B.b(u,c)}var y=function(){function u(s){for(var l=[],c=0,p=0,_=s.length;p<_;p++)s.charCodeAt(p)===10&&(l[c++]=p);this._lineFeedsOffsets=l}return u.prototype.findLineFeedCountBeforeOffset=function(s){var l=this._lineFeedsOffsets,c=0,p=l.length-1;if(p===-1)return 0;if(s<=l[0])return 0;for(;c<p;){var _=c+((p-c)/2>>0);l[_]>=s?p=_-1:l[_+1]>=s?(c=_,p=_):c=_+1}return c+1},u}(),w=function(){function u(){}return u.findMatches=function(s,l,c,p,_){var L=l.parseSearchRequest();return L?L.regex.multiline?this._doFindMatchesMultiline(s,c,new g(L.wordSeparators,L.regex),p,_):this._doFindMatchesLineByLine(s,c,L,p,_):[]},u._getMultilineMatchRange=function(s,l,c,p,_,L){var I,P=0;p?(P=p.findLineFeedCountBeforeOffset(_),I=l+_+P):I=l+_;var A;if(p){var Q=p.findLineFeedCountBeforeOffset(_+L.length),K=Q-P;A=I+L.length+K}else A=I+L.length;var H=s.getPositionAt(I),V=s.getPositionAt(A);return new R.a(H.lineNumber,H.column,V.lineNumber,V.column)},u._doFindMatchesMultiline=function(s,l,c,p,_){var L=s.getOffsetAt(l.getStartPosition()),I=s.getValueInRange(l,1),P=s.getEOL()===`\r
`?new y(I):null,A=[],Q=0,K;for(c.reset(0);K=c.next(I);)if(A[Q++]=h(this._getMultilineMatchRange(s,L,I,P,K.index,K[0]),K,p),Q>=_)return A;return A},u._doFindMatchesLineByLine=function(s,l,c,p,_){var L=[],I=0;if(l.startLineNumber===l.endLineNumber){var P=s.getLineContent(l.startLineNumber).substring(l.startColumn-1,l.endColumn-1);return I=this._findMatchesInLine(c,P,l.startLineNumber,l.startColumn-1,I,L,p,_),L}var A=s.getLineContent(l.startLineNumber).substring(l.startColumn-1);I=this._findMatchesInLine(c,A,l.startLineNumber,l.startColumn-1,I,L,p,_);for(var Q=l.startLineNumber+1;Q<l.endLineNumber&&I<_;Q++)I=this._findMatchesInLine(c,s.getLineContent(Q),Q,0,I,L,p,_);if(I<_){var K=s.getLineContent(l.endLineNumber).substring(0,l.endColumn-1);I=this._findMatchesInLine(c,K,l.endLineNumber,0,I,L,p,_)}return L},u._findMatchesInLine=function(s,l,c,p,_,L,I,P){var A=s.wordSeparators;if(!I&&s.simpleSearch){for(var Q=s.simpleSearch,K=Q.length,H=l.length,V=-K;(V=l.indexOf(Q,V+K))!==-1;)if((!A||C(A,l,H,V,K))&&(L[_++]=new B.b(new R.a(c,V+1+p,c,V+1+K+p),null),_>=P))return _;return _}var de=new g(s.wordSeparators,s.regex),_e;de.reset(0);do if(_e=de.next(l),_e&&(L[_++]=h(new R.a(c,_e.index+1+p,c,_e.index+1+_e[0].length+p),_e,I),_>=P))return _;while(_e);return _},u.findNextMatch=function(s,l,c,p){var _=l.parseSearchRequest();if(!_)return null;var L=new g(_.wordSeparators,_.regex);return _.regex.multiline?this._doFindNextMatchMultiline(s,c,L,p):this._doFindNextMatchLineByLine(s,c,L,p)},u._doFindNextMatchMultiline=function(s,l,c,p){var _=new $.a(l.lineNumber,1),L=s.getOffsetAt(_),I=s.getLineCount(),P=s.getValueInRange(new R.a(_.lineNumber,_.column,I,s.getLineMaxColumn(I)),1),A=s.getEOL()===`\r
`?new y(P):null;c.reset(l.column-1);var Q=c.next(P);return Q?h(this._getMultilineMatchRange(s,L,P,A,Q.index,Q[0]),Q,p):l.lineNumber!==1||l.column!==1?this._doFindNextMatchMultiline(s,new $.a(1,1),c,p):null},u._doFindNextMatchLineByLine=function(s,l,c,p){var _=s.getLineCount(),L=l.lineNumber,I=s.getLineContent(L),P=this._findFirstMatchInLine(c,I,L,l.column,p);if(P)return P;for(var A=1;A<=_;A++){var Q=(L+A-1)%_,K=s.getLineContent(Q+1),H=this._findFirstMatchInLine(c,K,Q+1,1,p);if(H)return H}return null},u._findFirstMatchInLine=function(s,l,c,p,_){s.reset(p-1);var L=s.next(l);return L?h(new R.a(c,L.index+1,c,L.index+1+L[0].length),L,_):null},u.findPreviousMatch=function(s,l,c,p){var _=l.parseSearchRequest();if(!_)return null;var L=new g(_.wordSeparators,_.regex);return _.regex.multiline?this._doFindPreviousMatchMultiline(s,c,L,p):this._doFindPreviousMatchLineByLine(s,c,L,p)},u._doFindPreviousMatchMultiline=function(s,l,c,p){var _=this._doFindMatchesMultiline(s,new R.a(1,1,l.lineNumber,l.column),c,p,10*z);if(_.length>0)return _[_.length-1];var L=s.getLineCount();return l.lineNumber!==L||l.column!==s.getLineMaxColumn(L)?this._doFindPreviousMatchMultiline(s,new $.a(L,s.getLineMaxColumn(L)),c,p):null},u._doFindPreviousMatchLineByLine=function(s,l,c,p){var _=s.getLineCount(),L=l.lineNumber,I=s.getLineContent(L).substring(0,l.column-1),P=this._findLastMatchInLine(c,I,L,p);if(P)return P;for(var A=1;A<=_;A++){var Q=(_+L-A-1)%_,K=s.getLineContent(Q+1),H=this._findLastMatchInLine(c,K,Q+1,p);if(H)return H}return null},u._findLastMatchInLine=function(s,l,c,p){var _=null,L;for(s.reset(0);L=s.next(l);)_=h(new R.a(c,L.index+1,c,L.index+1+L[0].length),L,p);return _},u}();function f(u,s,l,c,p){if(c===0)return!0;var _=s.charCodeAt(c-1);if(u.get(_)!==0)return!0;if(_===13||_===10)return!0;if(p>0){var L=s.charCodeAt(c);if(u.get(L)!==0)return!0}return!1}function v(u,s,l,c,p){if(c+p===l)return!0;var _=s.charCodeAt(c+p);if(u.get(_)!==0)return!0;if(_===13||_===10)return!0;if(p>0){var L=s.charCodeAt(c+p-1);if(u.get(L)!==0)return!0}return!1}function C(u,s,l,c,p){return f(u,s,l,c,p)&&v(u,s,l,c,p)}var g=function(){function u(s,l){this._wordSeparators=s,this._searchRegex=l,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return u.prototype.reset=function(s){this._searchRegex.lastIndex=s,this._prevMatchStartIndex=-1,this._prevMatchLength=0},u.prototype.next=function(s){var l=s.length,c;do{if(this._prevMatchStartIndex+this._prevMatchLength===l)return null;if(c=this._searchRegex.exec(s),!c)return null;var p=c.index,_=c[0].length;if(p===this._prevMatchStartIndex&&_===this._prevMatchLength){if(_===0){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=p,this._prevMatchLength=_,!this._wordSeparators||C(this._wordSeparators,s,l,p,_))return c}while(c);return null},u}()},jVwG:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return e.e(316).then(e.bind(null,"fYNN"))}})},jqj9:function(Lt,N,e){"use strict";var T=e("yI7H"),le=e.n(T),$=e("ujyM"),R=e.n($),B=e("3/fG"),z=e("t9D7"),D=e("MD5Z"),W=Object(D.Tb)("symbolIcon.arrayForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=Object(D.Tb)("symbolIcon.booleanForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=Object(D.Tb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(B.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=Object(D.Tb)("symbolIcon.colorForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=Object(D.Tb)("symbolIcon.constantForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=Object(D.Tb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(B.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=Object(D.Tb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(B.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=Object(D.Tb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(B.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=Object(D.Tb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(B.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=Object(D.Tb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(B.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),s=Object(D.Tb)("symbolIcon.fileForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=Object(D.Tb)("symbolIcon.folderForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=Object(D.Tb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(B.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=Object(D.Tb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(B.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=Object(D.Tb)("symbolIcon.keyForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=Object(D.Tb)("symbolIcon.keywordForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=Object(D.Tb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(B.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=Object(D.Tb)("symbolIcon.moduleForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=Object(D.Tb)("symbolIcon.namespaceForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Q=Object(D.Tb)("symbolIcon.nullForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),K=Object(D.Tb)("symbolIcon.numberForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),H=Object(D.Tb)("symbolIcon.objectForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),V=Object(D.Tb)("symbolIcon.operatorForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),de=Object(D.Tb)("symbolIcon.packageForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_e=Object(D.Tb)("symbolIcon.propertyForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Se=Object(D.Tb)("symbolIcon.referenceForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ie=Object(D.Tb)("symbolIcon.snippetForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Pe=Object(D.Tb)("symbolIcon.stringForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ve=Object(D.Tb)("symbolIcon.structForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ke=Object(D.Tb)("symbolIcon.textForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),se=Object(D.Tb)("symbolIcon.typeParameterForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ee=Object(D.Tb)("symbolIcon.unitForeground",{dark:D.W,light:D.W,hc:D.W},Object(B.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ie=Object(D.Tb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(B.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(z.e)(function(q,ce){var Z=q.getColor(W);Z&&ce.addRule(".codicon-symbol-array { color: "+Z+" !important; }");var ye=q.getColor(x);ye&&ce.addRule(".codicon-symbol-boolean { color: "+ye+" !important; }");var je=q.getColor(h);je&&ce.addRule(".codicon-symbol-class { color: "+je+" !important; }");var Ge=q.getColor(I);Ge&&ce.addRule(".codicon-symbol-method { color: "+Ge+" !important; }");var ue=q.getColor(y);ue&&ce.addRule(".codicon-symbol-color { color: "+ue+" !important; }");var ve=q.getColor(w);ve&&ce.addRule(".codicon-symbol-constant { color: "+ve+" !important; }");var Ee=q.getColor(f);Ee&&ce.addRule(".codicon-symbol-constructor { color: "+Ee+" !important; }");var xe=q.getColor(v);xe&&ce.addRule(`
.codicon-symbol-value,.codicon-symbol-enum { color: `+xe+" !important; }");var Ce=q.getColor(C);Ce&&ce.addRule(".codicon-symbol-enum-member { color: "+Ce+" !important; }");var he=q.getColor(g);he&&ce.addRule(".codicon-symbol-event { color: "+he+" !important; }");var J=q.getColor(u);J&&ce.addRule(".codicon-symbol-field { color: "+J+" !important; }");var b=q.getColor(s);b&&ce.addRule(".codicon-symbol-file { color: "+b+" !important; }");var F=q.getColor(l);F&&ce.addRule(".codicon-symbol-folder { color: "+F+" !important; }");var re=q.getColor(c);re&&ce.addRule(".codicon-symbol-function { color: "+re+" !important; }");var ne=q.getColor(p);ne&&ce.addRule(".codicon-symbol-interface { color: "+ne+" !important; }");var fe=q.getColor(_);fe&&ce.addRule(".codicon-symbol-key { color: "+fe+" !important; }");var Oe=q.getColor(L);Oe&&ce.addRule(".codicon-symbol-keyword { color: "+Oe+" !important; }");var Me=q.getColor(P);Me&&ce.addRule(".codicon-symbol-module { color: "+Me+" !important; }");var Ue=q.getColor(A);Ue&&ce.addRule(".codicon-symbol-namespace { color: "+Ue+" !important; }");var Je=q.getColor(Q);Je&&ce.addRule(".codicon-symbol-null { color: "+Je+" !important; }");var nt=q.getColor(K);nt&&ce.addRule(".codicon-symbol-number { color: "+nt+" !important; }");var vt=q.getColor(H);vt&&ce.addRule(".codicon-symbol-object { color: "+vt+" !important; }");var Rt=q.getColor(V);Rt&&ce.addRule(".codicon-symbol-operator { color: "+Rt+" !important; }");var Dt=q.getColor(de);Dt&&ce.addRule(".codicon-symbol-package { color: "+Dt+" !important; }");var Kt=q.getColor(_e);Kt&&ce.addRule(".codicon-symbol-property { color: "+Kt+" !important; }");var ao=q.getColor(Se);ao&&ce.addRule(".codicon-symbol-reference { color: "+ao+" !important; }");var lo=q.getColor(Ie);lo&&ce.addRule(".codicon-symbol-snippet { color: "+lo+" !important; }");var so=q.getColor(Pe);so&&ce.addRule(".codicon-symbol-string { color: "+so+" !important; }");var jt=q.getColor(Ve);jt&&ce.addRule(".codicon-symbol-struct { color: "+jt+" !important; }");var pt=q.getColor(ke);pt&&ce.addRule(".codicon-symbol-text { color: "+pt+" !important; }");var gt=q.getColor(se);gt&&ce.addRule(".codicon-symbol-type-parameter { color: "+gt+" !important; }");var Tt=q.getColor(ee);Tt&&ce.addRule(".codicon-symbol-unit { color: "+Tt+" !important; }");var it=q.getColor(ie);it&&ce.addRule(".codicon-symbol-variable { color: "+it+" !important; }")})},jrbv:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return e.e(297).then(e.bind(null,"2ZXa"))}})},k76M:function(Lt,N,e){"use strict";var T=e("XNtB"),le=e.n(T),$=e("epnl"),R=e.n($)},k7mE:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return e.e(308).then(e.bind(null,"BjZ/"))}})},k7pc:function(Lt,N,e){"use strict";e.r(N),e.d(N,"ToggleTabFocusModeAction",function(){return z});var T=e("3/fG"),le=e("OBOq"),$=e("sswD"),R=e("iDAx"),B=function(){var D=function(W,x){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var w in y)y.hasOwnProperty(w)&&(h[w]=y[w])},D(W,x)};return function(W,x){D(W,x);function h(){this.constructor=W}W.prototype=x===null?Object.create(x):(h.prototype=x.prototype,new h)}}(),z=function(D){B(W,D);function W(){return D.call(this,{id:W.ID,label:T.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|43,mac:{primary:256|1024|43},weight:100}})||this}return W.prototype.run=function(x,h){var y=R.b.getTabFocusMode(),w=!y;R.b.setTabFocusMode(w),w?Object(le.a)(T.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(le.a)(T.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))},W.ID="editor.action.toggleTabFocusMode",W}($.b);Object($.f)(z)},k9mg:function(Lt,N,e){"use strict";e.d(N,"a",function(){return un}),e.d(N,"b",function(){return Vo}),e.d(N,"d",function(){return rn}),e.d(N,"c",function(){return mt});var T=e("EffR"),le=e("cqdO"),$=e("pmY6"),R=e("3/fG"),B=e("+7oY"),z=e("CRAX"),D=e("T8No"),W=e("Cg/j"),x=e("bexQ"),h=e("ic2d"),y=e("ptcw"),w=e("t9D7"),f="inputFocus",v=e("2V9f"),C=e("MI8n"),g=e("uDWl"),u=e("ZQ78"),s=e("6OMU"),l=e("feEw"),c=e("4y0V"),p=e("fpMC"),_=function(){var pe=function(O,me){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Be,Ze){Be.__proto__=Ze}||function(Be,Ze){for(var at in Ze)Ze.hasOwnProperty(at)&&(Be[at]=Ze[at])},pe(O,me)};return function(O,me){pe(O,me);function Be(){this.constructor=O}O.prototype=me===null?Object.create(me):(Be.prototype=me.prototype,new Be)}}(),L=function(pe){_(O,pe);function O(me,Be){return pe.call(this,"TreeError ["+me+"] "+Be)||this}return O}(Error),I=function(){function pe(O){this.fn=O,this._map=new WeakMap}return pe.prototype.map=function(O){var me=this._map.get(O);return me||(me=this.fn(O),this._map.set(O,me)),me},pe}(),P=e("JYp7"),A=function(){for(var pe=0,O=0,me=arguments.length;O<me;O++)pe+=arguments[O].length;for(var Be=Array(pe),Ze=0,O=0;O<me;O++)for(var at=arguments[O],_t=0,zt=at.length;_t<zt;_t++,Ze++)Be[Ze]=at[_t];return Be};function Q(pe){return typeof pe=="object"&&"visibility"in pe&&"data"in pe}function K(pe){switch(pe){case!0:return 1;case!1:return 0;default:return pe}}function H(pe){return typeof pe.collapsible=="boolean"}var V=function(){function pe(O,me,Be,Ze){Ze===void 0&&(Ze={}),this.user=O,this.list=me,this.rootRef=[],this.eventBufferer=new C.c,this._onDidChangeCollapseState=new C.a,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new C.a,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new C.a,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=typeof Ze.collapseByDefault=="undefined"?!1:Ze.collapseByDefault,this.filter=Ze.filter,this.autoExpandSingleChildren=typeof Ze.autoExpandSingleChildren=="undefined"?!1:Ze.autoExpandSingleChildren,this.root={parent:void 0,element:Be,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}return pe.prototype.splice=function(O,me,Be,Ze,at){var _t,zt=this;if(O.length===0)throw new L(this.user,"Invalid tree location");for(var Xt=this.getParentNodeWithListIndex(O),no=Xt.parentNode,uo=Xt.listIndex,go=Xt.revealed,Ao=Xt.visible,To=[],wo=P.d.map(P.d.from(Be),function(Pn){return zt.createTreeNode(Pn,no,no.visible?1:0,go,To,Ze)}),No=O[O.length-1],Qo=0,Oo=No;Oo>=0&&Oo<no.children.length;Oo--){var Lo=no.children[Oo];if(Lo.visible){Qo=Lo.visibleChildIndex;break}}var vn=[],hn=0,En=0;P.d.forEach(wo,function(Pn){vn.push(Pn),En+=Pn.renderNodeCount,Pn.visible&&(Pn.visibleChildIndex=Qo+hn++)});for(var qo=(_t=no.children).splice.apply(_t,A([No,me],vn)),xn=0,Un=0,An=qo;Un<An.length;Un++){var Lo=An[Un];Lo.visible&&xn++}if(xn!==0)for(var Oo=No+vn.length;Oo<no.children.length;Oo++){var Lo=no.children[Oo];Lo.visible&&(Lo.visibleChildIndex-=xn)}if(no.visibleChildrenCount+=hn-xn,go&&Ao){var si=qo.reduce(function(Pn,bi){return Pn+(bi.visible?bi.renderNodeCount:0)},0);this._updateAncestorsRenderNodeCount(no,En-si),this.list.splice(uo,si,To)}if(qo.length>0&&at){var ai=function(Pn){at(Pn),Pn.children.forEach(ai)};qo.forEach(ai)}this._onDidSplice.fire({insertedNodes:vn,deletedNodes:qo})},pe.prototype.rerender=function(O){if(O.length===0)throw new L(this.user,"Invalid tree location");var me=this.getTreeNodeWithListIndex(O),Be=me.node,Ze=me.listIndex,at=me.revealed;at&&this.list.splice(Ze,1,[Be])},pe.prototype.has=function(O){return this.hasTreeNode(O)},pe.prototype.getListIndex=function(O){var me=this.getTreeNodeWithListIndex(O),Be=me.listIndex,Ze=me.visible,at=me.revealed;return Ze&&at?Be:-1},pe.prototype.getListRenderCount=function(O){return this.getTreeNode(O).renderNodeCount},pe.prototype.isCollapsible=function(O){return this.getTreeNode(O).collapsible},pe.prototype.setCollapsible=function(O,me){var Be=this,Ze=this.getTreeNode(O);typeof me=="undefined"&&(me=!Ze.collapsible);var at={collapsible:me};return this.eventBufferer.bufferEvents(function(){return Be._setCollapseState(O,at)})},pe.prototype.isCollapsed=function(O){return this.getTreeNode(O).collapsed},pe.prototype.setCollapsed=function(O,me,Be){var Ze=this,at=this.getTreeNode(O);typeof me=="undefined"&&(me=!at.collapsed);var _t={collapsed:me,recursive:Be||!1};return this.eventBufferer.bufferEvents(function(){return Ze._setCollapseState(O,_t)})},pe.prototype._setCollapseState=function(O,me){var Be=this.getTreeNodeWithListIndex(O),Ze=Be.node,at=Be.listIndex,_t=Be.revealed,zt=this._setListNodeCollapseState(Ze,at,_t,me);if(Ze!==this.root&&this.autoExpandSingleChildren&&zt&&!H(me)&&Ze.collapsible&&!Ze.collapsed&&!me.recursive){for(var Xt=-1,no=0;no<Ze.children.length;no++){var uo=Ze.children[no];if(uo.visible)if(Xt>-1){Xt=-1;break}else Xt=no}Xt>-1&&this._setCollapseState(A(O,[Xt]),me)}return zt},pe.prototype._setListNodeCollapseState=function(O,me,Be,Ze){var at=this._setNodeCollapseState(O,Ze,!1);if(!Be||!O.visible||!at)return at;var _t=O.renderNodeCount,zt=this.updateNodeAfterCollapseChange(O),Xt=_t-(me===-1?0:1);return this.list.splice(me+1,Xt,zt.slice(1)),at},pe.prototype._setNodeCollapseState=function(O,me,Be){var Ze;if(O===this.root?Ze=!1:(H(me)?(Ze=O.collapsible!==me.collapsible,O.collapsible=me.collapsible):O.collapsible?(Ze=O.collapsed!==me.collapsed,O.collapsed=me.collapsed):Ze=!1,Ze&&this._onDidChangeCollapseState.fire({node:O,deep:Be})),!H(me)&&me.recursive)for(var at=0,_t=O.children;at<_t.length;at++){var zt=_t[at];Ze=this._setNodeCollapseState(zt,me,!0)||Ze}return Ze},pe.prototype.expandTo=function(O){var me=this;this.eventBufferer.bufferEvents(function(){for(var Be=me.getTreeNode(O);Be.parent;)Be=Be.parent,O=O.slice(0,O.length-1),Be.collapsed&&me._setCollapseState(O,{collapsed:!1,recursive:!1})})},pe.prototype.refilter=function(){var O=this.root.renderNodeCount,me=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,O,me)},pe.prototype.createTreeNode=function(O,me,Be,Ze,at,_t){var zt=this,Xt={parent:me,element:O.element,children:[],depth:me.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof O.collapsible=="boolean"?O.collapsible:typeof O.collapsed!="undefined",collapsed:typeof O.collapsed=="undefined"?this.collapseByDefault:O.collapsed,renderNodeCount:1,visible:!0,filterData:void 0},no=this._filterNode(Xt,Be);Ze&&at.push(Xt);var uo=P.d.from(O.children),go=Ze&&no!==0&&!Xt.collapsed,Ao=P.d.map(uo,function(No){return zt.createTreeNode(No,Xt,no,go,at,_t)}),To=0,wo=1;return P.d.forEach(Ao,function(No){Xt.children.push(No),wo+=No.renderNodeCount,No.visible&&(No.visibleChildIndex=To++)}),Xt.collapsible=Xt.collapsible||Xt.children.length>0,Xt.visibleChildrenCount=To,Xt.visible=no===2?To>0:no===1,Xt.visible?Xt.collapsed||(Xt.renderNodeCount=wo):(Xt.renderNodeCount=0,Ze&&at.pop()),_t&&_t(Xt),Xt},pe.prototype.updateNodeAfterCollapseChange=function(O){var me=O.renderNodeCount,Be=[];return this._updateNodeAfterCollapseChange(O,Be),this._updateAncestorsRenderNodeCount(O.parent,Be.length-me),Be},pe.prototype._updateNodeAfterCollapseChange=function(O,me){if(O.visible===!1)return 0;if(me.push(O),O.renderNodeCount=1,!O.collapsed)for(var Be=0,Ze=O.children;Be<Ze.length;Be++){var at=Ze[Be];O.renderNodeCount+=this._updateNodeAfterCollapseChange(at,me)}return this._onDidChangeRenderNodeCount.fire(O),O.renderNodeCount},pe.prototype.updateNodeAfterFilterChange=function(O){var me=O.renderNodeCount,Be=[];return this._updateNodeAfterFilterChange(O,O.visible?1:0,Be),this._updateAncestorsRenderNodeCount(O.parent,Be.length-me),Be},pe.prototype._updateNodeAfterFilterChange=function(O,me,Be,Ze){Ze===void 0&&(Ze=!0);var at;if(O!==this.root){if(at=this._filterNode(O,me),at===0)return O.visible=!1,O.renderNodeCount=0,!1;Ze&&Be.push(O)}var _t=Be.length;O.renderNodeCount=O===this.root?0:1;var zt=!1;if(!O.collapsed||at!==0){for(var Xt=0,no=0,uo=O.children;no<uo.length;no++){var go=uo[no];zt=this._updateNodeAfterFilterChange(go,at,Be,Ze&&!O.collapsed)||zt,go.visible&&(go.visibleChildIndex=Xt++)}O.visibleChildrenCount=Xt}else O.visibleChildrenCount=0;return O!==this.root&&(O.visible=at===2?zt:at===1),O.visible?O.collapsed||(O.renderNodeCount+=Be.length-_t):(O.renderNodeCount=0,Ze&&Be.pop()),this._onDidChangeRenderNodeCount.fire(O),O.visible},pe.prototype._updateAncestorsRenderNodeCount=function(O,me){if(me===0)return;for(;O;)O.renderNodeCount+=me,this._onDidChangeRenderNodeCount.fire(O),O=O.parent},pe.prototype._filterNode=function(O,me){var Be=this.filter?this.filter.filter(O.element,me):1;return typeof Be=="boolean"?(O.filterData=void 0,Be?1:0):Q(Be)?(O.filterData=Be.data,K(Be.visibility)):(O.filterData=void 0,K(Be))},pe.prototype.hasTreeNode=function(O,me){if(me===void 0&&(me=this.root),!O||O.length===0)return!0;var Be=O[0],Ze=O.slice(1);return Be<0||Be>me.children.length?!1:this.hasTreeNode(Ze,me.children[Be])},pe.prototype.getTreeNode=function(O,me){if(me===void 0&&(me=this.root),!O||O.length===0)return me;var Be=O[0],Ze=O.slice(1);if(Be<0||Be>me.children.length)throw new L(this.user,"Invalid tree location");return this.getTreeNode(Ze,me.children[Be])},pe.prototype.getTreeNodeWithListIndex=function(O){if(O.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var me=this.getParentNodeWithListIndex(O),Be=me.parentNode,Ze=me.listIndex,at=me.revealed,_t=me.visible,zt=O[O.length-1];if(zt<0||zt>Be.children.length)throw new L(this.user,"Invalid tree location");var Xt=Be.children[zt];return{node:Xt,listIndex:Ze,revealed:at,visible:_t&&Xt.visible}},pe.prototype.getParentNodeWithListIndex=function(O,me,Be,Ze,at){me===void 0&&(me=this.root),Be===void 0&&(Be=0),Ze===void 0&&(Ze=!0),at===void 0&&(at=!0);var _t=O[0],zt=O.slice(1);if(_t<0||_t>me.children.length)throw new L(this.user,"Invalid tree location");for(var Xt=0;Xt<_t;Xt++)Be+=me.children[Xt].renderNodeCount;return Ze=Ze&&!me.collapsed,at=at&&me.visible,zt.length===0?{parentNode:me,listIndex:Be,revealed:Ze,visible:at}:this.getParentNodeWithListIndex(zt,me.children[_t],Be+1,Ze,at)},pe.prototype.getNode=function(O){return O===void 0&&(O=[]),this.getTreeNode(O)},pe.prototype.getNodeLocation=function(O){for(var me=[],Be=O;Be.parent;)me.push(Be.parent.children.indexOf(Be)),Be=Be.parent;return me.reverse()},pe.prototype.getParentNodeLocation=function(O){return O.length===0?void 0:O.length===1?[]:Object(s.w)(O)[0]},pe}(),de=e("X+cX"),_e=e("MNsG"),Se=e("QDVR"),Ie=e("Sdnv"),Pe=e("vl9R"),Ve=function(){var pe=function(O,me){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Be,Ze){Be.__proto__=Ze}||function(Be,Ze){for(var at in Ze)Ze.hasOwnProperty(at)&&(Be[at]=Ze[at])},pe(O,me)};return function(O,me){pe(O,me);function Be(){this.constructor=O}O.prototype=me===null?Object.create(me):(Be.prototype=me.prototype,new Be)}}(),ke=function(){return ke=Object.assign||function(pe){for(var O,me=1,Be=arguments.length;me<Be;me++){O=arguments[me];for(var Ze in O)Object.prototype.hasOwnProperty.call(O,Ze)&&(pe[Ze]=O[Ze])}return pe},ke.apply(this,arguments)},se=function(){for(var pe=0,O=0,me=arguments.length;O<me;O++)pe+=arguments[O].length;for(var Be=Array(pe),Ze=0,O=0;O<me;O++)for(var at=arguments[O],_t=0,zt=at.length;_t<zt;_t++,Ze++)Be[Ze]=at[_t];return Be},ee=function(pe){Ve(O,pe);function O(me){var Be=pe.call(this,me.elements.map(function(Ze){return Ze.element}))||this;return Be.data=me,Be}return O}(l.a);function ie(pe){return pe instanceof l.a?new ee(pe):pe}var q=function(){function pe(O,me){this.modelProvider=O,this.dnd=me,this.autoExpandDisposable=$.a.None}return pe.prototype.getDragURI=function(O){return this.dnd.getDragURI(O.element)},pe.prototype.getDragLabel=function(O,me){return this.dnd.getDragLabel?this.dnd.getDragLabel(O.map(function(Be){return Be.element}),me):void 0},pe.prototype.onDragStart=function(O,me){this.dnd.onDragStart&&this.dnd.onDragStart(ie(O),me)},pe.prototype.onDragOver=function(O,me,Be,Ze,at){var _t=this;at===void 0&&(at=!0);var zt=this.dnd.onDragOver(ie(O),me&&me.element,Be,Ze),Xt=this.autoExpandNode!==me;if(Xt&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=me),typeof me=="undefined")return zt;if(Xt&&typeof zt!="boolean"&&zt.autoExpand&&(this.autoExpandDisposable=Object(de.g)(function(){var hn=_t.modelProvider(),En=hn.getNodeLocation(me);hn.isCollapsed(En)&&hn.setCollapsed(En,!1),_t.autoExpandNode=void 0},500)),typeof zt=="boolean"||!zt.accept||typeof zt.bubble=="undefined"||zt.feedback){if(!at){var no=typeof zt=="boolean"?zt:zt.accept,uo=typeof zt=="boolean"?void 0:zt.effect;return{accept:no,effect:uo,feedback:[Be]}}return zt}if(zt.bubble===1){var go=this.modelProvider(),Ao=go.getNodeLocation(me),To=go.getParentNodeLocation(Ao),wo=go.getNode(To),No=To&&go.getListIndex(To);return this.onDragOver(O,wo,No,Ze,!1)}var Qo=this.modelProvider(),Oo=Qo.getNodeLocation(me),Lo=Qo.getListIndex(Oo),vn=Qo.getListRenderCount(Oo);return ke(ke({},zt),{feedback:Object(s.u)(Lo,Lo+vn)})},pe.prototype.drop=function(O,me,Be,Ze){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(ie(O),me&&me.element,Be,Ze)},pe.prototype.onDragEnd=function(O){this.dnd.onDragEnd&&this.dnd.onDragEnd(O)},pe}();function ce(pe,O){return O&&ke(ke({},O),{identityProvider:O.identityProvider&&{getId:function(me){return O.identityProvider.getId(me.element)}},dnd:O.dnd&&new q(pe,O.dnd),multipleSelectionController:O.multipleSelectionController&&{isSelectionSingleChangeEvent:function(me){return O.multipleSelectionController.isSelectionSingleChangeEvent(ke(ke({},me),{element:me.element}))},isSelectionRangeChangeEvent:function(me){return O.multipleSelectionController.isSelectionRangeChangeEvent(ke(ke({},me),{element:me.element}))}},accessibilityProvider:O.accessibilityProvider&&ke(ke({},O.accessibilityProvider),{getAriaLabel:function(me){return O.accessibilityProvider.getAriaLabel(me.element)},getAriaLevel:function(me){return me.depth},getActiveDescendantId:O.accessibilityProvider.getActiveDescendantId&&function(me){return O.accessibilityProvider.getActiveDescendantId(me.element)}}),keyboardNavigationLabelProvider:O.keyboardNavigationLabelProvider&&ke(ke({},O.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(me){return O.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(me.element)}}),enableKeyboardNavigation:O.simpleKeyboardNavigation,ariaProvider:{getSetSize:function(me){var Be=pe(),Ze=Be.getNodeLocation(me),at=Be.getParentNodeLocation(Ze),_t=Be.getNode(at);return _t.visibleChildrenCount},getPosInSet:function(me){return me.visibleChildIndex+1},isChecked:O.ariaProvider&&O.ariaProvider.isChecked?function(me){return O.ariaProvider.isChecked(me.element)}:void 0,getRole:O.ariaProvider&&O.ariaProvider.getRole?function(me){return O.ariaProvider.getRole(me.element)}:void 0}})}var Z=function(){function pe(O){this.delegate=O}return pe.prototype.getHeight=function(O){return this.delegate.getHeight(O.element)},pe.prototype.getTemplateId=function(O){return this.delegate.getTemplateId(O.element)},pe.prototype.hasDynamicHeight=function(O){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(O.element)},pe.prototype.setDynamicHeight=function(O,me){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(O.element,me)},pe}(),ye;(function(pe){pe.None="none",pe.OnHover="onHover",pe.Always="always"})(ye||(ye={}));var je=function(){function pe(O,me){var Be=this;me===void 0&&(me=[]),this._elements=me,this.onDidChange=C.b.forEach(O,function(Ze){return Be._elements=Ze})}return Object.defineProperty(pe.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),pe}(),Ge=function(){function pe(O,me,Be,Ze,at){at===void 0&&(at={}),this.renderer=O,this.modelProvider=me,this.activeNodes=Ze,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=pe.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new Pe.a,this.activeIndentNodes=new Set,this.indentGuidesDisposable=$.a.None,this.disposables=new $.b,this.templateId=O.templateId,this.updateOptions(at),C.b.map(Be,function(_t){return _t.node})(this.onDidChangeNodeTwistieState,this,this.disposables),O.onDidChangeTwistieState&&O.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}return pe.prototype.updateOptions=function(O){if(O===void 0&&(O={}),typeof O.indent!="undefined"&&(this.indent=Object(Ie.a)(O.indent,0,40)),typeof O.renderIndentGuides!="undefined"){var me=O.renderIndentGuides!==ye.None;if(me!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=me,this.indentGuidesDisposable.dispose(),me)){var Be=new $.b;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,Be),this.indentGuidesDisposable=Be,this._onDidChangeActiveNodes(this.activeNodes.elements)}}typeof O.hideTwistiesOfChildlessElements!="undefined"&&(this.hideTwistiesOfChildlessElements=O.hideTwistiesOfChildlessElements)},pe.prototype.renderTemplate=function(O){var me=Object(T.q)(O,Object(T.a)(".monaco-tl-row")),Be=Object(T.q)(me,Object(T.a)(".monaco-tl-indent")),Ze=Object(T.q)(me,Object(T.a)(".monaco-tl-twistie")),at=Object(T.q)(me,Object(T.a)(".monaco-tl-contents")),_t=this.renderer.renderTemplate(at);return{container:O,indent:Be,twistie:Ze,indentGuidesDisposable:$.a.None,templateData:_t}},pe.prototype.renderElement=function(O,me,Be,Ze){typeof Ze=="number"&&(this.renderedNodes.set(O,{templateData:Be,height:Ze}),this.renderedElements.set(O.element,O));var at=pe.DefaultIndent+(O.depth-1)*this.indent;Be.twistie.style.paddingLeft=at+"px",Be.indent.style.width=at+this.indent-16+"px",this.renderTwistie(O,Be),typeof Ze=="number"&&this.renderIndentGuides(O,Be),this.renderer.renderElement(O,me,Be.templateData,Ze)},pe.prototype.disposeElement=function(O,me,Be,Ze){Be.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(O,me,Be.templateData,Ze),typeof Ze=="number"&&(this.renderedNodes.delete(O),this.renderedElements.delete(O.element))},pe.prototype.disposeTemplate=function(O){this.renderer.disposeTemplate(O.templateData)},pe.prototype.onDidChangeTwistieState=function(O){var me=this.renderedElements.get(O);if(!me)return;this.onDidChangeNodeTwistieState(me)},pe.prototype.onDidChangeNodeTwistieState=function(O){var me=this.renderedNodes.get(O);if(!me)return;this.renderTwistie(O,me.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(O,me.templateData)},pe.prototype.renderTwistie=function(O,me){this.renderer.renderTwistie&&this.renderer.renderTwistie(O.element,me.twistie),O.collapsible&&(!this.hideTwistiesOfChildlessElements||O.visibleChildrenCount>0)?(Object(T.g)(me.twistie,"codicon","codicon-chevron-down","collapsible"),Object(T.Y)(me.twistie,"collapsed",O.collapsed)):Object(T.Q)(me.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),O.collapsible?me.container.setAttribute("aria-expanded",String(!O.collapsed)):me.container.removeAttribute("aria-expanded")},pe.prototype.renderIndentGuides=function(O,me){var Be=this;if(Object(T.t)(me.indent),me.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;for(var Ze=new $.b,at=this.modelProvider(),_t=O,zt=function(){var uo=at.getNodeLocation(_t),go=at.getParentNodeLocation(uo);if(!go)return"break";var Ao=at.getNode(go),To=Object(T.a)(".indent-guide",{style:"width: "+Xt.indent+"px"});Xt.activeIndentNodes.has(Ao)&&Object(T.f)(To,"active"),me.indent.childElementCount===0?me.indent.appendChild(To):me.indent.insertBefore(To,me.indent.firstElementChild),Xt.renderedIndentGuides.add(Ao,To),Ze.add(Object($.h)(function(){return Be.renderedIndentGuides.delete(Ao,To)})),_t=Ao},Xt=this;;){var no=zt();if(no==="break")break}me.indentGuidesDisposable=Ze},pe.prototype._onDidChangeActiveNodes=function(O){var me=this;if(!this.shouldRenderIndentGuides)return;var Be=new Set,Ze=this.modelProvider();O.forEach(function(at){var _t=Ze.getNodeLocation(at);try{var zt=Ze.getParentNodeLocation(_t);at.collapsible&&at.children.length>0&&!at.collapsed?Be.add(at):zt&&Be.add(Ze.getNode(zt))}catch(Xt){}}),this.activeIndentNodes.forEach(function(at){Be.has(at)||me.renderedIndentGuides.forEach(at,function(_t){return Object(T.P)(_t,"active")})}),Be.forEach(function(at){me.activeIndentNodes.has(at)||me.renderedIndentGuides.forEach(at,function(_t){return Object(T.f)(_t,"active")})}),this.activeIndentNodes=Be},pe.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object($.f)(this.disposables)},pe.DefaultIndent=8,pe}(),ue=function(){function pe(O,me,Be){this.tree=O,this.keyboardNavigationLabelProvider=me,this._filter=Be,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new $.b,O.onWillRefilter(this.reset,this,this.disposables)}return Object.defineProperty(pe.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"pattern",{set:function(O){this._pattern=O,this._lowercasePattern=O.toLowerCase()},enumerable:!0,configurable:!0}),pe.prototype.filter=function(O,me){if(this._filter){var Be=this._filter.filter(O,me);if(this.tree.options.simpleKeyboardNavigation)return Be;var Ze=void 0;if(typeof Be=="boolean"?Ze=Be?1:0:Q(Be)?Ze=K(Be.visibility):Ze=Be,Ze===0)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:p.a.Default,visibility:!0};var at=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(O),_t=at&&at.toString();if(typeof _t=="undefined")return{data:p.a.Default,visibility:!0};var zt=Object(p.d)(this._pattern,this._lowercasePattern,0,_t,_t.toLowerCase(),0,!0);return zt?(this._matchCount++,{data:zt,visibility:!0}):this.tree.options.filterOnType?2:{data:p.a.Default,visibility:!0}},pe.prototype.reset=function(){this._totalCount=0,this._matchCount=0},pe.prototype.dispose=function(){Object($.f)(this.disposables)},pe}(),ve=function(){function pe(O,me,Be,Ze,at){this.tree=O,this.view=Be,this.filter=Ze,this.keyboardNavigationDelegate=at,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new C.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new C.a,this.enabledDisposables=new $.b,this.disposables=new $.b,this.domNode=Object(T.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(c.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(T.q)(Be.getHTMLElement(),Object(T.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(T.q)(this.domNode,Object(T.a)("span.label"));var _t=Object(T.q)(this.domNode,Object(T.a)(".controls"));this._filterOnType=!!O.options.filterOnType,this.filterOnTypeDomNode=Object(T.q)(_t,Object(T.a)("input.filter.codicon.codicon-list-selection")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Object(c.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(T.q)(_t,Object(T.a)("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(R.a)("clear","Clear"),this.keyboardNavigationEventFilter=O.options.keyboardNavigationEventFilter,me.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(O.options)}return Object.defineProperty(pe.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),pe.prototype.updateOptions=function(O){O.simpleKeyboardNavigation?this.disable():this.enable(),typeof O.filterOnType!="undefined"&&(this._filterOnType=!!O.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),typeof O.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=O.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},pe.prototype.enable=function(){var O=this;if(this._enabled)return;var me=C.b.chain(Object(c.a)(this.view.getHTMLElement(),"keydown")).filter(function(Ze){return!Ee(Ze.target)||Ze.target===O.filterOnTypeDomNode}).filter(function(Ze){return Ze.key!=="Dead"&&!/^Media/.test(Ze.key)}).map(function(Ze){return new g.a(Ze)}).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter(function(){return O.automaticKeyboardNavigation||O.triggered}).filter(function(Ze){return O.keyboardNavigationDelegate.mightProducePrintableCharacter(Ze)||(O.pattern.length>0||O.triggered)&&((Ze.keyCode===9||Ze.keyCode===1)&&!Ze.altKey&&!Ze.ctrlKey)&&!Ze.metaKey||Ze.keyCode===1&&(_e.e?Ze.altKey&&!Ze.metaKey:Ze.ctrlKey)&&!Ze.shiftKey}).forEach(function(Ze){Ze.stopPropagation(),Ze.preventDefault()}).event,Be=Object(c.a)(this.clearDomNode,"click");C.b.chain(C.b.any(me,Be)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1},pe.prototype.disable=function(){if(!this._enabled)return;this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1},pe.prototype.onEventOrInput=function(O){typeof O=="string"?this.onInput(O):O instanceof MouseEvent||O.keyCode===9||O.keyCode===1&&(_e.e?O.altKey:O.ctrlKey)?this.onInput(""):O.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+O.browserEvent.key)},pe.prototype.onInput=function(O){var me=this.view.getHTMLElement();O&&!this.domNode.parentElement?me.append(this.domNode):!O&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=O,this._onDidChangePattern.fire(O),this.filter.pattern=O,this.tree.refilter(),O&&this.tree.focusNext(0,!0,void 0,function(at){return!p.a.isDefault(at.filterData)});var Be=this.tree.getFocus();if(Be.length>0){var Ze=Be[0];this.tree.getRelativeTop(Ze)===null&&this.tree.reveal(Ze,.5)}this.render(),O||(this.triggered=!1)},pe.prototype.onDragStart=function(){var O=this,me=this.view.getHTMLElement(),Be=Object(T.C)(me).left,Ze=me.clientWidth,at=Ze/2,_t=this.domNode.clientWidth,zt=new $.b,Xt=this.positionClassName,no=function(){switch(Xt){case"nw":O.domNode.style.top="4px",O.domNode.style.left="4px";break;case"ne":O.domNode.style.top="4px",O.domNode.style.left=Ze-_t-6+"px";break}},uo=function(Ao){Ao.preventDefault();var To=Ao.screenX-Be;Ao.dataTransfer&&(Ao.dataTransfer.dropEffect="none"),To<at?Xt="nw":Xt="ne",no()},go=function(){O.positionClassName=Xt,O.domNode.className="monaco-list-type-filter "+O.positionClassName,O.domNode.style.top="",O.domNode.style.left="",Object($.f)(zt)};no(),Object(T.P)(this.domNode,Xt),Object(T.f)(this.domNode,"dragging"),zt.add(Object($.h)(function(){return Object(T.P)(O.domNode,"dragging")})),Object(c.a)(document,"dragover")(uo,null,zt),Object(c.a)(this.domNode,"dragend")(go,null,zt),u.c.CurrentDragAndDropData=new u.b("vscode-ui"),zt.add(Object($.h)(function(){return u.c.CurrentDragAndDropData=void 0}))},pe.prototype.onDidSpliceModel=function(){if(!this._enabled||this.pattern.length===0)return;this.tree.refilter(),this.render()},pe.prototype.onDidChangeFilterOnType=function(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitle()},pe.prototype.updateFilterOnTypeTitle=function(){this.filterOnType?this.filterOnTypeDomNode.title=Object(R.a)("disable filter on type","Disable Filter on Type"):this.filterOnTypeDomNode.title=Object(R.a)("enable filter on type","Enable Filter on Type")},pe.prototype.render=function(){var O=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&O?(this.messageDomNode.textContent=Object(R.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(T.Y)(this.domNode,"no-matches",O),this.domNode.title=Object(R.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)},pe.prototype.shouldAllowFocus=function(O){return!this.enabled||!this.pattern||this.filterOnType||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!p.a.isDefault(O.filterData)},pe.prototype.dispose=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object($.f)(this.disposables)},pe}();function Ee(pe){return pe.tagName==="INPUT"||pe.tagName==="TEXTAREA"}function xe(pe){return{elements:pe.elements.map(function(O){return O.element}),browserEvent:pe.browserEvent}}function Ce(pe,O){O(pe),pe.children.forEach(function(me){return Ce(me,O)})}var he=function(){function pe(O){this.identityProvider=O,this.nodes=[],this._onDidChange=new C.a,this.onDidChange=this._onDidChange.event}return Object.defineProperty(pe.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),pe.prototype.set=function(O,me){if(Object(s.g)(this.nodes,O))return;this._set(O,!1,me)},pe.prototype._set=function(O,me,Be){if(this.nodes=se(O),this.elements=void 0,this._nodeSet=void 0,!me){var Ze=this;this._onDidChange.fire({get elements(){return Ze.get()},browserEvent:Be})}},pe.prototype.get=function(){return this.elements||(this.elements=this.nodes.map(function(O){return O.element})),se(this.elements)},pe.prototype.getNodes=function(){return this.nodes},pe.prototype.has=function(O){return this.nodeSet.has(O)},pe.prototype.onDidModelSplice=function(O){var me=this,Be=O.insertedNodes,Ze=O.deletedNodes;if(!this.identityProvider){var at=this.createNodeSet(),_t=function(Lo){return at.delete(Lo)};Ze.forEach(function(Lo){return Ce(Lo,_t)}),this.set(Object(Se.e)(at));return}var zt=new Set,Xt=function(Lo){return zt.add(me.identityProvider.getId(Lo.element).toString())};Ze.forEach(function(Lo){return Ce(Lo,Xt)});var no=new Map,uo=function(Lo){return no.set(me.identityProvider.getId(Lo.element).toString(),Lo)};Be.forEach(function(Lo){return Ce(Lo,uo)});for(var go=[],Ao=0,To=this.nodes;Ao<To.length;Ao++){var wo=To[Ao],No=this.identityProvider.getId(wo.element).toString(),Qo=zt.has(No);if(!Qo)go.push(wo);else{var Oo=no.get(No);Oo&&go.push(Oo)}}this._set(go,!0)},pe.prototype.createNodeSet=function(){for(var O=new Set,me=0,Be=this.nodes;me<Be.length;me++){var Ze=Be[me];O.add(Ze)}return O},pe}(),J=function(pe){Ve(O,pe);function O(me,Be){var Ze=pe.call(this,me)||this;return Ze.tree=Be,Ze}return O.prototype.onPointer=function(me){if(Ee(me.browserEvent.target))return;var Be=me.element;if(!Be)return pe.prototype.onPointer.call(this,me);if(this.isSelectionRangeChangeEvent(me)||this.isSelectionSingleChangeEvent(me))return pe.prototype.onPointer.call(this,me);var Ze=Object(T.I)(me.browserEvent.target,"monaco-tl-twistie");if(!this.tree.openOnSingleClick&&me.browserEvent.detail!==2&&!Ze)return pe.prototype.onPointer.call(this,me);var at=!1;if(typeof this.tree.expandOnlyOnTwistieClick=="function"?at=this.tree.expandOnlyOnTwistieClick(Be.element):at=!!this.tree.expandOnlyOnTwistieClick,at&&!Ze)return pe.prototype.onPointer.call(this,me);if(Be.collapsible){var _t=this.tree.model,zt=_t.getNodeLocation(Be),Xt=me.browserEvent.altKey;if(_t.setCollapsed(zt,void 0,Xt),at&&Ze)return}pe.prototype.onPointer.call(this,me)},O.prototype.onDoubleClick=function(me){var Be=Object(T.I)(me.browserEvent.target,"monaco-tl-twistie");if(Be)return;pe.prototype.onDoubleClick.call(this,me)},O}(le.d),b=function(pe){Ve(O,pe);function O(me,Be,Ze,at,_t,zt,Xt){var no=pe.call(this,me,Be,Ze,at,Xt)||this;return no.focusTrait=_t,no.selectionTrait=zt,no}return O.prototype.createMouseController=function(me){return new J(this,me.tree)},O.prototype.splice=function(me,Be,Ze){var at=this;if(Ze===void 0&&(Ze=[]),pe.prototype.splice.call(this,me,Be,Ze),Ze.length===0)return;var _t=[],zt=[];Ze.forEach(function(Xt,no){at.focusTrait.has(Xt)&&_t.push(me+no),at.selectionTrait.has(Xt)&&zt.push(me+no)}),_t.length>0&&pe.prototype.setFocus.call(this,Object(s.f)(se(pe.prototype.getFocus.call(this),_t))),zt.length>0&&pe.prototype.setSelection.call(this,Object(s.f)(se(pe.prototype.getSelection.call(this),zt)))},O.prototype.setFocus=function(me,Be,Ze){var at=this;Ze===void 0&&(Ze=!1),pe.prototype.setFocus.call(this,me,Be),Ze||this.focusTrait.set(me.map(function(_t){return at.element(_t)}),Be)},O.prototype.setSelection=function(me,Be,Ze){var at=this;Ze===void 0&&(Ze=!1),pe.prototype.setSelection.call(this,me,Be),Ze||this.selectionTrait.set(me.map(function(_t){return at.element(_t)}),Be)},O}(le.c),F=function(){function pe(O,me,Be,Ze,at){var _t=this;at===void 0&&(at={}),this._options=at,this.eventBufferer=new C.c,this.disposables=new $.b,this._onWillRefilter=new C.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new C.a;var zt=new Z(Be),Xt=new C.f,no=new C.f,uo=new je(no.event);this.renderers=Ze.map(function(Lo){return new Ge(Lo,function(){return _t.model},Xt.event,uo,at)});for(var go=0,Ao=this.renderers;go<Ao.length;go++){var To=Ao[go];this.disposables.add(To)}var wo;at.keyboardNavigationLabelProvider&&(wo=new ue(this,at.keyboardNavigationLabelProvider,at.filter),at=ke(ke({},at),{filter:wo}),this.disposables.add(wo)),this.focus=new he(at.identityProvider),this.selection=new he(at.identityProvider),this.view=new b(O,me,zt,this.renderers,this.focus,this.selection,ke(ke({},ce(function(){return _t.model},at)),{tree:this})),this.model=this.createModel(O,this.view,at),Xt.input=this.model.onDidChangeCollapseState;var No=C.b.forEach(this.model.onDidSplice,function(Lo){_t.eventBufferer.bufferEvents(function(){_t.focus.onDidModelSplice(Lo),_t.selection.onDidModelSplice(Lo)})});if(No(function(){return null},null,this.disposables),no.input=C.b.chain(C.b.any(No,this.focus.onDidChange,this.selection.onDidChange)).debounce(function(){return null},0).map(function(){for(var Lo=new Set,vn=0,hn=_t.focus.getNodes();vn<hn.length;vn++){var En=hn[vn];Lo.add(En)}for(var qo=0,xn=_t.selection.getNodes();qo<xn.length;qo++){var En=xn[qo];Lo.add(En)}return Object(s.n)(Lo)}).event,at.keyboardSupport!==!1){var Qo=C.b.chain(this.view.onKeyDown).filter(function(Lo){return!Ee(Lo.target)}).map(function(Lo){return new g.a(Lo)});Qo.filter(function(Lo){return Lo.keyCode===15}).on(this.onLeftArrow,this,this.disposables),Qo.filter(function(Lo){return Lo.keyCode===17}).on(this.onRightArrow,this,this.disposables),Qo.filter(function(Lo){return Lo.keyCode===10}).on(this.onSpace,this,this.disposables)}if(at.keyboardNavigationLabelProvider){var Oo=at.keyboardNavigationDelegate||le.a;this.typeFilterController=new ve(this,this.model,this.view,wo,Oo),this.focusNavigationFilter=function(Lo){return _t.typeFilterController.shouldAllowFocus(Lo)},this.disposables.add(this.typeFilterController)}this.styleElement=Object(T.w)(this.view.getHTMLElement()),Object(T.Y)(this.getHTMLElement(),"always",this._options.renderIndentGuides===ye.Always)}return Object.defineProperty(pe.prototype,"onDidChangeFocus",{get:function(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidChangeSelection",{get:function(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidOpen",{get:function(){return C.b.map(this.view.onDidOpen,xe)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidFocus",{get:function(){return this.view.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"openOnSingleClick",{get:function(){return typeof this._options.openOnSingleClick=="undefined"?!0:this._options.openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"expandOnlyOnTwistieClick",{get:function(){return typeof this._options.expandOnlyOnTwistieClick=="undefined"?!1:this._options.expandOnlyOnTwistieClick},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidDispose",{get:function(){return this.view.onDidDispose},enumerable:!0,configurable:!0}),pe.prototype.updateOptions=function(O){O===void 0&&(O={}),this._options=ke(ke({},this._options),O);for(var me=0,Be=this.renderers;me<Be.length;me++){var Ze=Be[me];Ze.updateOptions(O)}this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),Object(T.Y)(this.getHTMLElement(),"always",this._options.renderIndentGuides===ye.Always)},Object.defineProperty(pe.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),pe.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},Object.defineProperty(pe.prototype,"scrollTop",{get:function(){return this.view.scrollTop},set:function(O){this.view.scrollTop=O},enumerable:!0,configurable:!0}),pe.prototype.domFocus=function(){this.view.domFocus()},pe.prototype.layout=function(O,me){this.view.layout(O,me)},pe.prototype.style=function(O){var me="."+this.view.domId,Be=[];O.treeIndentGuidesStroke&&(Be.push(".monaco-list"+me+":hover .monaco-tl-indent > .indent-guide, .monaco-list"+me+".always .monaco-tl-indent > .indent-guide { border-color: "+O.treeIndentGuidesStroke.transparent(.4)+"; }"),Be.push(".monaco-list"+me+" .monaco-tl-indent > .indent-guide.active { border-color: "+O.treeIndentGuidesStroke+"; }"));var Ze=Be.join(`
`);Ze!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=Ze),this.view.style(O)},pe.prototype.collapse=function(O,me){return me===void 0&&(me=!1),this.model.setCollapsed(O,!0,me)},pe.prototype.expand=function(O,me){return me===void 0&&(me=!1),this.model.setCollapsed(O,!1,me)},pe.prototype.isCollapsible=function(O){return this.model.isCollapsible(O)},pe.prototype.setCollapsible=function(O,me){return this.model.setCollapsible(O,me)},pe.prototype.isCollapsed=function(O){return this.model.isCollapsed(O)},pe.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},pe.prototype.setSelection=function(O,me){var Be=this,Ze=O.map(function(_t){return Be.model.getNode(_t)});this.selection.set(Ze,me);var at=O.map(function(_t){return Be.model.getListIndex(_t)}).filter(function(_t){return _t>-1});this.view.setSelection(at,me,!0)},pe.prototype.getSelection=function(){return this.selection.get()},pe.prototype.setFocus=function(O,me){var Be=this,Ze=O.map(function(_t){return Be.model.getNode(_t)});this.focus.set(Ze,me);var at=O.map(function(_t){return Be.model.getListIndex(_t)}).filter(function(_t){return _t>-1});this.view.setFocus(at,me,!0)},pe.prototype.focusNext=function(O,me,Be,Ze){O===void 0&&(O=1),me===void 0&&(me=!1),Ze===void 0&&(Ze=this.focusNavigationFilter),this.view.focusNext(O,me,Be,Ze)},pe.prototype.getFocus=function(){return this.focus.get()},pe.prototype.reveal=function(O,me){this.model.expandTo(O);var Be=this.model.getListIndex(O);if(Be===-1)return;this.view.reveal(Be,me)},pe.prototype.getRelativeTop=function(O){var me=this.model.getListIndex(O);return me===-1?null:this.view.getRelativeTop(me)},pe.prototype.onLeftArrow=function(O){O.preventDefault(),O.stopPropagation();var me=this.view.getFocusedElements();if(me.length===0)return;var Be=me[0],Ze=this.model.getNodeLocation(Be),at=this.model.setCollapsed(Ze,!0);if(!at){var _t=this.model.getParentNodeLocation(Ze);if(!_t)return;var zt=this.model.getListIndex(_t);this.view.reveal(zt),this.view.setFocus([zt])}},pe.prototype.onRightArrow=function(O){O.preventDefault(),O.stopPropagation();var me=this.view.getFocusedElements();if(me.length===0)return;var Be=me[0],Ze=this.model.getNodeLocation(Be),at=this.model.setCollapsed(Ze,!1);if(!at){if(!Be.children.some(function(Xt){return Xt.visible}))return;var _t=this.view.getFocus()[0],zt=_t+1;this.view.reveal(zt),this.view.setFocus([zt])}},pe.prototype.onSpace=function(O){O.preventDefault(),O.stopPropagation();var me=this.view.getFocusedElements();if(me.length===0)return;var Be=me[0],Ze=this.model.getNodeLocation(Be),at=O.browserEvent.altKey;this.model.setCollapsed(Ze,void 0,at)},pe.prototype.dispose=function(){Object($.f)(this.disposables),this.view.dispose()},pe}(),re=function(){return re=Object.assign||function(pe){for(var O,me=1,Be=arguments.length;me<Be;me++){O=arguments[me];for(var Ze in O)Object.prototype.hasOwnProperty.call(O,Ze)&&(pe[Ze]=O[Ze])}return pe},re.apply(this,arguments)},ne=function(){for(var pe=0,O=0,me=arguments.length;O<me;O++)pe+=arguments[O].length;for(var Be=Array(pe),Ze=0,O=0;O<me;O++)for(var at=arguments[O],_t=0,zt=at.length;_t<zt;_t++,Ze++)Be[Ze]=at[_t];return Be},fe=function(){function pe(O,me,Be){Be===void 0&&(Be={}),this.user=O,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new V(O,me,null,Be),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,Be.sorter&&(this.sorter={compare:function(Ze,at){return Be.sorter.compare(Ze.element,at.element)}}),this.identityProvider=Be.identityProvider}return pe.prototype.setChildren=function(O,me,Be,Ze){var at=this.getElementLocation(O);this._setChildren(at,this.preserveCollapseState(me),Be,Ze)},pe.prototype._setChildren=function(O,me,Be,Ze){var at=this,_t=new Set,zt=new Set,Xt=function(uo){if(_t.add(uo.element),at.nodes.set(uo.element,uo),at.identityProvider){var go=at.identityProvider.getId(uo.element).toString();zt.add(go),at.nodesByIdentity.set(go,uo)}Be&&Be(uo)},no=function(uo){if(_t.has(uo.element)||at.nodes.delete(uo.element),at.identityProvider){var go=at.identityProvider.getId(uo.element).toString();zt.has(go)||at.nodesByIdentity.delete(go)}Ze&&Ze(uo)};this.model.splice(ne(O,[0]),Number.MAX_VALUE,me,Xt,no)},pe.prototype.preserveCollapseState=function(O){var me=this,Be=O?Object(P.f)(O):P.d.empty();return this.sorter&&(Be=P.d.fromArray(Object(s.r)(P.d.collect(Be),this.sorter.compare.bind(this.sorter)))),P.d.map(Be,function(Ze){var at=me.nodes.get(Ze.element);if(!at&&me.identityProvider){var _t=me.identityProvider.getId(Ze.element).toString();at=me.nodesByIdentity.get(_t)}if(!at)return re(re({},Ze),{children:me.preserveCollapseState(Ze.children)});var zt=typeof Ze.collapsible=="boolean"?Ze.collapsible:at.collapsible,Xt=typeof Ze.collapsed!="undefined"?Ze.collapsed:at.collapsed;return re(re({},Ze),{collapsible:zt,collapsed:Xt,children:me.preserveCollapseState(Ze.children)})})},pe.prototype.rerender=function(O){var me=this.getElementLocation(O);this.model.rerender(me)},pe.prototype.has=function(O){return this.nodes.has(O)},pe.prototype.getListIndex=function(O){var me=this.getElementLocation(O);return this.model.getListIndex(me)},pe.prototype.getListRenderCount=function(O){var me=this.getElementLocation(O);return this.model.getListRenderCount(me)},pe.prototype.isCollapsible=function(O){var me=this.getElementLocation(O);return this.model.isCollapsible(me)},pe.prototype.setCollapsible=function(O,me){var Be=this.getElementLocation(O);return this.model.setCollapsible(Be,me)},pe.prototype.isCollapsed=function(O){var me=this.getElementLocation(O);return this.model.isCollapsed(me)},pe.prototype.setCollapsed=function(O,me,Be){var Ze=this.getElementLocation(O);return this.model.setCollapsed(Ze,me,Be)},pe.prototype.expandTo=function(O){var me=this.getElementLocation(O);this.model.expandTo(me)},pe.prototype.refilter=function(){this.model.refilter()},pe.prototype.getNode=function(O){if(O===void 0&&(O=null),O===null)return this.model.getNode(this.model.rootRef);var me=this.nodes.get(O);if(!me)throw new L(this.user,"Tree element not found: "+O);return me},pe.prototype.getNodeLocation=function(O){return O.element},pe.prototype.getParentNodeLocation=function(O){if(O===null)throw new L(this.user,"Invalid getParentNodeLocation call");var me=this.nodes.get(O);if(!me)throw new L(this.user,"Tree element not found: "+O);var Be=this.model.getNodeLocation(me),Ze=this.model.getParentNodeLocation(Be),at=this.model.getNode(Ze);return at.element},pe.prototype.getElementLocation=function(O){if(O===null)return[];var me=this.nodes.get(O);if(!me)throw new L(this.user,"Tree element not found: "+O);return this.model.getNodeLocation(me)},pe}(),Oe=function(){return Oe=Object.assign||function(pe){for(var O,me=1,Be=arguments.length;me<Be;me++){O=arguments[me];for(var Ze in O)Object.prototype.hasOwnProperty.call(O,Ze)&&(pe[Ze]=O[Ze])}return pe},Oe.apply(this,arguments)};function Me(pe){var O=[pe.element],me=pe.incompressible||!1;return{element:{elements:O,incompressible:me},children:P.d.map(P.d.from(pe.children),Me),collapsible:pe.collapsible,collapsed:pe.collapsed}}function Ue(pe){for(var O=[pe.element],me=pe.incompressible||!1,Be,Ze;!(Be=P.d.from(pe.children),Ze=P.d.collect(Be,2),Ze.length!==1);){if(pe=Ze[0],pe.incompressible)break;O.push(pe.element)}return{element:{elements:O,incompressible:me},children:P.d.map(P.d.concat(P.d.fromArray(Ze),Be),Ue),collapsible:pe.collapsible,collapsed:pe.collapsed}}function Je(pe,O){O===void 0&&(O=0);var me;return O<pe.element.elements.length-1?me=P.d.single(Je(pe,O+1)):me=P.d.map(P.d.from(pe.children),function(Be){return Je(Be,0)}),O===0&&pe.element.incompressible?{element:pe.element.elements[O],children:me,incompressible:!0,collapsible:pe.collapsible,collapsed:pe.collapsed}:{element:pe.element.elements[O],children:me,collapsible:pe.collapsible,collapsed:pe.collapsed}}function nt(pe){return Je(pe,0)}function vt(pe,O,me){return pe.element===O?Oe(Oe({},pe),{children:me}):Oe(Oe({},pe),{children:P.d.map(P.d.from(pe.children),function(Be){return vt(Be,O,me)})})}var Rt=function(){function pe(O,me,Be){Be===void 0&&(Be={}),this.user=O,this.nodes=new Map,this.model=new fe(O,me,Be),this.enabled=typeof Be.compressionEnabled=="undefined"?!0:Be.compressionEnabled}return Object.defineProperty(pe.prototype,"onDidSplice",{get:function(){return this.model.onDidSplice},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),pe.prototype.setChildren=function(O,me){if(O===null){var Be=P.d.map(P.d.from(me),this.enabled?Ue:Me);this._setChildren(null,Be);return}var Ze=this.nodes.get(O);if(!Ze)throw new Error("Unknown compressed tree node");var at=this.model.getNode(Ze),_t=this.model.getParentNodeLocation(Ze),zt=this.model.getNode(_t),Xt=nt(at),no=vt(Xt,O,P.d.from(me)),uo=(this.enabled?Ue:Me)(no),go=zt.children.map(function(Ao){return Ao===at?uo:Ao});this._setChildren(zt.element,go)},pe.prototype.setCompressionEnabled=function(O){if(O===this.enabled)return;this.enabled=O;var me=this.model.getNode(),Be=P.d.from(me.children),Ze=P.d.map(Be,nt),at=P.d.map(Ze,O?Ue:Me);this._setChildren(null,at)},pe.prototype._setChildren=function(O,me){var Be=this,Ze=new Set,at=function(zt){for(var Xt=0,no=zt.element.elements;Xt<no.length;Xt++){var uo=no[Xt];Ze.add(uo),Be.nodes.set(uo,zt.element)}},_t=function(zt){for(var Xt=0,no=zt.element.elements;Xt<no.length;Xt++){var uo=no[Xt];Ze.has(uo)||Be.nodes.delete(uo)}};this.model.setChildren(O,me,at,_t)},pe.prototype.has=function(O){return this.nodes.has(O)},pe.prototype.getListIndex=function(O){var me=this.getCompressedNode(O);return this.model.getListIndex(me)},pe.prototype.getListRenderCount=function(O){var me=this.getCompressedNode(O);return this.model.getListRenderCount(me)},pe.prototype.getNode=function(O){if(typeof O=="undefined")return this.model.getNode();var me=this.getCompressedNode(O);return this.model.getNode(me)},pe.prototype.getNodeLocation=function(O){var me=this.model.getNodeLocation(O);return me===null?null:me.elements[me.elements.length-1]},pe.prototype.getParentNodeLocation=function(O){var me=this.getCompressedNode(O),Be=this.model.getParentNodeLocation(me);return Be===null?null:Be.elements[Be.elements.length-1]},pe.prototype.isCollapsible=function(O){var me=this.getCompressedNode(O);return this.model.isCollapsible(me)},pe.prototype.setCollapsible=function(O,me){var Be=this.getCompressedNode(O);return this.model.setCollapsible(Be,me)},pe.prototype.isCollapsed=function(O){var me=this.getCompressedNode(O);return this.model.isCollapsed(me)},pe.prototype.setCollapsed=function(O,me,Be){var Ze=this.getCompressedNode(O);return this.model.setCollapsed(Ze,me,Be)},pe.prototype.expandTo=function(O){var me=this.getCompressedNode(O);this.model.expandTo(me)},pe.prototype.rerender=function(O){var me=this.getCompressedNode(O);this.model.rerender(me)},pe.prototype.refilter=function(){this.model.refilter()},pe.prototype.getCompressedNode=function(O){if(O===null)return null;var me=this.nodes.get(O);if(!me)throw new L(this.user,"Tree element not found: "+O);return me},pe}(),Dt=function(pe){return pe[pe.length-1]},Kt=function(){function pe(O,me){this.unwrapper=O,this.node=me}return Object.defineProperty(pe.prototype,"element",{get:function(){return this.node.element===null?null:this.unwrapper(this.node.element)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"children",{get:function(){var O=this;return this.node.children.map(function(me){return new pe(O.unwrapper,me)})},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),pe}();function ao(pe,O){return{splice:function(me,Be,Ze){O.splice(me,Be,Ze.map(function(at){return pe.map(at)}))}}}function lo(pe,O){return Oe(Oe({},O),{sorter:O.sorter&&{compare:function(me,Be){return O.sorter.compare(me.elements[0],Be.elements[0])}},identityProvider:O.identityProvider&&{getId:function(me){return O.identityProvider.getId(pe(me))}},filter:O.filter&&{filter:function(me,Be){return O.filter.filter(pe(me),Be)}}})}var so=function(){function pe(O,me,Be){var Ze=this;Be===void 0&&(Be={}),this.elementMapper=Be.elementMapper||Dt;var at=function(_t){return Ze.elementMapper(_t.elements)};this.nodeMapper=new I(function(_t){return new Kt(at,_t)}),this.model=new Rt(O,ao(this.nodeMapper,me),lo(at,Be))}return Object.defineProperty(pe.prototype,"onDidSplice",{get:function(){var O=this;return C.b.map(this.model.onDidSplice,function(me){var Be=me.insertedNodes,Ze=me.deletedNodes;return{insertedNodes:Be.map(function(at){return O.nodeMapper.map(at)}),deletedNodes:Ze.map(function(at){return O.nodeMapper.map(at)})}})},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidChangeCollapseState",{get:function(){var O=this;return C.b.map(this.model.onDidChangeCollapseState,function(me){var Be=me.node,Ze=me.deep;return{node:O.nodeMapper.map(Be),deep:Ze}})},enumerable:!0,configurable:!0}),pe.prototype.setChildren=function(O,me){this.model.setChildren(O,me)},pe.prototype.setCompressionEnabled=function(O){this.model.setCompressionEnabled(O)},pe.prototype.has=function(O){return this.model.has(O)},pe.prototype.getListIndex=function(O){return this.model.getListIndex(O)},pe.prototype.getListRenderCount=function(O){return this.model.getListRenderCount(O)},pe.prototype.getNode=function(O){return this.nodeMapper.map(this.model.getNode(O))},pe.prototype.getNodeLocation=function(O){return O.element},pe.prototype.getParentNodeLocation=function(O){return this.model.getParentNodeLocation(O)},pe.prototype.isCollapsible=function(O){return this.model.isCollapsible(O)},pe.prototype.setCollapsible=function(O,me){return this.model.setCollapsible(O,me)},pe.prototype.isCollapsed=function(O){return this.model.isCollapsed(O)},pe.prototype.setCollapsed=function(O,me,Be){return this.model.setCollapsed(O,me,Be)},pe.prototype.expandTo=function(O){return this.model.expandTo(O)},pe.prototype.rerender=function(O){return this.model.rerender(O)},pe.prototype.refilter=function(){return this.model.refilter()},pe.prototype.getCompressedTreeNode=function(O){return O===void 0&&(O=null),this.model.getNode(O)},pe}(),jt=e("ZCR3"),pt=function(){var pe=function(O,me){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Be,Ze){Be.__proto__=Ze}||function(Be,Ze){for(var at in Ze)Ze.hasOwnProperty(at)&&(Be[at]=Ze[at])},pe(O,me)};return function(O,me){pe(O,me);function Be(){this.constructor=O}O.prototype=me===null?Object.create(me):(Be.prototype=me.prototype,new Be)}}(),gt=function(){return gt=Object.assign||function(pe){for(var O,me=1,Be=arguments.length;me<Be;me++){O=arguments[me];for(var Ze in O)Object.prototype.hasOwnProperty.call(O,Ze)&&(pe[Ze]=O[Ze])}return pe},gt.apply(this,arguments)},Tt=function(pe,O,me,Be){var Ze=arguments.length,at=Ze<3?O:Be===null?Be=Object.getOwnPropertyDescriptor(O,me):Be,_t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")at=Reflect.decorate(pe,O,me,Be);else for(var zt=pe.length-1;zt>=0;zt--)(_t=pe[zt])&&(at=(Ze<3?_t(at):Ze>3?_t(O,me,at):_t(O,me))||at);return Ze>3&&at&&Object.defineProperty(O,me,at),at},it=function(pe){pt(O,pe);function O(me,Be,Ze,at,_t){return _t===void 0&&(_t={}),pe.call(this,me,Be,Ze,at,_t)||this}return Object.defineProperty(O.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),O.prototype.setChildren=function(me,Be){this.model.setChildren(me,Be)},O.prototype.rerender=function(me){if(me===void 0){this.view.rerender();return}this.model.rerender(me)},O.prototype.hasElement=function(me){return this.model.has(me)},O.prototype.createModel=function(me,Be,Ze){return new fe(me,Be,Ze)},O}(F),et=function(){function pe(O,me){this._compressedTreeNodeProvider=O,this.renderer=me,this.templateId=me.templateId,me.onDidChangeTwistieState&&(this.onDidChangeTwistieState=me.onDidChangeTwistieState)}return Object.defineProperty(pe.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),pe.prototype.renderTemplate=function(O){var me=this.renderer.renderTemplate(O);return{compressedTreeNode:void 0,data:me}},pe.prototype.renderElement=function(O,me,Be,Ze){var at=this.compressedTreeNodeProvider.getCompressedTreeNode(O.element);at.element.elements.length===1?(Be.compressedTreeNode=void 0,this.renderer.renderElement(O,me,Be.data,Ze)):(Be.compressedTreeNode=at,this.renderer.renderCompressedElements(at,me,Be.data,Ze))},pe.prototype.disposeElement=function(O,me,Be,Ze){Be.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(Be.compressedTreeNode,me,Be.data,Ze):this.renderer.disposeElement&&this.renderer.disposeElement(O,me,Be.data,Ze)},pe.prototype.disposeTemplate=function(O){this.renderer.disposeTemplate(O.data)},pe.prototype.renderTwistie=function(O,me){this.renderer.renderTwistie&&this.renderer.renderTwistie(O,me)},Tt([jt.a],pe.prototype,"compressedTreeNodeProvider",null),pe}();function ut(pe,O){return O&&gt(gt({},O),{keyboardNavigationLabelProvider:O.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(me){var Be;try{Be=pe().getCompressedTreeNode(me)}catch(Ze){return O.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(me)}return Be.element.elements.length===1?O.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(me):O.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(Be.element.elements)}}})}var Ct=function(pe){pt(O,pe);function O(me,Be,Ze,at,_t){_t===void 0&&(_t={});var zt=this,Xt=function(){return zt},no=at.map(function(uo){return new et(Xt,uo)});return zt=pe.call(this,me,Be,Ze,no,ut(Xt,_t))||this,zt}return O.prototype.setChildren=function(me,Be){this.model.setChildren(me,Be)},O.prototype.createModel=function(me,Be,Ze){return new so(me,Be,Ze)},O.prototype.updateOptions=function(me){me===void 0&&(me={}),pe.prototype.updateOptions.call(this,me),typeof me.compressionEnabled!="undefined"&&this.model.setCompressionEnabled(me.compressionEnabled)},O.prototype.getCompressedTreeNode=function(me){return me===void 0&&(me=null),this.model.getCompressedTreeNode(me)},O}(it),ht=e("/cxE"),Et=function(){var pe=function(O,me){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Be,Ze){Be.__proto__=Ze}||function(Be,Ze){for(var at in Ze)Ze.hasOwnProperty(at)&&(Be[at]=Ze[at])},pe(O,me)};return function(O,me){pe(O,me);function Be(){this.constructor=O}O.prototype=me===null?Object.create(me):(Be.prototype=me.prototype,new Be)}}(),Yt=function(){return Yt=Object.assign||function(pe){for(var O,me=1,Be=arguments.length;me<Be;me++){O=arguments[me];for(var Ze in O)Object.prototype.hasOwnProperty.call(O,Ze)&&(pe[Ze]=O[Ze])}return pe},Yt.apply(this,arguments)},Nt=function(pe,O,me,Be){function Ze(at){return at instanceof me?at:new me(function(_t){_t(at)})}return new(me||(me=Promise))(function(at,_t){function zt(uo){try{no(Be.next(uo))}catch(go){_t(go)}}function Xt(uo){try{no(Be.throw(uo))}catch(go){_t(go)}}function no(uo){uo.done?at(uo.value):Ze(uo.value).then(zt,Xt)}no((Be=Be.apply(pe,O||[])).next())})},bt=function(pe,O){var me={label:0,sent:function(){if(at[0]&1)throw at[1];return at[1]},trys:[],ops:[]},Be,Ze,at,_t;return _t={next:zt(0),throw:zt(1),return:zt(2)},typeof Symbol=="function"&&(_t[Symbol.iterator]=function(){return this}),_t;function zt(no){return function(uo){return Xt([no,uo])}}function Xt(no){if(Be)throw new TypeError("Generator is already executing.");for(;me;)try{if(Be=1,Ze&&(at=no[0]&2?Ze.return:no[0]?Ze.throw||((at=Ze.return)&&at.call(Ze),0):Ze.next)&&!(at=at.call(Ze,no[1])).done)return at;(Ze=0,at)&&(no=[no[0]&2,at.value]);switch(no[0]){case 0:case 1:at=no;break;case 4:return me.label++,{value:no[1],done:!1};case 5:me.label++,Ze=no[1],no=[0];continue;case 7:no=me.ops.pop(),me.trys.pop();continue;default:if(!(at=me.trys,at=at.length>0&&at[at.length-1])&&(no[0]===6||no[0]===2)){me=0;continue}if(no[0]===3&&(!at||no[1]>at[0]&&no[1]<at[3])){me.label=no[1];break}if(no[0]===6&&me.label<at[1]){me.label=at[1],at=no;break}if(at&&me.label<at[2]){me.label=at[2],me.ops.push(no);break}at[2]&&me.ops.pop(),me.trys.pop();continue}no=O.call(pe,me)}catch(uo){no=[6,uo],Ze=0}finally{Be=at=0}if(no[0]&5)throw no[1];return{value:no[0]?no[1]:void 0,done:!0}}},$e=function(){for(var pe=0,O=0,me=arguments.length;O<me;O++)pe+=arguments[O].length;for(var Be=Array(pe),Ze=0,O=0;O<me;O++)for(var at=arguments[O],_t=0,zt=at.length;_t<zt;_t++,Ze++)Be[Ze]=at[_t];return Be};function Ye(pe){return Yt(Yt({},pe),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function ze(pe,O){return O.parent?O.parent===pe?!0:ze(pe,O.parent):!1}function Ke(pe,O){return pe===O||ze(pe,O)||ze(O,pe)}var ge=function(){function pe(O){this.node=O}return Object.defineProperty(pe.prototype,"element",{get:function(){return this.node.element.element},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"children",{get:function(){return this.node.children.map(function(O){return new pe(O)})},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),pe}(),G=function(){function pe(O,me,Be){this.renderer=O,this.nodeMapper=me,this.onDidChangeTwistieState=Be,this.renderedNodes=new Map,this.templateId=O.templateId}return pe.prototype.renderTemplate=function(O){var me=this.renderer.renderTemplate(O);return{templateData:me}},pe.prototype.renderElement=function(O,me,Be,Ze){this.renderer.renderElement(this.nodeMapper.map(O),me,Be.templateData,Ze)},pe.prototype.renderTwistie=function(O,me){return Object(T.Y)(me,"codicon-loading",O.slow),!1},pe.prototype.disposeElement=function(O,me,Be,Ze){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(O),me,Be.templateData,Ze)},pe.prototype.disposeTemplate=function(O){this.renderer.disposeTemplate(O.templateData)},pe.prototype.dispose=function(){this.renderedNodes.clear()},pe}();function oe(pe){return{browserEvent:pe.browserEvent,elements:pe.elements.map(function(O){return O.element})}}var Y=function(pe){Et(O,pe);function O(me){var Be=pe.call(this,me.elements.map(function(Ze){return Ze.element}))||this;return Be.data=me,Be}return O}(l.a);function ae(pe){return pe instanceof l.a?new Y(pe):pe}var Fe=function(){function pe(O){this.dnd=O}return pe.prototype.getDragURI=function(O){return this.dnd.getDragURI(O.element)},pe.prototype.getDragLabel=function(O,me){return this.dnd.getDragLabel?this.dnd.getDragLabel(O.map(function(Be){return Be.element}),me):void 0},pe.prototype.onDragStart=function(O,me){this.dnd.onDragStart&&this.dnd.onDragStart(ae(O),me)},pe.prototype.onDragOver=function(O,me,Be,Ze,at){return at===void 0&&(at=!0),this.dnd.onDragOver(ae(O),me&&me.element,Be,Ze)},pe.prototype.drop=function(O,me,Be,Ze){this.dnd.drop(ae(O),me&&me.element,Be,Ze)},pe.prototype.onDragEnd=function(O){this.dnd.onDragEnd&&this.dnd.onDragEnd(O)},pe}();function dt(pe){return pe&&Yt(Yt({},pe),{collapseByDefault:!0,identityProvider:pe.identityProvider&&{getId:function(O){return pe.identityProvider.getId(O.element)}},dnd:pe.dnd&&new Fe(pe.dnd),multipleSelectionController:pe.multipleSelectionController&&{isSelectionSingleChangeEvent:function(O){return pe.multipleSelectionController.isSelectionSingleChangeEvent(Yt(Yt({},O),{element:O.element}))},isSelectionRangeChangeEvent:function(O){return pe.multipleSelectionController.isSelectionRangeChangeEvent(Yt(Yt({},O),{element:O.element}))}},accessibilityProvider:pe.accessibilityProvider&&Yt(Yt({},pe.accessibilityProvider),{getAriaLabel:function(O){return pe.accessibilityProvider.getAriaLabel(O.element)},getAriaLevel:pe.accessibilityProvider.getAriaLevel&&function(O){return pe.accessibilityProvider.getAriaLevel(O.element)},getActiveDescendantId:pe.accessibilityProvider.getActiveDescendantId&&function(O){return pe.accessibilityProvider.getActiveDescendantId(O.element)}}),filter:pe.filter&&{filter:function(O,me){return pe.filter.filter(O.element,me)}},keyboardNavigationLabelProvider:pe.keyboardNavigationLabelProvider&&Yt(Yt({},pe.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel:function(O){return pe.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(O.element)}}),sorter:void 0,expandOnlyOnTwistieClick:typeof pe.expandOnlyOnTwistieClick=="undefined"?void 0:typeof pe.expandOnlyOnTwistieClick!="function"?pe.expandOnlyOnTwistieClick:function(O){return pe.expandOnlyOnTwistieClick(O.element)},ariaProvider:pe.ariaProvider&&{getPosInSet:function(O,me){return pe.ariaProvider.getPosInSet(O.element,me)},getSetSize:function(O,me,Be){return pe.ariaProvider.getSetSize(O.element,me,Be)},getRole:pe.ariaProvider.getRole?function(O){return pe.ariaProvider.getRole(O.element)}:void 0,isChecked:pe.ariaProvider.isChecked?function(O){var me;return((me=pe.ariaProvider)===null||me===void 0?void 0:me.isChecked)(O.element)}:void 0},additionalScrollHeight:pe.additionalScrollHeight})}function Ot(pe,O){O(pe),pe.children.forEach(function(me){return Ot(me,O)})}var Qt=function(){function pe(O,me,Be,Ze,at,_t){_t===void 0&&(_t={}),this.user=O,this.dataSource=at,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new C.a,this._onDidChangeNodeSlowState=new C.a,this.nodeMapper=new I(function(zt){return new ge(zt)}),this.disposables=new $.b,this.identityProvider=_t.identityProvider,this.autoExpandSingleChildren=typeof _t.autoExpandSingleChildren=="undefined"?!1:_t.autoExpandSingleChildren,this.sorter=_t.sorter,this.collapseByDefault=_t.collapseByDefault,this.tree=this.createTree(O,me,Be,Ze,_t),this.root=Ye({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Yt(Yt({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}return Object.defineProperty(pe.prototype,"onDidChangeFocus",{get:function(){return C.b.map(this.tree.onDidChangeFocus,oe)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidChangeSelection",{get:function(){return C.b.map(this.tree.onDidChangeSelection,oe)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidOpen",{get:function(){return C.b.map(this.tree.onDidOpen,oe)},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidFocus",{get:function(){return this.tree.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"onDidDispose",{get:function(){return this.tree.onDidDispose},enumerable:!0,configurable:!0}),pe.prototype.createTree=function(O,me,Be,Ze,at){var _t=this,zt=new Z(Be),Xt=Ze.map(function(uo){return new G(uo,_t.nodeMapper,_t._onDidChangeNodeSlowState.event)}),no=dt(at)||{};return new it(O,me,zt,Xt,no)},pe.prototype.updateOptions=function(O){O===void 0&&(O={}),this.tree.updateOptions(O)},pe.prototype.getHTMLElement=function(){return this.tree.getHTMLElement()},Object.defineProperty(pe.prototype,"scrollTop",{get:function(){return this.tree.scrollTop},set:function(O){this.tree.scrollTop=O},enumerable:!0,configurable:!0}),pe.prototype.domFocus=function(){this.tree.domFocus()},pe.prototype.layout=function(O,me){this.tree.layout(O,me)},pe.prototype.style=function(O){this.tree.style(O)},pe.prototype.getInput=function(){return this.root.element},pe.prototype.setInput=function(O,me){return Nt(this,void 0,void 0,function(){var Be;return bt(this,function(Ze){switch(Ze.label){case 0:return this.refreshPromises.forEach(function(at){return at.cancel()}),this.refreshPromises.clear(),this.root.element=O,Be=me&&{viewState:me,focus:[],selection:[]},[4,this._updateChildren(O,!0,!1,Be)];case 1:return Ze.sent(),Be&&(this.tree.setFocus(Be.focus),this.tree.setSelection(Be.selection)),me&&typeof me.scrollTop=="number"&&(this.scrollTop=me.scrollTop),[2]}})})},pe.prototype._updateChildren=function(O,me,Be,Ze){return O===void 0&&(O=this.root.element),me===void 0&&(me=!0),Be===void 0&&(Be=!1),Nt(this,void 0,void 0,function(){var at;return bt(this,function(_t){switch(_t.label){case 0:if(typeof this.root.element=="undefined")throw new L(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return _t.sent(),[4,C.b.toPromise(this._onDidRender.event)];case 2:_t.sent(),_t.label=3;case 3:return at=this.getDataNode(O),[4,this.refreshAndRenderNode(at,me,Ze)];case 4:if(_t.sent(),Be)try{this.tree.rerender(at)}catch(zt){}return[2]}})})},pe.prototype.rerender=function(O){if(O===void 0||O===this.root.element){this.tree.rerender();return}var me=this.getDataNode(O);this.tree.rerender(me)},pe.prototype.collapse=function(O,me){me===void 0&&(me=!1);var Be=this.getDataNode(O);return this.tree.collapse(Be===this.root?null:Be,me)},pe.prototype.expand=function(O,me){return me===void 0&&(me=!1),Nt(this,void 0,void 0,function(){var Be,Ze;return bt(this,function(at){switch(at.label){case 0:if(typeof this.root.element=="undefined")throw new L(this.user,"Tree input not set");return this.root.refreshPromise?[4,this.root.refreshPromise]:[3,3];case 1:return at.sent(),[4,C.b.toPromise(this._onDidRender.event)];case 2:at.sent(),at.label=3;case 3:return Be=this.getDataNode(O),this.tree.hasElement(Be)&&!this.tree.isCollapsible(Be)?[2,!1]:Be.refreshPromise?[4,this.root.refreshPromise]:[3,6];case 4:return at.sent(),[4,C.b.toPromise(this._onDidRender.event)];case 5:at.sent(),at.label=6;case 6:return Be!==this.root&&!Be.refreshPromise&&!this.tree.isCollapsed(Be)?[2,!1]:(Ze=this.tree.expand(Be===this.root?null:Be,me),Be.refreshPromise?[4,this.root.refreshPromise]:[3,9]);case 7:return at.sent(),[4,C.b.toPromise(this._onDidRender.event)];case 8:at.sent(),at.label=9;case 9:return[2,Ze]}})})},pe.prototype.setSelection=function(O,me){var Be=this,Ze=O.map(function(at){return Be.getDataNode(at)});this.tree.setSelection(Ze,me)},pe.prototype.getSelection=function(){var O=this.tree.getSelection();return O.map(function(me){return me.element})},pe.prototype.setFocus=function(O,me){var Be=this,Ze=O.map(function(at){return Be.getDataNode(at)});this.tree.setFocus(Ze,me)},pe.prototype.getFocus=function(){var O=this.tree.getFocus();return O.map(function(me){return me.element})},pe.prototype.reveal=function(O,me){this.tree.reveal(this.getDataNode(O),me)},pe.prototype.getDataNode=function(O){var me=this.nodes.get(O===this.root.element?null:O);if(!me)throw new L(this.user,"Data tree node not found: "+O);return me},pe.prototype.refreshAndRenderNode=function(O,me,Be){return Nt(this,void 0,void 0,function(){return bt(this,function(Ze){switch(Ze.label){case 0:return[4,this.refreshNode(O,me,Be)];case 1:return Ze.sent(),this.render(O,Be),[2]}})})},pe.prototype.refreshNode=function(O,me,Be){return Nt(this,void 0,void 0,function(){var Ze,at=this;return bt(this,function(_t){return this.subTreeRefreshPromises.forEach(function(zt,Xt){!Ze&&Ke(Xt,O)&&(Ze=zt.then(function(){return at.refreshNode(O,me,Be)}))}),Ze?[2,Ze]:[2,this.doRefreshSubTree(O,me,Be)]})})},pe.prototype.doRefreshSubTree=function(O,me,Be){return Nt(this,void 0,void 0,function(){var Ze,at,_t=this;return bt(this,function(zt){switch(zt.label){case 0:O.refreshPromise=new Promise(function(Xt){return Ze=Xt}),this.subTreeRefreshPromises.set(O,O.refreshPromise),O.refreshPromise.finally(function(){O.refreshPromise=void 0,_t.subTreeRefreshPromises.delete(O)}),zt.label=1;case 1:return zt.trys.push([1,,4,5]),[4,this.doRefreshNode(O,me,Be)];case 2:return at=zt.sent(),O.stale=!1,[4,Promise.all(at.map(function(Xt){return _t.doRefreshSubTree(Xt,me,Be)}))];case 3:return zt.sent(),[3,5];case 4:return Ze(),[7];case 5:return[2]}})})},pe.prototype.doRefreshNode=function(O,me,Be){return Nt(this,void 0,void 0,function(){var Ze,at,_t,zt,Xt=this;return bt(this,function(no){switch(no.label){case 0:O.hasChildren=!!this.dataSource.hasChildren(O.element),O.hasChildren?(at=Object(de.l)(800),at.then(function(){O.slow=!0,Xt._onDidChangeNodeSlowState.fire(O)},function(uo){return null}),Ze=this.doGetChildren(O).finally(function(){return at.cancel()})):Ze=Promise.resolve([]),no.label=1;case 1:return no.trys.push([1,3,4,5]),[4,Ze];case 2:return _t=no.sent(),[2,this.setChildren(O,_t,me,Be)];case 3:if(zt=no.sent(),O!==this.root&&this.tree.collapse(O===this.root?null:O),Object(ht.d)(zt))return[2,[]];throw zt;case 4:return O.slow&&(O.slow=!1,this._onDidChangeNodeSlowState.fire(O)),[7];case 5:return[2]}})})},pe.prototype.doGetChildren=function(O){var me=this,Be=this.refreshPromises.get(O);return Be||(Be=Object(de.f)(function(){return Nt(me,void 0,void 0,function(){var Ze;return bt(this,function(at){switch(at.label){case 0:return[4,this.dataSource.getChildren(O.element)];case 1:return Ze=at.sent(),[2,this.processChildren(Ze)]}})})}),this.refreshPromises.set(O,Be),Be.finally(function(){return me.refreshPromises.delete(O)}))},pe.prototype._onDidChangeCollapseState=function(O){var me=O.node,Be=O.deep;!me.collapsed&&me.element.stale&&(Be?this.collapse(me.element.element):this.refreshAndRenderNode(me.element,!1).catch(ht.e))},pe.prototype.setChildren=function(O,me,Be,Ze){var at,_t=this;if(O.children.length===0&&me.length===0)return[];for(var zt=new Map,Xt=new Map,no=0,uo=O.children;no<uo.length;no++){var go=uo[no];if(zt.set(go.element,go),this.identityProvider){var Ao=this.tree.isCollapsed(go);Xt.set(go.id,{node:go,collapsed:Ao})}}for(var To=[],wo=me.map(function(hn){var En=!!_t.dataSource.hasChildren(hn);if(!_t.identityProvider){var qo=Ye({element:hn,parent:O,hasChildren:En});return En&&_t.collapseByDefault&&!_t.collapseByDefault(hn)&&(qo.collapsedByDefault=!1,To.push(qo)),qo}var xn=_t.identityProvider.getId(hn).toString(),Un=Xt.get(xn);if(Un){var qo=Un.node;return zt.delete(qo.element),_t.nodes.delete(qo.element),_t.nodes.set(hn,qo),qo.element=hn,qo.hasChildren=En,Be?Un.collapsed?(qo.children.forEach(function(ai){return Ot(ai,function(Pn){return _t.nodes.delete(Pn.element)})}),qo.children.splice(0,qo.children.length),qo.stale=!0):To.push(qo):En&&_t.collapseByDefault&&!_t.collapseByDefault(hn)&&(qo.collapsedByDefault=!1,To.push(qo)),qo}var An=Ye({element:hn,parent:O,id:xn,hasChildren:En});return Ze&&Ze.viewState.focus&&Ze.viewState.focus.indexOf(xn)>-1&&Ze.focus.push(An),Ze&&Ze.viewState.selection&&Ze.viewState.selection.indexOf(xn)>-1&&Ze.selection.push(An),Ze&&Ze.viewState.expanded&&Ze.viewState.expanded.indexOf(xn)>-1?To.push(An):En&&_t.collapseByDefault&&!_t.collapseByDefault(hn)&&(An.collapsedByDefault=!1,To.push(An)),An}),No=0,Qo=Object(Se.e)(zt);No<Qo.length;No++){var Oo=Qo[No];Ot(Oo,function(hn){return _t.nodes.delete(hn.element)})}for(var Lo=0,vn=wo;Lo<vn.length;Lo++){var go=vn[Lo];this.nodes.set(go.element,go)}return(at=O.children).splice.apply(at,$e([0,O.children.length],wo)),O!==this.root&&this.autoExpandSingleChildren&&wo.length===1&&To.length===0&&(wo[0].collapsedByDefault=!1,To.push(wo[0])),To},pe.prototype.render=function(O,me){var Be=this,Ze=O.children.map(function(at){return Be.asTreeElement(at,me)});this.tree.setChildren(O===this.root?null:O,Ze),O!==this.root&&this.tree.setCollapsible(O,O.hasChildren),this._onDidRender.fire()},pe.prototype.asTreeElement=function(O,me){var Be=this;if(O.stale)return{element:O,collapsible:O.hasChildren,collapsed:!0};var Ze;return me&&me.viewState.expanded&&O.id&&me.viewState.expanded.indexOf(O.id)>-1?Ze=!1:Ze=O.collapsedByDefault,O.collapsedByDefault=void 0,{element:O,children:O.hasChildren?P.d.map(P.d.fromArray(O.children),function(at){return Be.asTreeElement(at,me)}):[],collapsible:O.hasChildren,collapsed:Ze}},pe.prototype.processChildren=function(O){return this.sorter&&O.sort(this.sorter.compare.bind(this.sorter)),O},pe.prototype.dispose=function(){this.disposables.dispose()},pe}(),to=function(){function pe(O){this.node=O}return Object.defineProperty(pe.prototype,"element",{get:function(){return{elements:this.node.element.elements.map(function(O){return O.element}),incompressible:this.node.element.incompressible}},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"children",{get:function(){return this.node.children.map(function(O){return new pe(O)})},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),pe}(),fo=function(){function pe(O,me,Be,Ze){this.renderer=O,this.nodeMapper=me,this.compressibleNodeMapperProvider=Be,this.onDidChangeTwistieState=Ze,this.renderedNodes=new Map,this.disposables=[],this.templateId=O.templateId}return pe.prototype.renderTemplate=function(O){var me=this.renderer.renderTemplate(O);return{templateData:me}},pe.prototype.renderElement=function(O,me,Be,Ze){this.renderer.renderElement(this.nodeMapper.map(O),me,Be.templateData,Ze)},pe.prototype.renderCompressedElements=function(O,me,Be,Ze){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(O),me,Be.templateData,Ze)},pe.prototype.renderTwistie=function(O,me){return Object(T.Y)(me,"codicon-loading",O.slow),!1},pe.prototype.disposeElement=function(O,me,Be,Ze){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(O),me,Be.templateData,Ze)},pe.prototype.disposeCompressedElements=function(O,me,Be,Ze){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(O),me,Be.templateData,Ze)},pe.prototype.disposeTemplate=function(O){this.renderer.disposeTemplate(O.templateData)},pe.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object($.f)(this.disposables)},pe}();function ho(pe){var O=pe&&dt(pe);return O&&Yt(Yt({},O),{keyboardNavigationLabelProvider:O.keyboardNavigationLabelProvider&&Yt(Yt({},O.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(me){return pe.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(me.map(function(Be){return Be.element}))}})})}var _o=function(pe){Et(O,pe);function O(me,Be,Ze,at,_t,zt,Xt){Xt===void 0&&(Xt={});var no=pe.call(this,me,Be,Ze,_t,zt,Xt)||this;return no.compressionDelegate=at,no.compressibleNodeMapper=new I(function(uo){return new to(uo)}),no.filter=Xt.filter,no}return O.prototype.createTree=function(me,Be,Ze,at,_t){var zt=this,Xt=new Z(Ze),no=at.map(function(go){return new fo(go,zt.nodeMapper,function(){return zt.compressibleNodeMapper},zt._onDidChangeNodeSlowState.event)}),uo=ho(_t)||{};return new Ct(me,Be,Xt,no,uo)},O.prototype.asTreeElement=function(me,Be){return Yt({incompressible:this.compressionDelegate.isIncompressible(me.element)},pe.prototype.asTreeElement.call(this,me,Be))},O.prototype.updateOptions=function(me){me===void 0&&(me={}),this.tree.updateOptions(me)},O.prototype.render=function(me,Be){var Ze=this;if(!this.identityProvider)return pe.prototype.render.call(this,me,Be);var at=function(wo){return Ze.identityProvider.getId(wo).toString()},_t=function(wo){for(var No=new Set,Qo=0,Oo=wo;Qo<Oo.length;Qo++){var Lo=Oo[Qo],vn=Ze.tree.getCompressedTreeNode(Lo===Ze.root?null:Lo);if(!vn.element)continue;for(var hn=0,En=vn.element.elements;hn<En.length;hn++){var qo=En[hn];No.add(at(qo.element))}}return No},zt=_t(this.tree.getSelection()),Xt=_t(this.tree.getFocus());pe.prototype.render.call(this,me,Be);var no=this.getSelection(),uo=!1,go=this.getFocus(),Ao=!1,To=function(wo){var No=wo.element;if(No)for(var Qo=0;Qo<No.elements.length;Qo++){var Oo=at(No.elements[Qo].element),Lo=No.elements[No.elements.length-1].element;zt.has(Oo)&&no.indexOf(Lo)===-1&&(no.push(Lo),uo=!0),Xt.has(Oo)&&go.indexOf(Lo)===-1&&(go.push(Lo),Ao=!0)}wo.children.forEach(To)};To(this.tree.getCompressedTreeNode(me===this.root?null:me)),uo&&this.setSelection(no),Ao&&this.setFocus(go)},O.prototype.processChildren=function(me){var Be=this;return this.filter&&(me=me.filter(function(Ze){var at=Be.filter.filter(Ze,1),_t=Do(at);if(_t===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return _t===1})),pe.prototype.processChildren.call(this,me)},O}(Qt);function Do(pe){return typeof pe=="boolean"?pe?1:0:Q(pe)?K(pe.visibility):K(pe)}var Ro=function(){var pe=function(O,me){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Be,Ze){Be.__proto__=Ze}||function(Be,Ze){for(var at in Ze)Ze.hasOwnProperty(at)&&(Be[at]=Ze[at])},pe(O,me)};return function(O,me){pe(O,me);function Be(){this.constructor=O}O.prototype=me===null?Object.create(me):(Be.prototype=me.prototype,new Be)}}(),jo=function(pe){Ro(O,pe);function O(me,Be,Ze,at,_t,zt){zt===void 0&&(zt={});var Xt=pe.call(this,me,Be,Ze,at,zt)||this;return Xt.user=me,Xt.dataSource=_t,Xt.identityProvider=zt.identityProvider,Xt}return O.prototype.createModel=function(me,Be,Ze){return new fe(me,Be,Ze)},O}(F),Eo=e("R3nR"),Wo=function(){var pe=function(O,me){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Be,Ze){Be.__proto__=Ze}||function(Be,Ze){for(var at in Ze)Ze.hasOwnProperty(at)&&(Be[at]=Ze[at])},pe(O,me)};return function(O,me){pe(O,me);function Be(){this.constructor=O}O.prototype=me===null?Object.create(me):(Be.prototype=me.prototype,new Be)}}(),Ho=function(){return Ho=Object.assign||function(pe){for(var O,me=1,Be=arguments.length;me<Be;me++){O=arguments[me];for(var Ze in O)Object.prototype.hasOwnProperty.call(O,Ze)&&(pe[Ze]=O[Ze])}return pe},Ho.apply(this,arguments)},Fo=function(pe,O,me,Be){var Ze=arguments.length,at=Ze<3?O:Be===null?Be=Object.getOwnPropertyDescriptor(O,me):Be,_t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")at=Reflect.decorate(pe,O,me,Be);else for(var zt=pe.length-1;zt>=0;zt--)(_t=pe[zt])&&(at=(Ze<3?_t(at):Ze>3?_t(O,me,at):_t(O,me))||at);return Ze>3&&at&&Object.defineProperty(O,me,at),at},Io=function(pe,O){return function(me,Be){O(me,Be,pe)}},tn,un=Object(W.c)("listService"),Vo=function(){function pe(O){this._themeService=O,this.disposables=new $.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}return Object.defineProperty(pe.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),pe.prototype.register=function(O,me){var Be=this;if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;var Ze=new le.b(Object(T.w)(),"");this.disposables.add(Object(y.b)(Ze,this._themeService))}if(this.lists.some(function(_t){return _t.widget===O}))throw new Error("Cannot register the same widget multiple times");var at={widget:O,extraContextKeys:me};return this.lists.push(at),O.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=O),Object($.e)(O.onDidFocus(function(){return Be._lastFocusedWidget=O}),Object($.h)(function(){return Be.lists.splice(Be.lists.indexOf(at),1)}),O.onDidDispose(function(){Be.lists=Be.lists.filter(function(_t){return _t!==at}),Be._lastFocusedWidget===O&&(Be._lastFocusedWidget=void 0)}))},pe.prototype.dispose=function(){this.disposables.dispose()},pe=Fo([Io(0,w.c)],pe),pe}(),Cn=new D.d("listFocus",!0),pn=new D.d("listSupportsMultiselect",!0),rn=D.a.and(Cn,D.a.not(f)),on=new D.d("listHasSelectionOrFocus",!1),dn=new D.d("listDoubleSelection",!1),Uo=new D.d("listMultiSelection",!1),Bo=new D.d("listSupportsKeyboardNavigation",!0),St="listAutomaticKeyboardNavigation",st=new D.d(St,!0),rt=!1;function Mt(pe,O){var me=pe.createScoped(O.getHTMLElement());return Cn.bindTo(me),me}var be="workbench.list.multiSelectModifier",M="workbench.list.openMode",j="workbench.list.horizontalScrolling",X="workbench.list.keyboardNavigation",Te="workbench.list.automaticKeyboardNavigation",Ae="workbench.tree.indent",Ne="workbench.tree.renderIndentGuides";function lt(pe){return Object(B.f)(pe,j,"workbench.tree.horizontalScrolling")}function ft(pe){return pe.getValue(be)==="alt"}function At(pe){return pe.getValue(M)!=="doubleClick"}var Ft=function(pe){Wo(O,pe);function O(me){var Be=pe.call(this)||this;return Be.configurationService=me,Be.useAltAsMultipleSelectionModifier=ft(me),Be.registerListeners(),Be}return O.prototype.registerListeners=function(){var me=this;this._register(this.configurationService.onDidChangeConfiguration(function(Be){Be.affectsConfiguration(be)&&(me.useAltAsMultipleSelectionModifier=ft(me.configurationService))}))},O.prototype.isSelectionSingleChangeEvent=function(me){return this.useAltAsMultipleSelectionModifier?me.browserEvent.altKey:Object(le.f)(me)},O.prototype.isSelectionRangeChangeEvent=function(me){return Object(le.e)(me)},O}($.a),Ut=function(pe){Wo(O,pe);function O(me,Be){var Ze=pe.call(this)||this;return Ze.configurationService=me,Ze.existingOpenController=Be,Ze.openOnSingleClick=At(me),Ze.registerListeners(),Ze}return O.prototype.registerListeners=function(){var me=this;this._register(this.configurationService.onDidChangeConfiguration(function(Be){Be.affectsConfiguration(M)&&(me.openOnSingleClick=At(me.configurationService))}))},O.prototype.shouldOpen=function(me){if(me instanceof MouseEvent){var Be=me.button===0,Ze=me.detail===2;return Be&&!this.openOnSingleClick&&!Ze?!1:Be||me.button===1?this.existingOpenController?this.existingOpenController.shouldOpen(me):!0:!1}return this.existingOpenController?this.existingOpenController.shouldOpen(me):!0},O}($.a);function Vt(pe,O,me){var Be=new $.b,Ze=Ho({},pe);if(pe.multipleSelectionSupport!==!1&&!pe.multipleSelectionController){var at=new Ft(O);Ze.multipleSelectionController=at,Be.add(at)}var _t=new Ut(O,pe.openController);return Ze.openController=_t,Be.add(_t),Ze.keyboardNavigationDelegate={mightProducePrintableCharacter:function(zt){return me.mightProducePrintableCharacter(zt)}},[Ze,Be]}function oo(pe,O){var me=!1;return function(Be){if(me)return me=!1,!1;var Ze=O.softDispatch(Be,pe);return Ze&&Ze.enterChord?(me=!0,!1):(me=!1,!0)}}var Zt=function(pe){Wo(O,pe);function O(me,Be,Ze,at,_t,zt,Xt,no,uo,go,Ao){var To=this,wo=De(Be,_t,zt,uo,go,Ao),No=wo.options,Qo=wo.getAutomaticKeyboardNavigation,Oo=wo.disposable;return To=pe.call(this,me,Be,Ze,at,No)||this,To.disposables.add(Oo),To.internals=new ot(To,No,Qo,_t.overrideStyles,zt,Xt,no,uo,Ao),To.disposables.add(To.internals),To}return O=Fo([Io(5,D.c),Io(6,un),Io(7,w.c),Io(8,B.a),Io(9,x.a),Io(10,Eo.b)],O),O}(it),mo=function(pe){Wo(O,pe);function O(me,Be,Ze,at,_t,zt,Xt,no,uo,go,Ao,To){var wo=this,No=De(Be,zt,Xt,go,Ao,To),Qo=No.options,Oo=No.getAutomaticKeyboardNavigation,Lo=No.disposable;return wo=pe.call(this,me,Be,Ze,at,_t,Qo)||this,wo.disposables.add(Lo),wo.internals=new ot(wo,Qo,Oo,zt.overrideStyles,Xt,no,uo,go,To),wo.disposables.add(wo.internals),wo}return O.prototype.updateOptions=function(me){me===void 0&&(me={}),pe.prototype.updateOptions.call(this,me),me.overrideStyles&&this.internals.updateStyleOverrides(me.overrideStyles)},O=Fo([Io(6,D.c),Io(7,un),Io(8,w.c),Io(9,B.a),Io(10,x.a),Io(11,Eo.b)],O),O}(jo),mt=function(pe){Wo(O,pe);function O(me,Be,Ze,at,_t,zt,Xt,no,uo,go,Ao,To){var wo=this,No=De(Be,zt,Xt,go,Ao,To),Qo=No.options,Oo=No.getAutomaticKeyboardNavigation,Lo=No.disposable;return wo=pe.call(this,me,Be,Ze,at,_t,Qo)||this,wo.disposables.add(Lo),wo.internals=new ot(wo,Qo,Oo,zt.overrideStyles,Xt,no,uo,go,To),wo.disposables.add(wo.internals),wo}return O.prototype.updateOptions=function(me){me===void 0&&(me={}),pe.prototype.updateOptions.call(this,me),me.overrideStyles&&this.internals.updateStyleOverrides(me.overrideStyles)},O=Fo([Io(6,D.c),Io(7,un),Io(8,w.c),Io(9,B.a),Io(10,x.a),Io(11,Eo.b)],O),O}(Qt),He=function(pe){Wo(O,pe);function O(me,Be,Ze,at,_t,zt,Xt,no,uo,go,Ao,To,wo){var No=this,Qo=De(Be,Xt,no,Ao,To,wo),Oo=Qo.options,Lo=Qo.getAutomaticKeyboardNavigation,vn=Qo.disposable;return No=pe.call(this,me,Be,Ze,at,_t,zt,Oo)||this,No.disposables.add(vn),No.internals=new ot(No,Oo,Lo,Xt.overrideStyles,no,uo,go,Ao,wo),No.disposables.add(No.internals),No}return O=Fo([Io(7,D.c),Io(8,un),Io(9,w.c),Io(10,B.a),Io(11,x.a),Io(12,Eo.b)],O),O}(_o);function De(pe,O,me,Be,Ze,at){Bo.bindTo(me),rt||(st.bindTo(me),rt=!0);var _t=function(){var No=me.getContextKeyValue(St);return No&&(No=Be.getValue(Te)),No},zt=at.isScreenReaderOptimized(),Xt=zt?"simple":Be.getValue(X),no=typeof O.horizontalScrolling!="undefined"?O.horizontalScrolling:lt(Be),uo=At(Be),go=Vt(O,Be,Ze),Ao=go[0],To=go[1],wo=O.additionalScrollHeight;return{getAutomaticKeyboardNavigation:_t,disposable:To,options:Ho(Ho({keyboardSupport:!1},Ao),{indent:Be.getValue(Ae),renderIndentGuides:Be.getValue(Ne),automaticKeyboardNavigation:_t(),simpleKeyboardNavigation:Xt==="simple",filterOnType:Xt==="filter",horizontalScrolling:no,openOnSingleClick:uo,keyboardNavigationEventFilter:oo(pe,Ze),additionalScrollHeight:wo,hideTwistiesOfChildlessElements:O.hideTwistiesOfChildlessElements})}}var ot=function(){function pe(O,me,Be,Ze,at,_t,zt,Xt,no){var uo=this;this.tree=O,this.themeService=zt,this.disposables=[],this.contextKeyService=Mt(at,O);var go=pn.bindTo(this.contextKeyService);go.set(!(me.multipleSelectionSupport===!1)),this.hasSelectionOrFocus=on.bindTo(this.contextKeyService),this.hasDoubleSelection=dn.bindTo(this.contextKeyService),this.hasMultiSelection=Uo.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=ft(Xt);var Ao=new Set;Ao.add(St);var To=function(){var wo=no.isScreenReaderOptimized(),No=wo?"simple":Xt.getValue(X);O.updateOptions({simpleKeyboardNavigation:No==="simple",filterOnType:No==="filter"})};this.updateStyleOverrides(Ze),this.disposables.push(this.contextKeyService,_t.register(O),O.onDidChangeSelection(function(){var wo=O.getSelection(),No=O.getFocus();uo.hasSelectionOrFocus.set(wo.length>0||No.length>0),uo.hasMultiSelection.set(wo.length>1),uo.hasDoubleSelection.set(wo.length===2)}),O.onDidChangeFocus(function(){var wo=O.getSelection(),No=O.getFocus();uo.hasSelectionOrFocus.set(wo.length>0||No.length>0)}),Xt.onDidChangeConfiguration(function(wo){if(wo.affectsConfiguration(M)&&O.updateOptions({openOnSingleClick:At(Xt)}),wo.affectsConfiguration(be)&&(uo._useAltAsMultipleSelectionModifier=ft(Xt)),wo.affectsConfiguration(Ae)){var No=Xt.getValue(Ae);O.updateOptions({indent:No})}if(wo.affectsConfiguration(Ne)){var Qo=Xt.getValue(Ne);O.updateOptions({renderIndentGuides:Qo})}wo.affectsConfiguration(X)&&To(),wo.affectsConfiguration(Te)&&O.updateOptions({automaticKeyboardNavigation:Be()})}),this.contextKeyService.onDidChangeContext(function(wo){wo.affectsSome(Ao)&&O.updateOptions({automaticKeyboardNavigation:Be()})}),no.onDidChangeScreenReaderOptimized(function(){return To()}))}return pe.prototype.updateStyleOverrides=function(O){Object($.f)(this.styler),this.styler=O?Object(y.b)(this.tree,this.themeService,O):$.a.None},pe.prototype.dispose=function(){this.disposables=Object($.f)(this.disposables),this.styler=Object($.f)(this.styler)},pe=Fo([Io(4,D.c),Io(5,un),Io(6,w.c),Io(7,B.a),Io(8,Eo.b)],pe),pe}(),xt=h.a.as(z.a.Configuration);xt.registerConfiguration({id:"workbench",order:7,title:Object(R.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:(tn={},tn[be]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(R.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(R.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(R.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.")},tn[M]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(R.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. ")},tn[j]={type:"boolean",default:!1,description:Object(R.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},tn["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(R.a)("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(R.a)("deprecated","This setting is deprecated, please use '{0}' instead.",j)},tn[Ae]={type:"number",default:8,minimum:0,maximum:40,description:Object(R.a)("tree indent setting","Controls tree indentation in pixels.")},tn[Ne]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(R.a)("render tree indent guides","Controls whether the tree should render indent guides.")},tn[X]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(R.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(R.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(R.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(R.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},tn[Te]={type:"boolean",default:!0,markdownDescription:Object(R.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.")},tn)})},kYye:function(Lt,N,e){"use strict";e.d(N,"i",function(){return B}),e.d(N,"j",function(){return z}),e.d(N,"g",function(){return y}),e.d(N,"f",function(){return w}),e.d(N,"h",function(){return v}),e.d(N,"a",function(){return C}),e.d(N,"k",function(){return g}),e.d(N,"b",function(){return s}),e.d(N,"m",function(){return l}),e.d(N,"e",function(){return c}),e.d(N,"c",function(){return p}),e.d(N,"d",function(){return _}),e.d(N,"l",function(){return L}),e.d(N,"n",function(){return P}),e.d(N,"o",function(){return A}),e.d(N,"p",function(){return Q}),e.d(N,"r",function(){return K}),e.d(N,"q",function(){return H});var T=e("3/fG"),le=e("zrhQ"),$=e("MD5Z"),R=e("t9D7"),B=Object($.Tb)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},T.a("lineHighlight","Background color for the highlight of line at the cursor position.")),z=Object($.Tb)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},T.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),D=Object($.Tb)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},T.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),W=Object($.Tb)("editor.rangeHighlightBorder",{dark:null,light:null,hc:$.b},T.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),x=Object($.Tb)("editor.symbolHighlightBackground",{dark:$.t,light:$.t,hc:null},T.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),h=Object($.Tb)("editor.symbolHighlightBorder",{dark:null,light:null,hc:$.b},T.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),y=Object($.Tb)("editorCursor.foreground",{dark:"#AEAFAD",light:le.a.black,hc:le.a.white},T.a("caret","Color of the editor cursor.")),w=Object($.Tb)("editorCursor.background",null,T.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),f=Object($.Tb)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},T.a("editorWhitespaces","Color of whitespace characters in the editor.")),v=Object($.Tb)("editorIndentGuide.background",{dark:f,light:f,hc:f},T.a("editorIndentGuides","Color of the editor indentation guides.")),C=Object($.Tb)("editorIndentGuide.activeBackground",{dark:f,light:f,hc:f},T.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),g=Object($.Tb)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:le.a.white},T.a("editorLineNumbers","Color of editor line numbers.")),u=Object($.Tb)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:$.b},T.a("editorActiveLineNumber","Color of editor active line number"),!1,T.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),s=Object($.Tb)("editorLineNumber.activeForeground",{dark:u,light:u,hc:u},T.a("editorActiveLineNumber","Color of editor active line number")),l=Object($.Tb)("editorRuler.foreground",{dark:"#5A5A5A",light:le.a.lightgrey,hc:le.a.white},T.a("editorRuler","Color of the editor rulers.")),c=Object($.Tb)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},T.a("editorCodeLensForeground","Foreground color of editor code lenses")),p=Object($.Tb)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},T.a("editorBracketMatchBackground","Background color behind matching brackets")),_=Object($.Tb)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:$.e},T.a("editorBracketMatchBorder","Color for matching brackets boxes")),L=Object($.Tb)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},T.a("editorOverviewRulerBorder","Color of the overview ruler border.")),I=Object($.Tb)("editorGutter.background",{dark:$.o,light:$.o,hc:$.o},T.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),P=Object($.Tb)("editorUnnecessaryCode.border",{dark:null,light:null,hc:le.a.fromHex("#fff").transparent(.8)},T.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),A=Object($.Tb)("editorUnnecessaryCode.opacity",{dark:le.a.fromHex("#000a"),light:le.a.fromHex("#0007"),hc:null},T.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.`)),Q=Object($.Tb)("editorOverviewRuler.errorForeground",{dark:new le.a(new le.c(255,18,18,.7)),light:new le.a(new le.c(255,18,18,.7)),hc:new le.a(new le.c(255,50,50,1))},T.a("overviewRuleError","Overview ruler marker color for errors.")),K=Object($.Tb)("editorOverviewRuler.warningForeground",{dark:$.P,light:$.P,hc:$.O},T.a("overviewRuleWarning","Overview ruler marker color for warnings.")),H=Object($.Tb)("editorOverviewRuler.infoForeground",{dark:$.H,light:$.H,hc:$.G},T.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(R.e)(function(V,de){var _e=V.getColor($.o);_e&&de.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+_e+"; }");var Se=V.getColor($.x);Se&&de.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+Se+"; }");var Ie=V.getColor(I);Ie&&de.addRule(".monaco-editor .margin { background-color: "+Ie+"; }");var Pe=V.getColor(D);Pe&&de.addRule(".monaco-editor .rangeHighlight { background-color: "+Pe+"; }");var Ve=V.getColor(W);Ve&&de.addRule(".monaco-editor .rangeHighlight { border: 1px "+(V.type==="hc"?"dotted":"solid")+" "+Ve+"; }");var ke=V.getColor(x);ke&&de.addRule(".monaco-editor .symbolHighlight { background-color: "+ke+"; }");var se=V.getColor(h);se&&de.addRule(".monaco-editor .symbolHighlight { border: 1px "+(V.type==="hc"?"dotted":"solid")+" "+se+"; }");var ee=V.getColor(f);ee&&de.addRule(".vs-whitespace { color: "+ee+" !important; }")})},kdPm:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return e.e(295).then(e.bind(null,"3VBA"))}})},kqbb:function(Lt,N,e){"use strict";e.r(N),e.d(N,"ColorDetector",function(){return u});var T=e("X+cX"),le=e("zrhQ"),$=e("/cxE"),R=e("7afs"),B=e("pmY6"),z=e("sswD"),D=e("Vxe3"),W=e("aokT"),x=e("tX9W"),h=e("twdY"),y=e("ZIMw"),w=e("+7oY"),f=function(){var s=function(l,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,_){p.__proto__=_}||function(p,_){for(var L in _)_.hasOwnProperty(L)&&(p[L]=_[L])},s(l,c)};return function(l,c){s(l,c);function p(){this.constructor=l}l.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)}}(),v=function(s,l,c,p){var _=arguments.length,L=_<3?l:p===null?p=Object.getOwnPropertyDescriptor(l,c):p,I;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(s,l,c,p);else for(var P=s.length-1;P>=0;P--)(I=s[P])&&(L=(_<3?I(L):_>3?I(l,c,L):I(l,c))||L);return _>3&&L&&Object.defineProperty(l,c,L),L},C=function(s,l){return function(c,p){l(c,p,s)}},g=500,u=function(s){f(l,s);function l(c,p,_){var L=s.call(this)||this;return L._editor=c,L._codeEditorService=p,L._configurationService=_,L._localToDispose=L._register(new B.b),L._decorationsIds=[],L._colorDatas=new Map,L._colorDecoratorIds=[],L._decorationsTypes=new Set,L._register(c.onDidChangeModel(function(I){L._isEnabled=L.isEnabled(),L.onModelChanged()})),L._register(c.onDidChangeModelLanguage(function(I){return L.onModelChanged()})),L._register(h.c.onDidChange(function(I){return L.onModelChanged()})),L._register(c.onDidChangeConfiguration(function(I){var P=L._isEnabled;L._isEnabled=L.isEnabled(),P!==L._isEnabled&&(L._isEnabled?L.onModelChanged():L.removeAllDecorations())})),L._timeoutTimer=null,L._computePromise=null,L._isEnabled=L.isEnabled(),L.onModelChanged(),L}return l.prototype.isEnabled=function(){var c=this._editor.getModel();if(!c)return!1;var p=c.getLanguageIdentifier(),_=this._configurationService.getValue(p.language);if(_){var L=_.colorDecorators;if(L&&L.enable!==void 0&&!L.enable)return L.enable}return this._editor.getOption(12)},l.get=function(c){return c.getContribution(this.ID)},l.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),s.prototype.dispose.call(this)},l.prototype.onModelChanged=function(){var c=this;if(this.stop(),!this._isEnabled)return;var p=this._editor.getModel();if(!p||!h.c.has(p))return;this._localToDispose.add(this._editor.onDidChangeModelContent(function(_){c._timeoutTimer||(c._timeoutTimer=new T.e,c._timeoutTimer.cancelAndSet(function(){c._timeoutTimer=null,c.beginCompute()},l.RECOMPUTE_TIME))})),this.beginCompute()},l.prototype.beginCompute=function(){var c=this;this._computePromise=Object(T.f)(function(p){var _=c._editor.getModel();return _?Object(y.b)(_,p):Promise.resolve([])}),this._computePromise.then(function(p){c.updateDecorations(p),c.updateColorDecorators(p),c._computePromise=null},$.e)},l.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},l.prototype.updateDecorations=function(c){var p=this,_=c.map(function(L){return{range:{startLineNumber:L.colorInfo.range.startLineNumber,startColumn:L.colorInfo.range.startColumn,endLineNumber:L.colorInfo.range.endLineNumber,endColumn:L.colorInfo.range.endColumn},options:x.a.EMPTY}});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,_),this._colorDatas=new Map,this._decorationsIds.forEach(function(L,I){return p._colorDatas.set(L,c[I])})},l.prototype.updateColorDecorators=function(c){for(var p=this,_=[],L={},I=0;I<c.length&&_.length<g;I++){var P=c[I].colorInfo.color,A=P.red,Q=P.green,K=P.blue,H=P.alpha,V=new le.c(Math.round(A*255),Math.round(Q*255),Math.round(K*255),H),de=Object(R.a)(V).toString(16),_e="rgba("+V.r+", "+V.g+", "+V.b+", "+V.a+")",Se="colorBox-"+de;!this._decorationsTypes.has(Se)&&!L[Se]&&this._codeEditorService.registerDecorationType(Se,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:_e},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),L[Se]=!0,_.push({range:{startLineNumber:c[I].colorInfo.range.startLineNumber,startColumn:c[I].colorInfo.range.startColumn,endLineNumber:c[I].colorInfo.range.endLineNumber,endColumn:c[I].colorInfo.range.endColumn},options:this._codeEditorService.resolveDecorationOptions(Se,!0)})}this._decorationsTypes.forEach(function(Ie){L[Ie]||p._codeEditorService.removeDecorationType(Ie)}),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,_)},l.prototype.removeAllDecorations=function(){var c=this;this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach(function(p){c._codeEditorService.removeDecorationType(p)})},l.prototype.getColorData=function(c){var p=this,_=this._editor.getModel();if(!_)return null;var L=_.getDecorationsInRange(W.a.fromPositions(c,c)).filter(function(I){return p._colorDatas.has(I.id)});return L.length===0?null:this._colorDatas.get(L[0].id)},l.ID="editor.contrib.colorDetector",l.RECOMPUTE_TIME=1e3,l=v([C(1,D.a),C(2,w.a)],l),l}(B.a);Object(z.h)(u.ID,u)},"kw+w":function(Lt,N,e){},l2gE:function(Lt,N,e){"use strict";e.d(N,"a",function(){return de});var T=e("6OMU"),le=e("N0LK"),$=e("PTeM"),R=e("MrjW"),B=e("QDVR"),z=e("X+cX"),D="**",W="/",x="[/\\\\]",h="[^/\\\\]",y=/\//g;function w(ke){switch(ke){case 0:return"";case 1:return h+"*?";default:return"(?:"+x+"|"+h+"+"+x+"|"+x+h+"+)*?"}}function f(ke,se){if(!ke)return[];for(var ee=[],ie=!1,q=!1,ce="",Z=0,ye=ke;Z<ye.length;Z++){var je=ye[Z];switch(je){case se:if(!ie&&!q){ee.push(ce),ce="";continue}break;case"{":ie=!0;break;case"}":ie=!1;break;case"[":q=!0;break;case"]":q=!1;break}ce+=je}return ce&&ee.push(ce),ee}function v(ke){if(!ke)return"";var se="",ee=f(ke,W);if(ee.every(function(q){return q===D}))se=".*";else{var ie=!1;ee.forEach(function(q,ce){if(q===D){ie||(se+=w(2),ie=!0);return}for(var Z=!1,ye="",je=!1,Ge="",ue=0,ve=q;ue<ve.length;ue++){var Ee=ve[ue];if(Ee!=="}"&&Z){ye+=Ee;continue}if(je&&(Ee!=="]"||!Ge)){var xe=void 0;Ee==="-"?xe=Ee:(Ee==="^"||Ee==="!")&&!Ge?xe="^":Ee===W?xe="":xe=le.p(Ee),Ge+=xe;continue}switch(Ee){case"{":Z=!0;continue;case"[":je=!0;continue;case"}":var Ce=f(ye,","),he="(?:"+Ce.map(function(J){return v(J)}).join("|")+")";se+=he,Z=!1,ye="";break;case"]":se+="["+Ge+"]",je=!1,Ge="";break;case"?":se+=h;continue;case"*":se+=w(1);continue;default:se+=le.p(Ee)}}ce<ee.length-1&&(ee[ce+1]!==D||ce+2<ee.length)&&(se+=x),ie=!1})}return se}var C=/^\*\*\/\*\.[\w\.-]+$/,g=/^\*\*\/([\w\.-]+)\/?$/,u=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,s=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,l=/^\*\*((\/[\w\.-]+)+)\/?$/,c=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,p=new B.a(1e4),_=function(){return!1},L=function(){return null};function I(ke,se){if(!ke)return L;var ee;typeof ke!="string"?ee=ke.pattern:ee=ke,ee=ee.trim();var ie=ee+"_"+!!se.trimForExclusions,q=p.get(ie);if(q)return P(q,ke);var ce;if(C.test(ee)){var Z=ee.substr(4);q=function(ye,je){return typeof ye=="string"&&le.m(ye,Z)?ee:null}}else(ce=g.exec(A(ee,se)))?q=Q(ce[1],ee):(se.trimForExclusions?s:u).test(ee)?q=K(ee,se):(ce=l.exec(A(ee,se)))?q=H(ce[1].substr(1),ee,!0):(ce=c.exec(A(ee,se)))?q=H(ce[1],ee,!1):q=V(ee);return p.set(ie,q),P(q,ke)}function P(ke,se){return typeof se=="string"?ke:function(ee,ie){return $.a(ee,se.base)?ke(R.relative(se.base,ee),ie):null}}function A(ke,se){return se.trimForExclusions&&le.m(ke,"/**")?ke.substr(0,ke.length-2):ke}function Q(ke,se){var ee="/"+ke,ie="\\"+ke,q=function(Z,ye){return typeof Z!="string"?null:ye?ye===ke?se:null:Z===ke||le.m(Z,ee)||le.m(Z,ie)?se:null},ce=[ke];return q.basenames=ce,q.patterns=[se],q.allBasenames=ce,q}function K(ke,se){var ee=Ve(ke.slice(1,-1).split(",").map(function(ye){return I(ye,se)}).filter(function(ye){return ye!==L}),ke),ie=ee.length;if(!ie)return L;if(ie===1)return ee[0];var q=function(ye,je){for(var Ge=0,ue=ee.length;Ge<ue;Ge++)if(ee[Ge](ye,je))return ke;return null},ce=T.j(ee,function(ye){return!!ye.allBasenames});ce&&(q.allBasenames=ce.allBasenames);var Z=ee.reduce(function(ye,je){return je.allPaths?ye.concat(je.allPaths):ye},[]);return Z.length&&(q.allPaths=Z),q}function H(ke,se,ee){var ie=R.sep!==R.posix.sep?ke.replace(y,R.sep):ke,q=R.sep+ie,ce=ee?function(Z,ye){return typeof Z=="string"&&(Z===ie||le.m(Z,q))?se:null}:function(Z,ye){return typeof Z=="string"&&Z===ie?se:null};return ce.allPaths=[(ee?"*/":"./")+ke],ce}function V(ke){try{var se=new RegExp("^"+v(ke)+"$");return function(ee,ie){return se.lastIndex=0,typeof ee=="string"&&se.test(ee)?ke:null}}catch(ee){return L}}function de(ke,se,ee){return!ke||typeof se!="string"?!1:_e(ke)(se,void 0,ee)}function _e(ke,se){if(se===void 0&&(se={}),!ke)return _;if(typeof ke=="string"||Se(ke)){var ee=I(ke,se);if(ee===L)return _;var ie=function(q,ce){return!!ee(q,ce)};return ee.allBasenames&&(ie.allBasenames=ee.allBasenames),ee.allPaths&&(ie.allPaths=ee.allPaths),ie}return Ie(ke,se)}function Se(ke){var se=ke;return se&&typeof se.base=="string"&&typeof se.pattern=="string"}function Ie(ke,se){var ee=Ve(Object.getOwnPropertyNames(ke).map(function(ue){return Pe(ue,ke[ue],se)}).filter(function(ue){return ue!==L})),ie=ee.length;if(!ie)return L;if(!ee.some(function(ue){return!!ue.requiresSiblings})){if(ie===1)return ee[0];var q=function(ue,ve){for(var Ee=0,xe=ee.length;Ee<xe;Ee++){var Ce=ee[Ee](ue,ve);if(Ce)return Ce}return null},ce=T.j(ee,function(ue){return!!ue.allBasenames});ce&&(q.allBasenames=ce.allBasenames);var Z=ee.reduce(function(ue,ve){return ve.allPaths?ue.concat(ve.allPaths):ue},[]);return Z.length&&(q.allPaths=Z),q}var ye=function(ue,ve,Ee){for(var xe=void 0,Ce=0,he=ee.length;Ce<he;Ce++){var J=ee[Ce];J.requiresSiblings&&Ee&&(ve||(ve=R.basename(ue)),xe||(xe=ve.substr(0,ve.length-R.extname(ue).length)));var b=J(ue,ve,xe,Ee);if(b)return b}return null},je=T.j(ee,function(ue){return!!ue.allBasenames});je&&(ye.allBasenames=je.allBasenames);var Ge=ee.reduce(function(ue,ve){return ve.allPaths?ue.concat(ve.allPaths):ue},[]);return Ge.length&&(ye.allPaths=Ge),ye}function Pe(ke,se,ee){if(se===!1)return L;var ie=I(ke,ee);if(ie===L)return L;if(typeof se=="boolean")return ie;if(se){var q=se.when;if(typeof q=="string"){var ce=function(Z,ye,je,Ge){if(!Ge||!ie(Z,ye))return null;var ue=q.replace("$(basename)",je),ve=Ge(ue);return Object(z.i)(ve)?ve.then(function(Ee){return Ee?ke:null}):ve?ke:null};return ce.requiresSiblings=!0,ce}}return ie}function Ve(ke,se){var ee=ke.filter(function(Ge){return!!Ge.basenames});if(ee.length<2)return ke;var ie=ee.reduce(function(Ge,ue){var ve=ue.basenames;return ve?Ge.concat(ve):Ge},[]),q;if(se){q=[];for(var ce=0,Z=ie.length;ce<Z;ce++)q.push(se)}else q=ee.reduce(function(Ge,ue){var ve=ue.patterns;return ve?Ge.concat(ve):Ge},[]);var ye=function(Ge,ue){if(typeof Ge!="string")return null;if(!ue){var ve=void 0;for(ve=Ge.length;ve>0;ve--){var Ee=Ge.charCodeAt(ve-1);if(Ee===47||Ee===92)break}ue=Ge.substr(ve)}var xe=ie.indexOf(ue);return xe!==-1?q[xe]:null};ye.basenames=ie,ye.patterns=q,ye.allBasenames=ie;var je=ke.filter(function(Ge){return!Ge.basenames});return je.push(ye),je}},lKfe:function(Lt,N,e){},"lY/7":function(Lt,N,e){"use strict";e.r(N),e.d(N,"MarkerController",function(){return ye}),e.d(N,"NextMarkerAction",function(){return Ge});var T=e("3/fG"),le=e("MI8n"),$=e("pmY6"),R=e("T8No"),B=e("tADe"),z=e("aokT"),D=e("sswD"),W=e("t9D7"),x=e("wQH0"),h=e("/oaI"),y=e("EffR"),w=e("MD5Z"),f=e("zrhQ"),v=e("GJhM"),C=e("3rx1"),g=e("6OMU"),u=e("iNS8"),s=e("gslv"),l=e("S3by"),c;(function(he){function J(b){switch(b){case l.a.Ignore:return"severity-ignore codicon-info";case l.a.Info:return"codicon-info";case l.a.Warning:return"codicon-warning";case l.a.Error:return"codicon-error"}return""}he.className=J})(c||(c={})),Object(W.e)(function(he,J){var b=he.getColor(w.Pb);b&&J.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: `+b+`;
}
`);var F=he.getColor(w.Rb);b&&J.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: `+F+`;
}
`);var re=he.getColor(w.Qb);b&&J.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: `+re+`;
}
`)});var p=function(){var he=function(J,b){return he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,re){F.__proto__=re}||function(F,re){for(var ne in re)re.hasOwnProperty(ne)&&(F[ne]=re[ne])},he(J,b)};return function(J,b){he(J,b);function F(){this.constructor=J}J.prototype=b===null?Object.create(b):(F.prototype=b.prototype,new F)}}(),_=function(){function he(J,b,F,re){var ne=this;this._openerService=re,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new $.b,this._editor=b;var fe=document.createElement("div");fe.className="descriptioncontainer",fe.setAttribute("aria-live","assertive"),fe.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),y.f(this._messageBlock,"message"),fe.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),fe.appendChild(this._relatedBlock),this._disposables.add(y.o(this._relatedBlock,"click",function(Oe){Oe.preventDefault();var Me=ne._relatedDiagnostics.get(Oe.target);Me&&F(Me)})),this._scrollable=new v.b(fe,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),J.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(function(Oe){fe.style.left="-"+Oe.scrollLeft+"px",fe.style.top="-"+Oe.scrollTop+"px"})),this._disposables.add(this._scrollable)}return he.prototype.dispose=function(){Object($.f)(this._disposables)},he.prototype.update=function(J){var b=this,F=J.source,re=J.message,ne=J.relatedInformation,fe=J.code,Oe=((F==null?void 0:F.length)||0)+"()".length;fe&&(typeof fe=="string"?Oe+=fe.length:Oe+=fe.value.length);var Me=re.split(/\r\n|\r|\n/g);this._lines=Me.length,this._longestLineLength=0;for(var Ue=0,Je=Me;Ue<Je.length;Ue++){var nt=Je[Ue];this._longestLineLength=Math.max(nt.length+Oe,this._longestLineLength)}y.t(this._messageBlock),this._editor.applyFontInfo(this._messageBlock);for(var vt=this._messageBlock,Rt=0,Dt=Me;Rt<Dt.length;Rt++){var nt=Dt[Rt];vt=document.createElement("div"),vt.innerText=nt,nt===""&&(vt.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(vt)}if(F||fe){var Kt=document.createElement("span");if(y.f(Kt,"details"),vt.appendChild(Kt),F){var ao=document.createElement("span");ao.innerText=F,y.f(ao,"source"),Kt.appendChild(ao)}if(fe)if(typeof fe=="string"){var lo=document.createElement("span");lo.innerText="("+fe+")",y.f(lo,"code"),Kt.appendChild(lo)}else{this._codeLink=y.a("a.code-link"),this._codeLink.setAttribute("href",""+fe.link.toString()),this._codeLink.onclick=function(Yt){b._openerService.open(fe.link),Yt.preventDefault(),Yt.stopPropagation()};var lo=y.q(this._codeLink,y.a("span"));lo.innerText=fe.value,Kt.appendChild(this._codeLink)}}if(y.t(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(g.q)(ne)){var so=this._relatedBlock.appendChild(document.createElement("div"));so.style.paddingTop=Math.floor(this._editor.getOption(49)*.66)+"px",this._lines+=1;for(var jt=0,pt=ne;jt<pt.length;jt++){var gt=pt[jt],Tt=document.createElement("div"),it=document.createElement("a");y.f(it,"filename"),it.innerHTML=Object(C.a)(gt.resource)+"("+gt.startLineNumber+", "+gt.startColumn+"): ",it.title=Object(C.b)(gt.resource,void 0),this._relatedDiagnostics.set(it,gt);var et=document.createElement("span");et.innerText=gt.message,Tt.appendChild(it),Tt.appendChild(et),this._lines+=1,so.appendChild(Tt)}}var ut=this._editor.getOption(34),Ct=Math.ceil(ut.typicalFullwidthCharacterWidth*this._longestLineLength*.75),ht=ut.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:Ct,scrollHeight:ht})},he.prototype.layout=function(J,b){this._scrollable.getDomNode().style.height=J+"px",this._scrollable.getDomNode().style.width=b+"px",this._scrollable.setScrollDimensions({width:b,height:J})},he.prototype.getHeightInLines=function(){return Math.min(17,this._lines)},he}(),L=function(he){p(J,he);function J(b,F,re,ne){var fe=he.call(this,b,{showArrow:!0,showFrame:!0,isAccessible:!0})||this;return fe.actions=F,fe._themeService=re,fe._openerService=ne,fe._callOnDispose=new $.b,fe._onDidSelectRelatedInformation=new le.a,fe.onDidSelectRelatedInformation=fe._onDidSelectRelatedInformation.event,fe._severity=B.c.Warning,fe._backgroundColor=f.a.white,fe._applyTheme(re.getTheme()),fe._callOnDispose.add(re.onThemeChange(fe._applyTheme.bind(fe))),fe.create(),fe}return J.prototype._applyTheme=function(b){this._backgroundColor=b.getColor(V);var F=Q;this._severity===B.c.Warning?F=K:this._severity===B.c.Info&&(F=H);var re=b.getColor(F);this.style({arrowColor:re,frameColor:re,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:b.getColor(u.q),secondaryHeadingColor:b.getColor(u.r)})},J.prototype._applyStyles=function(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),he.prototype._applyStyles.call(this)},J.prototype.dispose=function(){this._callOnDispose.dispose(),he.prototype.dispose.call(this)},J.prototype._fillHead=function(b){he.prototype._fillHead.call(this,b),this._actionbarWidget.push(this.actions,{label:!1,icon:!0,index:0})},J.prototype._fillTitleIcon=function(b){this._icon=y.q(b,y.a(""))},J.prototype._getActionBarOptions=function(){return{orientation:0}},J.prototype._fillBody=function(b){var F=this;this._parentContainer=b,y.f(b,"marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),b.appendChild(this._container),this._message=new _(this._container,this.editor,function(re){return F._onDidSelectRelatedInformation.fire(re)},this._openerService),this._disposables.add(this._message)},J.prototype.show=function(b,F){throw new Error("call showAtMarker")},J.prototype.showAtMarker=function(b,F,re){this._container.classList.remove("stale"),this._message.update(b),this._severity=b.severity,this._applyTheme(this._themeService.getTheme());var ne=z.a.lift(b),fe=this.editor.getPosition(),Oe=fe&&ne.containsPosition(fe)?fe:ne.getStartPosition();he.prototype.show.call(this,Oe,this.computeRequiredHeight());var Me=this.editor.getModel();if(Me){var Ue=re>1?T.a("problems","{0} of {1} problems",F,re):T.a("change","{0} of {1} problem",F,re);this.setTitle(Object(s.b)(Me.uri),Ue)}this._icon.className="codicon "+c.className(B.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(Oe,0),this.editor.focus()},J.prototype.updateMarker=function(b){this._container.classList.remove("stale"),this._message.update(b)},J.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},J.prototype._doLayoutBody=function(b,F){he.prototype._doLayoutBody.call(this,b,F),this._heightInPixel=b,this._message.layout(b,F),this._container.style.height=b+"px"},J.prototype._onWidth=function(b){this._message.layout(this._heightInPixel,b)},J.prototype._relayout=function(){he.prototype._relayout.call(this,this.computeRequiredHeight())},J.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},J}(u.c),I=Object(w.Kb)(w.q,w.p),P=Object(w.Kb)(w.P,w.O),A=Object(w.Kb)(w.H,w.G),Q=Object(w.Tb)("editorMarkerNavigationError.background",{dark:I,light:I,hc:I},T.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),K=Object(w.Tb)("editorMarkerNavigationWarning.background",{dark:P,light:P,hc:P},T.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),H=Object(w.Tb)("editorMarkerNavigationInfo.background",{dark:A,light:A,hc:A},T.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),V=Object(w.Tb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:f.a.white,hc:"#0C141F"},T.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(W.e)(function(he,J){var b=he.getColor(w.ec);b&&(J.addRule(".monaco-editor .marker-widget a { color: "+b+"; }"),J.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+b+"; }"))});var de=e("N0LK"),_e=e("Vxe3"),Se=e("/cxE"),Ie=e("fjLI"),Pe=e("8HAY"),Ve=e("bexQ"),ke=e("W9cx"),se=function(){var he=function(J,b){return he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,re){F.__proto__=re}||function(F,re){for(var ne in re)re.hasOwnProperty(ne)&&(F[ne]=re[ne])},he(J,b)};return function(J,b){he(J,b);function F(){this.constructor=J}J.prototype=b===null?Object.create(b):(F.prototype=b.prototype,new F)}}(),ee=function(he,J,b,F){var re=arguments.length,ne=re<3?J:F===null?F=Object.getOwnPropertyDescriptor(J,b):F,fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(he,J,b,F);else for(var Oe=he.length-1;Oe>=0;Oe--)(fe=he[Oe])&&(ne=(re<3?fe(ne):re>3?fe(J,b,ne):fe(J,b))||ne);return re>3&&ne&&Object.defineProperty(J,b,ne),ne},ie=function(he,J){return function(b,F){J(b,F,he)}},q=function(he,J,b,F){function re(ne){return ne instanceof b?ne:new b(function(fe){fe(ne)})}return new(b||(b=Promise))(function(ne,fe){function Oe(Je){try{Ue(F.next(Je))}catch(nt){fe(nt)}}function Me(Je){try{Ue(F.throw(Je))}catch(nt){fe(nt)}}function Ue(Je){Je.done?ne(Je.value):re(Je.value).then(Oe,Me)}Ue((F=F.apply(he,J||[])).next())})},ce=function(he,J){var b={label:0,sent:function(){if(ne[0]&1)throw ne[1];return ne[1]},trys:[],ops:[]},F,re,ne,fe;return fe={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function Oe(Ue){return function(Je){return Me([Ue,Je])}}function Me(Ue){if(F)throw new TypeError("Generator is already executing.");for(;b;)try{if(F=1,re&&(ne=Ue[0]&2?re.return:Ue[0]?re.throw||((ne=re.return)&&ne.call(re),0):re.next)&&!(ne=ne.call(re,Ue[1])).done)return ne;(re=0,ne)&&(Ue=[Ue[0]&2,ne.value]);switch(Ue[0]){case 0:case 1:ne=Ue;break;case 4:return b.label++,{value:Ue[1],done:!1};case 5:b.label++,re=Ue[1],Ue=[0];continue;case 7:Ue=b.ops.pop(),b.trys.pop();continue;default:if(!(ne=b.trys,ne=ne.length>0&&ne[ne.length-1])&&(Ue[0]===6||Ue[0]===2)){b=0;continue}if(Ue[0]===3&&(!ne||Ue[1]>ne[0]&&Ue[1]<ne[3])){b.label=Ue[1];break}if(Ue[0]===6&&b.label<ne[1]){b.label=ne[1],ne=Ue;break}if(ne&&b.label<ne[2]){b.label=ne[2],b.ops.push(Ue);break}ne[2]&&b.ops.pop(),b.trys.pop();continue}Ue=J.call(he,b)}catch(Je){Ue=[6,Je],re=0}finally{F=ne=0}if(Ue[0]&5)throw Ue[1];return{value:Ue[0]?Ue[1]:void 0,done:!0}}},Z=function(){function he(J,b){var F=this;this._toUnbind=new $.b,this._editor=J,this._markers=[],this._nextIdx=-1,this._ignoreSelectionChange=!1,this._onCurrentMarkerChanged=new le.a,this._onMarkerSetChanged=new le.a,this.setMarkers(b),this._toUnbind.add(this._editor.onDidDispose(function(){return F.dispose()})),this._toUnbind.add(this._editor.onDidChangeCursorPosition(function(){if(F._ignoreSelectionChange)return;if(F.currentMarker&&F._editor.getPosition()&&z.a.containsPosition(F.currentMarker,F._editor.getPosition()))return;F._nextIdx=-1}))}return Object.defineProperty(he.prototype,"onCurrentMarkerChanged",{get:function(){return this._onCurrentMarkerChanged.event},enumerable:!0,configurable:!0}),Object.defineProperty(he.prototype,"onMarkerSetChanged",{get:function(){return this._onMarkerSetChanged.event},enumerable:!0,configurable:!0}),he.prototype.setMarkers=function(J){var b=this._nextIdx>=0?this._markers[this._nextIdx]:void 0;this._markers=J||[],this._markers.sort(je.compareMarker),b?this._nextIdx=Math.max(-1,Object(g.c)(this._markers,b,je.compareMarker)):this._nextIdx=-1,this._onMarkerSetChanged.fire(this)},he.prototype.withoutWatchingEditorPosition=function(J){this._ignoreSelectionChange=!0;try{J()}finally{this._ignoreSelectionChange=!1}},he.prototype._initIdx=function(J){for(var b=!1,F=this._editor.getPosition(),re=0;re<this._markers.length;re++){var ne=z.a.lift(this._markers[re]);if(ne.isEmpty()&&this._editor.getModel()){var fe=this._editor.getModel().getWordAtPosition(ne.getStartPosition());fe&&(ne=new z.a(ne.startLineNumber,fe.startColumn,ne.startLineNumber,fe.endColumn))}if(F&&(ne.containsPosition(F)||F.isBeforeOrEqual(ne.getStartPosition()))){this._nextIdx=re,b=!0;break}}b||(this._nextIdx=J?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)},Object.defineProperty(he.prototype,"currentMarker",{get:function(){return this.canNavigate()?this._markers[this._nextIdx]:void 0},set:function(J){var b=this._nextIdx;this._nextIdx=-1,J&&(this._nextIdx=this.indexOf(J)),this._nextIdx!==b&&this._onCurrentMarkerChanged.fire(J)},enumerable:!0,configurable:!0}),he.prototype.move=function(J,b){if(!this.canNavigate())return this._onCurrentMarkerChanged.fire(void 0),!b;var F=this._nextIdx,re=!1;if(this._nextIdx===-1?this._initIdx(J):J?b||this._nextIdx+1<this._markers.length?this._nextIdx=(this._nextIdx+1)%this._markers.length:re=!0:J||(b||this._nextIdx>0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:re=!0),F!==this._nextIdx){var ne=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(ne)}return re},he.prototype.canNavigate=function(){return this._markers.length>0},he.prototype.findMarkerAtPosition=function(J){return Object(g.h)(this._markers,function(b){return z.a.containsPosition(b,J)})},Object.defineProperty(he.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),he.prototype.indexOf=function(J){return 1+this._markers.indexOf(J)},he.prototype.dispose=function(){this._toUnbind.dispose()},he}(),ye=function(){function he(J,b,F,re,ne,fe,Oe){this._markerService=b,this._contextKeyService=F,this._themeService=re,this._editorService=ne,this._keybindingService=fe,this._openerService=Oe,this._model=null,this._widget=null,this._disposeOnClose=new $.b,this._editor=J,this._widgetVisible=xe.bindTo(this._contextKeyService)}return he.get=function(J){return J.getContribution(he.ID)},he.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},he.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},he.prototype.getOrCreateModel=function(){var J=this;if(this._model)return this._model;var b=this._getMarkers();this._model=new Z(this._editor,b),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var F=this._keybindingService.lookupKeybinding(ue.ID),re=this._keybindingService.lookupKeybinding(Ge.ID),ne=[new Pe.a(Ge.ID,Ge.LABEL+(re?" ("+re.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),function(){return q(J,void 0,void 0,function(){return ce(this,function(Ue){return this._model&&this._model.move(!0,!0),[2]})})}),new Pe.a(ue.ID,ue.LABEL+(F?" ("+F.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),function(){return q(J,void 0,void 0,function(){return ce(this,function(Ue){return this._model&&this._model.move(!1,!0),[2]})})})];this._widget=new L(this._editor,ne,this._themeService,this._openerService),this._widgetVisible.set(!0),this._widget.onDidClose(function(){return J.closeMarkersNavigation()},this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var fe=0,Oe=ne;fe<Oe.length;fe++){var Me=Oe[fe];this._disposeOnClose.add(Me)}return this._disposeOnClose.add(this._widget.onDidSelectRelatedInformation(function(Ue){J._editorService.openCodeEditor({resource:Ue.resource,options:{pinned:!0,revealIfOpened:!0,selection:z.a.lift(Ue).collapseToStart()}},J._editor).then(void 0,Se.e),J.closeMarkersNavigation(!1)})),this._disposeOnClose.add(this._editor.onDidChangeModel(function(){return J._cleanUp()})),this._disposeOnClose.add(this._model.onCurrentMarkerChanged(function(Ue){!Ue||!J._model?J._cleanUp():J._model.withoutWatchingEditorPosition(function(){if(!J._widget||!J._model)return;J._widget.showAtMarker(Ue,J._model.indexOf(Ue),J._model.total)})})),this._disposeOnClose.add(this._model.onMarkerSetChanged(function(){if(!J._widget||!J._widget.position||!J._model)return;var Ue=J._model.findMarkerAtPosition(J._widget.position);Ue?J._widget.updateMarker(Ue):J._widget.showStale()})),this._model},he.prototype.closeMarkersNavigation=function(J){J===void 0&&(J=!0),this._cleanUp(),J&&this._editor.focus()},he.prototype.show=function(J){var b=this.getOrCreateModel();b.currentMarker=J},he.prototype._onMarkerChanged=function(J){var b=this._editor.getModel();if(!b)return;if(!this._model)return;if(!J.some(function(F){return Object(s.e)(b.uri,F)}))return;this._model.setMarkers(this._getMarkers())},he.prototype._getMarkers=function(){var J=this._editor.getModel();return J?this._markerService.read({resource:J.uri,severities:B.c.Error|B.c.Warning|B.c.Info}):[]},he.ID="editor.contrib.markerController",he=ee([ie(1,B.b),ie(2,R.c),ie(3,W.c),ie(4,_e.a),ie(5,Ve.a),ie(6,ke.a)],he),he}(),je=function(he){se(J,he);function J(b,F,re){var ne=he.call(this,re)||this;return ne._isNext=b,ne._multiFile=F,ne}return J.prototype.run=function(b,F){var re=this,ne=b.get(B.b),fe=b.get(_e.a),Oe=ye.get(F);if(!Oe)return Promise.resolve(void 0);var Me=Oe.getOrCreateModel(),Ue=Me.move(this._isNext,!this._multiFile);if(!Ue||!this._multiFile)return Promise.resolve(void 0);var Je=ne.read({severities:B.c.Error|B.c.Warning|B.c.Info}).sort(J.compareMarker);if(Je.length===0)return Promise.resolve(void 0);var nt=F.getModel();if(!nt)return Promise.resolve(void 0);var vt=Me.currentMarker||{resource:nt.uri,severity:B.c.Error,startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1},Rt=Object(g.c)(Je,vt,J.compareMarker);Rt<0?(Rt=~Rt,Rt%=Je.length):this._isNext?Rt=(Rt+1)%Je.length:Rt=(Rt+Je.length-1)%Je.length;var Dt=Je[Rt];return Object(s.e)(Dt.resource,nt.uri)?(Me.move(this._isNext,!0),Promise.resolve(void 0)):(Oe.closeMarkersNavigation(),fe.openCodeEditor({resource:Dt.resource,options:{pinned:!1,revealIfOpened:!0,revealInCenterIfOutsideViewport:!0,selection:Dt}},F).then(function(Kt){return Kt?Kt.getAction(re.id).run():void 0}))},J.compareMarker=function(b,F){var re=Object(de.e)(b.resource.toString(),F.resource.toString());return re===0&&(re=B.c.compare(b.severity,F.severity)),re===0&&(re=z.a.compareRangesUsingStarts(b,F)),re},J}(D.b),Ge=function(he){se(J,he);function J(){return he.call(this,!0,!1,{id:J.ID,label:J.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:x.a.writable,kbOpts:{kbExpr:x.a.focus,primary:512|66,weight:100}})||this}return J.ID="editor.action.marker.next",J.LABEL=T.a("markerAction.next.label","Go to Next Problem (Error, Warning, Info)"),J}(je),ue=function(he){se(J,he);function J(){return he.call(this,!1,!1,{id:J.ID,label:J.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:x.a.writable,kbOpts:{kbExpr:x.a.focus,primary:1024|512|66,weight:100}})||this}return J.ID="editor.action.marker.prev",J.LABEL=T.a("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),J}(je),ve=function(he){se(J,he);function J(){return he.call(this,!0,!0,{id:"editor.action.marker.nextInFiles",label:T.a("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:x.a.writable,kbOpts:{kbExpr:x.a.focus,primary:66,weight:100}})||this}return J}(je),Ee=function(he){se(J,he);function J(){return he.call(this,!1,!0,{id:"editor.action.marker.prevInFiles",label:T.a("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:x.a.writable,kbOpts:{kbExpr:x.a.focus,primary:1024|66,weight:100}})||this}return J}(je);Object(D.h)(ye.ID,ye),Object(D.f)(Ge),Object(D.f)(ue),Object(D.f)(ve),Object(D.f)(Ee);var xe=new R.d("markersNavigationVisible",!1),Ce=D.c.bindToContribution(ye.get);Object(D.g)(new Ce({id:"closeMarkersNavigation",precondition:xe,handler:function(he){return he.closeMarkersNavigation()},kbOpts:{weight:100+50,kbExpr:x.a.focus,primary:9,secondary:[1024|9]}})),Ie.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.nextInFiles",title:T.a({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem")},order:1}),Ie.c.appendMenuItem(19,{group:"6_problem_nav",command:{id:"editor.action.marker.prevInFiles",title:T.a({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem")},order:2})},li8W:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return e.e(294).then(e.bind(null,"7s2V"))}})},lrmC:function(Lt,N,e){},n01l:function(Lt,N,e){"use strict";e.r(N);var T=e("3/fG"),le=e("/kV6"),$=e("sswD"),R=e("wQH0"),B=e("0/Sa"),z=e("cGHE"),D=e("aokT"),W=e("gCVg"),x=e("cMvZ"),h=function(){function l(c,p){this._selection=c,this._insertSpace=p,this._usedEndToken=null}return l._haystackHasNeedleAtOffset=function(c,p,_){if(_<0)return!1;var L=p.length,I=c.length;if(_+L>I)return!1;for(var P=0;P<L;P++){var A=c.charCodeAt(_+P),Q=p.charCodeAt(P);if(A===Q)continue;if(A>=65&&A<=90&&A+32===Q)continue;if(Q>=65&&Q<=90&&Q+32===A)continue;return!1}return!0},l.prototype._createOperationsForBlockComment=function(c,p,_,L,I,P){var A=c.startLineNumber,Q=c.startColumn,K=c.endLineNumber,H=c.endColumn,V=I.getLineContent(A),de=I.getLineContent(K),_e=V.lastIndexOf(p,Q-1+p.length),Se=de.indexOf(_,H-1-_.length);if(_e!==-1&&Se!==-1)if(A===K){var Ie=V.substring(_e+p.length,Se);Ie.indexOf(_)>=0&&(_e=-1,Se=-1)}else{var Pe=V.substring(_e+p.length),Ve=de.substring(0,Se);(Pe.indexOf(_)>=0||Ve.indexOf(_)>=0)&&(_e=-1,Se=-1)}var ke;_e!==-1&&Se!==-1?(L&&_e+p.length<V.length&&V.charCodeAt(_e+p.length)===32&&(p=p+" "),L&&Se>0&&de.charCodeAt(Se-1)===32&&(_=" "+_,Se-=1),ke=l._createRemoveBlockCommentOperations(new D.a(A,_e+p.length+1,K,Se+1),p,_)):(ke=l._createAddBlockCommentOperations(c,p,_,this._insertSpace),this._usedEndToken=ke.length===1?_:null);for(var se=0,ee=ke;se<ee.length;se++){var ie=ee[se];P.addTrackedEditOperation(ie.range,ie.text)}},l._createRemoveBlockCommentOperations=function(c,p,_){var L=[];return D.a.isEmpty(c)?L.push(B.a.delete(new D.a(c.startLineNumber,c.startColumn-p.length,c.endLineNumber,c.endColumn+_.length))):(L.push(B.a.delete(new D.a(c.startLineNumber,c.startColumn-p.length,c.startLineNumber,c.startColumn))),L.push(B.a.delete(new D.a(c.endLineNumber,c.endColumn,c.endLineNumber,c.endColumn+_.length)))),L},l._createAddBlockCommentOperations=function(c,p,_,L){var I=[];return D.a.isEmpty(c)?I.push(B.a.replace(new D.a(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn),p+" "+_)):(I.push(B.a.insert(new z.a(c.startLineNumber,c.startColumn),p+(L?" ":""))),I.push(B.a.insert(new z.a(c.endLineNumber,c.endColumn),(L?" ":"")+_))),I},l.prototype.getEditOperations=function(c,p){var _=this._selection.startLineNumber,L=this._selection.startColumn;c.tokenizeIfCheap(_);var I=c.getLanguageIdAtPosition(_,L),P=x.a.getComments(I);if(!P||!P.blockCommentStartToken||!P.blockCommentEndToken)return;this._createOperationsForBlockComment(this._selection,P.blockCommentStartToken,P.blockCommentEndToken,this._insertSpace,c,p)},l.prototype.computeCursorState=function(c,p){var _=p.getInverseEditOperations();if(_.length===2){var L=_[0],I=_[1];return new W.a(L.range.endLineNumber,L.range.endColumn,I.range.startLineNumber,I.range.startColumn)}else{var P=_[0].range,A=this._usedEndToken?-this._usedEndToken.length-1:0;return new W.a(P.endLineNumber,P.endColumn+A,P.endLineNumber,P.endColumn+A)}},l}(),y=e("N0LK"),w=function(){function l(c,p,_,L){this._selection=c,this._tabSize=p,this._type=_,this._insertSpace=L,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1}return l._gatherPreflightCommentStrings=function(c,p,_){c.tokenizeIfCheap(p);var L=c.getLanguageIdAtPosition(p,1),I=x.a.getComments(L),P=I?I.lineCommentToken:null;if(!P)return null;for(var A=[],Q=0,K=_-p+1;Q<K;Q++)A[Q]={ignore:!1,commentStr:P,commentStrOffset:0,commentStrLength:P.length};return A},l._analyzeLines=function(c,p,_,L,I){var P=!0,A;c===0?A=!0:c===1?A=!1:A=!0;for(var Q=0,K=L.length;Q<K;Q++){var H=L[Q],V=I+Q,de=_.getLineContent(V),_e=y.q(de);if(_e===-1){c===0||c===1,H.ignore=!0,H.commentStrOffset=de.length;continue}if(P=!1,H.ignore=!1,H.commentStrOffset=_e,A&&!h._haystackHasNeedleAtOffset(de,H.commentStr,_e)&&(c===0?A=!1:c===1||(H.ignore=!0)),A&&p){var Se=_e+H.commentStrLength;Se<de.length&&de.charCodeAt(Se)===32&&(H.commentStrLength+=1)}}if(c===0&&P){A=!1;for(var Q=0,K=L.length;Q<K;Q++)L[Q].ignore=!1}return{supported:!0,shouldRemoveComments:A,lines:L}},l._gatherPreflightData=function(c,p,_,L,I){var P=l._gatherPreflightCommentStrings(_,L,I);return P===null?{supported:!1}:l._analyzeLines(c,p,_,P,L)},l.prototype._executeLineComments=function(c,p,_,L){var I;_.shouldRemoveComments?I=l._createRemoveLineCommentsOperations(_.lines,L.startLineNumber):(l._normalizeInsertionPoint(c,_.lines,L.startLineNumber,this._tabSize),I=this._createAddLineCommentsOperations(_.lines,L.startLineNumber));for(var P=new z.a(L.positionLineNumber,L.positionColumn),A=0,Q=I.length;A<Q;A++)if(p.addEditOperation(I[A].range,I[A].text),I[A].range.isEmpty()&&I[A].range.getStartPosition().equals(P)){var K=c.getLineContent(P.lineNumber);K.length+1===P.column&&(this._deltaColumn=(I[A].text||"").length)}this._selectionId=p.trackSelection(L)},l.prototype._attemptRemoveBlockComment=function(c,p,_,L){var I=p.startLineNumber,P=p.endLineNumber,A=L.length+Math.max(c.getLineFirstNonWhitespaceColumn(p.startLineNumber),p.startColumn),Q=c.getLineContent(I).lastIndexOf(_,A-1),K=c.getLineContent(P).indexOf(L,p.endColumn-1-_.length);return Q!==-1&&K===-1&&(K=c.getLineContent(I).indexOf(L,Q+_.length),P=I),Q===-1&&K!==-1&&(Q=c.getLineContent(P).lastIndexOf(_,K),I=P),p.isEmpty()&&(Q===-1||K===-1)&&(Q=c.getLineContent(I).indexOf(_),Q!==-1&&(K=c.getLineContent(I).indexOf(L,Q+_.length))),Q!==-1&&c.getLineContent(I).charCodeAt(Q+_.length)===32&&(_+=" "),K!==-1&&c.getLineContent(P).charCodeAt(K-1)===32&&(L=" "+L,K-=1),Q!==-1&&K!==-1?h._createRemoveBlockCommentOperations(new D.a(I,Q+_.length+1,P,K+1),_,L):null},l.prototype._executeBlockComment=function(c,p,_){c.tokenizeIfCheap(_.startLineNumber);var L=c.getLanguageIdAtPosition(_.startLineNumber,1),I=x.a.getComments(L);if(!I||!I.blockCommentStartToken||!I.blockCommentEndToken)return;var P=I.blockCommentStartToken,A=I.blockCommentEndToken,Q=this._attemptRemoveBlockComment(c,_,P,A);if(!Q){if(_.isEmpty()){var K=c.getLineContent(_.startLineNumber),H=y.q(K);H===-1&&(H=K.length),Q=h._createAddBlockCommentOperations(new D.a(_.startLineNumber,H+1,_.startLineNumber,K.length+1),P,A,this._insertSpace)}else Q=h._createAddBlockCommentOperations(new D.a(_.startLineNumber,c.getLineFirstNonWhitespaceColumn(_.startLineNumber),_.endLineNumber,c.getLineMaxColumn(_.endLineNumber)),P,A,this._insertSpace);Q.length===1&&(this._deltaColumn=P.length+1)}this._selectionId=p.trackSelection(_);for(var V=0,de=Q;V<de.length;V++){var _e=de[V];p.addEditOperation(_e.range,_e.text)}},l.prototype.getEditOperations=function(c,p){var _=this._selection;this._moveEndPositionDown=!1,_.startLineNumber<_.endLineNumber&&_.endColumn===1&&(this._moveEndPositionDown=!0,_=_.setEndPosition(_.endLineNumber-1,c.getLineMaxColumn(_.endLineNumber-1)));var L=l._gatherPreflightData(this._type,this._insertSpace,c,_.startLineNumber,_.endLineNumber);return L.supported?this._executeLineComments(c,p,L,_):this._executeBlockComment(c,p,_)},l.prototype.computeCursorState=function(c,p){var _=p.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(_=_.setEndPosition(_.endLineNumber+1,1)),new W.a(_.selectionStartLineNumber,_.selectionStartColumn+this._deltaColumn,_.positionLineNumber,_.positionColumn+this._deltaColumn)},l._createRemoveLineCommentsOperations=function(c,p){for(var _=[],L=0,I=c.length;L<I;L++){var P=c[L];if(P.ignore)continue;_.push(B.a.delete(new D.a(p+L,P.commentStrOffset+1,p+L,P.commentStrOffset+P.commentStrLength+1)))}return _},l.prototype._createAddLineCommentsOperations=function(c,p){for(var _=[],L=this._insertSpace?" ":"",I=0,P=c.length;I<P;I++){var A=c[I];if(A.ignore)continue;_.push(B.a.insert(new z.a(p+I,A.commentStrOffset+1),A.commentStr+L))}return _},l.nextVisibleColumn=function(c,p,_,L){return _?c+(p-c%p):c+L},l._normalizeInsertionPoint=function(c,p,_,L){for(var I=1073741824,P,A,Q=0,K=p.length;Q<K;Q++){if(p[Q].ignore)continue;for(var H=c.getLineContent(_+Q),V=0,de=0,_e=p[Q].commentStrOffset;V<I&&de<_e;de++)V=l.nextVisibleColumn(V,L,H.charCodeAt(de)===9,1);V<I&&(I=V)}I=Math.floor(I/L)*L;for(var Q=0,K=p.length;Q<K;Q++){if(p[Q].ignore)continue;var H=c.getLineContent(_+Q),V=0;for(P=0,A=p[Q].commentStrOffset;V<I&&P<A;P++)V=l.nextVisibleColumn(V,L,H.charCodeAt(P)===9,1);V>I?p[Q].commentStrOffset=P-1:p[Q].commentStrOffset=P}},l}(),f=function(){var l=function(c,p){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,L){_.__proto__=L}||function(_,L){for(var I in L)L.hasOwnProperty(I)&&(_[I]=L[I])},l(c,p)};return function(c,p){l(c,p);function _(){this.constructor=c}c.prototype=p===null?Object.create(p):(_.prototype=p.prototype,new _)}}(),v=function(l){f(c,l);function c(p,_){var L=l.call(this,_)||this;return L._type=p,L}return c.prototype.run=function(p,_){if(!_.hasModel())return;for(var L=_.getModel(),I=[],P=_.getSelections(),A=L.getOptions(),Q=_.getOption(13),K=0,H=P;K<H.length;K++){var V=H[K];I.push(new w(V,A.tabSize,this._type,Q.insertSpace))}_.pushUndoStop(),_.executeCommands(this.id,I),_.pushUndoStop()},c}($.b),C=function(l){f(c,l);function c(){return l.call(this,0,{id:"editor.action.commentLine",label:T.a("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:R.a.writable,kbOpts:{kbExpr:R.a.editorTextFocus,primary:2048|85,weight:100},menuOpts:{menuId:17,group:"5_insert",title:T.a({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})||this}return c}(v),g=function(l){f(c,l);function c(){return l.call(this,1,{id:"editor.action.addCommentLine",label:T.a("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:R.a.writable,kbOpts:{kbExpr:R.a.editorTextFocus,primary:Object(le.a)(2048|41,2048|33),weight:100}})||this}return c}(v),u=function(l){f(c,l);function c(){return l.call(this,2,{id:"editor.action.removeCommentLine",label:T.a("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:R.a.writable,kbOpts:{kbExpr:R.a.editorTextFocus,primary:Object(le.a)(2048|41,2048|51),weight:100}})||this}return c}(v),s=function(l){f(c,l);function c(){return l.call(this,{id:"editor.action.blockComment",label:T.a("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:R.a.writable,kbOpts:{kbExpr:R.a.editorTextFocus,primary:1024|512|31,linux:{primary:2048|1024|31},weight:100},menuOpts:{menuId:17,group:"5_insert",title:T.a({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})||this}return c.prototype.run=function(p,_){if(!_.hasModel())return;for(var L=_.getOption(13),I=[],P=_.getSelections(),A=0,Q=P;A<Q.length;A++){var K=Q[A];I.push(new h(K,L.insertSpace))}_.pushUndoStop(),_.executeCommands(this.id,I),_.pushUndoStop()},c}($.b);Object($.f)(C),Object($.f)(g),Object($.f)(u),Object($.f)(s)},n18v:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return e.e(344).then(e.bind(null,"nNVF"))}})},nB0o:function(Lt,N,e){"use strict";e.d(N,"a",function(){return ks});var T=e("lrmC"),le=e("3/fG"),$=e("EffR"),R=e("/cxE"),B=e("MI8n"),z=e("pmY6"),D=e("tYmi"),W=e("HdwC"),x=e("sswD"),h=e("Vxe3"),y=e("ZlPH"),w=e("MNsG"),f=e("pg8w"),v=e("D3Dy"),C=e("XSiN"),g=e("X+cX"),u=e("AKMP"),s=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),l=function(){function U(o,t){this.x=o,this.y=t}return U.prototype.toClientCoordinates=function(){return new c(this.x-$.e.scrollX,this.y-$.e.scrollY)},U}(),c=function(){function U(o,t){this.clientX=o,this.clientY=t}return U.prototype.toPageCoordinates=function(){return new l(this.clientX+$.e.scrollX,this.clientY+$.e.scrollY)},U}(),p=function(){function U(o,t,i,m){this.x=o,this.y=t,this.width=i,this.height=m}return U}();function _(U){var o=$.C(U);return new p(o.left,o.top,o.width,o.height)}var L=function(U){s(o,U);function o(t,i){var m=U.call(this,t)||this;return m.pos=new l(m.posx,m.posy),m.editorPos=_(i),m}return o}(C.b),I=function(){function U(o){this._editorViewDomNode=o}return U.prototype._create=function(o){return new L(o,this._editorViewDomNode)},U.prototype.onContextMenu=function(o,t){var i=this;return $.j(o,"contextmenu",function(m){t(i._create(m))})},U.prototype.onMouseUp=function(o,t){var i=this;return $.j(o,"mouseup",function(m){t(i._create(m))})},U.prototype.onMouseDown=function(o,t){var i=this;return $.j(o,"mousedown",function(m){t(i._create(m))})},U.prototype.onMouseLeave=function(o,t){var i=this;return $.k(o,function(m){t(i._create(m))})},U.prototype.onMouseMoveThrottled=function(o,t,i,m){var E=this,te=function(Re,Le){return i(Re,E._create(Le))};return $.m(o,"mousemove",t,te,m)},U}(),P=function(){function U(o){this._editorViewDomNode=o}return U.prototype._create=function(o){return new L(o,this._editorViewDomNode)},U.prototype.onPointerUp=function(o,t){var i=this;return $.j(o,"pointerup",function(m){t(i._create(m))})},U.prototype.onPointerDown=function(o,t){var i=this;return $.j(o,"pointerdown",function(m){t(i._create(m))})},U.prototype.onPointerLeave=function(o,t){var i=this;return $.l(o,function(m){t(i._create(m))})},U.prototype.onPointerMoveThrottled=function(o,t,i,m){var E=this,te=function(Re,Le){return i(Re,E._create(Le))};return $.m(o,"pointermove",t,te,m)},U}(),A=function(U){s(o,U);function o(t){var i=U.call(this)||this;return i._editorViewDomNode=t,i._globalMouseMoveMonitor=i._register(new u.a),i._keydownListener=null,i}return o.prototype.startMonitoring=function(t,i,m,E,te){var Re=this;this._keydownListener=$.o(document,"keydown",function(qe){var ct=qe.toKeybinding();if(ct.isModifierKey())return;Re._globalMouseMoveMonitor.stopMonitoring(!0)},!0);var Le=function(qe,ct){return m(qe,new L(ct,Re._editorViewDomNode))};this._globalMouseMoveMonitor.startMonitoring(t,i,Le,E,function(){Re._keydownListener.dispose(),te()})},o}(z.a),Q=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),K=function(U){Q(o,U);function o(){var t=U.call(this)||this;return t._shouldRender=!0,t}return o.prototype.shouldRender=function(){return this._shouldRender},o.prototype.forceShouldRender=function(){this._shouldRender=!0},o.prototype.setShouldRender=function(){this._shouldRender=!0},o.prototype.onDidRender=function(){this._shouldRender=!1},o.prototype.onConfigurationChanged=function(t){return!1},o.prototype.onContentSizeChanged=function(t){return!1},o.prototype.onCursorStateChanged=function(t){return!1},o.prototype.onDecorationsChanged=function(t){return!1},o.prototype.onFlushed=function(t){return!1},o.prototype.onFocusChanged=function(t){return!1},o.prototype.onLanguageConfigurationChanged=function(t){return!1},o.prototype.onLineMappingChanged=function(t){return!1},o.prototype.onLinesChanged=function(t){return!1},o.prototype.onLinesDeleted=function(t){return!1},o.prototype.onLinesInserted=function(t){return!1},o.prototype.onRevealRangeRequest=function(t){return!1},o.prototype.onScrollChanged=function(t){return!1},o.prototype.onThemeChanged=function(t){return!1},o.prototype.onTokensChanged=function(t){return!1},o.prototype.onTokensColorsChanged=function(t){return!1},o.prototype.onZonesChanged=function(t){return!1},o.prototype.handleEvents=function(t){for(var i=!1,m=0,E=t.length;m<E;m++){var te=t[m];switch(te.type){case 1:this.onConfigurationChanged(te)&&(i=!0);break;case 2:this.onContentSizeChanged(te)&&(i=!0);break;case 3:this.onCursorStateChanged(te)&&(i=!0);break;case 4:this.onDecorationsChanged(te)&&(i=!0);break;case 5:this.onFlushed(te)&&(i=!0);break;case 6:this.onFocusChanged(te)&&(i=!0);break;case 7:this.onLanguageConfigurationChanged(te)&&(i=!0);break;case 8:this.onLineMappingChanged(te)&&(i=!0);break;case 9:this.onLinesChanged(te)&&(i=!0);break;case 10:this.onLinesDeleted(te)&&(i=!0);break;case 11:this.onLinesInserted(te)&&(i=!0);break;case 12:this.onRevealRangeRequest(te)&&(i=!0);break;case 13:this.onScrollChanged(te)&&(i=!0);break;case 15:this.onTokensChanged(te)&&(i=!0);break;case 14:this.onThemeChanged(te)&&(i=!0);break;case 16:this.onTokensColorsChanged(te)&&(i=!0);break;case 17:this.onZonesChanged(te)&&(i=!0);break;default:console.info("View received unknown event: "),console.info(te)}}i&&(this._shouldRender=!0)},o}(z.a),H=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),V=function(U){H(o,U);function o(t){var i=U.call(this)||this;return i._context=t,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),U.prototype.dispose.call(this)},o}(K),de=function(){function U(){}return U.write=function(o,t){o instanceof y.a,o.setAttribute("data-mprt",String(t))},U.read=function(o){var t=o.getAttribute("data-mprt");return t===null?0:parseInt(t,10)},U.collect=function(o,t){for(var i=[],m=0;o&&o!==document.body&&!(o===t);)o.nodeType===o.ELEMENT_NODE&&(i[m++]=this.read(o)),o=o.parentElement;for(var E=new Uint8Array(m),te=0;te<m;te++)E[te]=i[m-te-1];return E},U}(),_e=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Se=function(){function U(o,t){this._viewLayout=o,this.viewportData=t,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 U.prototype.getScrolledTopFromAbsoluteTop=function(o){return o-this.scrollTop},U.prototype.getVerticalOffsetForLineNumber=function(o){return this._viewLayout.getVerticalOffsetForLineNumber(o)},U.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},U}(),Ie=function(U){_e(o,U);function o(t,i,m){var E=U.call(this,t,i)||this;return E._viewLines=m,E}return o.prototype.linesVisibleRangesForRange=function(t,i){return this._viewLines.linesVisibleRangesForRange(t,i)},o.prototype.visibleRangeForPosition=function(t){return this._viewLines.visibleRangeForPosition(t)},o}(Se),Pe=function(){function U(o,t,i){this.outsideRenderedLine=o,this.lineNumber=t,this.ranges=i}return U}(),Ve=function(){function U(o,t){this.left=Math.round(o),this.width=Math.round(t)}return U.prototype.toString=function(){return"["+this.left+","+this.width+"]"},U}(),ke=function(){function U(o,t){this.outsideRenderedLine=o,this.left=Math.round(t)}return U}(),se=function(){function U(o,t){this.outsideRenderedLine=o,this.ranges=t}return U}(),ee=function(){function U(o,t){this.left=o,this.width=t}return U.prototype.toString=function(){return"["+this.left+","+this.width+"]"},U.compare=function(o,t){return o.left-t.left},U}(),ie=function(){function U(){}return U._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},U._detachRange=function(o,t){o.selectNodeContents(t)},U._readClientRects=function(o,t,i,m,E){var te=this._createRange();try{return te.setStart(o,t),te.setEnd(i,m),te.getClientRects()}catch(Re){return null}finally{this._detachRange(te,E)}},U._mergeAdjacentRanges=function(o){if(o.length===1)return[new Ve(o[0].left,o[0].width)];o.sort(ee.compare);for(var t=[],i=0,m=o[0].left,E=o[0].width,te=1,Re=o.length;te<Re;te++){var Le=o[te],qe=Le.left,ct=Le.width;m+E+.9>=qe?E=Math.max(E,qe+ct-m):(t[i++]=new Ve(m,E),m=qe,E=ct)}return t[i++]=new Ve(m,E),t},U._createHorizontalRangesFromClientRects=function(o,t){if(!o||o.length===0)return null;for(var i=[],m=0,E=o.length;m<E;m++){var te=o[m];i[m]=new ee(Math.max(0,te.left-t),te.width)}return this._mergeAdjacentRanges(i)},U.readHorizontalRanges=function(o,t,i,m,E,te,Re){var Le=0,qe=o.children.length-1;if(Le>qe)return null;t=Math.min(qe,Math.max(Le,t)),m=Math.min(qe,Math.max(Le,m)),t!==m&&(m>0&&E===0&&(m--,E=1073741824));var ct=o.children[t].firstChild,wt=o.children[m].firstChild;if((!ct||!wt)&&(!ct&&i===0&&t>0&&(ct=o.children[t-1].firstChild,i=1073741824),!wt&&E===0&&m>0&&(wt=o.children[m-1].firstChild,E=1073741824)),!ct||!wt)return null;i=Math.min(ct.textContent.length,Math.max(0,i)),E=Math.min(wt.textContent.length,Math.max(0,E));var tt=this._readClientRects(ct,i,wt,E,Re);return this._createHorizontalRangesFromClientRects(tt,te)},U}(),q=e("dBaI"),ce=e("baJR"),Z=e("t9D7"),ye=e("/UlZ"),je=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ge=function(){return w.f?!0:!(w.d||v.h||v.k)}(),ue=v.f,ve=function(){function U(o,t){this._domNode=o,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}return Object.defineProperty(U.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),U}(),Ee=function(){function U(o,t){this.themeType=t;var i=o.options,m=i.get(34);this.renderWhitespace=i.get(74),this.renderControlCharacters=i.get(69),this.spaceWidth=m.spaceWidth,this.middotWidth=m.middotWidth,this.useMonospaceOptimizations=m.isMonospace&&!i.get(23),this.canUseHalfwidthRightwardsArrow=m.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(49),this.stopRenderingLineAfter=i.get(88),this.fontLigatures=i.get(35)}return U.prototype.equals=function(o){return this.themeType===o.themeType&&this.renderWhitespace===o.renderWhitespace&&this.renderControlCharacters===o.renderControlCharacters&&this.spaceWidth===o.spaceWidth&&this.middotWidth===o.middotWidth&&this.useMonospaceOptimizations===o.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===o.canUseHalfwidthRightwardsArrow&&this.lineHeight===o.lineHeight&&this.stopRenderingLineAfter===o.stopRenderingLineAfter&&this.fontLigatures===o.fontLigatures},U}(),xe=function(){function U(o){this._options=o,this._isMaybeInvalid=!0,this._renderedViewLine=null}return U.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},U.prototype.setDomNode=function(o){if(this._renderedViewLine)this._renderedViewLine.domNode=Object(y.b)(o);else throw new Error("I have no rendered view line to set the dom node to...")},U.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},U.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},U.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},U.prototype.onOptionsChanged=function(o){this._isMaybeInvalid=!0,this._options=o},U.prototype.onSelectionChanged=function(){return ue||this._options.themeType===Z.b||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1},U.prototype.renderLine=function(o,t,i,m){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var E=i.getViewLineRenderingData(o),te=this._options,Re=q.a.filter(E.inlineDecorations,o,E.minColumn,E.maxColumn),Le=null;if(ue||te.themeType===Z.b||this._options.renderWhitespace==="selection")for(var qe=i.selections,ct=0,wt=qe;ct<wt.length;ct++){var tt=wt[ct];if(tt.endLineNumber<o||tt.startLineNumber>o)continue;var kt=tt.startLineNumber===o?tt.startColumn:E.minColumn,Bt=tt.endLineNumber===o?tt.endColumn:E.maxColumn;kt<Bt&&(this._options.renderWhitespace!=="selection"?Re.push(new q.a(kt,Bt,"inline-selected-text",0)):(Le||(Le=[]),Le.push(new ce.b(kt-1,Bt-1))))}var Ht=new ce.c(te.useMonospaceOptimizations,te.canUseHalfwidthRightwardsArrow,E.content,E.continuesWithWrappedLine,E.isBasicASCII,E.containsRTL,E.minColumn-1,E.tokens,Re,E.tabSize,E.startVisibleColumn,te.spaceWidth,te.middotWidth,te.stopRenderingLineAfter,te.renderWhitespace,te.renderControlCharacters,te.fontLigatures!==ye.d.OFF,Le);if(this._renderedViewLine&&this._renderedViewLine.input.equals(Ht))return!1;m.appendASCIIString('<div style="top:'),m.appendASCIIString(String(t)),m.appendASCIIString("px;height:"),m.appendASCIIString(String(this._options.lineHeight)),m.appendASCIIString('px;" class="'),m.appendASCIIString(U.CLASS_NAME),m.appendASCIIString('">');var qt=Object(ce.d)(Ht,m);m.appendASCIIString("</div>");var $t=null;return Ge&&E.isBasicASCII&&te.useMonospaceOptimizations&&qt.containsForeignElements===0&&(E.content.length<300&&Ht.lineTokens.getCount()<100&&($t=new Ce(this._renderedViewLine?this._renderedViewLine.domNode:null,Ht,qt.characterMapping))),$t||($t=b(this._renderedViewLine?this._renderedViewLine.domNode:null,Ht,qt.characterMapping,qt.containsRTL,qt.containsForeignElements)),this._renderedViewLine=$t,!0},U.prototype.layoutLine=function(o,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},U.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},U.prototype.getWidthIsFast=function(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0},U.prototype.getVisibleRangesForRange=function(o,t,i){if(!this._renderedViewLine)return null;o=o|0,t=t|0,o=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,o)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var m=this._renderedViewLine.input.stopRenderingLineAfter|0,E=!1;m!==-1&&o>m+1&&t>m+1&&(E=!0),m!==-1&&o>m+1&&(o=m+1),m!==-1&&t>m+1&&(t=m+1);var te=this._renderedViewLine.getVisibleRangesForRange(o,t,i);return te&&te.length>0?new se(E,te):null},U.prototype.getColumnOfNodeOffset=function(o,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(o,t,i):1},U.CLASS_NAME="view-line",U}(),Ce=function(){function U(o,t,i){this.domNode=o,this.input=t,this._characterMapping=i,this._charWidth=t.spaceWidth}return U.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},U.prototype.getWidthIsFast=function(){return!0},U.prototype.getVisibleRangesForRange=function(o,t,i){var m=this._getCharPosition(o),E=this._getCharPosition(t);return[new Ve(m,E-m)]},U.prototype._getCharPosition=function(o){var t=this._characterMapping.getAbsoluteOffsets();return t.length===0?0:Math.round(this._charWidth*t[o-1])},U.prototype.getColumnOfNodeOffset=function(o,t,i){for(var m=t.textContent.length,E=-1;t;)t=t.previousSibling,E++;var te=this._characterMapping.partDataToCharOffset(E,m,i);return te+1},U}(),he=function(){function U(o,t,i,m,E){if(this.domNode=o,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=E,this._cachedWidth=-1,this._pixelOffsetCache=null,!m||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var te=0,Re=this._characterMapping.length;te<=Re;te++)this._pixelOffsetCache[te]=-1}}return U.prototype._getReadingTarget=function(o){return o.domNode.firstChild},U.prototype.getWidth=function(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},U.prototype.getWidthIsFast=function(){return!(this._cachedWidth===-1)},U.prototype.getVisibleRangesForRange=function(o,t,i){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){var m=this._readPixelOffset(this.domNode,o,i);if(m===-1)return null;var E=this._readPixelOffset(this.domNode,t,i);return E===-1?null:[new Ve(m,E-m)]}return this._readVisibleRangesForRange(this.domNode,o,t,i)},U.prototype._readVisibleRangesForRange=function(o,t,i,m){if(t===i){var E=this._readPixelOffset(o,t,m);return E===-1?null:[new Ve(E,0)]}else return this._readRawVisibleRangesForRange(o,t,i,m)},U.prototype._readPixelOffset=function(o,t,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 m=this._getReadingTarget(o);return m.firstChild?m.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){var E=this._pixelOffsetCache[t];if(E!==-1)return E;var te=this._actualReadPixelOffset(o,t,i);return this._pixelOffsetCache[t]=te,te}return this._actualReadPixelOffset(o,t,i)},U.prototype._actualReadPixelOffset=function(o,t,i){if(this._characterMapping.length===0){var m=ie.readHorizontalRanges(this._getReadingTarget(o),0,0,0,0,i.clientRectDeltaLeft,i.endNode);return!m||m.length===0?-1:m[0].left}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();var E=this._characterMapping.charOffsetToPartData(t-1),te=ce.a.getPartIndex(E),Re=ce.a.getCharIndex(E),Le=ie.readHorizontalRanges(this._getReadingTarget(o),te,Re,te,Re,i.clientRectDeltaLeft,i.endNode);return!Le||Le.length===0?-1:Le[0].left},U.prototype._readRawVisibleRangesForRange=function(o,t,i,m){if(t===1&&i===this._characterMapping.length)return[new Ve(0,this.getWidth())];var E=this._characterMapping.charOffsetToPartData(t-1),te=ce.a.getPartIndex(E),Re=ce.a.getCharIndex(E),Le=this._characterMapping.charOffsetToPartData(i-1),qe=ce.a.getPartIndex(Le),ct=ce.a.getCharIndex(Le);return ie.readHorizontalRanges(this._getReadingTarget(o),te,Re,qe,ct,m.clientRectDeltaLeft,m.endNode)},U.prototype.getColumnOfNodeOffset=function(o,t,i){for(var m=t.textContent.length,E=-1;t;)t=t.previousSibling,E++;var te=this._characterMapping.partDataToCharOffset(E,m,i);return te+1},U}(),J=function(U){je(o,U);function o(){return U!==null&&U.apply(this,arguments)||this}return o.prototype._readVisibleRangesForRange=function(t,i,m,E){var te=U.prototype._readVisibleRangesForRange.call(this,t,i,m,E);if(!te||te.length===0||i===m||i===1&&m===this._characterMapping.length)return te;if(!this.input.containsRTL){var Re=this._readPixelOffset(t,m,E);if(Re!==-1){var Le=te[te.length-1];Le.left<Re&&(Le.width=Re-Le.left)}}return te},o}(he),b=function(){return v.m?F:re}();function F(U,o,t,i,m){return new J(U,o,t,i,m)}function re(U,o,t,i,m){return new he(U,o,t,i,m)}var ne=e("cGHE"),fe=e("aokT"),Oe=e("Ll0s"),Me=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ue=function(){function U(o,t){this.lastViewCursorsRenderData=o,this.lastTextareaPosition=t}return U}(),Je=function(){function U(o,t,i,m,E,te){i===void 0&&(i=0),m===void 0&&(m=null),E===void 0&&(E=null),te===void 0&&(te=null),this.element=o,this.type=t,this.mouseColumn=i,this.position=m,!E&&m&&(E=new fe.a(m.lineNumber,m.column,m.lineNumber,m.column)),this.range=E,this.detail=te}return U._typeToString=function(o){return o===1?"TEXTAREA":o===2?"GUTTER_GLYPH_MARGIN":o===3?"GUTTER_LINE_NUMBERS":o===4?"GUTTER_LINE_DECORATIONS":o===5?"GUTTER_VIEW_ZONE":o===6?"CONTENT_TEXT":o===7?"CONTENT_EMPTY":o===8?"CONTENT_VIEW_ZONE":o===9?"CONTENT_WIDGET":o===10?"OVERVIEW_RULER":o===11?"SCROLLBAR":o===12?"OVERLAY_WIDGET":"UNKNOWN"},U.toString=function(o){return this._typeToString(o.type)+": "+o.position+" - "+o.range+" - "+o.detail},U.prototype.toString=function(){return U.toString(this)},U}(),nt=function(){function U(){}return U.isTextArea=function(o){return o.length===2&&o[0]===3&&o[1]===6},U.isChildOfViewLines=function(o){return o.length>=4&&o[0]===3&&o[3]===7},U.isStrictChildOfViewLines=function(o){return o.length>4&&o[0]===3&&o[3]===7},U.isChildOfScrollableElement=function(o){return o.length>=2&&o[0]===3&&o[1]===5},U.isChildOfMinimap=function(o){return o.length>=2&&o[0]===3&&o[1]===8},U.isChildOfContentWidgets=function(o){return o.length>=4&&o[0]===3&&o[3]===1},U.isChildOfOverflowingContentWidgets=function(o){return o.length>=1&&o[0]===2},U.isChildOfOverlayWidgets=function(o){return o.length>=2&&o[0]===3&&o[1]===4},U}(),vt=function(){function U(o,t,i){this.model=o.model;var m=o.configuration.options;this.layoutInfo=m.get(107),this.viewDomNode=t.viewDomNode,this.lineHeight=m.get(49),this.typicalHalfwidthCharacterWidth=m.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=o,this._viewHelper=t}return U.prototype.getZoneAtCoord=function(o){return U.getZoneAtCoord(this._context,o)},U.getZoneAtCoord=function(o,t){var i=o.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){var m=i.verticalOffset+i.height/2,E=o.model.getLineCount(),te=null,Re=void 0,Le=null;return i.afterLineNumber!==E&&(Le=new ne.a(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(te=new ne.a(i.afterLineNumber,o.model.getLineMaxColumn(i.afterLineNumber))),Le===null?Re=te:te===null?Re=Le:t<m?Re=te:Re=Le,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:te,positionAfter:Le,position:Re}}return null},U.prototype.getFullLineRangeAtCoord=function(o){if(this._context.viewLayout.isAfterLines(o)){var t=this._context.model.getLineCount(),i=this._context.model.getLineMaxColumn(t);return{range:new fe.a(t,i,t,i),isAfterLines:!0}}var m=this._context.viewLayout.getLineNumberAtVerticalOffset(o),E=this._context.model.getLineMaxColumn(m);return{range:new fe.a(m,1,m,E),isAfterLines:!1}},U.prototype.getLineNumberAtVerticalOffset=function(o){return this._context.viewLayout.getLineNumberAtVerticalOffset(o)},U.prototype.isAfterLines=function(o){return this._context.viewLayout.isAfterLines(o)},U.prototype.getVerticalOffsetForLineNumber=function(o){return this._context.viewLayout.getVerticalOffsetForLineNumber(o)},U.prototype.findAttribute=function(o,t){return U._findAttribute(o,t,this._viewHelper.viewDomNode)},U._findAttribute=function(o,t,i){for(;o&&o!==document.body;){if(o.hasAttribute&&o.hasAttribute(t))return o.getAttribute(t);if(o===i)return null;o=o.parentNode}return null},U.prototype.getLineWidth=function(o){return this._viewHelper.getLineWidth(o)},U.prototype.visibleRangeForPosition=function(o,t){return this._viewHelper.visibleRangeForPosition(o,t)},U.prototype.getPositionFromDOMInfo=function(o,t){return this._viewHelper.getPositionFromDOMInfo(o,t)},U.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()},U.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()},U}(),Rt=function(){function U(o,t,i){this.editorPos=t,this.pos=i,this.mouseVerticalOffset=Math.max(0,o.getCurrentScrollTop()+i.y-t.y),this.mouseContentHorizontalOffset=o.getCurrentScrollLeft()+i.x-t.x-o.layoutInfo.contentLeft,this.isInMarginArea=i.x-t.x<o.layoutInfo.contentLeft&&i.x-t.x>=o.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,lo._getMouseColumn(this.mouseContentHorizontalOffset,o.typicalHalfwidthCharacterWidth))}return U}(),Dt=function(U){Me(o,U);function o(t,i,m,E){var te=U.call(this,t,i,m)||this;return te._ctx=t,E?(te.target=E,te.targetPath=de.collect(E,t.viewDomNode)):(te.target=null,te.targetPath=new Uint8Array(0)),te}return o.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)},o.prototype.fulfill=function(t,i,m,E){i===void 0&&(i=null),m===void 0&&(m=null),E===void 0&&(E=null);var te=this.mouseColumn;return i&&i.column<this._ctx.model.getLineMaxColumn(i.lineNumber)&&(te=Oe.a.visibleColumnFromColumn(this._ctx.model.getLineContent(i.lineNumber),i.column,this._ctx.model.getOptions().tabSize)+1),new Je(this.target,t,te,i,m,E)},o.prototype.withTarget=function(t){return new o(this._ctx,this.editorPos,this.pos,t)},o}(Rt),Kt={isAfterLines:!0};function ao(U){return{isAfterLines:!1,horizontalDistanceToText:U}}var lo=function(){function U(o,t){this._context=o,this._viewHelper=t}return U.prototype.mouseTargetIsWidget=function(o){var t=o.target,i=de.collect(t,this._viewHelper.viewDomNode);return nt.isChildOfContentWidgets(i)||nt.isChildOfOverflowingContentWidgets(i)?!0:!!nt.isChildOfOverlayWidgets(i)},U.prototype.createMouseTarget=function(o,t,i,m){var E=new vt(this._context,this._viewHelper,o),te=new Dt(E,t,i,m);try{var Re=U._createMouseTarget(E,te,!1);return Re}catch(Le){return te.fulfill(0)}},U._createMouseTarget=function(o,t,i){if(t.target===null){if(i)return t.fulfill(0);var m=U._doHitTest(o,t);return m.position?U.createMouseTargetFromHitTestPosition(o,t,m.position.lineNumber,m.position.column):this._createMouseTarget(o,t.withTarget(m.hitTarget),!0)}var E=t,te=null;return te=te||U._hitTestContentWidget(o,E),te=te||U._hitTestOverlayWidget(o,E),te=te||U._hitTestMinimap(o,E),te=te||U._hitTestScrollbarSlider(o,E),te=te||U._hitTestViewZone(o,E),te=te||U._hitTestMargin(o,E),te=te||U._hitTestViewCursor(o,E),te=te||U._hitTestTextArea(o,E),te=te||U._hitTestViewLines(o,E,i),te=te||U._hitTestScrollbar(o,E),te||t.fulfill(0)},U._hitTestContentWidget=function(o,t){if(nt.isChildOfContentWidgets(t.targetPath)||nt.isChildOfOverflowingContentWidgets(t.targetPath)){var i=o.findAttribute(t.target,"widgetId");return i?t.fulfill(9,null,null,i):t.fulfill(0)}return null},U._hitTestOverlayWidget=function(o,t){if(nt.isChildOfOverlayWidgets(t.targetPath)){var i=o.findAttribute(t.target,"widgetId");return i?t.fulfill(12,null,null,i):t.fulfill(0)}return null},U._hitTestViewCursor=function(o,t){if(t.target)for(var i=o.lastRenderData.lastViewCursorsRenderData,m=0,E=i;m<E.length;m++){var te=E[m];if(t.target===te.domNode)return t.fulfill(6,te.position)}if(t.isInContentArea)for(var i=o.lastRenderData.lastViewCursorsRenderData,Re=t.mouseContentHorizontalOffset,Le=t.mouseVerticalOffset,qe=0,ct=i;qe<ct.length;qe++){var te=ct[qe];if(Re<te.contentLeft)continue;if(Re>te.contentLeft+te.width)continue;var wt=o.getVerticalOffsetForLineNumber(te.position.lineNumber);if(wt<=Le&&Le<=wt+te.height)return t.fulfill(6,te.position)}return null},U._hitTestViewZone=function(o,t){var i=o.getZoneAtCoord(t.mouseVerticalOffset);if(i){var m=t.isInContentArea?8:5;return t.fulfill(m,i.position,null,i)}return null},U._hitTestTextArea=function(o,t){return nt.isTextArea(t.targetPath)?o.lastRenderData.lastTextareaPosition?t.fulfill(6,o.lastRenderData.lastTextareaPosition):t.fulfill(1,o.lastRenderData.lastTextareaPosition):null},U._hitTestMargin=function(o,t){if(t.isInMarginArea){var i=o.getFullLineRangeAtCoord(t.mouseVerticalOffset),m=i.range.getStartPosition(),E=Math.abs(t.pos.x-t.editorPos.x),te={isAfterLines:i.isAfterLines,glyphMarginLeft:o.layoutInfo.glyphMarginLeft,glyphMarginWidth:o.layoutInfo.glyphMarginWidth,lineNumbersWidth:o.layoutInfo.lineNumbersWidth,offsetX:E};return E-=o.layoutInfo.glyphMarginLeft,E<=o.layoutInfo.glyphMarginWidth?t.fulfill(2,m,i.range,te):(E-=o.layoutInfo.glyphMarginWidth,E<=o.layoutInfo.lineNumbersWidth?t.fulfill(3,m,i.range,te):(E-=o.layoutInfo.lineNumbersWidth,t.fulfill(4,m,i.range,te)))}return null},U._hitTestViewLines=function(o,t,i){if(!nt.isChildOfViewLines(t.targetPath))return null;if(o.isAfterLines(t.mouseVerticalOffset)){var m=o.model.getLineCount(),E=o.model.getLineMaxColumn(m);return t.fulfill(7,new ne.a(m,E),void 0,Kt)}if(i){if(nt.isStrictChildOfViewLines(t.targetPath)){var te=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(o.model.getLineLength(te)===0){var Re=o.getLineWidth(te),Le=ao(t.mouseContentHorizontalOffset-Re);return t.fulfill(7,new ne.a(te,1),void 0,Le)}var qe=o.getLineWidth(te);if(t.mouseContentHorizontalOffset>=qe){var Le=ao(t.mouseContentHorizontalOffset-qe),ct=new ne.a(te,o.model.getLineMaxColumn(te));return t.fulfill(7,ct,void 0,Le)}}return t.fulfill(0)}var wt=U._doHitTest(o,t);return wt.position?U.createMouseTargetFromHitTestPosition(o,t,wt.position.lineNumber,wt.position.column):this._createMouseTarget(o,t.withTarget(wt.hitTarget),!0)},U._hitTestMinimap=function(o,t){if(nt.isChildOfMinimap(t.targetPath)){var i=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),m=o.model.getLineMaxColumn(i);return t.fulfill(11,new ne.a(i,m))}return null},U._hitTestScrollbarSlider=function(o,t){if(nt.isChildOfScrollableElement(t.targetPath)&&(t.target&&t.target.nodeType===1)){var i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){var m=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),E=o.model.getLineMaxColumn(m);return t.fulfill(11,new ne.a(m,E))}}return null},U._hitTestScrollbar=function(o,t){if(nt.isChildOfScrollableElement(t.targetPath)){var i=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),m=o.model.getLineMaxColumn(i);return t.fulfill(11,new ne.a(i,m))}return null},U.prototype.getMouseColumn=function(o,t){var i=this._context.configuration.options,m=i.get(107),E=this._context.viewLayout.getCurrentScrollLeft()+t.x-o.x-m.contentLeft;return U._getMouseColumn(E,i.get(34).typicalHalfwidthCharacterWidth)},U._getMouseColumn=function(o,t){if(o<0)return 1;var i=Math.round(o/t);return i+1},U.createMouseTargetFromHitTestPosition=function(o,t,i,m){var E=new ne.a(i,m),te=o.getLineWidth(i);if(t.mouseContentHorizontalOffset>te){if(v.e&&E.column===1){var Re=ao(t.mouseContentHorizontalOffset-te);return t.fulfill(7,new ne.a(i,o.model.getLineMaxColumn(i)),void 0,Re)}var Le=ao(t.mouseContentHorizontalOffset-te);return t.fulfill(7,E,void 0,Le)}var qe=o.visibleRangeForPosition(i,m);if(!qe)return t.fulfill(0,E);var ct=qe.left;if(t.mouseContentHorizontalOffset===ct)return t.fulfill(6,E);var wt=[];if(wt.push({offset:qe.left,column:m}),m>1){var tt=o.visibleRangeForPosition(i,m-1);tt&&wt.push({offset:tt.left,column:m-1})}var kt=o.model.getLineMaxColumn(i);if(m<kt){var Bt=o.visibleRangeForPosition(i,m+1);Bt&&wt.push({offset:Bt.left,column:m+1})}wt.sort(function(yo,po){return yo.offset-po.offset});for(var Ht=1;Ht<wt.length;Ht++){var qt=wt[Ht-1],$t=wt[Ht];if(qt.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=$t.offset){var io=new fe.a(i,qt.column,i,$t.column);return t.fulfill(6,E,io)}}return t.fulfill(6,E)},U._doHitTestWithCaretRangeFromPoint=function(o,t){var i=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),m=o.getVerticalOffsetForLineNumber(i),E=m+Math.floor(o.lineHeight/2),te=t.pos.y+(E-t.mouseVerticalOffset);te<=t.editorPos.y&&(te=t.editorPos.y+1),te>=t.editorPos.y+o.layoutInfo.height&&(te=t.editorPos.y+o.layoutInfo.height-1);var Re=new l(t.pos.x,te),Le=this._actualDoHitTestWithCaretRangeFromPoint(o,Re.toClientCoordinates());return Le.position?Le:this._actualDoHitTestWithCaretRangeFromPoint(o,t.pos.toClientCoordinates())},U._actualDoHitTestWithCaretRangeFromPoint=function(o,t){var i=$.E(o.viewDomNode),m;if(i?typeof i.caretRangeFromPoint=="undefined"?m=so(i,t.clientX,t.clientY):m=i.caretRangeFromPoint(t.clientX,t.clientY):m=document.caretRangeFromPoint(t.clientX,t.clientY),!m||!m.startContainer)return{position:null,hitTarget:null};var E=m.startContainer,te=null;if(E.nodeType===E.TEXT_NODE){var Re=E.parentNode,Le=Re?Re.parentNode:null,qe=Le?Le.parentNode:null,ct=qe&&qe.nodeType===qe.ELEMENT_NODE?qe.className:null;if(ct===xe.CLASS_NAME){var wt=o.getPositionFromDOMInfo(Re,m.startOffset);return{position:wt,hitTarget:null}}else te=E.parentNode}else if(E.nodeType===E.ELEMENT_NODE){var Re=E.parentNode,Le=Re?Re.parentNode:null,tt=Le&&Le.nodeType===Le.ELEMENT_NODE?Le.className:null;if(tt===xe.CLASS_NAME){var wt=o.getPositionFromDOMInfo(E,E.textContent.length);return{position:wt,hitTarget:null}}else te=E}return{position:null,hitTarget:te}},U._doHitTestWithCaretPositionFromPoint=function(o,t){var i=document.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){var m=i.offsetNode.parentNode,E=m?m.parentNode:null,te=E?E.parentNode:null,Re=te&&te.nodeType===te.ELEMENT_NODE?te.className:null;if(Re===xe.CLASS_NAME){var Le=o.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}},U._doHitTestWithMoveToPoint=function(o,t){var i=null,m=null,E=document.body.createTextRange();try{E.moveToPoint(t.clientX,t.clientY)}catch(wt){return{position:null,hitTarget:null}}E.collapse(!0);var te=E?E.parentElement():null,Re=te?te.parentNode:null,Le=Re?Re.parentNode:null,qe=Le&&Le.nodeType===Le.ELEMENT_NODE?Le.className:"";if(qe===xe.CLASS_NAME){var ct=E.duplicate();ct.moveToElementText(te),ct.setEndPoint("EndToStart",E),i=o.getPositionFromDOMInfo(te,ct.text.length),ct.moveToElementText(o.viewDomNode)}else m=te;return E.moveToElementText(o.viewDomNode),{position:i,hitTarget:m}},U._doHitTest=function(o,t){return typeof document.caretRangeFromPoint=="function"?this._doHitTestWithCaretRangeFromPoint(o,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(o,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(o,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},U}();function so(U,o,t){var i=document.createRange(),m=U.elementFromPoint(o,t);if(m!==null){for(;m&&m.firstChild&&m.firstChild.nodeType!==m.firstChild.TEXT_NODE;)m=m.lastChild;var E=m.getBoundingClientRect(),te=window.getComputedStyle(m,null).getPropertyValue("font"),Re=m.innerText,Le=E.left,qe=0,ct=void 0;if(o>E.left+E.width)qe=Re.length;else for(var wt=jt.getInstance(),tt=0;tt<Re.length+1;tt++){if(ct=wt.getCharWidth(Re.charAt(tt),te)/2,Le+=ct,o<Le){qe=tt;break}Le+=ct}i.setStart(m.firstChild,qe),i.setEnd(m.firstChild,qe)}return i}var jt=function(){function U(){this._cache={},this._canvas=document.createElement("canvas")}return U.getInstance=function(){return U._INSTANCE||(U._INSTANCE=new U),U._INSTANCE},U.prototype.getCharWidth=function(o,t){var i=o+t;if(this._cache[i])return this._cache[i];var m=this._canvas.getContext("2d");m.font=t;var E=m.measureText(o),te=E.width;return this._cache[i]=te,te},U._INSTANCE=null,U}(),pt=e("Yr1X"),gt=e("gCVg"),Tt=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function it(U){return function(o,t){var i=!1;return U&&(i=U.mouseTargetIsWidget(t)),i||t.preventDefault(),t}}var et=function(U){Tt(o,U);function o(t,i,m){var E=U.call(this)||this;E._isFocused=!1,E._context=t,E.viewController=i,E.viewHelper=m,E.mouseTargetFactory=new lo(E._context,m),E._mouseDownOperation=E._register(new ut(E._context,E.viewController,E.viewHelper,function(Le,qe){return E._createMouseTarget(Le,qe)},function(Le){return E._getMouseColumn(Le)})),E._asyncFocus=E._register(new g.d(function(){return E.viewHelper.focusTextArea()},0)),E.lastMouseLeaveTime=-1;var te=new I(E.viewHelper.viewDomNode);E._register(te.onContextMenu(E.viewHelper.viewDomNode,function(Le){return E._onContextMenu(Le,!0)})),E._register(te.onMouseMoveThrottled(E.viewHelper.viewDomNode,function(Le){return E._onMouseMove(Le)},it(E.mouseTargetFactory),o.MOUSE_MOVE_MINIMUM_TIME)),E._register(te.onMouseUp(E.viewHelper.viewDomNode,function(Le){return E._onMouseUp(Le)})),E._register(te.onMouseLeave(E.viewHelper.viewDomNode,function(Le){return E._onMouseLeave(Le)})),E._register(te.onMouseDown(E.viewHelper.viewDomNode,function(Le){return E._onMouseDown(Le)}));var Re=function(Le){if(E.viewController.emitMouseWheel(Le),!E._context.configuration.options.get(57))return;var qe=new C.c(Le);if(qe.browserEvent.ctrlKey||qe.browserEvent.metaKey){var ct=pt.a.getZoomLevel(),wt=qe.deltaY>0?1:-1;pt.a.setZoomLevel(ct+wt),qe.preventDefault(),qe.stopPropagation()}};return E._register($.j(E.viewHelper.viewDomNode,v.f?"mousewheel":"wheel",Re,{capture:!0,passive:!1})),E._context.addEventHandler(E),E}return o.prototype.dispose=function(){this._context.removeEventHandler(this),U.prototype.dispose.call(this)},o.prototype.onCursorStateChanged=function(t){return this._mouseDownOperation.onCursorStateChanged(t),!1},o.prototype.onFocusChanged=function(t){return this._isFocused=t.isFocused,!1},o.prototype.onScrollChanged=function(t){return this._mouseDownOperation.onScrollChanged(),!1},o.prototype.getTargetAtClientPoint=function(t,i){var m=new c(t,i),E=m.toPageCoordinates(),te=_(this.viewHelper.viewDomNode);return E.y<te.y||E.y>te.y+te.height||E.x<te.x||E.x>te.x+te.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),te,E,null)},o.prototype._createMouseTarget=function(t,i){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),t.editorPos,t.pos,i?t.target:null)},o.prototype._getMouseColumn=function(t){return this.mouseTargetFactory.getMouseColumn(t.editorPos,t.pos)},o.prototype._onContextMenu=function(t,i){this.viewController.emitContextMenu({event:t,target:this._createMouseTarget(t,i)})},o.prototype._onMouseMove=function(t){if(this._mouseDownOperation.isActive())return;var i=t.timestamp;if(i<this.lastMouseLeaveTime)return;this.viewController.emitMouseMove({event:t,target:this._createMouseTarget(t,!0)})},o.prototype._onMouseLeave=function(t){this.lastMouseLeaveTime=new Date().getTime(),this.viewController.emitMouseLeave({event:t,target:null})},o.prototype._onMouseUp=function(t){this.viewController.emitMouseUp({event:t,target:this._createMouseTarget(t,!0)})},o.prototype._onMouseDown=function(t){var i=this,m=this._createMouseTarget(t,!0),E=m.type===6||m.type===7,te=m.type===2||m.type===3||m.type===4,Re=m.type===3,Le=this._context.configuration.options.get(83),qe=m.type===8||m.type===5,ct=m.type===9,wt=t.leftButton||t.middleButton;w.e&&t.leftButton&&t.ctrlKey&&(wt=!1);var tt=function(){v.i&&!i._isFocused?i._asyncFocus.schedule():(t.preventDefault(),i.viewHelper.focusTextArea())};if(wt&&(E||Re&&Le))tt(),this._mouseDownOperation.start(m.type,t);else if(te)t.preventDefault();else if(qe){var kt=m.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(kt.viewZoneId)&&(tt(),this._mouseDownOperation.start(m.type,t),t.preventDefault())}else ct&&this.viewHelper.shouldSuppressMouseDownOnWidget(m.detail)&&(tt(),t.preventDefault());this.viewController.emitMouseDown({event:t,target:m})},o.MOUSE_MOVE_MINIMUM_TIME=100,o}(K),ut=function(U){Tt(o,U);function o(t,i,m,E,te){var Re=U.call(this)||this;return Re._context=t,Re._viewController=i,Re._viewHelper=m,Re._createMouseTarget=E,Re._getMouseColumn=te,Re._mouseMoveMonitor=Re._register(new A(Re._viewHelper.viewDomNode)),Re._onScrollTimeout=Re._register(new g.e),Re._mouseState=new Ct,Re._currentSelection=new gt.a(1,1,1,1),Re._isActive=!1,Re._lastMouseEvent=null,Re}return o.prototype.dispose=function(){U.prototype.dispose.call(this)},o.prototype.isActive=function(){return this._isActive},o.prototype._onMouseDownThenMove=function(t){this._lastMouseEvent=t,this._mouseState.setModifiers(t);var i=this._findMousePosition(t,!0);if(!i)return;this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:t,target:i}):this._dispatchMouse(i,!0)},o.prototype.start=function(t,i){var m=this;this._lastMouseEvent=i,this._mouseState.setStartedOnLineNumbers(t===3),this._mouseState.setStartButtons(i),this._mouseState.setModifiers(i);var E=this._findMousePosition(i,!0);if(!E||!E.position)return;this._mouseState.trySetCount(i.detail,E.position),i.detail=this._mouseState.count;var te=this._context.configuration.options;if(!te.get(68)&&te.get(24)&&!this._mouseState.altKey&&i.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&E.type===6&&E.position&&this._currentSelection.containsPosition(E.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(i.target,i.buttons,it(null),function(Re){return m._onMouseDownThenMove(Re)},function(){var Re=m._findMousePosition(m._lastMouseEvent,!0);m._viewController.emitMouseDrop({event:m._lastMouseEvent,target:Re?m._createMouseTarget(m._lastMouseEvent,!0):null}),m._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(E,i.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(i.target,i.buttons,it(null),function(Re){return m._onMouseDownThenMove(Re)},function(){return m._stop()}))},o.prototype._stop=function(){this._isActive=!1,this._onScrollTimeout.cancel()},o.prototype.onScrollChanged=function(){var t=this;if(!this._isActive)return;this._onScrollTimeout.setIfNotSet(function(){if(!t._lastMouseEvent)return;var i=t._findMousePosition(t._lastMouseEvent,!1);if(!i)return;if(t._mouseState.isDragAndDrop)return;t._dispatchMouse(i,!0)},10)},o.prototype.onCursorStateChanged=function(t){this._currentSelection=t.selections[0]},o.prototype._getPositionOutsideEditor=function(t){var i=t.editorPos,m=this._context.model,E=this._context.viewLayout,te=this._getMouseColumn(t);if(t.posy<i.y){var Re=Math.max(E.getCurrentScrollTop()-(i.y-t.posy),0),Le=vt.getZoneAtCoord(this._context,Re);if(Le){var qe=this._helpPositionJumpOverViewZone(Le);if(qe)return new Je(null,13,te,qe)}var ct=E.getLineNumberAtVerticalOffset(Re);return new Je(null,13,te,new ne.a(ct,1))}if(t.posy>i.y+i.height){var Re=E.getCurrentScrollTop()+(t.posy-i.y),Le=vt.getZoneAtCoord(this._context,Re);if(Le){var qe=this._helpPositionJumpOverViewZone(Le);if(qe)return new Je(null,13,te,qe)}var wt=E.getLineNumberAtVerticalOffset(Re);return new Je(null,13,te,new ne.a(wt,m.getLineMaxColumn(wt)))}var tt=E.getLineNumberAtVerticalOffset(E.getCurrentScrollTop()+(t.posy-i.y));return t.posx<i.x?new Je(null,13,te,new ne.a(tt,1)):t.posx>i.x+i.width?new Je(null,13,te,new ne.a(tt,m.getLineMaxColumn(tt))):null},o.prototype._findMousePosition=function(t,i){var m=this._getPositionOutsideEditor(t);if(m)return m;var E=this._createMouseTarget(t,i),te=E.position;if(!te)return null;if(E.type===8||E.type===5){var Re=this._helpPositionJumpOverViewZone(E.detail);if(Re)return new Je(E.element,E.type,E.mouseColumn,Re,null,E.detail)}return E},o.prototype._helpPositionJumpOverViewZone=function(t){var i=new ne.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),m=t.positionBefore,E=t.positionAfter;return m&&E?m.isBefore(i)?m:E:null},o.prototype._dispatchMouse=function(t,i){if(!t.position)return;this._viewController.dispatchMouse({position:t.position,mouseColumn:t.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})},o}(z.a),Ct=function(){function U(){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(U.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(U.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),U.prototype.setModifiers=function(o){this._altKey=o.altKey,this._ctrlKey=o.ctrlKey,this._metaKey=o.metaKey,this._shiftKey=o.shiftKey},U.prototype.setStartButtons=function(o){this._leftButton=o.leftButton,this._middleButton=o.middleButton},U.prototype.setStartedOnLineNumbers=function(o){this._startedOnLineNumbers=o},U.prototype.trySetCount=function(o,t){var i=new Date().getTime();i-this._lastSetMouseDownCountTime>U.CLEAR_MOUSE_DOWN_COUNT_TIME&&(o=1),this._lastSetMouseDownCountTime=i,o>this._lastMouseDownCount+1&&(o=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(o,this._lastMouseDownPositionEqualCount)},U.CLEAR_MOUSE_DOWN_COUNT_TIME=400,U}(),ht=e("CjF5"),Et=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function Yt(U,o){var t={translationY:o.translationY,translationX:o.translationX};return U&&(t.translationY+=U.translationY,t.translationX+=U.translationX),t}var Nt=function(U){Et(o,U);function o(t,i,m){var E=U.call(this,t,i,m)||this;return E.viewHelper.linesContentDomNode.style.msTouchAction="none",E.viewHelper.linesContentDomNode.style.msContentZooming="none",E._installGestureHandlerTimeout=window.setTimeout(function(){if(E._installGestureHandlerTimeout=-1,window.MSGesture){var te=new MSGesture,Re=new MSGesture;te.target=E.viewHelper.linesContentDomNode,Re.target=E.viewHelper.linesContentDomNode,E.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(Le){var qe=Le.pointerType;if(qe===(Le.MSPOINTER_TYPE_MOUSE||"mouse")){E._lastPointerType="mouse";return}else qe===(Le.MSPOINTER_TYPE_TOUCH||"touch")?(E._lastPointerType="touch",te.addPointer(Le.pointerId)):(E._lastPointerType="pen",Re.addPointer(Le.pointerId))}),E._register($.m(E.viewHelper.linesContentDomNode,"MSGestureChange",function(Le){return E._onGestureChange(Le)},Yt)),E._register($.j(E.viewHelper.linesContentDomNode,"MSGestureTap",function(Le){return E._onCaptureGestureTap(Le)},!0))}},100),E._lastPointerType="mouse",E}return o.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&U.prototype._onMouseDown.call(this,t)},o.prototype._onCaptureGestureTap=function(t){var i=this,m=new L(t,this.viewHelper.viewDomNode),E=this._createMouseTarget(m,!1);E.position&&this.viewController.moveTo(E.position),m.browserEvent.fromElement?(m.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},o.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),U.prototype.dispose.call(this)},o}(et),bt=function(U){Et(o,U);function o(t,i,m){var E=U.call(this,t,i,m)||this;return E.viewHelper.linesContentDomNode.style.touchAction="none",E._installGestureHandlerTimeout=window.setTimeout(function(){if(E._installGestureHandlerTimeout=-1,window.MSGesture){var te=new MSGesture,Re=new MSGesture;te.target=E.viewHelper.linesContentDomNode,Re.target=E.viewHelper.linesContentDomNode,E.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(Le){var qe=Le.pointerType;if(qe==="mouse"){E._lastPointerType="mouse";return}else qe==="touch"?(E._lastPointerType="touch",te.addPointer(Le.pointerId)):(E._lastPointerType="pen",Re.addPointer(Le.pointerId))}),E._register($.m(E.viewHelper.linesContentDomNode,"MSGestureChange",function(Le){return E._onGestureChange(Le)},Yt)),E._register($.j(E.viewHelper.linesContentDomNode,"MSGestureTap",function(Le){return E._onCaptureGestureTap(Le)},!0))}},100),E._lastPointerType="mouse",E}return o.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&U.prototype._onMouseDown.call(this,t)},o.prototype._onCaptureGestureTap=function(t){var i=this,m=new L(t,this.viewHelper.viewDomNode),E=this._createMouseTarget(m,!1);E.position&&this.viewController.moveTo(E.position),m.browserEvent.fromElement?(m.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},o.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),U.prototype.dispose.call(this)},o}(et),$e=function(U){Et(o,U);function o(t,i,m){var E=U.call(this,t,i,m)||this;E._register(f.b.addTarget(E.viewHelper.linesContentDomNode)),E._register($.j(E.viewHelper.linesContentDomNode,f.a.Tap,function(Re){return E.onTap(Re)})),E._register($.j(E.viewHelper.linesContentDomNode,f.a.Change,function(Re){return E.onChange(Re)})),E._register($.j(E.viewHelper.linesContentDomNode,f.a.Contextmenu,function(Re){return E._onContextMenu(new L(Re,E.viewHelper.viewDomNode),!1)})),E._lastPointerType="mouse",E._register($.j(E.viewHelper.linesContentDomNode,"pointerdown",function(Re){var Le=Re.pointerType;if(Le==="mouse"){E._lastPointerType="mouse";return}else Le==="touch"?E._lastPointerType="touch":E._lastPointerType="pen"}));var te=new P(E.viewHelper.viewDomNode);return E._register(te.onPointerMoveThrottled(E.viewHelper.viewDomNode,function(Re){return E._onMouseMove(Re)},it(E.mouseTargetFactory),et.MOUSE_MOVE_MINIMUM_TIME)),E._register(te.onPointerUp(E.viewHelper.viewDomNode,function(Re){return E._onMouseUp(Re)})),E._register(te.onPointerLeave(E.viewHelper.viewDomNode,function(Re){return E._onMouseLeave(Re)})),E._register(te.onPointerDown(E.viewHelper.viewDomNode,function(Re){return E._onMouseDown(Re)})),E}return o.prototype.onTap=function(t){if(!t.initialTarget||!this.viewHelper.linesContentDomNode.contains(t.initialTarget))return;t.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new L(t,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,mouseDownCount:t.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})},o.prototype.onChange=function(t){this._lastPointerType==="touch"&&this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype._onMouseDown=function(t){if(t.target&&this.viewHelper.linesContentDomNode.contains(t.target)&&this._lastPointerType==="touch")return;U.prototype._onMouseDown.call(this,t)},o}(et),Ye=function(U){Et(o,U);function o(t,i,m){var E=U.call(this,t,i,m)||this;return E._register(f.b.addTarget(E.viewHelper.linesContentDomNode)),E._register($.j(E.viewHelper.linesContentDomNode,f.a.Tap,function(te){return E.onTap(te)})),E._register($.j(E.viewHelper.linesContentDomNode,f.a.Change,function(te){return E.onChange(te)})),E._register($.j(E.viewHelper.linesContentDomNode,f.a.Contextmenu,function(te){return E._onContextMenu(new L(te,E.viewHelper.viewDomNode),!1)})),E}return o.prototype.onTap=function(t){t.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new L(t,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.moveTo(i.position)},o.prototype.onChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o}(et),ze=function(U){Et(o,U);function o(t,i,m){var E=U.call(this)||this;return window.navigator.msPointerEnabled?E.handler=E._register(new Nt(t,i,m)):w.c&&ht.a.pointerEvents?E.handler=E._register(new $e(t,i,m)):window.TouchEvent?E.handler=E._register(new Ye(t,i,m)):window.navigator.pointerEnabled||window.PointerEvent?E.handler=E._register(new bt(t,i,m)):E.handler=E._register(new et(t,i,m)),E}return o.prototype.getTargetAtClientPoint=function(t,i){return this.handler.getTargetAtClientPoint(t,i)},o}(z.a),Ke=e("VvMK"),ge=e("N0LK"),G=e("5TxY"),oe=e("Comh"),Y=e("Krc3"),ae=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Fe=function(U){ae(o,U);function o(){return U!==null&&U.apply(this,arguments)||this}return o}(K),dt=e("kYye"),Ot=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Qt=function(U){Ot(o,U);function o(t){var i=U.call(this)||this;return i._context=t,i._readConfig(),i._lastCursorModelPosition=new ne.a(1,1),i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype._readConfig=function(){var t=this._context.configuration.options;this._lineHeight=t.get(49);var i=t.get(50);this._renderLineNumbers=i.renderType,this._renderCustomLineNumbers=i.renderFn,this._renderFinalNewline=t.get(71);var m=t.get(107);this._lineNumbersLeft=m.lineNumbersLeft,this._lineNumbersWidth=m.lineNumbersWidth},o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,U.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){return this._readConfig(),!0},o.prototype.onCursorStateChanged=function(t){var i=t.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(i),this._renderLineNumbers===2||this._renderLineNumbers===3},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getLineRenderLineNumber=function(t){var i=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(t,1));if(i.column!==1)return"";var m=i.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(m);if(this._renderLineNumbers===2){var E=Math.abs(this._lastCursorModelPosition.lineNumber-m);return E===0?'<span class="relative-current-line-number">'+m+"</span>":String(E)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===m||m%10===0?String(m):"":String(m)},o.prototype.prepareRender=function(t){if(this._renderLineNumbers===0){this._renderResult=null;return}for(var i=w.d?this._lineHeight%2===0?" lh-even":" lh-odd":"",m=t.visibleRange.startLineNumber,E=t.visibleRange.endLineNumber,te='<div class="'+o.CLASS_NAME+i+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',Re=this._context.model.getLineCount(),Le=[],qe=m;qe<=E;qe++){var ct=qe-m;if(!this._renderFinalNewline&&(qe===Re&&this._context.model.getLineLength(qe)===0)){Le[ct]="";continue}var wt=this._getLineRenderLineNumber(qe);wt?Le[ct]=te+wt+"</div>":Le[ct]=""}this._renderResult=Le},o.prototype.render=function(t,i){if(!this._renderResult)return"";var m=i-t;return m<0||m>=this._renderResult.length?"":this._renderResult[m]},o.CLASS_NAME="line-numbers",o}(Fe);Object(Z.e)(function(U,o){var t=U.getColor(dt.k);t&&o.addRule(".monaco-editor .line-numbers { color: "+t+"; }");var i=U.getColor(dt.b);i&&o.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var to=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),fo=function(U){to(o,U);function o(t){var i=U.call(this,t)||this,m=i._context.configuration.options,E=m.get(107);return i._canUseLayerHinting=!m.get(22),i._contentLeft=E.contentLeft,i._glyphMarginLeft=E.glyphMarginLeft,i._glyphMarginWidth=E.glyphMarginWidth,i._domNode=Object(y.b)(document.createElement("div")),i._domNode.setClassName(o.OUTER_CLASS_NAME),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._glyphMarginBackgroundDomNode=Object(y.b)(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(o.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return o.prototype.dispose=function(){U.prototype.dispose.call(this)},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._canUseLayerHinting=!i.get(22),this._contentLeft=m.contentLeft,this._glyphMarginLeft=m.glyphMarginLeft,this._glyphMarginWidth=m.glyphMarginWidth,!0},o.prototype.onScrollChanged=function(t){return U.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var i=t.scrollTop-t.bigNumbersDelta;this._domNode.setTop(-i);var m=Math.min(t.scrollHeight,1e6);this._domNode.setHeight(m),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(m)},o.CLASS_NAME="glyph-margin",o.OUTER_CLASS_NAME="margin",o}(V),ho=e("5v8Y"),_o=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Do=function(){function U(o){this.type=1,this._source=o}return U.prototype.hasChanged=function(o){return this._source.hasChanged(o)},U}(),Ro=function(){function U(o){this.type=2,this.contentWidth=o.contentWidth,this.contentHeight=o.contentHeight,this.contentWidthChanged=o.contentWidthChanged,this.contentHeightChanged=o.contentHeightChanged}return U}(),jo=function(){function U(o,t){this.type=3,this.selections=o,this.modelSelections=t}return U}(),Eo=function(){function U(){this.type=4}return U}(),Wo=function(){function U(){this.type=5}return U}(),Ho=function(){function U(o){this.type=6,this.isFocused=o}return U}(),Fo=function(){function U(){this.type=7}return U}(),Io=function(){function U(){this.type=8}return U}(),tn=function(){function U(o,t){this.type=9,this.fromLineNumber=o,this.toLineNumber=t}return U}(),un=function(){function U(o,t){this.type=10,this.fromLineNumber=o,this.toLineNumber=t}return U}(),Vo=function(){function U(o,t){this.type=11,this.fromLineNumber=o,this.toLineNumber=t}return U}(),Cn=function(){function U(o,t,i,m,E){this.type=12,this.source=o,this.range=t,this.verticalType=i,this.revealHorizontal=m,this.scrollType=E}return U}(),pn=function(){function U(o){this.type=13,this.scrollWidth=o.scrollWidth,this.scrollLeft=o.scrollLeft,this.scrollHeight=o.scrollHeight,this.scrollTop=o.scrollTop,this.scrollWidthChanged=o.scrollWidthChanged,this.scrollLeftChanged=o.scrollLeftChanged,this.scrollHeightChanged=o.scrollHeightChanged,this.scrollTopChanged=o.scrollTopChanged}return U}(),rn=function(){function U(){this.type=14}return U}(),on=function(){function U(o){this.type=15,this.ranges=o}return U}(),dn=function(){function U(){this.type=16}return U}(),Uo=function(){function U(){this.type=17}return U}(),Bo=function(U){_o(o,U);function o(){var t=U.call(this)||this;return t._listeners=[],t._collector=null,t._collectorCnt=0,t}return o.prototype.dispose=function(){this._listeners=[],U.prototype.dispose.call(this)},o.prototype._beginEmit=function(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new St),this._collector},o.prototype._endEmit=function(){if(this._collectorCnt--,this._collectorCnt===0){var t=this._collector.finalize();this._collector=null,t.length>0&&this._emit(t)}},o.prototype._emit=function(t){for(var i=this._listeners.slice(0),m=0,E=i.length;m<E;m++)st(i[m],t)},o.prototype.addEventListener=function(t){var i=this;return this._listeners.push(t),Object(z.h)(function(){for(var m=i._listeners,E=0,te=m.length;E<te;E++)if(m[E]===t){m.splice(E,1);break}})},o}(z.a),St=function(){function U(){this._eventsLen=0,this._events=[],this._eventsLen=0}return U.prototype.emit=function(o){this._events[this._eventsLen++]=o},U.prototype.finalize=function(){var o=this._events;return this._events=[],o},U}();function st(U,o){try{U(o)}catch(t){R.e(t)}}var rt=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Mt=function(){function U(o,t,i){this.top=o,this.left=t,this.width=i}return U.prototype.setWidth=function(o){return new U(this.top,this.left,o)},U}(),be=v.f||v.h,M=function(U){rt(o,U);function o(t,i,m){var E=U.call(this,t)||this;E._primaryCursorPosition=new ne.a(1,1),E._primaryCursorVisibleRange=null,E._viewController=i,E._viewHelper=m,E._scrollLeft=0,E._scrollTop=0;var te=E._context.configuration.options,Re=te.get(107);E._setAccessibilityOptions(te),E._contentLeft=Re.contentLeft,E._contentWidth=Re.contentWidth,E._contentHeight=Re.height,E._fontInfo=te.get(34),E._lineHeight=te.get(49),E._emptySelectionClipboard=te.get(25),E._copyWithSyntaxHighlighting=te.get(15),E._visibleTextArea=null,E._selections=[new gt.a(1,1,1,1)],E._modelSelections=[new gt.a(1,1,1,1)],E._lastRenderPosition=null,E.textArea=Object(y.b)(document.createElement("textarea")),de.write(E.textArea,6),E.textArea.setClassName("inputarea"),E.textArea.setAttribute("wrap","off"),E.textArea.setAttribute("autocorrect","off"),E.textArea.setAttribute("autocapitalize","off"),E.textArea.setAttribute("autocomplete","off"),E.textArea.setAttribute("spellcheck","false"),E.textArea.setAttribute("aria-label",E._getAriaLabel(te)),E.textArea.setAttribute("role","textbox"),E.textArea.setAttribute("aria-multiline","true"),E.textArea.setAttribute("aria-haspopup","false"),E.textArea.setAttribute("aria-autocomplete","both"),w.g&&te.get(68)&&E.textArea.setAttribute("readonly","true"),E.textAreaCover=Object(y.b)(document.createElement("div")),E.textAreaCover.setPosition("absolute");var Le={getLineCount:function(){return E._context.model.getLineCount()},getLineMaxColumn:function(ct){return E._context.model.getLineMaxColumn(ct)},getValueInRange:function(ct,wt){return E._context.model.getValueInRange(ct,wt)}},qe={getDataToCopy:function(ct){var wt=E._context.model.getPlainTextToCopy(E._modelSelections,E._emptySelectionClipboard,w.h),tt=E._context.model.getEOL(),kt=E._emptySelectionClipboard&&E._modelSelections.length===1&&E._modelSelections[0].isEmpty(),Bt=Array.isArray(wt)?wt:null,Ht=Array.isArray(wt)?wt.join(tt):wt,qt=void 0,$t=null;if(ct&&(G.a.forceCopyWithSyntaxHighlighting||E._copyWithSyntaxHighlighting&&Ht.length<65536)){var io=E._context.model.getRichTextToCopy(E._modelSelections,E._emptySelectionClipboard);io&&(qt=io.html,$t=io.mode)}return{isFromEmptySelection:kt,multicursorText:Bt,text:Ht,html:qt,mode:$t}},getScreenReaderContent:function(ct){if(v.j)return oe.b.EMPTY;if(E._accessibilitySupport===1){if(w.e){var wt=E._selections[0];if(wt.isEmpty()){var tt=wt.getStartPosition(),kt=E._getWordBeforePosition(tt);if(kt.length===0&&(kt=E._getCharacterBeforePosition(tt)),kt.length>0)return new oe.b(kt,kt.length,kt.length,tt,tt)}}return oe.b.EMPTY}return oe.a.fromEditorSelection(ct,Le,E._selections[0],E._accessibilityPageSize,E._accessibilitySupport===0)},deduceModelPosition:function(ct,wt,tt){return E._context.model.deduceModelPositionRelativeToViewPosition(ct,wt,tt)}};return E._textAreaInput=E._register(new G.b(qe,E.textArea)),E._register(E._textAreaInput.onKeyDown(function(ct){E._viewController.emitKeyDown(ct)})),E._register(E._textAreaInput.onKeyUp(function(ct){E._viewController.emitKeyUp(ct)})),E._register(E._textAreaInput.onPaste(function(ct){var wt=!1,tt=null,kt=null;ct.metadata&&(wt=E._emptySelectionClipboard&&!!ct.metadata.isFromEmptySelection,tt=typeof ct.metadata.multicursorText!="undefined"?ct.metadata.multicursorText:null,kt=ct.metadata.mode),E._viewController.paste("keyboard",ct.text,wt,tt,kt)})),E._register(E._textAreaInput.onCut(function(){E._viewController.cut("keyboard")})),E._register(E._textAreaInput.onType(function(ct){ct.replaceCharCnt?E._viewController.replacePreviousChar("keyboard",ct.text,ct.replaceCharCnt):E._viewController.type("keyboard",ct.text)})),E._register(E._textAreaInput.onSelectionChangeRequest(function(ct){E._viewController.setSelection("keyboard",ct)})),E._register(E._textAreaInput.onCompositionStart(function(){var ct=E._selections[0].startLineNumber,wt=E._selections[0].startColumn;E._context.privateViewEventBus.emit(new Cn("keyboard",new fe.a(ct,wt,ct,wt),0,!0,1));var tt=E._viewHelper.visibleRangeForPositionRelativeToEditor(ct,wt);tt&&(E._visibleTextArea=new Mt(E._context.viewLayout.getVerticalOffsetForLineNumber(ct),tt.left,be?0:1),E._render()),E.textArea.setClassName("inputarea ime-input"),E._viewController.compositionStart("keyboard")})),E._register(E._textAreaInput.onCompositionUpdate(function(ct){v.f?E._visibleTextArea=E._visibleTextArea.setWidth(0):E._visibleTextArea=E._visibleTextArea.setWidth(j(ct.data,E._fontInfo)),E._render()})),E._register(E._textAreaInput.onCompositionEnd(function(){E._visibleTextArea=null,E._render(),E.textArea.setClassName("inputarea"),E._viewController.compositionEnd("keyboard")})),E._register(E._textAreaInput.onFocus(function(){E._context.privateViewEventBus.emit(new Ho(!0))})),E._register(E._textAreaInput.onBlur(function(){E._context.privateViewEventBus.emit(new Ho(!1))})),E}return o.prototype.dispose=function(){U.prototype.dispose.call(this)},o.prototype._getWordBeforePosition=function(t){for(var i=this._context.model.getLineContent(t.lineNumber),m=Object(ho.a)(this._context.configuration.options.get(96)),E=t.column,te=0;E>1;){var Re=i.charCodeAt(E-2),Le=m.get(Re);if(Le!==0||te>50)return i.substring(E-1,t.column-1);te++,E--}return i.substring(0,t.column-1)},o.prototype._getCharacterBeforePosition=function(t){if(t.column>1){var i=this._context.model.getLineContent(t.lineNumber),m=i.charAt(t.column-2);if(!ge.z(m.charCodeAt(0)))return m}return""},o.prototype._getAriaLabel=function(t){var i=t.get(2);return i===1?le.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):t.get(4)},o.prototype._setAccessibilityOptions=function(t){this._accessibilitySupport=t.get(2);var i=t.get(3);this._accessibilitySupport===2&&i===ye.e.accessibilityPageSize.defaultValue?this._accessibilityPageSize=160:this._accessibilityPageSize=i},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._setAccessibilityOptions(i),this._contentLeft=m.contentLeft,this._contentWidth=m.contentWidth,this._contentHeight=m.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)),w.g&&t.hasChanged(68)&&(i.get(68)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),t.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),this._modelSelections=t.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return this._scrollLeft=t.scrollLeft,this._scrollTop=t.scrollTop,!0},o.prototype.onZonesChanged=function(t){return!0},o.prototype.isFocused=function(){return this._textAreaInput.isFocused()},o.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},o.prototype.getLastRenderData=function(){return this._lastRenderPosition},o.prototype.setAriaOptions=function(t){t.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",t.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant"))},o.prototype.prepareRender=function(t){this._primaryCursorPosition=new ne.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=t.visibleRangeForPosition(this._primaryCursorPosition)},o.prototype.render=function(t){this._textAreaInput.writeScreenReaderContent("render"),this._render()},o.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 t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(t<this._contentLeft||t>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(w.e){this._renderInsideEditor(this._primaryCursorPosition,i,t,be?0:1,this._lineHeight);return}this._renderInsideEditor(this._primaryCursorPosition,i,t,be?0:1,be?0:1)},o.prototype._renderInsideEditor=function(t,i,m,E,te){this._lastRenderPosition=t;var Re=this.textArea,Le=this.textAreaCover;W.a.applyFontInfo(Re,this._fontInfo),Re.setTop(i),Re.setLeft(m),Re.setWidth(E),Re.setHeight(te),Le.setTop(0),Le.setLeft(0),Le.setWidth(0),Le.setHeight(0)},o.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var t=this.textArea,i=this.textAreaCover;if(W.a.applyFontInfo(t,this._fontInfo),t.setTop(0),t.setLeft(0),i.setTop(0),i.setLeft(0),be){t.setWidth(0),t.setHeight(0),i.setWidth(0),i.setHeight(0);return}t.setWidth(1),t.setHeight(1),i.setWidth(1),i.setHeight(1);var m=this._context.configuration.options;m.get(40)?i.setClassName("monaco-editor-background textAreaCover "+fo.OUTER_CLASS_NAME):m.get(50).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+Qt.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")},o}(V);function j(U,o){var t=document.createElement("canvas"),i=t.getContext("2d");i.font=X(o);var m=i.measureText(U);return v.h?m.width+2:m.width}function X(U){return Te("normal",U.fontWeight,U.fontSize,U.lineHeight,U.fontFamily)}function Te(U,o,t,i,m){return U+" normal "+o+" "+t+"px / "+i+"px "+m}var Ae=e("1YUG"),Ne=function(){function U(o,t,i,m){this.configuration=o,this.viewModel=t,this.outgoingEvents=i,this.commandDelegate=m}return U.prototype._execMouseCommand=function(o,t){t.source="mouse",this.commandDelegate.executeEditorCommand(o,t)},U.prototype.paste=function(o,t,i,m,E){this.commandDelegate.paste(o,t,i,m,E)},U.prototype.type=function(o,t){this.commandDelegate.type(o,t)},U.prototype.replacePreviousChar=function(o,t,i){this.commandDelegate.replacePreviousChar(o,t,i)},U.prototype.compositionStart=function(o){this.commandDelegate.compositionStart(o)},U.prototype.compositionEnd=function(o){this.commandDelegate.compositionEnd(o)},U.prototype.cut=function(o){this.commandDelegate.cut(o)},U.prototype.setSelection=function(o,t){this.commandDelegate.executeEditorCommand(Ae.CoreNavigationCommands.SetSelection,{source:o,selection:t})},U.prototype._validateViewColumn=function(o){var t=this.viewModel.getLineMinColumn(o.lineNumber);return o.column<t?new ne.a(o.lineNumber,t):o},U.prototype._hasMulticursorModifier=function(o){switch(this.configuration.options.get(59)){case"altKey":return o.altKey;case"ctrlKey":return o.ctrlKey;case"metaKey":return o.metaKey}return!1},U.prototype._hasNonMulticursorModifier=function(o){switch(this.configuration.options.get(59)){case"altKey":return o.ctrlKey||o.metaKey;case"ctrlKey":return o.altKey||o.metaKey;case"metaKey":return o.ctrlKey||o.altKey}return!1},U.prototype.dispatchMouse=function(o){var t=w.d&&this.configuration.options.get(81);o.middleButton&&!t?this._columnSelect(o.position,o.mouseColumn,o.inSelectionMode):o.startedOnLineNumbers?this._hasMulticursorModifier(o)?o.inSelectionMode?this._lastCursorLineSelect(o.position):this._createCursor(o.position,!0):o.inSelectionMode?this._lineSelectDrag(o.position):this._lineSelect(o.position):o.mouseDownCount>=4?this._selectAll():o.mouseDownCount===3?this._hasMulticursorModifier(o)?o.inSelectionMode?this._lastCursorLineSelectDrag(o.position):this._lastCursorLineSelect(o.position):o.inSelectionMode?this._lineSelectDrag(o.position):this._lineSelect(o.position):o.mouseDownCount===2?this._hasMulticursorModifier(o)?this._lastCursorWordSelect(o.position):o.inSelectionMode?this._wordSelectDrag(o.position):this._wordSelect(o.position):this._hasMulticursorModifier(o)?this._hasNonMulticursorModifier(o)||(o.shiftKey?this._columnSelect(o.position,o.mouseColumn,!0):o.inSelectionMode?this._lastCursorMoveToSelect(o.position):this._createCursor(o.position,!1)):o.inSelectionMode?o.altKey?this._columnSelect(o.position,o.mouseColumn,!0):this._moveToSelect(o.position):this.moveTo(o.position)},U.prototype._usualArgs=function(o){return o=this._validateViewColumn(o),{position:this._convertViewToModelPosition(o),viewPosition:o}},U.prototype.moveTo=function(o){this._execMouseCommand(Ae.CoreNavigationCommands.MoveTo,this._usualArgs(o))},U.prototype._moveToSelect=function(o){this._execMouseCommand(Ae.CoreNavigationCommands.MoveToSelect,this._usualArgs(o))},U.prototype._columnSelect=function(o,t,i){o=this._validateViewColumn(o),this._execMouseCommand(Ae.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(o),viewPosition:o,mouseColumn:t,doColumnSelect:i})},U.prototype._createCursor=function(o,t){o=this._validateViewColumn(o),this._execMouseCommand(Ae.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(o),viewPosition:o,wholeLine:t})},U.prototype._lastCursorMoveToSelect=function(o){this._execMouseCommand(Ae.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(o))},U.prototype._wordSelect=function(o){this._execMouseCommand(Ae.CoreNavigationCommands.WordSelect,this._usualArgs(o))},U.prototype._wordSelectDrag=function(o){this._execMouseCommand(Ae.CoreNavigationCommands.WordSelectDrag,this._usualArgs(o))},U.prototype._lastCursorWordSelect=function(o){this._execMouseCommand(Ae.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(o))},U.prototype._lineSelect=function(o){this._execMouseCommand(Ae.CoreNavigationCommands.LineSelect,this._usualArgs(o))},U.prototype._lineSelectDrag=function(o){this._execMouseCommand(Ae.CoreNavigationCommands.LineSelectDrag,this._usualArgs(o))},U.prototype._lastCursorLineSelect=function(o){this._execMouseCommand(Ae.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(o))},U.prototype._lastCursorLineSelectDrag=function(o){this._execMouseCommand(Ae.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(o))},U.prototype._selectAll=function(){this._execMouseCommand(Ae.CoreNavigationCommands.SelectAll,{})},U.prototype._convertViewToModelPosition=function(o){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(o)},U.prototype.emitKeyDown=function(o){this.outgoingEvents.emitKeyDown(o)},U.prototype.emitKeyUp=function(o){this.outgoingEvents.emitKeyUp(o)},U.prototype.emitContextMenu=function(o){this.outgoingEvents.emitContextMenu(o)},U.prototype.emitMouseMove=function(o){this.outgoingEvents.emitMouseMove(o)},U.prototype.emitMouseLeave=function(o){this.outgoingEvents.emitMouseLeave(o)},U.prototype.emitMouseUp=function(o){this.outgoingEvents.emitMouseUp(o)},U.prototype.emitMouseDown=function(o){this.outgoingEvents.emitMouseDown(o)},U.prototype.emitMouseDrag=function(o){this.outgoingEvents.emitMouseDrag(o)},U.prototype.emitMouseDrop=function(o){this.outgoingEvents.emitMouseDrop(o)},U.prototype.emitMouseWheel=function(o){this.outgoingEvents.emitMouseWheel(o)},U}(),lt=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ft=function(U){lt(o,U);function o(t){var i=U.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=t,i}return o.prototype.emitContentSizeChange=function(t){this.onDidContentSizeChange&&this.onDidContentSizeChange(t)},o.prototype.emitScrollChanged=function(t){this.onDidScroll&&this.onDidScroll(t)},o.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},o.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},o.prototype.emitKeyDown=function(t){this.onKeyDown&&this.onKeyDown(t)},o.prototype.emitKeyUp=function(t){this.onKeyUp&&this.onKeyUp(t)},o.prototype.emitContextMenu=function(t){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseMove=function(t){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseLeave=function(t){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseUp=function(t){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDown=function(t){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDrag=function(t){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDrop=function(t){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseWheel=function(t){this.onMouseWheel&&this.onMouseWheel(t)},o.prototype._convertViewToModelMouseEvent=function(t){return t.target?{event:t.event,target:this._convertViewToModelMouseTarget(t.target)}:t},o.prototype._convertViewToModelMouseTarget=function(t){return o.convertViewToModelMouseTarget(t,this._viewModel.coordinatesConverter)},o.convertViewToModelMouseTarget=function(t,i){return new At(t.element,t.type,t.mouseColumn,t.position?i.convertViewPositionToModelPosition(t.position):null,t.range?i.convertViewRangeToModelRange(t.range):null,t.detail)},o}(z.a),At=function(){function U(o,t,i,m,E,te){this.element=o,this.type=t,this.mouseColumn=i,this.position=m,this.range=E,this.detail=te}return U.prototype.toString=function(){return Je.toString(this)},U}(),Ft=e("erNZ"),Ut=function(){function U(o){this._createLine=o,this._set(1,[])}return U.prototype.flush=function(){this._set(1,[])},U.prototype._set=function(o,t){this._lines=t,this._rendLineNumberStart=o},U.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},U.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},U.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},U.prototype.getCount=function(){return this._lines.length},U.prototype.getLine=function(o){var t=o-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},U.prototype.onLinesDeleted=function(o,t){if(this.getCount()===0)return null;var i=this.getStartLineNumber(),m=this.getEndLineNumber();if(t<i){var E=t-o+1;return this._rendLineNumberStart-=E,null}if(o>m)return null;for(var te=0,Re=0,Le=i;Le<=m;Le++){var qe=Le-this._rendLineNumberStart;o<=Le&&Le<=t&&(Re===0?(te=qe,Re=1):Re++)}if(o<i){var ct=0;t<i?ct=t-o+1:ct=i-o,this._rendLineNumberStart-=ct}var wt=this._lines.splice(te,Re);return wt},U.prototype.onLinesChanged=function(o,t){if(this.getCount()===0)return!1;for(var i=this.getStartLineNumber(),m=this.getEndLineNumber(),E=!1,te=o;te<=t;te++)te>=i&&te<=m&&(this._lines[te-this._rendLineNumberStart].onContentChanged(),E=!0);return E},U.prototype.onLinesInserted=function(o,t){if(this.getCount()===0)return null;var i=t-o+1,m=this.getStartLineNumber(),E=this.getEndLineNumber();if(o<=m)return this._rendLineNumberStart+=i,null;if(o>E)return null;if(i+o>E){var te=this._lines.splice(o-this._rendLineNumberStart,E-o+1);return te}for(var Re=[],Le=0;Le<i;Le++)Re[Le]=this._createLine();var qe=o-this._rendLineNumberStart,ct=this._lines.slice(0,qe),wt=this._lines.slice(qe,this._lines.length-i),tt=this._lines.slice(this._lines.length-i,this._lines.length);return this._lines=ct.concat(Re).concat(wt),tt},U.prototype.onTokensChanged=function(o){if(this.getCount()===0)return!1;for(var t=this.getStartLineNumber(),i=this.getEndLineNumber(),m=!1,E=0,te=o.length;E<te;E++){var Re=o[E];if(Re.toLineNumber<t||Re.fromLineNumber>i)continue;for(var Le=Math.max(t,Re.fromLineNumber),qe=Math.min(i,Re.toLineNumber),ct=Le;ct<=qe;ct++){var wt=ct-this._rendLineNumberStart;this._lines[wt].onTokensChanged(),m=!0}}return m},U}(),Vt=function(){function U(o){var t=this;this._host=o,this.domNode=this._createDomNode(),this._linesCollection=new Ut(function(){return t._host.createVisibleLine()})}return U.prototype._createDomNode=function(){var o=Object(y.b)(document.createElement("div"));return o.setClassName("view-layer"),o.setPosition("absolute"),o.domNode.setAttribute("role","presentation"),o.domNode.setAttribute("aria-hidden","true"),o},U.prototype.onConfigurationChanged=function(o){return!!o.hasChanged(107)},U.prototype.onFlushed=function(o){return this._linesCollection.flush(),!0},U.prototype.onLinesChanged=function(o){return this._linesCollection.onLinesChanged(o.fromLineNumber,o.toLineNumber)},U.prototype.onLinesDeleted=function(o){var t=this._linesCollection.onLinesDeleted(o.fromLineNumber,o.toLineNumber);if(t)for(var i=0,m=t.length;i<m;i++){var E=t[i].getDomNode();E&&this.domNode.domNode.removeChild(E)}return!0},U.prototype.onLinesInserted=function(o){var t=this._linesCollection.onLinesInserted(o.fromLineNumber,o.toLineNumber);if(t)for(var i=0,m=t.length;i<m;i++){var E=t[i].getDomNode();E&&this.domNode.domNode.removeChild(E)}return!0},U.prototype.onScrollChanged=function(o){return o.scrollTopChanged},U.prototype.onTokensChanged=function(o){return this._linesCollection.onTokensChanged(o.ranges)},U.prototype.onZonesChanged=function(o){return!0},U.prototype.getStartLineNumber=function(){return this._linesCollection.getStartLineNumber()},U.prototype.getEndLineNumber=function(){return this._linesCollection.getEndLineNumber()},U.prototype.getVisibleLine=function(o){return this._linesCollection.getLine(o)},U.prototype.renderLines=function(o){var t=this._linesCollection._get(),i=new oo(this.domNode.domNode,this._host,o),m={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},E=i.render(m,o.startLineNumber,o.endLineNumber,o.relativeVerticalOffset);this._linesCollection._set(E.rendLineNumberStart,E.lines)},U}(),oo=function(){function U(o,t,i){this.domNode=o,this.host=t,this.viewportData=i}return U.prototype.render=function(o,t,i,m){var E={rendLineNumberStart:o.rendLineNumberStart,lines:o.lines.slice(0),linesLength:o.linesLength};if(E.rendLineNumberStart+E.linesLength-1<t||i<E.rendLineNumberStart){E.rendLineNumberStart=t,E.linesLength=i-t+1,E.lines=[];for(var te=t;te<=i;te++)E.lines[te-t]=this.host.createVisibleLine();return this._finishRendering(E,!0,m),E}if(this._renderUntouchedLines(E,Math.max(t-E.rendLineNumberStart,0),Math.min(i-E.rendLineNumberStart,E.linesLength-1),m,t),E.rendLineNumberStart>t){var Re=t,Le=Math.min(i,E.rendLineNumberStart-1);Re<=Le&&(this._insertLinesBefore(E,Re,Le,m,t),E.linesLength+=Le-Re+1)}else if(E.rendLineNumberStart<t){var qe=Math.min(E.linesLength,t-E.rendLineNumberStart);qe>0&&(this._removeLinesBefore(E,qe),E.linesLength-=qe)}if(E.rendLineNumberStart=t,E.rendLineNumberStart+E.linesLength-1<i){var Re=E.rendLineNumberStart+E.linesLength,Le=i;Re<=Le&&(this._insertLinesAfter(E,Re,Le,m,t),E.linesLength+=Le-Re+1)}else if(E.rendLineNumberStart+E.linesLength-1>i){var Re=Math.max(0,i-E.rendLineNumberStart+1),Le=E.linesLength-1,qe=Le-Re+1;qe>0&&(this._removeLinesAfter(E,qe),E.linesLength-=qe)}return this._finishRendering(E,!1,m),E},U.prototype._renderUntouchedLines=function(o,t,i,m,E){for(var te=o.rendLineNumberStart,Re=o.lines,Le=t;Le<=i;Le++){var qe=te+Le;Re[Le].layoutLine(qe,m[qe-E])}},U.prototype._insertLinesBefore=function(o,t,i,m,E){for(var te=[],Re=0,Le=t;Le<=i;Le++)te[Re++]=this.host.createVisibleLine();o.lines=te.concat(o.lines)},U.prototype._removeLinesBefore=function(o,t){for(var i=0;i<t;i++){var m=o.lines[i].getDomNode();m&&this.domNode.removeChild(m)}o.lines.splice(0,t)},U.prototype._insertLinesAfter=function(o,t,i,m,E){for(var te=[],Re=0,Le=t;Le<=i;Le++)te[Re++]=this.host.createVisibleLine();o.lines=o.lines.concat(te)},U.prototype._removeLinesAfter=function(o,t){for(var i=o.linesLength-t,m=0;m<t;m++){var E=o.lines[i+m].getDomNode();E&&this.domNode.removeChild(E)}o.lines.splice(i,t)},U.prototype._finishRenderingNewLines=function(o,t,i,m){var E=this.domNode.lastChild;t||!E?this.domNode.innerHTML=i:E.insertAdjacentHTML("afterend",i);for(var te=this.domNode.lastChild,Re=o.linesLength-1;Re>=0;Re--){var Le=o.lines[Re];m[Re]&&(Le.setDomNode(te),te=te.previousSibling)}},U.prototype._finishRenderingInvalidLines=function(o,t,i){var m=document.createElement("div");m.innerHTML=t;for(var E=0;E<o.linesLength;E++){var te=o.lines[E];if(i[E]){var Re=m.firstChild,Le=te.getDomNode();Le.parentNode.replaceChild(Re,Le),te.setDomNode(Re)}}},U.prototype._finishRendering=function(o,t,i){var m=U._sb,E=o.linesLength,te=o.lines,Re=o.rendLineNumberStart,Le=[];{m.reset();for(var qe=!1,ct=0;ct<E;ct++){var wt=te[ct];Le[ct]=!1;var tt=wt.getDomNode();if(tt)continue;var kt=wt.renderLine(ct+Re,i[ct],this.viewportData,m);if(!kt)continue;Le[ct]=!0,qe=!0}qe&&this._finishRenderingNewLines(o,t,m.build(),Le)}{m.reset();for(var Bt=!1,Ht=[],ct=0;ct<E;ct++){var wt=te[ct];if(Ht[ct]=!1,Le[ct])continue;var kt=wt.renderLine(ct+Re,i[ct],this.viewportData,m);if(!kt)continue;Ht[ct]=!0,Bt=!0}Bt&&this._finishRenderingInvalidLines(o,m.build(),Ht)}},U._sb=Object(Ft.a)(1e5),U}(),Zt=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),mo=function(U){Zt(o,U);function o(t){var i=U.call(this,t)||this;return i._visibleLines=new Vt(i),i.domNode=i._visibleLines.domNode,i._dynamicOverlays=[],i._isFocused=!1,i.domNode.setClassName("view-overlays"),i}return o.prototype.shouldRender=function(){if(U.prototype.shouldRender.call(this))return!0;for(var t=0,i=this._dynamicOverlays.length;t<i;t++){var m=this._dynamicOverlays[t];if(m.shouldRender())return!0}return!1},o.prototype.dispose=function(){U.prototype.dispose.call(this);for(var t=0,i=this._dynamicOverlays.length;t<i;t++){var m=this._dynamicOverlays[t];m.dispose()}this._dynamicOverlays=[]},o.prototype.getDomNode=function(){return this.domNode},o.prototype.createVisibleLine=function(){return new mt(this._context.configuration,this._dynamicOverlays)},o.prototype.addDynamicOverlay=function(t){this._dynamicOverlays.push(t)},o.prototype.onConfigurationChanged=function(t){this._visibleLines.onConfigurationChanged(t);for(var i=this._visibleLines.getStartLineNumber(),m=this._visibleLines.getEndLineNumber(),E=i;E<=m;E++){var te=this._visibleLines.getVisibleLine(E);te.onConfigurationChanged(t)}return!0},o.prototype.onFlushed=function(t){return this._visibleLines.onFlushed(t)},o.prototype.onFocusChanged=function(t){return this._isFocused=t.isFocused,!0},o.prototype.onLinesChanged=function(t){return this._visibleLines.onLinesChanged(t)},o.prototype.onLinesDeleted=function(t){return this._visibleLines.onLinesDeleted(t)},o.prototype.onLinesInserted=function(t){return this._visibleLines.onLinesInserted(t)},o.prototype.onScrollChanged=function(t){return this._visibleLines.onScrollChanged(t)||!0},o.prototype.onTokensChanged=function(t){return this._visibleLines.onTokensChanged(t)},o.prototype.onZonesChanged=function(t){return this._visibleLines.onZonesChanged(t)},o.prototype.prepareRender=function(t){for(var i=this._dynamicOverlays.filter(function(Re){return Re.shouldRender()}),m=0,E=i.length;m<E;m++){var te=i[m];te.prepareRender(t),te.onDidRender()}},o.prototype.render=function(t){this._viewOverlaysRender(t),this.domNode.toggleClassName("focused",this._isFocused)},o.prototype._viewOverlaysRender=function(t){this._visibleLines.renderLines(t.viewportData)},o}(V),mt=function(){function U(o,t){this._configuration=o,this._lineHeight=this._configuration.options.get(49),this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}return U.prototype.getDomNode=function(){return this._domNode?this._domNode.domNode:null},U.prototype.setDomNode=function(o){this._domNode=Object(y.b)(o)},U.prototype.onContentChanged=function(){},U.prototype.onTokensChanged=function(){},U.prototype.onConfigurationChanged=function(o){this._lineHeight=this._configuration.options.get(49)},U.prototype.renderLine=function(o,t,i,m){for(var E="",te=0,Re=this._dynamicOverlays.length;te<Re;te++){var Le=this._dynamicOverlays[te];E+=Le.render(i.startLineNumber,o)}return this._renderedContent===E?!1:(this._renderedContent=E,m.appendASCIIString('<div style="position:absolute;top:'),m.appendASCIIString(String(t)),m.appendASCIIString("px;width:100%;height:"),m.appendASCIIString(String(this._lineHeight)),m.appendASCIIString('px;">'),m.appendASCIIString(E),m.appendASCIIString("</div>"),!0)},U.prototype.layoutLine=function(o,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},U}(),He=function(U){Zt(o,U);function o(t){var i=U.call(this,t)||this,m=i._context.configuration.options,E=m.get(107);return i._contentWidth=E.contentWidth,i.domNode.setHeight(0),i}return o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._contentWidth=m.contentWidth,U.prototype.onConfigurationChanged.call(this,t)||!0},o.prototype.onScrollChanged=function(t){return U.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},o.prototype._viewOverlaysRender=function(t){U.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},o}(mo),De=function(U){Zt(o,U);function o(t){var i=U.call(this,t)||this,m=i._context.configuration.options,E=m.get(107);return i._contentLeft=E.contentLeft,i.domNode.setClassName("margin-view-overlays"),i.domNode.setWidth(1),W.a.applyFontInfo(i.domNode,m.get(34)),i}return o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;W.a.applyFontInfo(this.domNode,i.get(34));var m=i.get(107);return this._contentLeft=m.contentLeft,U.prototype.onConfigurationChanged.call(this,t)||!0},o.prototype.onScrollChanged=function(t){return U.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},o.prototype._viewOverlaysRender=function(t){U.prototype._viewOverlaysRender.call(this,t);var i=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(i),this.domNode.setWidth(this._contentLeft)},o}(mo),ot=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),xt=function(){function U(o,t){this.top=o,this.left=t}return U}(),pe=function(U){ot(o,U);function o(t,i){var m=U.call(this,t)||this;return m._viewDomNode=i,m._widgets={},m.domNode=Object(y.b)(document.createElement("div")),de.write(m.domNode,1),m.domNode.setClassName("contentWidgets"),m.domNode.setPosition("absolute"),m.domNode.setTop(0),m.overflowingContentWidgetsDomNode=Object(y.b)(document.createElement("div")),de.write(m.overflowingContentWidgetsDomNode,2),m.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),m}return o.prototype.dispose=function(){U.prototype.dispose.call(this),this._widgets={}},o.prototype.onConfigurationChanged=function(t){for(var i=Object.keys(this._widgets),m=0,E=i;m<E.length;m++){var te=E[m];this._widgets[te].onConfigurationChanged(t)}return!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLineMappingChanged=function(t){for(var i=Object.keys(this._widgets),m=0,E=i;m<E.length;m++){var te=E[m];this._widgets[te].onLineMappingChanged(t)}return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return!0},o.prototype.onZonesChanged=function(t){return!0},o.prototype.addWidget=function(t){var i=new O(this._context,this._viewDomNode,t);this._widgets[i.id]=i,i.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(i.domNode):this.domNode.appendChild(i.domNode),this.setShouldRender()},o.prototype.setWidgetPosition=function(t,i,m){var E=this._widgets[t.getId()];E.setPosition(i,m),this.setShouldRender()},o.prototype.removeWidget=function(t){var i=t.getId();if(this._widgets.hasOwnProperty(i)){var m=this._widgets[i];delete this._widgets[i];var E=m.domNode.domNode;E.parentNode.removeChild(E),E.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}},o.prototype.shouldSuppressMouseDownOnWidget=function(t){return this._widgets.hasOwnProperty(t)?this._widgets[t].suppressMouseDown:!1},o.prototype.onBeforeRender=function(t){for(var i=Object.keys(this._widgets),m=0,E=i;m<E.length;m++){var te=E[m];this._widgets[te].onBeforeRender(t)}},o.prototype.prepareRender=function(t){for(var i=Object.keys(this._widgets),m=0,E=i;m<E.length;m++){var te=E[m];this._widgets[te].prepareRender(t)}},o.prototype.render=function(t){for(var i=Object.keys(this._widgets),m=0,E=i;m<E.length;m++){var te=E[m];this._widgets[te].render(t)}},o}(V),O=function(){function U(o,t,i){this._context=o,this._viewDomNode=t,this._actual=i,this.domNode=Object(y.b)(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;var m=this._context.configuration.options,E=m.get(107);this._fixedOverflowWidgets=m.get(29),this._contentWidth=E.contentWidth,this._contentLeft=E.contentLeft,this._lineHeight=m.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 U.prototype.onConfigurationChanged=function(o){var t=this._context.configuration.options;if(this._lineHeight=t.get(49),o.hasChanged(107)){var i=t.get(107);this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._maxWidth=this._getMaxWidth()}},U.prototype.onLineMappingChanged=function(o){this._setPosition(this._range)},U.prototype._setPosition=function(o){if(this._range=o,this._viewRange=null,this._range){var t=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(t.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(t.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(t))}},U.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth},U.prototype.setPosition=function(o,t){this._setPosition(o),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1},U.prototype._layoutBoxInViewport=function(o,t,i,m,E){var te=o.top,Re=te,Le=t.top+this._lineHeight,qe=E.viewportHeight-Le,ct=te-m,wt=Re>=m,tt=Le,kt=qe>=m,Bt=o.left,Ht=t.left;return Bt+i>E.scrollLeft+E.viewportWidth&&(Bt=E.scrollLeft+E.viewportWidth-i),Ht+i>E.scrollLeft+E.viewportWidth&&(Ht=E.scrollLeft+E.viewportWidth-i),Bt<E.scrollLeft&&(Bt=E.scrollLeft),Ht<E.scrollLeft&&(Ht=E.scrollLeft),{fitsAbove:wt,aboveTop:ct,aboveLeft:Bt,fitsBelow:kt,belowTop:tt,belowLeft:Ht}},U.prototype._layoutHorizontalSegmentInPage=function(o,t,i,m){var E=Math.max(0,t.left-m),te=Math.min(t.left+t.width+m,o.width),Re=t.left+i-$.e.scrollX;if(Re+m>te){var Le=Re-(te-m);Re-=Le,i-=Le}if(Re<E){var Le=Re-E;Re-=Le,i-=Le}return[i,Re]},U.prototype._layoutBoxInPage=function(o,t,i,m,E){var te=o.top-m,Re=t.top+this._lineHeight,Le=$.C(this._viewDomNode.domNode),qe=Le.top+te-$.e.scrollY,ct=Le.top+Re-$.e.scrollY,wt=$.y(document.body),tt=this._layoutHorizontalSegmentInPage(wt,Le,o.left-E.scrollLeft+this._contentLeft,i),kt=tt[0],Bt=tt[1],Ht=this._layoutHorizontalSegmentInPage(wt,Le,t.left-E.scrollLeft+this._contentLeft,i),qt=Ht[0],$t=Ht[1],io=22,yo=22,po=qe>=io,bo=ct+m<=wt.height-yo;return this._fixedOverflowWidgets?{fitsAbove:po,aboveTop:Math.max(qe,io),aboveLeft:Bt,fitsBelow:bo,belowTop:ct,belowLeft:$t}:{fitsAbove:po,aboveTop:Math.max(te,io),aboveLeft:kt,fitsBelow:bo,belowTop:Re,belowLeft:qt}},U.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(o){return new xt(o.top,o.left+this._contentLeft)},U.prototype._getTopAndBottomLeft=function(o){if(!this._viewRange)return[null,null];var t=o.linesVisibleRangesForRange(this._viewRange,!1);if(!t||t.length===0)return[null,null];for(var i=t[0],m=t[0],E=0,te=t;E<te.length;E++){var Re=te[E];Re.lineNumber<i.lineNumber&&(i=Re),Re.lineNumber>m.lineNumber&&(m=Re)}for(var Le=1073741824,qe=0,ct=i.ranges;qe<ct.length;qe++){var wt=ct[qe];wt.left<Le&&(Le=wt.left)}for(var tt=1073741824,kt=0,Bt=m.ranges;kt<Bt.length;kt++){var wt=Bt[kt];wt.left<tt&&(tt=wt.left)}var Ht=o.getVerticalOffsetForLineNumber(i.lineNumber)-o.scrollTop,qt=new xt(Ht,Le),$t=o.getVerticalOffsetForLineNumber(m.lineNumber)-o.scrollTop,io=new xt($t,tt);return[qt,io]},U.prototype._prepareRenderWidget=function(o){var t=this._getTopAndBottomLeft(o),i=t[0],m=t[1];if(!i||!m)return null;if(this._cachedDomNodeClientWidth===-1||this._cachedDomNodeClientHeight===-1){var E=this.domNode.domNode;this._cachedDomNodeClientWidth=E.clientWidth,this._cachedDomNodeClientHeight=E.clientHeight}var te;if(this.allowEditorOverflow?te=this._layoutBoxInPage(i,m,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,o):te=this._layoutBoxInViewport(i,m,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,o),this._preference)for(var Re=1;Re<=2;Re++)for(var Le=0,qe=this._preference;Le<qe.length;Le++){var ct=qe[Le];if(ct===1){if(!te)return null;if(Re===2||te.fitsAbove)return new xt(te.aboveTop,te.aboveLeft)}else if(ct===2){if(!te)return null;if(Re===2||te.fitsBelow)return new xt(te.belowTop,te.belowLeft)}else return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(i):i}return null},U.prototype.onBeforeRender=function(o){if(!this._viewRange||!this._preference)return;if(this._viewRange.endLineNumber<o.startLineNumber||this._viewRange.startLineNumber>o.endLineNumber)return;this.domNode.setMaxWidth(this._maxWidth)},U.prototype.prepareRender=function(o){this._renderData=this._prepareRenderWidget(o)},U.prototype.render=function(o){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+o.scrollTop-o.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)},U}(),me=e("kw+w"),Be=e("6OMU"),Ze=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),at=!0,_t=function(U){Ze(o,U);function o(t){var i=U.call(this)||this;i._context=t;var m=i._context.configuration.options,E=m.get(107);return i._lineHeight=m.get(49),i._renderLineHighlight=m.get(72),i._contentLeft=E.contentLeft,i._contentWidth=E.contentWidth,i._selectionIsEmpty=!0,i._cursorLineNumbers=[],i._selections=[],i._renderData=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),U.prototype.dispose.call(this)},o.prototype._readFromSelections=function(){var t=!1,i=at?this._selections.slice(0,1):this._selections,m=i.map(function(te){return te.positionLineNumber});m.sort(function(te,Re){return te-Re}),Be.g(this._cursorLineNumbers,m)||(this._cursorLineNumbers=m,t=!0);var E=i.every(function(te){return te.isEmpty()});return this._selectionIsEmpty!==E&&(this._selectionIsEmpty=E,t=!0),t},o.prototype.onThemeChanged=function(t){return this._readFromSelections()},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._lineHeight=i.get(49),this._renderLineHighlight=i.get(72),this._contentLeft=m.contentLeft,this._contentWidth=m.contentWidth,!0},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections,this._readFromSelections()},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollWidthChanged||t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.prepareRender=function(t){if(!this._shouldRenderThis()){this._renderData=null;return}for(var i=this._renderOne(t),m=t.visibleRange.startLineNumber,E=t.visibleRange.endLineNumber,te=this._cursorLineNumbers.length,Re=0,Le=[],qe=m;qe<=E;qe++){for(var ct=qe-m;Re<te&&this._cursorLineNumbers[Re]<qe;)Re++;Re<te&&this._cursorLineNumbers[Re]===qe?Le[ct]=i:Le[ct]=""}this._renderData=Le},o.prototype.render=function(t,i){if(!this._renderData)return"";var m=i-t;return m>=this._renderData.length?"":this._renderData[m]},o}(Fe),zt=function(U){Ze(o,U);function o(){return U!==null&&U.apply(this,arguments)||this}return o.prototype._renderOne=function(t){var i="current-line"+(this._shouldRenderOther()?" current-line-both":"");return'<div class="'+i+'" style="width:'+Math.max(t.scrollWidth,this._contentWidth)+"px; height:"+this._lineHeight+'px;"></div>'},o.prototype._shouldRenderThis=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},o.prototype._shouldRenderOther=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},o}(_t),Xt=function(U){Ze(o,U);function o(){return U!==null&&U.apply(this,arguments)||this}return o.prototype._renderOne=function(t){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>'},o.prototype._shouldRenderThis=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},o.prototype._shouldRenderOther=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},o}(_t);Object(Z.e)(function(U,o){at=!1;var t=U.getColor(dt.i);if(t&&(o.addRule(".monaco-editor .view-overlays .current-line { background-color: "+t+"; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+t+"; border: none; }")),!t||t.isTransparent()||U.defines(dt.j)){var i=U.getColor(dt.j);i&&(at=!0,o.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),U.type==="hc"&&(o.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});var no=e("Vtyv"),uo=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),go=function(U){uo(o,U);function o(t){var i=U.call(this)||this;i._context=t;var m=i._context.configuration.options;return i._lineHeight=m.get(49),i._typicalHalfwidthCharacterWidth=m.get(34).typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,U.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged||t.scrollWidthChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.prepareRender=function(t){for(var i=t.getDecorationsInViewport(),m=[],E=0,te=0,Re=i.length;te<Re;te++){var Le=i[te];Le.options.className&&(m[E++]=Le)}m=m.sort(function(Bt,Ht){if(Bt.options.zIndex<Ht.options.zIndex)return-1;if(Bt.options.zIndex>Ht.options.zIndex)return 1;var qt=Bt.options.className,$t=Ht.options.className;return qt<$t?-1:qt>$t?1:fe.a.compareRangesUsingStarts(Bt.range,Ht.range)});for(var qe=t.visibleRange.startLineNumber,ct=t.visibleRange.endLineNumber,wt=[],tt=qe;tt<=ct;tt++){var kt=tt-qe;wt[kt]=""}this._renderWholeLineDecorations(t,m,wt),this._renderNormalDecorations(t,m,wt),this._renderResult=wt},o.prototype._renderWholeLineDecorations=function(t,i,m){for(var E=String(this._lineHeight),te=t.visibleRange.startLineNumber,Re=t.visibleRange.endLineNumber,Le=0,qe=i.length;Le<qe;Le++){var ct=i[Le];if(!ct.options.isWholeLine)continue;for(var wt='<div class="cdr '+ct.options.className+'" style="left:0;width:100%;height:'+E+'px;"></div>',tt=Math.max(ct.range.startLineNumber,te),kt=Math.min(ct.range.endLineNumber,Re),Bt=tt;Bt<=kt;Bt++){var Ht=Bt-te;m[Ht]+=wt}}},o.prototype._renderNormalDecorations=function(t,i,m){for(var E=String(this._lineHeight),te=t.visibleRange.startLineNumber,Re=null,Le=!1,qe=null,ct=0,wt=i.length;ct<wt;ct++){var tt=i[ct];if(tt.options.isWholeLine)continue;var kt=tt.options.className,Bt=Boolean(tt.options.showIfCollapsed),Ht=tt.range;if(Bt&&Ht.endColumn===1&&Ht.endLineNumber!==Ht.startLineNumber&&(Ht=new fe.a(Ht.startLineNumber,Ht.startColumn,Ht.endLineNumber-1,this._context.model.getLineMaxColumn(Ht.endLineNumber-1))),Re===kt&&Le===Bt&&fe.a.areIntersectingOrTouching(qe,Ht)){qe=fe.a.plusRange(qe,Ht);continue}Re!==null&&this._renderNormalDecoration(t,qe,Re,Le,E,te,m),Re=kt,Le=Bt,qe=Ht}Re!==null&&this._renderNormalDecoration(t,qe,Re,Le,E,te,m)},o.prototype._renderNormalDecoration=function(t,i,m,E,te,Re,Le){var qe=t.linesVisibleRangesForRange(i,m==="findMatch");if(!qe)return;for(var ct=0,wt=qe.length;ct<wt;ct++){var tt=qe[ct];if(tt.outsideRenderedLine)continue;var kt=tt.lineNumber-Re;if(E&&tt.ranges.length===1){var Bt=tt.ranges[0];Bt.width===0&&(tt.ranges[0]=new Ve(Bt.left,this._typicalHalfwidthCharacterWidth))}for(var Ht=0,qt=tt.ranges.length;Ht<qt;Ht++){var $t=tt.ranges[Ht],io='<div class="cdr '+m+'" style="left:'+String($t.left)+"px;width:"+String($t.width)+"px;height:"+te+'px;"></div>';Le[kt]+=io}}},o.prototype.render=function(t,i){if(!this._renderResult)return"";var m=i-t;return m<0||m>=this._renderResult.length?"":this._renderResult[m]},o}(Fe),Ao=e("GJhM"),To=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),wo=function(U){To(o,U);function o(t,i,m,E){var te=U.call(this,t)||this,Re=te._context.configuration.options,Le=Re.get(78),qe=Re.get(56),ct=Re.get(27),wt={listenOnDomNode:m.domNode,className:"editor-scrollable "+Object(Z.d)(t.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:qe,fastScrollSensitivity:ct};te.scrollbar=te._register(new Ao.c(i.domNode,wt,te._context.viewLayout.getScrollable())),de.write(te.scrollbar.getDomNode(),5),te.scrollbarDomNode=Object(y.b)(te.scrollbar.getDomNode()),te.scrollbarDomNode.setPosition("absolute"),te._setLayout();var tt=function(kt,Bt,Ht){var qt={};if(Bt){var $t=kt.scrollTop;$t&&(qt.scrollTop=te._context.viewLayout.getCurrentScrollTop()+$t,kt.scrollTop=0)}if(Ht){var io=kt.scrollLeft;io&&(qt.scrollLeft=te._context.viewLayout.getCurrentScrollLeft()+io,kt.scrollLeft=0)}te._context.viewLayout.setScrollPositionNow(qt)};return te._register($.j(m.domNode,"scroll",function(kt){return tt(m.domNode,!0,!0)})),te._register($.j(i.domNode,"scroll",function(kt){return tt(i.domNode,!0,!1)})),te._register($.j(E.domNode,"scroll",function(kt){return tt(E.domNode,!0,!1)})),te._register($.j(te.scrollbarDomNode.domNode,"scroll",function(kt){return tt(te.scrollbarDomNode.domNode,!0,!1)})),te}return o.prototype.dispose=function(){U.prototype.dispose.call(this)},o.prototype._setLayout=function(){var t=this._context.configuration.options,i=t.get(107);this.scrollbarDomNode.setLeft(i.contentLeft);var m=t.get(54),E=m.side;E==="right"?this.scrollbarDomNode.setWidth(i.contentWidth+i.minimapWidth):this.scrollbarDomNode.setWidth(i.contentWidth),this.scrollbarDomNode.setHeight(i.height)},o.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},o.prototype.getDomNode=function(){return this.scrollbarDomNode},o.prototype.delegateVerticalScrollbarMouseDown=function(t){this.scrollbar.delegateVerticalScrollbarMouseDown(t)},o.prototype.onConfigurationChanged=function(t){if(t.hasChanged(78)||t.hasChanged(56)||t.hasChanged(27)){var i=this._context.configuration.options,m=i.get(78),E=i.get(56),te=i.get(27),Re={handleMouseWheel:m.handleMouseWheel,mouseWheelScrollSensitivity:E,fastScrollSensitivity:te};this.scrollbar.updateOptions(Re)}return t.hasChanged(107)&&this._setLayout(),!0},o.prototype.onScrollChanged=function(t){return!0},o.prototype.onThemeChanged=function(t){return this.scrollbar.updateClassName("editor-scrollable "+Object(Z.d)(this._context.theme.type)),!0},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this.scrollbar.renderNow()},o}(V),No=e("hHjc"),Qo=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Oo=function(){function U(o,t,i){this.startLineNumber=+o,this.endLineNumber=+t,this.className=String(i)}return U}(),Lo=function(U){Qo(o,U);function o(){return U!==null&&U.apply(this,arguments)||this}return o.prototype._render=function(t,i,m){for(var E=[],te=t;te<=i;te++){var Re=te-t;E[Re]=[]}if(m.length===0)return E;m.sort(function($t,io){return $t.className===io.className?$t.startLineNumber===io.startLineNumber?$t.endLineNumber-io.endLineNumber:$t.startLineNumber-io.startLineNumber:$t.className<io.className?-1:1});for(var Le=null,qe=0,ct=0,wt=m.length;ct<wt;ct++){var tt=m[ct],kt=tt.className,Bt=Math.max(tt.startLineNumber,t)-t,Ht=Math.min(tt.endLineNumber,i)-t;Le===kt?(Bt=Math.max(qe+1,Bt),qe=Math.max(qe,Ht)):(Le=kt,qe=Ht);for(var qt=Bt;qt<=qe;qt++)E[qt].push(Le)}return E},o}(Fe),vn=function(U){Qo(o,U);function o(t){var i=U.call(this)||this;i._context=t;var m=i._context.configuration.options,E=m.get(107);return i._lineHeight=m.get(49),i._glyphMargin=m.get(40),i._glyphMarginLeft=E.glyphMarginLeft,i._glyphMarginWidth=E.glyphMarginWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,U.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._lineHeight=i.get(49),this._glyphMargin=i.get(40),this._glyphMarginLeft=m.glyphMarginLeft,this._glyphMarginWidth=m.glyphMarginWidth,!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),m=[],E=0,te=0,Re=i.length;te<Re;te++){var Le=i[te],qe=Le.options.glyphMarginClassName;qe&&(m[E++]=new Oo(Le.range.startLineNumber,Le.range.endLineNumber,qe))}return m},o.prototype.prepareRender=function(t){if(!this._glyphMargin){this._renderResult=null;return}for(var i=t.visibleRange.startLineNumber,m=t.visibleRange.endLineNumber,E=this._render(i,m,this._getDecorations(t)),te=this._lineHeight.toString(),Re=this._glyphMarginLeft.toString(),Le=this._glyphMarginWidth.toString(),qe='" style="left:'+Re+"px;width:"+Le+"px;height:"+te+'px;"></div>',ct=[],wt=i;wt<=m;wt++){var tt=wt-i,kt=E[tt];kt.length===0?ct[tt]="":ct[tt]='<div class="cgmr codicon '+kt.join(" ")+qe}this._renderResult=ct},o.prototype.render=function(t,i){if(!this._renderResult)return"";var m=i-t;return m<0||m>=this._renderResult.length?"":this._renderResult[m]},o}(Lo),hn=e("C6rC"),En=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),qo=function(U){En(o,U);function o(t){var i=U.call(this)||this;i._context=t,i._primaryLineNumber=0;var m=i._context.configuration.options,E=m.get(108),te=m.get(34);return i._lineHeight=m.get(49),i._spaceWidth=te.spaceWidth,i._enabled=m.get(70),i._activeIndentEnabled=m.get(43),i._maxIndentLeft=E.wrappingColumn===-1?-1:E.wrappingColumn*te.typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,U.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(108),E=i.get(34);return this._lineHeight=i.get(49),this._spaceWidth=E.spaceWidth,this._enabled=i.get(70),this._activeIndentEnabled=i.get(43),this._maxIndentLeft=m.wrappingColumn===-1?-1:m.wrappingColumn*E.typicalHalfwidthCharacterWidth,!0},o.prototype.onCursorStateChanged=function(t){var i=t.selections[0],m=i.isEmpty()?i.positionLineNumber:0;return this._primaryLineNumber!==m?(this._primaryLineNumber=m,!0):!1},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.onLanguageConfigurationChanged=function(t){return!0},o.prototype.prepareRender=function(t){if(!this._enabled){this._renderResult=null;return}var i=t.visibleRange.startLineNumber,m=t.visibleRange.endLineNumber,E=this._context.model.getOptions().indentSize,te=E*this._spaceWidth,Re=t.scrollWidth,Le=this._lineHeight,qe=this._context.model.getLinesIndentGuides(i,m),ct=0,wt=0,tt=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var kt=this._context.model.getActiveIndentGuide(this._primaryLineNumber,i,m);ct=kt.startLineNumber,wt=kt.endLineNumber,tt=kt.indent}for(var Bt=[],Ht=i;Ht<=m;Ht++){var qt=ct<=Ht&&Ht<=wt,$t=Ht-i,io=qe[$t],yo="";if(io>=1)for(var po=t.visibleRangeForPosition(new ne.a(Ht,1)),bo=po?po.left:0,vo=1;vo<=io;vo++){var Co=qt&&vo===tt?"cigra":"cigr";if(yo+='<div class="'+Co+'" style="left:'+bo+"px;height:"+Le+"px;width:"+te+'px"></div>',bo+=te,bo>Re||this._maxIndentLeft>0&&bo>this._maxIndentLeft)break}Bt[$t]=yo}this._renderResult=Bt},o.prototype.render=function(t,i){if(!this._renderResult)return"";var m=i-t;return m<0||m>=this._renderResult.length?"":this._renderResult[m]},o}(Fe);Object(Z.e)(function(U,o){var t=U.getColor(dt.h);t&&o.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+t+" inset; }");var i=U.getColor(dt.a)||t;i&&o.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")});var xn=e("OKK6"),Un=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),An=function(){function U(){this._currentVisibleRange=new fe.a(1,1,1,1)}return U.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},U.prototype.setCurrentVisibleRange=function(o){this._currentVisibleRange=o},U}(),si=function(){function U(o,t,i,m,E,te){this.lineNumber=o,this.startColumn=t,this.endColumn=i,this.startScrollTop=m,this.stopScrollTop=E,this.scrollType=te}return U}(),ai=function(U){Un(o,U);function o(t,i){var m=U.call(this,t)||this;m._linesContent=i,m._textRangeRestingSpot=document.createElement("div"),m._visibleLines=new Vt(m),m.domNode=m._visibleLines.domNode;var E=m._context.configuration,te=m._context.configuration.options,Re=te.get(34),Le=te.get(108);return m._lineHeight=te.get(49),m._typicalHalfwidthCharacterWidth=Re.typicalHalfwidthCharacterWidth,m._isViewportWrapping=Le.isViewportWrapping,m._revealHorizontalRightPadding=te.get(75),m._cursorSurroundingLines=te.get(19),m._cursorSurroundingLinesStyle=te.get(20),m._canUseLayerHinting=!te.get(22),m._viewLineOptions=new Ee(E,m._context.theme.type),de.write(m.domNode,7),m.domNode.setClassName("view-lines"),W.a.applyFontInfo(m.domNode,Re),m._maxLineWidth=0,m._asyncUpdateLineWidths=new g.d(function(){m._updateLineWidthsSlow()},200),m._lastRenderedData=new An,m._horizontalRevealRequest=null,m}return o.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),U.prototype.dispose.call(this)},o.prototype.getDomNode=function(){return this.domNode},o.prototype.createVisibleLine=function(){return new xe(this._viewLineOptions)},o.prototype.onConfigurationChanged=function(t){this._visibleLines.onConfigurationChanged(t),t.hasChanged(108)&&(this._maxLineWidth=0);var i=this._context.configuration.options,m=i.get(34),E=i.get(108);return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=m.typicalHalfwidthCharacterWidth,this._isViewportWrapping=E.isViewportWrapping,this._revealHorizontalRightPadding=i.get(75),this._cursorSurroundingLines=i.get(19),this._cursorSurroundingLinesStyle=i.get(20),this._canUseLayerHinting=!i.get(22),W.a.applyFontInfo(this.domNode,m),this._onOptionsMaybeChanged(),t.hasChanged(107)&&(this._maxLineWidth=0),!0},o.prototype._onOptionsMaybeChanged=function(){var t=this._context.configuration,i=new Ee(t,this._context.theme.type);if(!this._viewLineOptions.equals(i)){this._viewLineOptions=i;for(var m=this._visibleLines.getStartLineNumber(),E=this._visibleLines.getEndLineNumber(),te=m;te<=E;te++){var Re=this._visibleLines.getVisibleLine(te);Re.onOptionsChanged(this._viewLineOptions)}return!0}return!1},o.prototype.onCursorStateChanged=function(t){for(var i=this._visibleLines.getStartLineNumber(),m=this._visibleLines.getEndLineNumber(),E=!1,te=i;te<=m;te++)E=this._visibleLines.getVisibleLine(te).onSelectionChanged()||E;return E},o.prototype.onDecorationsChanged=function(t){for(var i=this._visibleLines.getStartLineNumber(),m=this._visibleLines.getEndLineNumber(),E=i;E<=m;E++)this._visibleLines.getVisibleLine(E).onDecorationsChanged();return!0},o.prototype.onFlushed=function(t){var i=this._visibleLines.onFlushed(t);return this._maxLineWidth=0,i},o.prototype.onLinesChanged=function(t){return this._visibleLines.onLinesChanged(t)},o.prototype.onLinesDeleted=function(t){return this._visibleLines.onLinesDeleted(t)},o.prototype.onLinesInserted=function(t){return this._visibleLines.onLinesInserted(t)},o.prototype.onRevealRangeRequest=function(t){var i=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),t.source,t.range,t.verticalType),m=this._context.viewLayout.validateScrollPosition({scrollTop:i});t.revealHorizontal?t.range.startLineNumber!==t.range.endLineNumber?m={scrollTop:m.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new si(t.range.startLineNumber,t.range.startColumn,t.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),m.scrollTop,t.scrollType):this._horizontalRevealRequest=null;var E=Math.abs(this._context.viewLayout.getCurrentScrollTop()-m.scrollTop);return t.scrollType===0&&E>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(m):this._context.viewLayout.setScrollPositionNow(m),!0},o.prototype.onScrollChanged=function(t){if(this._horizontalRevealRequest&&t.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&t.scrollTopChanged){var i=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),m=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(t.scrollTop<i||t.scrollTop>m)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(t.scrollWidth),this._visibleLines.onScrollChanged(t)||!0},o.prototype.onTokensChanged=function(t){return this._visibleLines.onTokensChanged(t)},o.prototype.onZonesChanged=function(t){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(t)},o.prototype.onThemeChanged=function(t){return this._onOptionsMaybeChanged()},o.prototype.getPositionFromDOMInfo=function(t,i){var m=this._getViewLineDomNode(t);if(m===null)return null;var E=this._getLineNumberFor(m);if(E===-1)return null;if(E<1||E>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(E)===1)return new ne.a(E,1);var te=this._visibleLines.getStartLineNumber(),Re=this._visibleLines.getEndLineNumber();if(E<te||E>Re)return null;var Le=this._visibleLines.getVisibleLine(E).getColumnOfNodeOffset(E,t,i),qe=this._context.model.getLineMinColumn(E);return Le<qe&&(Le=qe),new ne.a(E,Le)},o.prototype._getViewLineDomNode=function(t){for(;t&&t.nodeType===1;){if(t.className===xe.CLASS_NAME)return t;t=t.parentElement}return null},o.prototype._getLineNumberFor=function(t){for(var i=this._visibleLines.getStartLineNumber(),m=this._visibleLines.getEndLineNumber(),E=i;E<=m;E++){var te=this._visibleLines.getVisibleLine(E);if(t===te.getDomNode())return E}return-1},o.prototype.getLineWidth=function(t){var i=this._visibleLines.getStartLineNumber(),m=this._visibleLines.getEndLineNumber();return t<i||t>m?-1:this._visibleLines.getVisibleLine(t).getWidth()},o.prototype.linesVisibleRangesForRange=function(t,i){if(this.shouldRender())return null;var m=t.endLineNumber,E=fe.a.intersectRanges(t,this._lastRenderedData.getCurrentVisibleRange());if(!E)return null;var te=[],Re=0,Le=new ve(this.domNode.domNode,this._textRangeRestingSpot),qe=0;i&&(qe=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(E.startLineNumber,1)).lineNumber);for(var ct=this._visibleLines.getStartLineNumber(),wt=this._visibleLines.getEndLineNumber(),tt=E.startLineNumber;tt<=E.endLineNumber;tt++){if(tt<ct||tt>wt)continue;var kt=tt===E.startLineNumber?E.startColumn:1,Bt=tt===E.endLineNumber?E.endColumn:this._context.model.getLineMaxColumn(tt),Ht=this._visibleLines.getVisibleLine(tt).getVisibleRangesForRange(kt,Bt,Le);if(!Ht)continue;if(i&&tt<m){var qt=qe;qe=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(tt+1,1)).lineNumber,qt!==qe&&(Ht.ranges[Ht.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}te[Re++]=new Pe(Ht.outsideRenderedLine,tt,Ht.ranges)}return Re===0?null:te},o.prototype._visibleRangesForLineRange=function(t,i,m){return this.shouldRender()||(t<this._visibleLines.getStartLineNumber()||t>this._visibleLines.getEndLineNumber())?null:this._visibleLines.getVisibleLine(t).getVisibleRangesForRange(i,m,new ve(this.domNode.domNode,this._textRangeRestingSpot))},o.prototype.visibleRangeForPosition=function(t){var i=this._visibleRangesForLineRange(t.lineNumber,t.column,t.column);return i?new ke(i.outsideRenderedLine,i.ranges[0].left):null},o.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},o.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},o.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},o.prototype._updateLineWidths=function(t){for(var i=this._visibleLines.getStartLineNumber(),m=this._visibleLines.getEndLineNumber(),E=1,te=!0,Re=i;Re<=m;Re++){var Le=this._visibleLines.getVisibleLine(Re);if(t&&!Le.getWidthIsFast()){te=!1;continue}E=Math.max(E,Le.getWidth())}return te&&i===1&&m===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(E),te},o.prototype.prepareRender=function(){throw new Error("Not supported")},o.prototype.render=function(){throw new Error("Not supported")},o.prototype.renderText=function(t){if(this._visibleLines.renderLines(t),this._lastRenderedData.setCurrentVisibleRange(t.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,m=this._horizontalRevealRequest.startColumn,E=this._horizontalRevealRequest.endColumn,te=this._horizontalRevealRequest.scrollType;if(t.startLineNumber<=i&&i<=t.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var Re=this._computeScrollLeftToRevealRange(i,m,E),Le=this._isViewportWrapping;Le||this._ensureMaxLineWidth(Re.maxHorizontalOffset),te===0?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:Re.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:Re.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var qe=this._context.viewLayout.getCurrentScrollTop()-t.bigNumbersDelta;this._linesContent.setTop(-qe),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},o.prototype._ensureMaxLineWidth=function(t){var i=Math.ceil(t);this._maxLineWidth<i&&(this._maxLineWidth=i,this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth))},o.prototype._computeScrollTopToRevealRange=function(t,i,m,E){var te=t.top,Re=t.height,Le=te+Re,qe,ct;qe=this._context.viewLayout.getVerticalOffsetForLineNumber(m.startLineNumber),ct=this._context.viewLayout.getVerticalOffsetForLineNumber(m.endLineNumber)+this._lineHeight;var wt=i==="mouse"&&this._cursorSurroundingLinesStyle==="default";if(!wt){var tt=Math.min(Re/this._lineHeight/2,this._cursorSurroundingLines);qe-=tt*this._lineHeight,ct+=Math.max(0,tt-1)*this._lineHeight}(E===0||E===4)&&(ct+=this._lineHeight);var kt;if(ct-qe>Re)kt=qe;else if(E===1||E===2)if(E===2&&te<=qe&&ct<=Le)kt=te;else{var Bt=(qe+ct)/2;kt=Math.max(0,Bt-Re/2)}else kt=this._computeMinimumScrolling(te,Le,qe,ct,E===3,E===4);return kt},o.prototype._computeScrollLeftToRevealRange=function(t,i,m){var E=0,te=this._context.viewLayout.getCurrentViewport(),Re=te.left,Le=Re+te.width,qe=this._visibleRangesForLineRange(t,i,m),ct=1073741824,wt=0;if(!qe)return{scrollLeft:Re,maxHorizontalOffset:E};for(var tt=0,kt=qe.ranges;tt<kt.length;tt++){var Bt=kt[tt];Bt.left<ct&&(ct=Bt.left),Bt.left+Bt.width>wt&&(wt=Bt.left+Bt.width)}E=wt,ct=Math.max(0,ct-o.HORIZONTAL_EXTRA_PX),wt+=this._revealHorizontalRightPadding;var Ht=this._computeMinimumScrolling(Re,Le,ct,wt);return{scrollLeft:Ht,maxHorizontalOffset:E}},o.prototype._computeMinimumScrolling=function(t,i,m,E,te,Re){t=t|0,i=i|0,m=m|0,E=E|0,te=!!te,Re=!!Re;var Le=i-t,qe=E-m;if(qe<Le){if(te)return m;if(Re)return Math.max(0,E-Le);if(m<t)return m;if(E>i)return Math.max(0,E-Le)}else return m;return t},o.HORIZONTAL_EXTRA_PX=30,o}(V),Pn=e("J+ZK"),bi=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Yr=function(U){bi(o,U);function o(t){var i=U.call(this)||this;i._context=t;var m=i._context.configuration.options,E=m.get(107);return i._decorationsLeft=E.decorationsLeft,i._decorationsWidth=E.decorationsWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,U.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._decorationsLeft=m.decorationsLeft,this._decorationsWidth=m.decorationsWidth,!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),m=[],E=0,te=0,Re=i.length;te<Re;te++){var Le=i[te],qe=Le.options.linesDecorationsClassName;qe&&(m[E++]=new Oo(Le.range.startLineNumber,Le.range.endLineNumber,qe))}return m},o.prototype.prepareRender=function(t){for(var i=t.visibleRange.startLineNumber,m=t.visibleRange.endLineNumber,E=this._render(i,m,this._getDecorations(t)),te=this._decorationsLeft.toString(),Re=this._decorationsWidth.toString(),Le='" style="left:'+te+"px;width:"+Re+'px;"></div>',qe=[],ct=i;ct<=m;ct++){for(var wt=ct-i,tt=E[wt],kt="",Bt=0,Ht=tt.length;Bt<Ht;Bt++)kt+='<div class="cldr '+tt[Bt]+Le;qe[wt]=kt}this._renderResult=qe},o.prototype.render=function(t,i){return this._renderResult?this._renderResult[i-t]:""},o}(Lo),oa=e("XXBq"),zi=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ki=function(U){zi(o,U);function o(t){var i=U.call(this)||this;return i._context=t,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,U.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){return!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),m=[],E=0,te=0,Re=i.length;te<Re;te++){var Le=i[te],qe=Le.options.marginClassName;qe&&(m[E++]=new Oo(Le.range.startLineNumber,Le.range.endLineNumber,qe))}return m},o.prototype.prepareRender=function(t){for(var i=t.visibleRange.startLineNumber,m=t.visibleRange.endLineNumber,E=this._render(i,m,this._getDecorations(t)),te=[],Re=i;Re<=m;Re++){for(var Le=Re-i,qe=E[Le],ct="",wt=0,tt=qe.length;wt<tt;wt++)ct+='<div class="cmdr '+qe[wt]+'" style=""></div>';te[Le]=ct}this._renderResult=te},o.prototype.render=function(t,i){return this._renderResult?this._renderResult[i-t]:""},o}(Lo),Zr=e("8gvo"),Gi=function(){function U(o,t,i,m){this.r=U._clamp(o),this.g=U._clamp(t),this.b=U._clamp(i),this.a=U._clamp(m)}return U._clamp=function(o){return o<0?0:o>255?255:o|0},U.Empty=new U(0,0,0,0),U}(),$o=e("twdY"),li=function(){function U(){var o=this;this._onDidChange=new B.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),$o.B.onDidChange(function(t){t.changedColorMap&&o._updateColorMap()})}return U.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new U),this._INSTANCE},U.prototype._updateColorMap=function(){var o=$o.B.getColorMap();if(!o){this._colors=[Gi.Empty],this._backgroundIsLight=!0;return}this._colors=[Gi.Empty];for(var t=1;t<o.length;t++){var i=o[t].rgba;this._colors[t]=new Gi(i.r,i.g,i.b,Math.round(i.a*255))}var m=o[2].getRelativeLuminance();this._backgroundIsLight=m>=.5,this._onDidChange.fire(void 0)},U.prototype.getColor=function(o){return(o<1||o>=this._colors.length)&&(o=2),this._colors[o]},U.prototype.backgroundIsLight=function(){return this._backgroundIsLight},U._INSTANCE=null,U}(),Dn=e("MD5Z"),yr=function(){for(var U=[],o=32;o<=126;o++)U.push(o);return U.push(65533),U}(),Qr=function(U,o){return U-=32,U<0||U>96?o<=2?(U+96)%96:96-1:U},On=function(){function U(o,t){this.scale=t,this.charDataNormal=U.soften(o,12/15),this.charDataLight=U.soften(o,50/60)}return U.soften=function(o,t){for(var i=new Uint8ClampedArray(o.length),m=0,E=o.length;m<E;m++)i[m]=o[m]*t;return i},U.prototype.renderChar=function(o,t,i,m,E,te,Re,Le){var qe=1*this.scale,ct=2*this.scale;if(t+qe>o.width||i+ct>o.height){console.warn("bad render request outside image data");return}for(var wt=Le?this.charDataLight:this.charDataNormal,tt=Qr(m,Re),kt=o.width*4,Bt=te.r,Ht=te.g,qt=te.b,$t=E.r-Bt,io=E.g-Ht,yo=E.b-qt,po=o.data,bo=tt*qe*ct,vo=i*kt+t*4,Co=0;Co<ct;Co++){for(var Mo=vo,Ko=0;Ko<qe;Ko++){var zo=wt[bo++]/255;po[Mo++]=Bt+$t*zo,po[Mo++]=Ht+io*zo,po[Mo++]=qt+yo*zo,Mo++}vo+=kt}},U.prototype.blockRenderChar=function(o,t,i,m,E,te){var Re=1*this.scale,Le=2*this.scale;if(t+Re>o.width||i+Le>o.height){console.warn("bad render request outside image data");return}for(var qe=o.width*4,ct=.5,wt=E.r,tt=E.g,kt=E.b,Bt=m.r-wt,Ht=m.g-tt,qt=m.b-kt,$t=wt+Bt*ct,io=tt+Ht*ct,yo=kt+qt*ct,po=o.data,bo=i*qe+t*4,vo=0;vo<Le;vo++){for(var Co=bo,Mo=0;Mo<Re;Mo++)po[Co++]=$t,po[Co++]=io,po[Co++]=yo,Co++;bo+=qe}},U}(),Qn=e("C/vA"),Xi={"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},br=function(U){for(var o=new Uint8ClampedArray(U.length/2),t=0;t<U.length;t+=2)o[t>>1]=Xi[U[t]]<<4|Xi[U[t+1]]&15;return o},Yi={1:Object(Qn.a)(function(){return br("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")}),2:Object(Qn.a)(function(){return br("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")})},di=function(){function U(){}return U.create=function(o,t){if(this.lastCreated&&o===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;var i;return Yi[o]?i=new On(Yi[o](),o):i=U.createFromSampleData(U.createSampleData(t).data,o),this.lastFontFamily=t,this.lastCreated=i,i},U.createSampleData=function(o){var t=document.createElement("canvas"),i=t.getContext("2d");t.style.height=16+"px",t.height=16,t.width=96*10,t.style.width=96*10+"px",i.fillStyle="#ffffff",i.font="bold "+16+"px "+o,i.textBaseline="middle";for(var m=0,E=0,te=yr;E<te.length;E++){var Re=te[E];i.fillText(String.fromCharCode(Re),m,16/2),m+=10}return i.getImageData(0,0,96*10,16)},U.createFromSampleData=function(o,t){var i=16*10*4*96;if(o.length!==i)throw new Error("Unexpected source in MinimapCharRenderer");var m=U._downsample(o,t);return new On(m,t)},U._downsampleChar=function(o,t,i,m,E){for(var te=1*E,Re=2*E,Le=m,qe=0,ct=0;ct<Re;ct++)for(var wt=ct/Re*16,tt=(ct+1)/Re*16,kt=0;kt<te;kt++){for(var Bt=kt/te*10,Ht=(kt+1)/te*10,qt=0,$t=0,io=wt;io<tt;io++)for(var yo=t+Math.floor(io)*3840,po=1-(io-Math.floor(io)),bo=Bt;bo<Ht;bo++){var vo=1-(bo-Math.floor(bo)),Co=yo+Math.floor(bo)*4,Mo=vo*po;$t+=Mo,qt+=o[Co]*o[Co+3]/255*Mo}var Ko=qt/$t;qe=Math.max(qe,Ko),i[Le++]=Ko}return qe},U._downsample=function(o,t){for(var i=2*t*1*t,m=i*96,E=new Uint8ClampedArray(m),te=0,Re=0,Le=0,qe=0;qe<96;qe++)Le=Math.max(Le,this._downsampleChar(o,Re,E,te,t)),te+=i,Re+=10*4;if(Le>0)for(var ct=255/Le,wt=0;wt<m;wt++)E[wt]*=ct;return E},U}(),Cr=e("M1Kb"),$r=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function wn(U,o){return U===1?2*o:(2+1)*o}function Zi(U,o){return U===1,1*o}var Jr=140,_n=2,Qi=function(){function U(o){var t=this,i=o.options,m=i.get(105),E=i.get(107),te=i.get(34);this.renderMinimap=E.renderMinimap|0,this.scrollBeyondLastLine=i.get(80);var Re=i.get(54);this.showSlider=Re.showSlider,this.fontScale=Math.round(Re.scale*m),this.charRenderer=Object(Qn.a)(function(){return di.create(t.fontScale,te.fontFamily)}),this.pixelRatio=m,this.typicalHalfwidthCharacterWidth=te.typicalHalfwidthCharacterWidth,this.lineHeight=i.get(49),this.minimapLeft=E.minimapLeft,this.minimapWidth=E.minimapWidth,this.minimapHeight=E.height,this.canvasInnerWidth=Math.floor(m*this.minimapWidth),this.canvasInnerHeight=Math.floor(m*this.minimapHeight),this.canvasOuterWidth=this.canvasInnerWidth/m,this.canvasOuterHeight=this.canvasInnerHeight/m}return U.prototype.equals=function(o){return this.renderMinimap===o.renderMinimap&&this.scrollBeyondLastLine===o.scrollBeyondLastLine&&this.showSlider===o.showSlider&&this.pixelRatio===o.pixelRatio&&this.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&this.lineHeight===o.lineHeight&&this.fontScale===o.fontScale&&this.minimapLeft===o.minimapLeft&&this.minimapWidth===o.minimapWidth&&this.minimapHeight===o.minimapHeight&&this.canvasInnerWidth===o.canvasInnerWidth&&this.canvasInnerHeight===o.canvasInnerHeight&&this.canvasOuterWidth===o.canvasOuterWidth&&this.canvasOuterHeight===o.canvasOuterHeight},U}(),qr=function(){function U(o,t,i,m,E,te,Re){this.scrollTop=o,this.scrollHeight=t,this._computedSliderRatio=i,this.sliderTop=m,this.sliderHeight=E,this.startLineNumber=te,this.endLineNumber=Re}return U.prototype.getDesiredScrollTopFromDelta=function(o){var t=this.sliderTop+o;return Math.round(t/this._computedSliderRatio)},U.prototype.getDesiredScrollTopFromTouchLocation=function(o){return Math.round((o-this.sliderHeight/2)/this._computedSliderRatio)},U.create=function(o,t,i,m,E,te,Re,Le,qe){var ct=o.pixelRatio,wt=wn(o.renderMinimap,o.fontScale),tt=Math.floor(o.canvasInnerHeight/wt),kt=o.lineHeight,Bt;if(E&&i!==te){var Ht=i-t+1;Bt=Math.floor(Ht*wt/ct)}else{var qt=m/kt;Bt=Math.floor(qt*wt/ct)}var $t;o.scrollBeyondLastLine?$t=(te-1)*wt/ct:$t=Math.max(0,te*wt/ct-Bt),$t=Math.min(o.minimapHeight-Bt,$t);var io=$t/(Le-m),yo=Re*io,po=0;if(o.scrollBeyondLastLine){var qt=m/kt;po=qt}if(tt>=te+po){var bo=1,vo=te;return new U(Re,Le,io,yo,Bt,bo,vo)}else{var bo=Math.max(1,Math.floor(t-yo*ct/wt));qe&&qe.scrollHeight===Le&&(qe.scrollTop>Re&&(bo=Math.min(bo,qe.startLineNumber)),qe.scrollTop<Re&&(bo=Math.max(bo,qe.startLineNumber)));var vo=Math.min(te,bo+tt-1);return new U(Re,Le,io,yo,Bt,bo,vo)}},U}(),$i=function(){function U(o){this.dy=o}return U.prototype.onContentChanged=function(){this.dy=-1},U.prototype.onTokensChanged=function(){this.dy=-1},U.INVALID=new U(-1),U}(),Er=function(){function U(o,t,i){this.renderedLayout=o,this._imageData=t,this._renderedLines=new Ut(function(){return $i.INVALID}),this._renderedLines._set(o.startLineNumber,i)}return U.prototype.linesEquals=function(o){if(!this.scrollEquals(o))return!1;for(var t=this._renderedLines._get(),i=t.lines,m=0,E=i.length;m<E;m++)if(i[m].dy===-1)return!1;return!0},U.prototype.scrollEquals=function(o){return this.renderedLayout.startLineNumber===o.startLineNumber&&this.renderedLayout.endLineNumber===o.endLineNumber},U.prototype._get=function(){var o=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:o.rendLineNumberStart,lines:o.lines}},U.prototype.onLinesChanged=function(o){return this._renderedLines.onLinesChanged(o.fromLineNumber,o.toLineNumber)},U.prototype.onLinesDeleted=function(o){this._renderedLines.onLinesDeleted(o.fromLineNumber,o.toLineNumber)},U.prototype.onLinesInserted=function(o){this._renderedLines.onLinesInserted(o.fromLineNumber,o.toLineNumber)},U.prototype.onTokensChanged=function(o){return this._renderedLines.onTokensChanged(o.ranges)},U}(),wr=function(){function U(o,t,i,m){this._backgroundFillData=U._createBackgroundFillData(t,i,m),this._buffers=[o.createImageData(t,i),o.createImageData(t,i)],this._lastUsedBuffer=0}return U.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var o=this._buffers[this._lastUsedBuffer];return o.data.set(this._backgroundFillData),o},U._createBackgroundFillData=function(o,t,i){for(var m=i.r,E=i.g,te=i.b,Re=new Uint8ClampedArray(o*t*4),Le=0,qe=0;qe<t;qe++)for(var ct=0;ct<o;ct++)Re[Le]=m,Re[Le+1]=E,Re[Le+2]=te,Re[Le+3]=255,Le+=4;return Re},U}(),es=function(U){$r(o,U);function o(t){var i=U.call(this,t)||this;return i._selections=[],i._renderDecorations=!1,i._gestureInProgress=!1,i._options=new Qi(i._context.configuration),i._lastRenderData=null,i._buffers=null,i._selectionColor=i._context.theme.getColor(Dn.Ib),i._domNode=Object(y.b)(document.createElement("div")),de.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(y.b)(document.createElement("div")),i._shadow.setClassName("minimap-shadow-hidden"),i._domNode.appendChild(i._shadow),i._canvas=Object(y.b)(document.createElement("canvas")),i._canvas.setPosition("absolute"),i._canvas.setLeft(0),i._domNode.appendChild(i._canvas),i._decorationsCanvas=Object(y.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(y.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(y.b)(document.createElement("div")),i._sliderHorizontal.setPosition("absolute"),i._sliderHorizontal.setClassName("minimap-slider-horizontal"),i._slider.appendChild(i._sliderHorizontal),i._tokensColorTracker=li.getInstance(),i._applyLayout(),i._mouseDownListener=$.o(i._domNode.domNode,"mousedown",function(m){m.preventDefault();var E=i._options.renderMinimap;if(E===0)return;if(!i._lastRenderData)return;var te=wn(E,i._options.fontScale),Re=i._options.pixelRatio*m.browserEvent.offsetY,Le=Math.floor(Re/te),qe=Le+i._lastRenderData.renderedLayout.startLineNumber;qe=Math.min(qe,i._context.model.getLineCount()),i._context.privateViewEventBus.emit(new Cn("mouse",new fe.a(qe,1,qe,1),1,!1,0))}),i._sliderMouseMoveMonitor=new u.a,i._sliderMouseDownListener=$.o(i._slider.domNode,"mousedown",function(m){if(m.preventDefault(),m.stopPropagation(),m.leftButton&&i._lastRenderData){var E=m.posy,te=m.posx,Re=i._lastRenderData.renderedLayout;i._slider.toggleClassName("active",!0),i._sliderMouseMoveMonitor.startMonitoring(m.target,m.buttons,u.b,function(Le){var qe=Math.abs(Le.posx-te);if(w.h&&qe>Jr){i._context.viewLayout.setScrollPositionNow({scrollTop:Re.scrollTop});return}var ct=Le.posy-E;i._context.viewLayout.setScrollPositionNow({scrollTop:Re.getDesiredScrollTopFromDelta(ct)})},function(){i._slider.toggleClassName("active",!1)})}}),i._gestureDisposable=f.b.addTarget(i._domNode.domNode),i._sliderTouchStartListener=$.j(i._domNode.domNode,f.a.Start,function(m){m.preventDefault(),m.stopPropagation(),i._lastRenderData&&(i._slider.toggleClassName("active",!0),i._gestureInProgress=!0,i.scrollDueToTouchEvent(m))}),i._sliderTouchMoveListener=$.o(i._domNode.domNode,f.a.Change,function(m){m.preventDefault(),m.stopPropagation(),i._lastRenderData&&i._gestureInProgress&&i.scrollDueToTouchEvent(m)}),i._sliderTouchEndListener=$.o(i._domNode.domNode,f.a.End,function(m){m.preventDefault(),m.stopPropagation(),i._gestureInProgress=!1,i._slider.toggleClassName("active",!1)}),i}return o.prototype.scrollDueToTouchEvent=function(t){var i=this._domNode.domNode.getBoundingClientRect().top,m=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(t.pageY-i);this._context.viewLayout.setScrollPositionNow({scrollTop:m})},o.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),U.prototype.dispose.call(this)},o.prototype._getMinimapDomNodeClassName=function(){return this._options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"},o.prototype.getDomNode=function(){return this._domNode},o.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)},o.prototype._getBuffer=function(){return this._buffers||this._options.canvasInnerWidth>0&&this._options.canvasInnerHeight>0&&(this._buffers=new wr(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers?this._buffers.getBuffer():null},o.prototype._onOptionsMaybeChanged=function(){var t=new Qi(this._context.configuration);return this._options.equals(t)?!1:(this._options=t,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},o.prototype.onConfigurationChanged=function(t){return this._onOptionsMaybeChanged()},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections,this._renderDecorations=!0,!0},o.prototype.onFlushed=function(t){return this._lastRenderData=null,!0},o.prototype.onLinesChanged=function(t){return this._lastRenderData?this._lastRenderData.onLinesChanged(t):!1},o.prototype.onLinesDeleted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(t),!0},o.prototype.onLinesInserted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(t),!0},o.prototype.onScrollChanged=function(t){return this._renderDecorations=!0,!0},o.prototype.onTokensChanged=function(t){return this._lastRenderData?this._lastRenderData.onTokensChanged(t):!1},o.prototype.onTokensColorsChanged=function(t){return this._lastRenderData=null,this._buffers=null,!0},o.prototype.onZonesChanged=function(t){return this._lastRenderData=null,!0},o.prototype.onDecorationsChanged=function(t){return this._renderDecorations=!0,!0},o.prototype.onThemeChanged=function(t){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(Dn.Ib),this._renderDecorations=!0,!0},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){var i=this._options.renderMinimap;if(i===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}t.scrollLeft+t.viewportWidth>=t.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var m=qr.create(this._options,t.visibleRange.startLineNumber,t.visibleRange.endLineNumber,t.viewportHeight,t.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),t.scrollTop,t.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(m.sliderTop),this._slider.setHeight(m.sliderHeight);var E=t.scrollLeft/this._options.typicalHalfwidthCharacterWidth,te=Math.min(this._options.minimapWidth,Math.round(E*Zi(this._options.renderMinimap,this._options.fontScale)/this._options.pixelRatio));this._sliderHorizontal.setLeft(te),this._sliderHorizontal.setWidth(this._options.minimapWidth-te),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(m.sliderHeight),this.renderDecorations(m),this._lastRenderData=this.renderLines(m)},o.prototype.renderDecorations=function(t){if(this._renderDecorations){this._renderDecorations=!1;var i=this._context.model.getDecorationsInViewport(new fe.a(t.startLineNumber,1,t.endLineNumber,this._context.model.getLineMaxColumn(t.endLineNumber))),m=this._options,E=m.renderMinimap,te=m.canvasInnerWidth,Re=m.canvasInnerHeight,Le=wn(E,this._options.fontScale),qe=Zi(E,this._options.fontScale),ct=this._context.model.getOptions().tabSize,wt=this._decorationsCanvas.domNode.getContext("2d");wt.clearRect(0,0,te,Re);for(var tt=new Map,kt=0;kt<this._selections.length;kt++)for(var Bt=this._selections[kt],Ht=Bt.startLineNumber;Ht<=Bt.endLineNumber;Ht++)this.renderDecorationOnLine(wt,tt,Bt,this._selectionColor,t,Ht,Le,Le,ct,qe);for(var kt=0;kt<i.length;kt++){var qt=i[kt];if(!qt.options.minimap)continue;for(var $t=qt.options.minimap.getColor(this._context.theme),Ht=qt.range.startLineNumber;Ht<=qt.range.endLineNumber;Ht++)switch(qt.options.minimap.position){case Cr.c.Inline:this.renderDecorationOnLine(wt,tt,qt.range,$t,t,Ht,Le,Le,ct,qe);continue;case Cr.c.Gutter:var io=(Ht-t.startLineNumber)*Le,yo=2;this.renderDecoration(wt,$t,yo,io,_n,Le);continue}}}},o.prototype.renderDecorationOnLine=function(t,i,m,E,te,Re,Le,qe,ct,wt){var tt=(Re-te.startLineNumber)*qe;if(tt+Le<0||tt>this._options.canvasInnerHeight)return;var kt=i.get(Re),Bt=!kt;if(!kt){var Ht=this._context.model.getLineContent(Re);kt=[ye.f];for(var qt=1;qt<Ht.length+1;qt++){var $t=Ht.charCodeAt(qt-1),io=$t===9?ct*wt:ge.y($t)?2*wt:wt;kt[qt]=kt[qt-1]+io}i.set(Re,kt)}var yo=m.startColumn,po=m.endColumn,bo=m.startLineNumber,vo=m.endLineNumber,Co=bo===Re?kt[yo-1]:ye.f,Mo=vo>Re?kt.length-1:po-1;if(Mo>0){var Ko=kt[Mo]-Co||2;this.renderDecoration(t,E,Co,tt,Ko,Le)}Bt&&this.renderLineHighlight(t,E,tt,Le)},o.prototype.renderLineHighlight=function(t,i,m,E){t.fillStyle=i&&i.transparent(.5).toString()||"",t.fillRect(ye.f,m,t.canvas.width,E)},o.prototype.renderDecoration=function(t,i,m,E,te,Re){t.fillStyle=i&&i.toString()||"",t.fillRect(m,E,te,Re)},o.prototype.renderLines=function(t){var i=this._options.renderMinimap,m=this._options.charRenderer(),E=t.startLineNumber,te=t.endLineNumber,Re=wn(i,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(t)){var Le=this._lastRenderData._get();return new Er(t,Le.imageData,Le.lines)}var qe=this._getBuffer();if(!qe)return null;for(var ct=o._renderUntouchedLines(qe,E,te,Re,this._lastRenderData),wt=ct[0],tt=ct[1],kt=ct[2],Bt=this._context.model.getMinimapLinesRenderingData(E,te,kt),Ht=Bt.tabSize,qt=this._tokensColorTracker.getColor(2),$t=this._tokensColorTracker.backgroundIsLight(),io=0,yo=[],po=0,bo=te-E+1;po<bo;po++)kt[po]&&o._renderLine(qe,qt,$t,i,this._tokensColorTracker,m,io,Ht,Bt.data[po],this._options.fontScale),yo[po]=new $i(io),io+=Re;var vo=wt===-1?0:wt,Co=tt===-1?qe.height:tt,Mo=Co-vo,Ko=this._canvas.domNode.getContext("2d");return Ko.putImageData(qe,0,0,0,vo,qe.width,Mo),new Er(t,qe,yo)},o._renderUntouchedLines=function(t,i,m,E,te){var Re=[];if(!te){for(var Le=0,qe=m-i+1;Le<qe;Le++)Re[Le]=!0;return[-1,-1,Re]}for(var ct=te._get(),wt=ct.imageData.data,tt=ct.rendLineNumberStart,kt=ct.lines,Bt=kt.length,Ht=t.width,qt=t.data,$t=(m-i+1)*E*Ht*4,io=-1,yo=-1,po=-1,bo=-1,vo=-1,Co=-1,Mo=0,Ko=i;Ko<=m;Ko++){var zo=Ko-i,ko=Ko-tt,fn=ko>=0&&ko<Bt?kt[ko].dy:-1;if(fn===-1){Re[zo]=!0,Mo+=E;continue}var In=fn*Ht*4,ln=(fn+E)*Ht*4,Nn=Mo*Ht*4,cn=(Mo+E)*Ht*4;bo===In&&Co===Nn?(bo=ln,Co=cn):(po!==-1&&(qt.set(wt.subarray(po,bo),vo),io===-1&&po===0&&po===vo&&(io=bo),yo===-1&&bo===$t&&po===vo&&(yo=po)),po=In,bo=ln,vo=Nn,Co=cn),Re[zo]=!1,Mo+=E}po!==-1&&(qt.set(wt.subarray(po,bo),vo),io===-1&&po===0&&po===vo&&(io=bo),yo===-1&&bo===$t&&po===vo&&(yo=po));var Wn=io===-1?-1:io/(Ht*4),Fn=yo===-1?-1:yo/(Ht*4);return[Wn,Fn,Re]},o._renderLine=function(t,i,m,E,te,Re,Le,qe,ct,wt){for(var tt=ct.content,kt=ct.tokens,Bt=Zi(E,wt),Ht=t.width-Bt,qt=ye.f,$t=0,io=0,yo=0,po=kt.getCount();yo<po;yo++)for(var bo=kt.getEndOffset(yo),vo=kt.getForeground(yo),Co=te.getColor(vo);$t<bo;$t++){if(qt>Ht)return;var Mo=tt.charCodeAt($t);if(Mo===9){var Ko=qe-($t+io)%qe;io+=Ko-1,qt+=Ko*Bt}else if(Mo===32)qt+=Bt;else for(var zo=ge.y(Mo)?2:1,ko=0;ko<zo;ko++)if(E===2?Re.blockRenderChar(t,qt,Le,Co,i,m):Re.renderChar(t,qt,Le,Mo,Co,i,wt,m),qt+=Bt,qt>Ht)return}},o}(V);Object(Z.e)(function(U,o){var t=U.getColor(Dn.Xb);if(t){var i=t.transparent(.5);o.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var m=U.getColor(Dn.Yb);if(m){var E=m.transparent(.5);o.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+E+"; }")}var te=U.getColor(Dn.Wb);if(te){var Re=te.transparent(.5);o.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+Re+"; }")}var Le=U.getColor(Dn.Vb);Le&&o.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+Le+" -6px 0 6px -6px inset; }")});var na=e("cl4r"),ts=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),_r=function(U){ts(o,U);function o(t){var i=U.call(this,t)||this,m=i._context.configuration.options,E=m.get(107);return i._widgets={},i._verticalScrollbarWidth=E.verticalScrollbarWidth,i._minimapWidth=E.minimapWidth,i._horizontalScrollbarHeight=E.horizontalScrollbarHeight,i._editorHeight=E.height,i._editorWidth=E.width,i._domNode=Object(y.b)(document.createElement("div")),de.write(i._domNode,4),i._domNode.setClassName("overlayWidgets"),i}return o.prototype.dispose=function(){U.prototype.dispose.call(this),this._widgets={}},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._verticalScrollbarWidth=m.verticalScrollbarWidth,this._minimapWidth=m.minimapWidth,this._horizontalScrollbarHeight=m.horizontalScrollbarHeight,this._editorHeight=m.height,this._editorWidth=m.width,!0},o.prototype.addWidget=function(t){var i=Object(y.b)(t.getDomNode());this._widgets[t.getId()]={widget:t,preference:null,domNode:i},i.setPosition("absolute"),i.setAttribute("widgetId",t.getId()),this._domNode.appendChild(i),this.setShouldRender()},o.prototype.setWidgetPosition=function(t,i){var m=this._widgets[t.getId()];return m.preference===i?!1:(m.preference=i,this.setShouldRender(),!0)},o.prototype.removeWidget=function(t){var i=t.getId();if(this._widgets.hasOwnProperty(i)){var m=this._widgets[i],E=m.domNode.domNode;delete this._widgets[i],E.parentNode.removeChild(E),this.setShouldRender()}},o.prototype._renderWidget=function(t){var i=t.domNode;if(t.preference===null){i.unsetTop();return}if(t.preference===0)i.setTop(0),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(t.preference===1){var m=i.domNode.clientHeight;i.setTop(this._editorHeight-m-2*this._horizontalScrollbarHeight),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else t.preference===2&&(i.setTop(0),i.domNode.style.right="50%")},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setWidth(this._editorWidth);for(var i=Object.keys(this._widgets),m=0,E=i.length;m<E;m++){var te=i[m];this._renderWidget(this._widgets[te])}},o}(V),Hn=e("zrhQ"),Sr=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Oi=function(){function U(o,t){var i=o.options;this.lineHeight=i.get(49),this.pixelRatio=i.get(105),this.overviewRulerLanes=i.get(63),this.renderBorder=i.get(62);var m=t.getColor(dt.l);this.borderColor=m?m.toString():null,this.hideCursor=i.get(42);var E=t.getColor(dt.g);this.cursorColor=E?E.transparent(.7).toString():null,this.themeType=t.type;var te=i.get(54),Re=te.enabled,Le=te.side,qe=Re?$o.B.getDefaultBackground():null;qe===null||Le==="left"?this.backgroundColor=null:this.backgroundColor=Hn.a.Format.CSS.formatHex(qe);var ct=i.get(107),wt=ct.overviewRuler;this.top=wt.top,this.right=wt.right,this.domWidth=wt.width,this.domHeight=wt.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 tt=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),kt=tt[0],Bt=tt[1];this.x=kt,this.w=Bt}return U.prototype._initLanes=function(o,t,i){var m=t-o;if(i>=3){var E=Math.floor(m/3),te=Math.floor(m/3),Re=m-E-te,Le=o,qe=Le+E,ct=Le+E+Re;return[[0,Le,qe,Le,ct,Le,qe,Le],[0,E,Re,E+Re,te,E+Re+te,Re+te,E+Re+te]]}else if(i===2){var E=Math.floor(m/2),te=m-E,Le=o,ct=Le+E;return[[0,Le,Le,Le,ct,Le,Le,Le],[0,E,E,E,te,E+te,E+te,E+te]]}else{var wt=o,tt=m;return[[0,wt,wt,wt,wt,wt,wt,wt],[0,tt,tt,tt,tt,tt,tt,tt]]}},U.prototype.equals=function(o){return this.lineHeight===o.lineHeight&&this.pixelRatio===o.pixelRatio&&this.overviewRulerLanes===o.overviewRulerLanes&&this.renderBorder===o.renderBorder&&this.borderColor===o.borderColor&&this.hideCursor===o.hideCursor&&this.cursorColor===o.cursorColor&&this.themeType===o.themeType&&this.backgroundColor===o.backgroundColor&&this.top===o.top&&this.right===o.right&&this.domWidth===o.domWidth&&this.domHeight===o.domHeight&&this.canvasWidth===o.canvasWidth&&this.canvasHeight===o.canvasHeight},U}(),os=function(U){Sr(o,U);function o(t){var i=U.call(this,t)||this;return i._domNode=Object(y.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=$o.B.onDidChange(function(m){m.changedColorMap&&i._updateSettings(!0)}),i._cursorPositions=[],i}return o.prototype.dispose=function(){U.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},o.prototype._updateSettings=function(t){var i=new Oi(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,t&&this._render(),!0)},o.prototype.onConfigurationChanged=function(t){return this._updateSettings(!1)},o.prototype.onCursorStateChanged=function(t){this._cursorPositions=[];for(var i=0,m=t.selections.length;i<m;i++)this._cursorPositions[i]=t.selections[i].getPosition();return this._cursorPositions.sort(ne.a.compare),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollHeightChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.onThemeChanged=function(t){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)},o.prototype.getDomNode=function(){return this._domNode.domNode},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._render()},o.prototype._render=function(){if(this._settings.overviewRulerLanes===0){this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"");return}var t=this._settings.canvasWidth,i=this._settings.canvasHeight,m=this._settings.lineHeight,E=this._context.viewLayout,te=this._context.viewLayout.getScrollHeight(),Re=i/te,Le=this._context.model.getAllOverviewRulerDecorations(this._context.theme),qe=6*this._settings.pixelRatio|0,ct=qe/2|0,wt=this._domNode.domNode.getContext("2d");this._settings.backgroundColor===null?wt.clearRect(0,0,t,i):(wt.fillStyle=this._settings.backgroundColor,wt.fillRect(0,0,t,i));var tt=this._settings.x,kt=this._settings.w,Bt=Object.keys(Le);Bt.sort();for(var Ht=0,qt=Bt.length;Ht<qt;Ht++){var $t=Bt[Ht],io=Le[$t];wt.fillStyle=$t;for(var yo=0,po=0,bo=0,vo=0,Co=io.length;vo<Co;vo++){var Mo=io[3*vo],Ko=io[3*vo+1],zo=io[3*vo+2],ko=E.getVerticalOffsetForLineNumber(Ko)*Re|0,fn=(E.getVerticalOffsetForLineNumber(zo)+m)*Re|0,In=fn-ko;if(In<qe){var ln=(ko+fn)/2|0;ln<ct?ln=ct:ln+ct>i&&(ln=i-ct),ko=ln-ct,fn=ln+ct}ko>bo+1||Mo!==yo?(vo!==0&&wt.fillRect(tt[yo],po,kt[yo],bo-po),yo=Mo,po=ko,bo=fn):fn>bo&&(bo=fn)}wt.fillRect(tt[yo],po,kt[yo],bo-po)}if(!this._settings.hideCursor&&this._settings.cursorColor){var Nn=2*this._settings.pixelRatio|0,cn=Nn/2|0,Wn=this._settings.x[7],Fn=this._settings.w[7];wt.fillStyle=this._settings.cursorColor;for(var po=-100,bo=-100,vo=0,Co=this._cursorPositions.length;vo<Co;vo++){var Ui=this._cursorPositions[vo],ln=E.getVerticalOffsetForLineNumber(Ui.lineNumber)*Re|0;ln<cn?ln=cn:ln+cn>i&&(ln=i-cn);var ko=ln-cn,fn=ko+Nn;ko>bo+1?(vo!==0&&wt.fillRect(Wn,po,Fn,bo-po),po=ko,bo=fn):fn>bo&&(bo=fn)}wt.fillRect(Wn,po,Fn,bo-po)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(wt.beginPath(),wt.lineWidth=1,wt.strokeStyle=this._settings.borderColor,wt.moveTo(0,0),wt.lineTo(0,i),wt.stroke(),wt.moveTo(0,0),wt.lineTo(t,0),wt.stroke())},o}(V),ns=e("MvK1"),is=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),rs=function(U){is(o,U);function o(t,i){var m=U.call(this)||this;m._context=t;var E=m._context.configuration.options;return m._domNode=Object(y.b)(document.createElement("canvas")),m._domNode.setClassName(i),m._domNode.setPosition("absolute"),m._domNode.setLayerHinting(!0),m._domNode.setContain("strict"),m._zoneManager=new ns.b(function(te){return m._context.viewLayout.getVerticalOffsetForLineNumber(te)}),m._zoneManager.setDOMWidth(0),m._zoneManager.setDOMHeight(0),m._zoneManager.setOuterHeight(m._context.viewLayout.getScrollHeight()),m._zoneManager.setLineHeight(E.get(49)),m._zoneManager.setPixelRatio(E.get(105)),m._context.addEventHandler(m),m}return o.prototype.dispose=function(){this._context.removeEventHandler(this),U.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return t.hasChanged(49)&&(this._zoneManager.setLineHeight(i.get(49)),this._render()),t.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},o.prototype.onFlushed=function(t){return this._render(),!0},o.prototype.onScrollChanged=function(t){return t.scrollHeightChanged&&(this._zoneManager.setOuterHeight(t.scrollHeight),this._render()),!0},o.prototype.onZonesChanged=function(t){return this._render(),!0},o.prototype.getDomNode=function(){return this._domNode.domNode},o.prototype.setLayout=function(t){this._domNode.setTop(t.top),this._domNode.setRight(t.right);var i=!1;i=this._zoneManager.setDOMWidth(t.width)||i,i=this._zoneManager.setDOMHeight(t.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())},o.prototype.setZones=function(t){this._zoneManager.setZones(t),this._render()},o.prototype._render=function(){if(this._zoneManager.getOuterHeight()===0)return!1;var t=this._zoneManager.getCanvasWidth(),i=this._zoneManager.getCanvasHeight(),m=this._zoneManager.resolveColorZones(),E=this._zoneManager.getId2Color(),te=this._domNode.domNode.getContext("2d");return te.clearRect(0,0,t,i),m.length>0&&this._renderOneLane(te,m,E,t),!0},o.prototype._renderOneLane=function(t,i,m,E){for(var te=0,Re=0,Le=0,qe=0,ct=i;qe<ct.length;qe++){var wt=ct[qe],tt=wt.colorId,kt=wt.from,Bt=wt.to;tt!==te?(t.fillRect(0,Re,E,Le-Re),te=tt,t.fillStyle=m[te],Re=kt,Le=Bt):Le>=kt?Le=Math.max(Le,Bt):(t.fillRect(0,Re,E,Le-Re),Re=kt,Le=Bt)}t.fillRect(0,Re,E,Le-Re)},o}(K),ia=e("7zd4"),ss=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),as=function(U){ss(o,U);function o(t){var i=U.call(this,t)||this;i.domNode=Object(y.b)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.domNode.setClassName("view-rulers"),i._renderedRulers=[];var m=i._context.configuration.options;return i._rulers=m.get(77),i._typicalHalfwidthCharacterWidth=m.get(34).typicalHalfwidthCharacterWidth,i}return o.prototype.dispose=function(){U.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._rulers=i.get(77),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onScrollChanged=function(t){return t.scrollHeightChanged},o.prototype.prepareRender=function(t){},o.prototype._ensureRulersCount=function(){var t=this._renderedRulers.length,i=this._rulers.length;if(t===i)return;if(t<i){for(var m=this._context.model.getOptions().tabSize,E=m,te=i-t;te>0;){var Re=Object(y.b)(document.createElement("div"));Re.setClassName("view-ruler"),Re.setWidth(E),this.domNode.appendChild(Re),this._renderedRulers.push(Re),te--}return}for(var Le=t-i;Le>0;){var Re=this._renderedRulers.pop();this.domNode.removeChild(Re),Le--}},o.prototype.render=function(t){this._ensureRulersCount();for(var i=0,m=this._rulers.length;i<m;i++){var E=this._renderedRulers[i];E.setHeight(Math.min(t.scrollHeight,1e6)),E.setLeft(this._rulers[i]*this._typicalHalfwidthCharacterWidth)}},o}(V);Object(Z.e)(function(U,o){var t=U.getColor(dt.m);t&&o.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+t+" inset; }")});var ra=e("2MPD"),ls=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ds=function(U){ls(o,U);function o(t){var i=U.call(this,t)||this;i._scrollTop=0,i._width=0,i._updateWidth(),i._shouldShow=!1;var m=i._context.configuration.options,E=m.get(78);return i._useShadows=E.useShadows,i._domNode=Object(y.b)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i}return o.prototype.dispose=function(){U.prototype.dispose.call(this)},o.prototype._updateShouldShow=function(){var t=this._useShadows&&this._scrollTop>0;return this._shouldShow!==t?(this._shouldShow=t,!0):!1},o.prototype.getDomNode=function(){return this._domNode},o.prototype._updateWidth=function(){var t=this._context.configuration.options,i=t.get(107);i.renderMinimap===0||i.minimapWidth>0&&i.minimapLeft===0?this._width=i.width:this._width=i.width-i.minimapWidth-i.verticalScrollbarWidth},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(78);return this._useShadows=m.useShadows,this._updateWidth(),this._updateShouldShow(),!0},o.prototype.onScrollChanged=function(t){return this._scrollTop=t.scrollTop,this._updateShouldShow()},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},o}(V);Object(Z.e)(function(U,o){var t=U.getColor(Dn.Vb);t&&o.addRule(".monaco-editor .scroll-decoration { box-shadow: "+t+" 0 6px 6px -6px inset; }")});var cs=e("eC1c"),Lr=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Mr=function(){function U(o){this.left=o.left,this.width=o.width,this.startStyle=null,this.endStyle=null}return U}(),Dr=function(){function U(o,t){this.lineNumber=o,this.ranges=t}return U}();function us(U){return new Mr(U)}function hs(U){return new Dr(U.lineNumber,U.ranges.map(us))}var fs=v.f,ms=function(U){Lr(o,U);function o(t){var i=U.call(this)||this;i._previousFrameVisibleRangesWithStyle=[],i._context=t;var m=i._context.configuration.options;return i._lineHeight=m.get(49),i._roundedSelection=m.get(76),i._typicalHalfwidthCharacterWidth=m.get(34).typicalHalfwidthCharacterWidth,i._selections=[],i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,U.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._roundedSelection=i.get(76),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._visibleRangesHaveGaps=function(t){for(var i=0,m=t.length;i<m;i++){var E=t[i];if(E.ranges.length>1)return!0}return!1},o.prototype._enrichVisibleRangesWithStyle=function(t,i,m){var E=this._typicalHalfwidthCharacterWidth/4,te=null,Re=null;if(m&&m.length>0&&i.length>0){var Le=i[0].lineNumber;if(Le===t.startLineNumber)for(var qe=0;!te&&qe<m.length;qe++)m[qe].lineNumber===Le&&(te=m[qe].ranges[0]);var ct=i[i.length-1].lineNumber;if(ct===t.endLineNumber)for(var qe=m.length-1;!Re&&qe>=0;qe--)m[qe].lineNumber===ct&&(Re=m[qe].ranges[0]);te&&!te.startStyle&&(te=null),Re&&!Re.startStyle&&(Re=null)}for(var qe=0,wt=i.length;qe<wt;qe++){var tt=i[qe].ranges[0],kt=tt.left,Bt=tt.left+tt.width,Ht={top:0,bottom:0},qt={top:0,bottom:0};if(qe>0){var $t=i[qe-1].ranges[0].left,io=i[qe-1].ranges[0].left+i[qe-1].ranges[0].width;ti(kt-$t)<E?Ht.top=2:kt>$t&&(Ht.top=1),ti(Bt-io)<E?qt.top=2:$t<Bt&&Bt<io&&(qt.top=1)}else te&&(Ht.top=te.startStyle.top,qt.top=te.endStyle.top);if(qe+1<wt){var yo=i[qe+1].ranges[0].left,po=i[qe+1].ranges[0].left+i[qe+1].ranges[0].width;ti(kt-yo)<E?Ht.bottom=2:yo<kt&&kt<po&&(Ht.bottom=1),ti(Bt-po)<E?qt.bottom=2:Bt<po&&(qt.bottom=1)}else Re&&(Ht.bottom=Re.startStyle.bottom,qt.bottom=Re.endStyle.bottom);tt.startStyle=Ht,tt.endStyle=qt}},o.prototype._getVisibleRangesWithStyle=function(t,i,m){var E=i.linesVisibleRangesForRange(t,!0)||[],te=E.map(hs),Re=this._visibleRangesHaveGaps(te);return!fs&&!Re&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(i.visibleRange,te,m),te},o.prototype._createSelectionPiece=function(t,i,m,E,te){return'<div class="cslr '+m+'" style="top:'+t.toString()+"px;left:"+E.toString()+"px;width:"+te.toString()+"px;height:"+i+'px;"></div>'},o.prototype._actualRenderOneSelection=function(t,i,m,E){if(E.length===0)return;for(var te=!!E[0].ranges[0].startStyle,Re=this._lineHeight.toString(),Le=(this._lineHeight-1).toString(),qe=E[0].lineNumber,ct=E[E.length-1].lineNumber,wt=0,tt=E.length;wt<tt;wt++){for(var kt=E[wt],Bt=kt.lineNumber,Ht=Bt-i,qt=m&&(Bt===ct||Bt===qe)?Le:Re,$t=m&&Bt===qe?1:0,io="",yo="",po=0,bo=kt.ranges.length;po<bo;po++){var vo=kt.ranges[po];if(te){var Co=vo.startStyle,Mo=vo.endStyle;if(Co.top===1||Co.bottom===1){io+=this._createSelectionPiece($t,qt,o.SELECTION_CLASS_NAME,vo.left-o.ROUNDED_PIECE_WIDTH,o.ROUNDED_PIECE_WIDTH);var Ko=o.EDITOR_BACKGROUND_CLASS_NAME;Co.top===1&&(Ko+=" "+o.SELECTION_TOP_RIGHT),Co.bottom===1&&(Ko+=" "+o.SELECTION_BOTTOM_RIGHT),io+=this._createSelectionPiece($t,qt,Ko,vo.left-o.ROUNDED_PIECE_WIDTH,o.ROUNDED_PIECE_WIDTH)}if(Mo.top===1||Mo.bottom===1){io+=this._createSelectionPiece($t,qt,o.SELECTION_CLASS_NAME,vo.left+vo.width,o.ROUNDED_PIECE_WIDTH);var zo=o.EDITOR_BACKGROUND_CLASS_NAME;Mo.top===1&&(zo+=" "+o.SELECTION_TOP_LEFT),Mo.bottom===1&&(zo+=" "+o.SELECTION_BOTTOM_LEFT),io+=this._createSelectionPiece($t,qt,zo,vo.left+vo.width,o.ROUNDED_PIECE_WIDTH)}}var ko=o.SELECTION_CLASS_NAME;if(te){var Co=vo.startStyle,Mo=vo.endStyle;Co.top===0&&(ko+=" "+o.SELECTION_TOP_LEFT),Co.bottom===0&&(ko+=" "+o.SELECTION_BOTTOM_LEFT),Mo.top===0&&(ko+=" "+o.SELECTION_TOP_RIGHT),Mo.bottom===0&&(ko+=" "+o.SELECTION_BOTTOM_RIGHT)}yo+=this._createSelectionPiece($t,qt,ko,vo.left,vo.width)}t[Ht][0]+=io,t[Ht][1]+=yo}},o.prototype.prepareRender=function(t){for(var i=[],m=t.visibleRange.startLineNumber,E=t.visibleRange.endLineNumber,te=m;te<=E;te++){var Re=te-m;i[Re]=["",""]}for(var Le=[],qe=0,ct=this._selections.length;qe<ct;qe++){var wt=this._selections[qe];if(wt.isEmpty()){Le[qe]=null;continue}var tt=this._getVisibleRangesWithStyle(wt,t,this._previousFrameVisibleRangesWithStyle[qe]);Le[qe]=tt,this._actualRenderOneSelection(i,m,this._selections.length>1,tt)}this._previousFrameVisibleRangesWithStyle=Le,this._renderResult=i.map(function(kt){var Bt=kt[0],Ht=kt[1];return Bt+Ht})},o.prototype.render=function(t,i){if(!this._renderResult)return"";var m=i-t;return m<0||m>=this._renderResult.length?"":this._renderResult[m]},o.SELECTION_CLASS_NAME="selected-text",o.SELECTION_TOP_LEFT="top-left-radius",o.SELECTION_BOTTOM_LEFT="bottom-left-radius",o.SELECTION_TOP_RIGHT="top-right-radius",o.SELECTION_BOTTOM_RIGHT="bottom-right-radius",o.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",o.ROUNDED_PIECE_WIDTH=10,o}(Fe);Object(Z.e)(function(U,o){var t=U.getColor(Dn.K);t&&o.addRule(".monaco-editor .focused .selected-text { background-color: "+t+"; }");var i=U.getColor(Dn.F);i&&o.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var m=U.getColor(Dn.L);m&&o.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+m+"; }")});function ti(U){return U<0?-U:U}var sa=e("2Tsy"),Or=function(){function U(o,t,i,m,E,te){this.top=o,this.left=t,this.width=i,this.height=m,this.textContent=E,this.textContentClassName=te}return U}(),Tr=function(){function U(o){this._context=o;var t=this._context.configuration.options,i=t.get(34);this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(y.b)(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),W.a.applyFontInfo(this._domNode,i),this._domNode.setDisplay("none"),this._position=new ne.a(1,1),this._lastRenderedContent="",this._renderData=null}return U.prototype.getDomNode=function(){return this._domNode},U.prototype.getPosition=function(){return this._position},U.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},U.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},U.prototype.onConfigurationChanged=function(o){var t=this._context.configuration.options,i=t.get(34);return this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),W.a.applyFontInfo(this._domNode,i),!0},U.prototype.onCursorPositionChanged=function(o){return this._position=o,!0},U.prototype._prepareRender=function(o){var t="";if(this._cursorStyle===ye.g.Line||this._cursorStyle===ye.g.LineThin){var i=o.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;var m;if(this._cursorStyle===ye.g.Line){if(m=$.u(this._lineCursorWidth>0?this._lineCursorWidth:2),m>2){var E=this._context.model.getLineContent(this._position.lineNumber),te=ge.E(E,this._position.column-1);t=E.substr(this._position.column-1,te)}}else m=$.u(1);var Re=i.left;m>=2&&Re>=1&&(Re-=1);var Le=o.getVerticalOffsetForLineNumber(this._position.lineNumber)-o.bigNumbersDelta;return new Or(Le,Re,m,this._lineHeight,t,"")}var qe=this._context.model.getLineContent(this._position.lineNumber),ct=ge.E(qe,this._position.column-1),wt=o.linesVisibleRangesForRange(new fe.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+ct),!1);if(!wt||wt.length===0)return null;var tt=wt[0];if(tt.outsideRenderedLine||tt.ranges.length===0)return null;var kt=tt.ranges[0],Bt=kt.width<1?this._typicalHalfwidthCharacterWidth:kt.width,Ht="";if(this._cursorStyle===ye.g.Block){var qt=this._context.model.getViewLineData(this._position.lineNumber);t=qe.substr(this._position.column-1,ct);var $t=qt.tokens.findTokenIndexAtOffset(this._position.column-1);Ht=qt.tokens.getClassName($t)}var io=o.getVerticalOffsetForLineNumber(this._position.lineNumber)-o.bigNumbersDelta,yo=this._lineHeight;return(this._cursorStyle===ye.g.Underline||this._cursorStyle===ye.g.UnderlineThin)&&(io+=this._lineHeight-2,yo=2),new Or(io,kt.left,Bt,yo,t,Ht)},U.prototype.prepareRender=function(o){this._renderData=this._prepareRender(o)},U.prototype.render=function(o){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)},U}(),ps=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),gs=function(U){ps(o,U);function o(t){var i=U.call(this,t)||this,m=i._context.configuration.options;return i._readOnly=m.get(68),i._cursorBlinking=m.get(16),i._cursorStyle=m.get(18),i._cursorSmoothCaretAnimation=m.get(17),i._selectionIsEmpty=!0,i._isVisible=!1,i._primaryCursor=new Tr(i._context),i._secondaryCursors=[],i._renderData=[],i._domNode=Object(y.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 g.e,i._cursorFlatBlinkInterval=new g.c,i._blinkingEnabled=!1,i._editorHasFocus=!1,i._updateBlinking(),i}return o.prototype.dispose=function(){U.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){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(t);for(var m=0,E=this._secondaryCursors.length;m<E;m++)this._secondaryCursors[m].onConfigurationChanged(t);return!0},o.prototype._onCursorPositionChanged=function(t,i){if(this._primaryCursor.onCursorPositionChanged(t),this._updateBlinking(),this._secondaryCursors.length<i.length)for(var m=i.length-this._secondaryCursors.length,E=0;E<m;E++){var te=new Tr(this._context);this._domNode.domNode.insertBefore(te.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(te)}else if(this._secondaryCursors.length>i.length)for(var Re=this._secondaryCursors.length-i.length,E=0;E<Re;E++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1);for(var E=0;E<i.length;E++)this._secondaryCursors[E].onCursorPositionChanged(i[E])},o.prototype.onCursorStateChanged=function(t){for(var i=[],m=0,E=t.selections.length;m<E;m++)i[m]=t.selections[m].getPosition();this._onCursorPositionChanged(i[0],i.slice(1));var te=t.selections[0].isEmpty();return this._selectionIsEmpty!==te&&(this._selectionIsEmpty=te,this._updateDomClassName()),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onFocusChanged=function(t){return this._editorHasFocus=t.isFocused,this._updateBlinking(),!1},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return!0},o.prototype.onTokensChanged=function(t){var i=function(Re){for(var Le=0,qe=t.ranges.length;Le<qe;Le++)if(t.ranges[Le].fromLineNumber<=Re.lineNumber&&Re.lineNumber<=t.ranges[Le].toLineNumber)return!0;return!1};if(i(this._primaryCursor.getPosition()))return!0;for(var m=0,E=this._secondaryCursors;m<E.length;m++){var te=E[m];if(i(te.getPosition()))return!0}return!1},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getCursorBlinking=function(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0},o.prototype._updateBlinking=function(){var t=this;this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();var i=this._getCursorBlinking(),m=i===0,E=i===5;m?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!m&&!E&&(i===1?this._cursorFlatBlinkInterval.cancelAndSet(function(){t._isVisible?t._hide():t._show()},o.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(function(){t._blinkingEnabled=!0,t._updateDomClassName()},o.BLINK_INTERVAL))},o.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())},o.prototype._getClassName=function(){var t="cursors-layer";this._selectionIsEmpty||(t+=" has-selection");switch(this._cursorStyle){case ye.g.Line:t+=" cursor-line-style";break;case ye.g.Block:t+=" cursor-block-style";break;case ye.g.Underline:t+=" cursor-underline-style";break;case ye.g.LineThin:t+=" cursor-line-thin-style";break;case ye.g.BlockOutline:t+=" cursor-block-outline-style";break;case ye.g.UnderlineThin:t+=" cursor-underline-thin-style";break;default:t+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:t+=" cursor-blink";break;case 2:t+=" cursor-smooth";break;case 3:t+=" cursor-phase";break;case 4:t+=" cursor-expand";break;case 5:t+=" cursor-solid";break;default:t+=" cursor-solid"}else t+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(t+=" cursor-smooth-caret-animation"),t},o.prototype._show=function(){this._primaryCursor.show();for(var t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].show();this._isVisible=!0},o.prototype._hide=function(){this._primaryCursor.hide();for(var t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].hide();this._isVisible=!1},o.prototype.prepareRender=function(t){this._primaryCursor.prepareRender(t);for(var i=0,m=this._secondaryCursors.length;i<m;i++)this._secondaryCursors[i].prepareRender(t)},o.prototype.render=function(t){var i=[],m=0,E=this._primaryCursor.render(t);E&&(i[m++]=E);for(var te=0,Re=this._secondaryCursors.length;te<Re;te++){var Le=this._secondaryCursors[te].render(t);Le&&(i[m++]=Le)}this._renderData=i},o.prototype.getLastRenderData=function(){return this._renderData},o.BLINK_INTERVAL=500,o}(V);Object(Z.e)(function(U,o){var t=U.getColor(dt.g);if(t){var i=U.getColor(dt.f);i||(i=t.opposite()),o.addRule(".monaco-editor .cursor { background-color: "+t+"; border-color: "+t+"; color: "+i+"; }"),U.type==="hc"&&o.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+i+"; border-right: 1px solid "+i+"; }")}});var xr=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Ar=function(){throw new Error("Invalid change accessor")},Ci=function(U){xr(o,U);function o(t){var i=U.call(this,t)||this,m=i._context.configuration.options,E=m.get(107);return i._lineHeight=m.get(49),i._contentWidth=E.contentWidth,i._contentLeft=E.contentLeft,i.domNode=Object(y.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(y.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 o.prototype.dispose=function(){U.prototype.dispose.call(this),this._zones={}},o.prototype._recomputeWhitespacesProps=function(){for(var t=this,i=this._context.viewLayout.getWhitespaces(),m=new Map,E=0,te=i;E<te.length;E++){var Re=te[E];m.set(Re.id,Re)}return this._context.viewLayout.changeWhitespace(function(Le){for(var qe=!1,ct=Object.keys(t._zones),wt=0,tt=ct.length;wt<tt;wt++){var kt=ct[wt],Bt=t._zones[kt],Ht=t._computeWhitespaceProps(Bt.delegate),qt=m.get(kt);qt&&(qt.afterLineNumber!==Ht.afterViewLineNumber||qt.height!==Ht.heightInPx)&&(Le.changeOneWhitespace(kt,Ht.afterViewLineNumber,Ht.heightInPx),t._safeCallOnComputedHeight(Bt.delegate,Ht.heightInPx),qe=!0)}return qe})},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,m=i.get(107);return this._lineHeight=i.get(49),this._contentWidth=m.contentWidth,this._contentLeft=m.contentLeft,t.hasChanged(49)&&this._recomputeWhitespacesProps(),!0},o.prototype.onLineMappingChanged=function(t){var i=this._recomputeWhitespacesProps();return i&&this._context.viewLayout.onHeightMaybeChanged(),i},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged||t.scrollWidthChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype._getZoneOrdinal=function(t){return typeof t.afterColumn!="undefined"?t.afterColumn:1e4},o.prototype._computeWhitespaceProps=function(t){if(t.afterLineNumber===0)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(t),minWidthInPx:this._minWidthInPixels(t)};var i;if(typeof t.afterColumn!="undefined")i=this._context.model.validateModelPosition({lineNumber:t.afterLineNumber,column:t.afterColumn});else{var m=this._context.model.validateModelPosition({lineNumber:t.afterLineNumber,column:1}).lineNumber;i=new ne.a(m,this._context.model.getModelLineMaxColumn(m))}var E;i.column===this._context.model.getModelLineMaxColumn(i.lineNumber)?E=this._context.model.validateModelPosition({lineNumber:i.lineNumber+1,column:1}):E=this._context.model.validateModelPosition({lineNumber:i.lineNumber,column:i.column+1});var te=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(i),Re=this._context.model.coordinatesConverter.modelPositionIsVisible(E);return{afterViewLineNumber:te.lineNumber,heightInPx:Re?this._heightInPixels(t):0,minWidthInPx:this._minWidthInPixels(t)}},o.prototype.changeViewZones=function(t){var i=this;return this._context.viewLayout.changeWhitespace(function(m){var E=!1,te={addZone:function(Re){return E=!0,i._addZone(m,Re)},removeZone:function(Re){if(!Re)return;E=i._removeZone(m,Re)||E},layoutZone:function(Re){if(!Re)return;E=i._layoutZone(m,Re)||E}};return vs(t,te),te.addZone=Ar,te.removeZone=Ar,te.layoutZone=Ar,E})},o.prototype._addZone=function(t,i){var m=this._computeWhitespaceProps(i),E=t.insertWhitespace(m.afterViewLineNumber,this._getZoneOrdinal(i),m.heightInPx,m.minWidthInPx),te={whitespaceId:E,delegate:i,isVisible:!1,domNode:Object(y.b)(i.domNode),marginDomNode:i.marginDomNode?Object(y.b)(i.marginDomNode):null};return this._safeCallOnComputedHeight(te.delegate,m.heightInPx),te.domNode.setPosition("absolute"),te.domNode.domNode.style.width="100%",te.domNode.setDisplay("none"),te.domNode.setAttribute("monaco-view-zone",te.whitespaceId),this.domNode.appendChild(te.domNode),te.marginDomNode&&(te.marginDomNode.setPosition("absolute"),te.marginDomNode.domNode.style.width="100%",te.marginDomNode.setDisplay("none"),te.marginDomNode.setAttribute("monaco-view-zone",te.whitespaceId),this.marginDomNode.appendChild(te.marginDomNode)),this._zones[te.whitespaceId]=te,this.setShouldRender(),te.whitespaceId},o.prototype._removeZone=function(t,i){if(this._zones.hasOwnProperty(i)){var m=this._zones[i];return delete this._zones[i],t.removeWhitespace(m.whitespaceId),m.domNode.removeAttribute("monaco-visible-view-zone"),m.domNode.removeAttribute("monaco-view-zone"),m.domNode.domNode.parentNode.removeChild(m.domNode.domNode),m.marginDomNode&&(m.marginDomNode.removeAttribute("monaco-visible-view-zone"),m.marginDomNode.removeAttribute("monaco-view-zone"),m.marginDomNode.domNode.parentNode.removeChild(m.marginDomNode.domNode)),this.setShouldRender(),!0}return!1},o.prototype._layoutZone=function(t,i){if(this._zones.hasOwnProperty(i)){var m=this._zones[i],E=this._computeWhitespaceProps(m.delegate);return t.changeOneWhitespace(m.whitespaceId,E.afterViewLineNumber,E.heightInPx),this._safeCallOnComputedHeight(m.delegate,E.heightInPx),this.setShouldRender(),!0}return!1},o.prototype.shouldSuppressMouseDownOnViewZone=function(t){if(this._zones.hasOwnProperty(t)){var i=this._zones[t];return Boolean(i.delegate.suppressMouseDown)}return!1},o.prototype._heightInPixels=function(t){return typeof t.heightInPx=="number"?t.heightInPx:typeof t.heightInLines=="number"?this._lineHeight*t.heightInLines:this._lineHeight},o.prototype._minWidthInPixels=function(t){return typeof t.minWidthInPx=="number"?t.minWidthInPx:0},o.prototype._safeCallOnComputedHeight=function(t,i){if(typeof t.onComputedHeight=="function")try{t.onComputedHeight(i)}catch(m){Object(R.e)(m)}},o.prototype._safeCallOnDomNodeTop=function(t,i){if(typeof t.onDomNodeTop=="function")try{t.onDomNodeTop(i)}catch(m){Object(R.e)(m)}},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){for(var i=t.viewportData.whitespaceViewportData,m={},E=!1,te=0,Re=i.length;te<Re;te++)m[i[te].id]=i[te],E=!0;for(var Le=Object.keys(this._zones),te=0,Re=Le.length;te<Re;te++){var qe=Le[te],ct=this._zones[qe],wt=0,tt=0,kt="none";m.hasOwnProperty(qe)?(wt=m[qe].verticalOffset-t.bigNumbersDelta,tt=m[qe].height,kt="block",ct.isVisible||(ct.domNode.setAttribute("monaco-visible-view-zone","true"),ct.isVisible=!0),this._safeCallOnDomNodeTop(ct.delegate,t.getScrolledTopFromAbsoluteTop(m[qe].verticalOffset))):(ct.isVisible&&(ct.domNode.removeAttribute("monaco-visible-view-zone"),ct.isVisible=!1),this._safeCallOnDomNodeTop(ct.delegate,t.getScrolledTopFromAbsoluteTop(-1e6))),ct.domNode.setTop(wt),ct.domNode.setHeight(tt),ct.domNode.setDisplay(kt),ct.marginDomNode&&(ct.marginDomNode.setTop(wt),ct.marginDomNode.setHeight(tt),ct.marginDomNode.setDisplay(kt))}E&&(this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))},o}(V);function vs(U,o){try{return U(o)}catch(t){Object(R.e)(t)}}var Ti=function(){function U(o,t,i,m){this.configuration=o,this.theme=t,this.model=i,this.viewLayout=i.viewLayout,this.privateViewEventBus=m}return U.prototype.addEventHandler=function(o){this.privateViewEventBus.addEventHandler(o)},U.prototype.removeEventHandler=function(o){this.privateViewEventBus.removeEventHandler(o)},U}(),ys=function(){function U(o){this._eventHandlerGateKeeper=o,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return U.prototype.addEventHandler=function(o){for(var t=0,i=this._eventHandlers.length;t<i;t++)this._eventHandlers[t]===o&&console.warn("Detected duplicate listener in ViewEventDispatcher",o);this._eventHandlers.push(o)},U.prototype.removeEventHandler=function(o){for(var t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===o){this._eventHandlers.splice(t,1);break}},U.prototype.emit=function(o){this._eventQueue?this._eventQueue.push(o):this._eventQueue=[o],this._isConsumingQueue||this.consumeQueue()},U.prototype.emitMany=function(o){this._eventQueue?this._eventQueue=this._eventQueue.concat(o):this._eventQueue=o,this._isConsumingQueue||this.consumeQueue()},U.prototype.consumeQueue=function(){var o=this;this._eventHandlerGateKeeper(function(){try{o._isConsumingQueue=!0,o._doConsumeQueue()}finally{o._isConsumingQueue=!1}})},U.prototype._doConsumeQueue=function(){for(;this._eventQueue;){var o=this._eventQueue;this._eventQueue=null;for(var t=this._eventHandlers.slice(0),i=0,m=t.length;i<m;i++)t[i].handleEvents(o)}},U}(),aa=function(){function U(o,t,i,m){this.selections=o,this.startLineNumber=t.startLineNumber|0,this.endLineNumber=t.endLineNumber|0,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=t.bigNumbersDelta|0,this.whitespaceViewportData=i,this._model=m,this.visibleRange=new fe.a(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}return U.prototype.getViewLineRenderingData=function(o){return this._model.getViewLineRenderingData(this.visibleRange,o)},U.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)},U}(),bs=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Cs=function(U){bs(o,U);function o(t,i,m,E,te,Re){var Le=U.call(this)||this;Le._cursor=te,Le._renderAnimationFrame=null,Le.outgoingEvents=Re;var qe=new Ne(i,E,Le.outgoingEvents,t);Le.eventDispatcher=new ys(function(io){return Le._renderOnce(io)}),Le.eventDispatcher.addEventHandler(Le),Le._context=new Ti(i,m.getTheme(),E,Le.eventDispatcher),Le._register(m.onThemeChange(function(io){Le._context.theme=io,Le.eventDispatcher.emit(new rn),Le.render(!0,!1)})),Le.viewParts=[],Le._textAreaHandler=new M(Le._context,qe,Le.createTextAreaHandlerHelper()),Le.viewParts.push(Le._textAreaHandler),Le.linesContent=Object(y.b)(document.createElement("div")),Le.linesContent.setClassName("lines-content monaco-editor-background"),Le.linesContent.setPosition("absolute"),Le.domNode=Object(y.b)(document.createElement("div")),Le.domNode.setClassName(Le.getEditorClassName()),Le.overflowGuardContainer=Object(y.b)(document.createElement("div")),de.write(Le.overflowGuardContainer,3),Le.overflowGuardContainer.setClassName("overflow-guard"),Le._scrollbar=new wo(Le._context,Le.linesContent,Le.domNode,Le.overflowGuardContainer),Le.viewParts.push(Le._scrollbar),Le.viewLines=new ai(Le._context,Le.linesContent),Le.viewZones=new Ci(Le._context),Le.viewParts.push(Le.viewZones);var ct=new os(Le._context);Le.viewParts.push(ct);var wt=new ds(Le._context);Le.viewParts.push(wt);var tt=new He(Le._context);Le.viewParts.push(tt),tt.addDynamicOverlay(new zt(Le._context)),tt.addDynamicOverlay(new ms(Le._context)),tt.addDynamicOverlay(new qo(Le._context)),tt.addDynamicOverlay(new go(Le._context));var kt=new De(Le._context);Le.viewParts.push(kt),kt.addDynamicOverlay(new Xt(Le._context)),kt.addDynamicOverlay(new vn(Le._context)),kt.addDynamicOverlay(new Ki(Le._context)),kt.addDynamicOverlay(new Yr(Le._context)),kt.addDynamicOverlay(new Qt(Le._context));var Bt=new fo(Le._context);Bt.getDomNode().appendChild(Le.viewZones.marginDomNode),Bt.getDomNode().appendChild(kt.getDomNode()),Le.viewParts.push(Bt),Le.contentWidgets=new pe(Le._context,Le.domNode),Le.viewParts.push(Le.contentWidgets),Le.viewCursors=new gs(Le._context),Le.viewParts.push(Le.viewCursors),Le.overlayWidgets=new _r(Le._context),Le.viewParts.push(Le.overlayWidgets);var Ht=new as(Le._context);Le.viewParts.push(Ht);var qt=new es(Le._context);if(Le.viewParts.push(qt),ct){var $t=Le._scrollbar.getOverviewRulerLayoutInfo();$t.parent.insertBefore(ct.getDomNode(),$t.insertBefore)}return Le.linesContent.appendChild(tt.getDomNode()),Le.linesContent.appendChild(Ht.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(Bt.getDomNode()),Le.overflowGuardContainer.appendChild(Le._scrollbar.getDomNode()),Le.overflowGuardContainer.appendChild(wt.getDomNode()),Le.overflowGuardContainer.appendChild(Le._textAreaHandler.textArea),Le.overflowGuardContainer.appendChild(Le._textAreaHandler.textAreaCover),Le.overflowGuardContainer.appendChild(Le.overlayWidgets.getDomNode()),Le.overflowGuardContainer.appendChild(qt.getDomNode()),Le.domNode.appendChild(Le.overflowGuardContainer),Le.domNode.appendChild(Le.contentWidgets.overflowingContentWidgetsDomNode),Le._applyLayout(),Le.pointerHandler=Le._register(new ze(Le._context,qe,Le.createPointerHandlerHelper())),Le._register(E.addEventListener(function(io){Le.eventDispatcher.emitMany(io)})),Le._register(Le._cursor.addEventListener(function(io){Le.eventDispatcher.emitMany(io)})),Le}return o.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},o.prototype.createPointerHandlerHelper=function(){var t=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){t.focus()},getLastRenderData:function(){var i=t.viewCursors.getLastRenderData()||[],m=t._textAreaHandler.getLastRenderData();return new Ue(i,m)},shouldSuppressMouseDownOnViewZone:function(i){return t.viewZones.shouldSuppressMouseDownOnViewZone(i)},shouldSuppressMouseDownOnWidget:function(i){return t.contentWidgets.shouldSuppressMouseDownOnWidget(i)},getPositionFromDOMInfo:function(i,m){return t._flushAccumulatedAndRenderNow(),t.viewLines.getPositionFromDOMInfo(i,m)},visibleRangeForPosition:function(i,m){return t._flushAccumulatedAndRenderNow(),t.viewLines.visibleRangeForPosition(new ne.a(i,m))},getLineWidth:function(i){return t._flushAccumulatedAndRenderNow(),t.viewLines.getLineWidth(i)}}},o.prototype.createTextAreaHandlerHelper=function(){var t=this;return{visibleRangeForPositionRelativeToEditor:function(i,m){return t._flushAccumulatedAndRenderNow(),t.viewLines.visibleRangeForPosition(new ne.a(i,m))}}},o.prototype._applyLayout=function(){var t=this._context.configuration.options,i=t.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)},o.prototype.getEditorClassName=function(){var t=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(104)+" "+Object(Z.d)(this._context.theme.type)+t},o.prototype.onConfigurationChanged=function(t){return this.domNode.setClassName(this.getEditorClassName()),this._applyLayout(),!1},o.prototype.onContentSizeChanged=function(t){return this.outgoingEvents.emitContentSizeChange(t),!1},o.prototype.onFocusChanged=function(t){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(t.isFocused),t.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},o.prototype.onScrollChanged=function(t){return this.outgoingEvents.emitScrollChanged(t),!1},o.prototype.onThemeChanged=function(t){return this.domNode.setClassName(this.getEditorClassName()),!1},o.prototype.dispose=function(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.viewLines.dispose();for(var t=0,i=this.viewParts.length;t<i;t++)this.viewParts[t].dispose();this.viewParts=[],U.prototype.dispose.call(this)},o.prototype._renderOnce=function(t){var i=ci(t);return this._scheduleRender(),i},o.prototype._scheduleRender=function(){this._renderAnimationFrame===null&&(this._renderAnimationFrame=$.U(this._onRenderScheduled.bind(this),100))},o.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()},o.prototype._renderNow=function(){var t=this;ci(function(){return t._actualRender()})},o.prototype._getViewPartsToRender=function(){for(var t=[],i=0,m=0,E=this.viewParts.length;m<E;m++){var te=this.viewParts[m];te.shouldRender()&&(t[i++]=te)}return t},o.prototype._actualRender=function(){if(!$.M(this.domNode.domNode))return;var t=this._getViewPartsToRender();if(!this.viewLines.shouldRender()&&t.length===0)return;var i=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(i.startLineNumber,i.endLineNumber,i.centeredLineNumber);var m=new aa(this._cursor.getViewSelections(),i,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(m),this.viewLines.shouldRender()&&(this.viewLines.renderText(m),this.viewLines.onDidRender(),t=this._getViewPartsToRender());for(var E=new Ie(this._context.viewLayout,m,this.viewLines),te=0,Re=t.length;te<Re;te++){var Le=t[te];Le.prepareRender(E)}for(var te=0,Re=t.length;te<Re;te++){var Le=t[te];Le.render(E),Le.onDidRender()}},o.prototype.delegateVerticalScrollbarMouseDown=function(t){this._scrollbar.delegateVerticalScrollbarMouseDown(t)},o.prototype.restoreState=function(t){this._context.viewLayout.setScrollPositionNow({scrollTop:t.scrollTop}),this._context.model.tokenizeViewport(),this._renderNow(),this.viewLines.updateLineWidths(),this._context.viewLayout.setScrollPositionNow({scrollLeft:t.scrollLeft})},o.prototype.getOffsetForColumn=function(t,i){var m=this._context.model.validateModelPosition({lineNumber:t,column:i}),E=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(m);this._flushAccumulatedAndRenderNow();var te=this.viewLines.visibleRangeForPosition(new ne.a(E.lineNumber,E.column));return te?te.left:-1},o.prototype.getTargetAtClientPoint=function(t,i){var m=this.pointerHandler.getTargetAtClientPoint(t,i);return m?ft.convertViewToModelMouseTarget(m,this._context.model.coordinatesConverter):null},o.prototype.createOverviewRuler=function(t){return new rs(this._context,t)},o.prototype.change=function(t){var i=this;return this._renderOnce(function(){var m=i.viewZones.changeViewZones(t);return m&&(i._context.viewLayout.onHeightMaybeChanged(),i._context.privateViewEventBus.emit(new Uo)),m})},o.prototype.render=function(t,i){if(i){this.viewLines.forceShouldRender();for(var m=0,E=this.viewParts.length;m<E;m++){var te=this.viewParts[m];te.forceShouldRender()}}t?this._flushAccumulatedAndRenderNow():this._scheduleRender()},o.prototype.focus=function(){this._textAreaHandler.focusTextArea()},o.prototype.isFocused=function(){return this._textAreaHandler.isFocused()},o.prototype.setAriaOptions=function(t){this._textAreaHandler.setAriaOptions(t)},o.prototype.addContentWidget=function(t){this.contentWidgets.addWidget(t.widget),this.layoutContentWidget(t),this._scheduleRender()},o.prototype.layoutContentWidget=function(t){var i=t.position&&t.position.range||null;if(i===null){var m=t.position?t.position.position:null;m!==null&&(i=new fe.a(m.lineNumber,m.column,m.lineNumber,m.column))}var E=t.position?t.position.preference:null;this.contentWidgets.setWidgetPosition(t.widget,i,E),this._scheduleRender()},o.prototype.removeContentWidget=function(t){this.contentWidgets.removeWidget(t.widget),this._scheduleRender()},o.prototype.addOverlayWidget=function(t){this.overlayWidgets.addWidget(t.widget),this.layoutOverlayWidget(t),this._scheduleRender()},o.prototype.layoutOverlayWidget=function(t){var i=t.position?t.position.preference:null,m=this.overlayWidgets.setWidgetPosition(t.widget,i);m&&this._scheduleRender()},o.prototype.removeOverlayWidget=function(t){this.overlayWidgets.removeWidget(t.widget),this._scheduleRender()},o}(K);function ci(U){try{return U()}catch(o){Object(R.e)(o)}}var ui=function(){function U(o){this._selTrackedRange=null,this._trackSelection=!0,this._setState(o,new Oe.f(new fe.a(1,1,1,1),0,new ne.a(1,1),0),new Oe.f(new fe.a(1,1,1,1),0,new ne.a(1,1),0))}return U.prototype.dispose=function(o){this._removeTrackedRange(o)},U.prototype.startTrackingSelection=function(o){this._trackSelection=!0,this._updateTrackedRange(o)},U.prototype.stopTrackingSelection=function(o){this._trackSelection=!1,this._removeTrackedRange(o)},U.prototype._updateTrackedRange=function(o){if(!this._trackSelection)return;this._selTrackedRange=o.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0)},U.prototype._removeTrackedRange=function(o){this._selTrackedRange=o.model._setTrackedRange(this._selTrackedRange,null,0)},U.prototype.asCursorState=function(){return new Oe.d(this.modelState,this.viewState)},U.prototype.readSelectionFromMarkers=function(o){var t=o.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.getDirection()===0?new gt.a(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new gt.a(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)},U.prototype.ensureValidState=function(o){this._setState(o,this.modelState,this.viewState)},U.prototype.setState=function(o,t,i){this._setState(o,t,i)},U.prototype._setState=function(o,t,i){if(t){var m=o.model.validateRange(t.selectionStart),te=t.selectionStart.equalsRange(m)?t.selectionStartLeftoverVisibleColumns:0,E=o.model.validatePosition(t.position),Re=t.position.equals(E)?t.leftoverVisibleColumns:0;t=new Oe.f(m,te,E,Re)}else{if(!i)return;var m=o.model.validateRange(o.convertViewRangeToModelRange(i.selectionStart)),E=o.model.validatePosition(o.convertViewPositionToModelPosition(i.position.lineNumber,i.position.column));t=new Oe.f(m,i.selectionStartLeftoverVisibleColumns,E,i.leftoverVisibleColumns)}if(i){var ct=o.validateViewRange(i.selectionStart,t.selectionStart),wt=o.validateViewPosition(i.position,t.position);i=new Oe.f(ct,t.selectionStartLeftoverVisibleColumns,wt,t.leftoverVisibleColumns)}else{var Le=o.convertModelPositionToViewPosition(new ne.a(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),qe=o.convertModelPositionToViewPosition(new ne.a(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),ct=new fe.a(Le.lineNumber,Le.column,qe.lineNumber,qe.column),wt=o.convertModelPositionToViewPosition(t.position);i=new Oe.f(ct,t.selectionStartLeftoverVisibleColumns,wt,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(o)},U}(),Vn=function(){function U(o){this.context=o,this.primaryCursor=new ui(o),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return U.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},U.prototype.startTrackingSelections=function(){this.primaryCursor.startTrackingSelection(this.context);for(var o=0,t=this.secondaryCursors.length;o<t;o++)this.secondaryCursors[o].startTrackingSelection(this.context)},U.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var o=0,t=this.secondaryCursors.length;o<t;o++)this.secondaryCursors[o].stopTrackingSelection(this.context)},U.prototype.updateContext=function(o){this.context=o},U.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var o=0,t=this.secondaryCursors.length;o<t;o++)this.secondaryCursors[o].ensureValidState(this.context)},U.prototype.readSelectionFromMarkers=function(){var o=[];o[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return o},U.prototype.getAll=function(){var o=[];o[0]=this.primaryCursor.asCursorState();for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].asCursorState();return o},U.prototype.getViewPositions=function(){var o=[];o[0]=this.primaryCursor.viewState.position;for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].viewState.position;return o},U.prototype.getSelections=function(){var o=[];o[0]=this.primaryCursor.modelState.selection;for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].modelState.selection;return o},U.prototype.getViewSelections=function(){var o=[];o[0]=this.primaryCursor.viewState.selection;for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t].viewState.selection;return o},U.prototype.setSelections=function(o){this.setStates(Oe.d.fromModelSelections(o))},U.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()},U.prototype.setStates=function(o){if(o===null)return;this.primaryCursor.setState(this.context,o[0].modelState,o[0].viewState),this._setSecondaryStates(o.slice(1))},U.prototype._setSecondaryStates=function(o){var t=this.secondaryCursors.length,i=o.length;if(t<i)for(var m=i-t,E=0;E<m;E++)this._addSecondaryCursor();else if(t>i)for(var te=t-i,E=0;E<te;E++)this._removeSecondaryCursor(this.secondaryCursors.length-1);for(var E=0;E<i;E++)this.secondaryCursors[E].setState(this.context,o[E].modelState,o[E].viewState)},U.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])},U.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new ui(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length},U.prototype.getLastAddedCursorIndex=function(){return this.secondaryCursors.length===0||this.lastAddedCursorIndex===0?0:this.lastAddedCursorIndex},U.prototype._removeSecondaryCursor=function(o){this.lastAddedCursorIndex>=o+1&&this.lastAddedCursorIndex--,this.secondaryCursors[o].dispose(this.context),this.secondaryCursors.splice(o,1)},U.prototype._getAll=function(){var o=[];o[0]=this.primaryCursor;for(var t=0,i=this.secondaryCursors.length;t<i;t++)o[t+1]=this.secondaryCursors[t];return o},U.prototype.normalize=function(){if(this.secondaryCursors.length===0)return;for(var o=this._getAll(),t=[],i=0,m=o.length;i<m;i++)t.push({index:i,selection:o[i].modelState.selection});t.sort(function(zo,ko){return zo.selection.startLineNumber===ko.selection.startLineNumber?zo.selection.startColumn-ko.selection.startColumn:zo.selection.startLineNumber-ko.selection.startLineNumber});for(var E=0;E<t.length-1;E++){var te=t[E],Re=t[E+1],Le=te.selection,qe=Re.selection;if(!this.context.config.multiCursorMergeOverlapping)continue;var ct=void 0;if(qe.isEmpty()||Le.isEmpty()?ct=qe.getStartPosition().isBeforeOrEqual(Le.getEndPosition()):ct=qe.getStartPosition().isBefore(Le.getEndPosition()),ct){var wt=te.index<Re.index?E:E+1,tt=te.index<Re.index?E+1:E,kt=t[tt].index,Bt=t[wt].index,Ht=t[tt].selection,qt=t[wt].selection;if(!Ht.equalsSelection(qt)){var $t=Ht.plusRange(qt),io=Ht.selectionStartLineNumber===Ht.startLineNumber&&Ht.selectionStartColumn===Ht.startColumn,yo=qt.selectionStartLineNumber===qt.startLineNumber&&qt.selectionStartColumn===qt.startColumn,po=void 0;kt===this.lastAddedCursorIndex?(po=io,this.lastAddedCursorIndex=Bt):po=yo;var bo=void 0;po?bo=new gt.a($t.startLineNumber,$t.startColumn,$t.endLineNumber,$t.endColumn):bo=new gt.a($t.endLineNumber,$t.endColumn,$t.startLineNumber,$t.startColumn),t[wt].selection=bo;var vo=Oe.d.fromModelSelection(bo);o[Bt].setState(this.context,vo.modelState,vo.viewState)}for(var Co=0,Mo=t;Co<Mo.length;Co++){var Ko=Mo[Co];Ko.index>kt&&Ko.index--}o.splice(kt,1),t.splice(tt,1),this._removeSecondaryCursor(kt-1),E--}}},U}(),gn=e("snIX"),Ln=e("GR/f"),Sn=e("iuje"),xi=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function Ei(U){for(var o=0,t=U.length;o<t;o++)if(U[o].type===8)return!0;return!1}var Ji=function(){function U(o,t,i,m,E,te){this.selections=o,this.modelVersionId=t,this.oldSelections=i,this.oldModelVersionId=m,this.source=E,this.reason=te}return U}(),qi=function(){function U(o,t){this.modelVersionId=o.getVersionId(),this.cursorState=t.getAll()}return U.prototype.equals=function(o){if(!o)return!1;if(this.modelVersionId!==o.modelVersionId)return!1;if(this.cursorState.length!==o.cursorState.length)return!1;for(var t=0,i=this.cursorState.length;t<i;t++)if(!this.cursorState[t].equals(o.cursorState[t]))return!1;return!0},U}(),er=function(){function U(o,t,i){this._model=o,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=i}return U.getAllAutoClosedCharacters=function(o){for(var t=[],i=0,m=o;i<m.length;i++){var E=m[i];t=t.concat(E.getAutoClosedCharactersRanges())}return t},U.prototype.dispose=function(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])},U.prototype.getAutoClosedCharactersRanges=function(){for(var o=[],t=0;t<this._autoClosedCharactersDecorations.length;t++){var i=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);i&&o.push(i)}return o},U.prototype.isValid=function(o){for(var t=[],i=0;i<this._autoClosedEnclosingDecorations.length;i++){var m=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[i]);if(m&&(t.push(m),m.startLineNumber!==m.endLineNumber))return!1}t.sort(fe.a.compareRangesUsingStarts),o.sort(fe.a.compareRangesUsingStarts);for(var i=0;i<o.length;i++){if(i>=t.length)return!1;if(!t[i].strictContainsRange(o[i]))return!1}return!0},U}(),Rr=function(U){xi(o,U);function o(t,i,m){var E=U.call(this)||this;E._onDidReachMaxCursorCount=E._register(new B.a),E.onDidReachMaxCursorCount=E._onDidReachMaxCursorCount.event,E._onDidAttemptReadOnlyEdit=E._register(new B.a),E.onDidAttemptReadOnlyEdit=E._onDidAttemptReadOnlyEdit.event,E._onDidChange=E._register(new B.a),E.onDidChange=E._onDidChange.event,E._configuration=t,E._model=i,E._knownModelVersionId=E._model.getVersionId(),E._viewModel=m,E.context=new Oe.c(E._configuration,E._model,E._viewModel),E._cursors=new Vn(E.context),E._isHandling=!1,E._isDoingComposition=!1,E._selectionsWhenCompositionStarted=null,E._columnSelectData=null,E._autoClosedActions=[],E._prevEditOperationType=0,E._register(E._model.onDidChangeRawContent(function(Re){if(E._knownModelVersionId=Re.versionId,E._isHandling)return;var Le=Re.containsEvent(1);E._onModelContentChanged(Le)})),E._register(m.addEventListener(function(Re){if(!Ei(Re))return;if(E._knownModelVersionId!==E._model.getVersionId())return;E.setStates("viewModel",0,E.getAll())}));var te=function(){E.context=new Oe.c(E._configuration,E._model,E._viewModel),E._cursors.updateContext(E.context)};return E._register(E._model.onDidChangeLanguage(function(Re){te()})),E._register(E._model.onDidChangeLanguageConfiguration(function(){te()})),E._register(E._model.onDidChangeOptions(function(){te()})),E._register(E._configuration.onDidChange(function(Re){Oe.b.shouldRecreate(Re)&&te()})),E}return o.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(z.f)(this._autoClosedActions),U.prototype.dispose.call(this)},o.prototype._validateAutoClosedActions=function(){if(this._autoClosedActions.length>0)for(var t=this._cursors.getSelections(),i=0;i<this._autoClosedActions.length;i++){var m=this._autoClosedActions[i];m.isValid(t)||(m.dispose(),this._autoClosedActions.splice(i,1),i--)}},o.prototype.getPrimaryCursor=function(){return this._cursors.getPrimaryCursor()},o.prototype.getLastAddedCursorIndex=function(){return this._cursors.getLastAddedCursorIndex()},o.prototype.getAll=function(){return this._cursors.getAll()},o.prototype.setStates=function(t,i,m){m!==null&&m.length>o.MAX_CURSOR_COUNT&&(m=m.slice(0,o.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var E=new qi(this._model,this);this._cursors.setStates(m),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,E)},o.prototype.setColumnSelectData=function(t){this._columnSelectData=t},o.prototype.reveal=function(t,i,m,E){this._revealRange(t,m,0,i,E)},o.prototype.revealRange=function(t,i,m,E,te){this.emitCursorRevealRange(t,m,E,i,te)},o.prototype.scrollTo=function(t){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:t})},o.prototype.saveState=function(){for(var t=[],i=this._cursors.getSelections(),m=0,E=i.length;m<E;m++){var te=i[m];t.push({inSelectionMode:!te.isEmpty(),selectionStart:{lineNumber:te.selectionStartLineNumber,column:te.selectionStartColumn},position:{lineNumber:te.positionLineNumber,column:te.positionColumn}})}return t},o.prototype.restoreState=function(t){for(var i=[],m=0,E=t.length;m<E;m++){var te=t[m],Re=1,Le=1;te.position&&te.position.lineNumber&&(Re=te.position.lineNumber),te.position&&te.position.column&&(Le=te.position.column);var qe=Re,ct=Le;te.selectionStart&&te.selectionStart.lineNumber&&(qe=te.selectionStart.lineNumber),te.selectionStart&&te.selectionStart.column&&(ct=te.selectionStart.column),i.push({selectionStartLineNumber:qe,selectionStartColumn:ct,positionLineNumber:Re,positionColumn:Le})}this.setStates("restoreState",0,Oe.d.fromModelSelections(i)),this.reveal("restoreState",!0,0,1)},o.prototype._onModelContentChanged=function(t){if(this._prevEditOperationType=0,t)this._cursors.dispose(),this._cursors=new Vn(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary("model",1,null);else{var i=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,Oe.d.fromModelSelections(i))}},o.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection},o.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var t=this._cursors.getPrimaryCursor(),i=t.viewState.selectionStart.getStartPosition(),m=i.lineNumber,E=Oe.a.visibleColumnFromColumn2(this.context.config,this.context.viewModel,i);return{isReal:!1,fromViewLineNumber:m,fromViewVisualColumn:E,toViewLineNumber:m,toViewVisualColumn:E}},o.prototype.getSelections=function(){return this._cursors.getSelections()},o.prototype.getViewSelections=function(){return this._cursors.getViewSelections()},o.prototype.getPosition=function(){return this._cursors.getPrimaryCursor().modelState.position},o.prototype.setSelections=function(t,i){this.setStates(t,0,Oe.d.fromModelSelections(i))},o.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType},o.prototype.setPrevEditOperationType=function(t){this._prevEditOperationType=t},o.prototype._pushAutoClosedAction=function(t,i){for(var m=[],E=[],te=0,Re=t.length;te<Re;te++)m.push({range:t[te],options:{inlineClassName:"auto-closed-character",stickiness:1}}),E.push({range:i[te],options:{stickiness:1}});var Le=this._model.deltaDecorations([],m),qe=this._model.deltaDecorations([],E);this._autoClosedActions.push(new er(this._model,Le,qe))},o.prototype._executeEditOperation=function(t){if(!t)return;t.shouldPushStackElementBefore&&this._model.pushStackElement();var i=Ir.executeCommands(this._model,this._cursors.getSelections(),t.commands);if(i){this._interpretCommandResult(i);for(var m=[],E=[],te=0;te<t.commands.length;te++){var Re=t.commands[te];Re instanceof Ln.b&&Re.enclosingRange&&Re.closeCharacterRange&&(m.push(Re.closeCharacterRange),E.push(Re.enclosingRange))}m.length>0&&this._pushAutoClosedAction(m,E),this._prevEditOperationType=t.type}t.shouldPushStackElementAfter&&this._model.pushStackElement()},o.prototype._interpretCommandResult=function(t){(!t||t.length===0)&&(t=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(t),this._cursors.normalize()},o.prototype._emitStateChangedIfNecessary=function(t,i,m){var E=new qi(this._model,this);if(E.equals(m))return!1;var te=this._cursors.getSelections(),Re=this._cursors.getViewSelections();try{var Le=this._beginEmit();Le.emit(new jo(Re,te))}finally{this._endEmit()}if(!m||m.cursorState.length!==E.cursorState.length||E.cursorState.some(function(wt,tt){return!wt.modelState.equals(m.cursorState[tt].modelState)})){var qe=m?m.cursorState.map(function(wt){return wt.modelState.selection}):null,ct=m?m.modelVersionId:0;this._onDidChange.fire(new Ji(te,E.modelVersionId,qe,ct,t||"keyboard",i))}return!0},o.prototype._revealRange=function(t,i,m,E,te){var Re=this._cursors.getViewPositions(),Le=Re[0];if(i===1)for(var qe=1;qe<Re.length;qe++)Re[qe].isBefore(Le)&&(Le=Re[qe]);else if(i===2)for(var qe=1;qe<Re.length;qe++)Le.isBeforeOrEqual(Re[qe])&&(Le=Re[qe]);else if(Re.length>1)return;var ct=new fe.a(Le.lineNumber,Le.column,Le.lineNumber,Le.column);this.emitCursorRevealRange(t,ct,m,E,te)},o.prototype.emitCursorRevealRange=function(t,i,m,E,te){try{var Re=this._beginEmit();Re.emit(new Cn(t,i,m,E,te))}finally{this._endEmit()}},o.prototype._findAutoClosingPairs=function(t){if(!t.length)return null;for(var i=[],m=0,E=t.length;m<E;m++){var te=t[m];if(!te.text||te.text.indexOf(`
`)>=0)return null;var Re=te.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!Re)return null;var Le=Re[1],qe=this.context.config.autoClosingPairsClose2.get(Le);if(!qe||qe.length!==1)return null;var ct=qe[0].open,wt=te.text.length-Re[2].length-1,tt=te.text.lastIndexOf(ct,wt-1);if(tt===-1)return null;i.push([tt,wt])}return i},o.prototype.executeEdits=function(t,i,m){var E=this,te=null;t==="snippet"&&(te=this._findAutoClosingPairs(i)),te&&(i[0]._isTracked=!0);var Re=[],Le=[],qe=this._model.pushEditOperations(this.getSelections(),i,function(ct){if(te)for(var wt=0,tt=te.length;wt<tt;wt++){var kt=te[wt],Bt=kt[0],Ht=kt[1],qt=ct[wt],$t=qt.range.startLineNumber,io=qt.range.startColumn-1+Bt,yo=qt.range.startColumn-1+Ht;Re.push(new fe.a($t,yo+1,$t,yo+2)),Le.push(new fe.a($t,io+1,$t,yo+2))}var po=m(ct);return po&&(E._isHandling=!0),po});qe&&(this._isHandling=!1,this.setSelections(t,qe)),Re.length>0&&this._pushAutoClosedAction(Re,Le)},o.prototype.trigger=function(t,i,m){var E=Sn.b;if(i===E.CompositionStart){this._isDoingComposition=!0,this._selectionsWhenCompositionStarted=this.getSelections().slice(0);return}if(i===E.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(68)){this._onDidAttemptReadOnlyEdit.fire(void 0);return}var te=new qi(this._model,this),Re=0;i!==E.Undo&&i!==E.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(i){case E.Type:this._type(t,m.text);break;case E.ReplacePreviousChar:this._replacePreviousChar(m.text,m.replaceCharCnt);break;case E.Paste:Re=4,this._paste(m.text,m.pasteOnNewLine,m.multicursorText||[]);break;case E.Cut:this._cut();break;case E.Undo:Re=5,this._interpretCommandResult(this._model.undo());break;case E.Redo:Re=6,this._interpretCommandResult(this._model.redo());break;case E.ExecuteCommand:this._externalExecuteCommand(m);break;case E.ExecuteCommands:this._externalExecuteCommands(m);break;case E.CompositionEnd:this._interpretCompositionEnd(t);break}}catch(Le){Object(R.e)(Le)}this._isHandling=!1,i!==E.Undo&&i!==E.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,Re,te)&&this._revealRange(t,0,0,!0,0)},o.prototype._interpretCompositionEnd=function(t){if(!this._isDoingComposition&&t==="keyboard"){var i=er.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Ln.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),i)),this._selectionsWhenCompositionStarted=null}},o.prototype._type=function(t,i){if(!this._isDoingComposition&&t==="keyboard")for(var m=i.length,E=0;E<m;){var te=ge.E(i,E),Re=i.substr(E,te),Le=er.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Ln.a.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),Le,Re)),E+=te}else this._executeEditOperation(Ln.a.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),i))},o.prototype._replacePreviousChar=function(t,i){this._executeEditOperation(Ln.a.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t,i))},o.prototype._paste=function(t,i,m){this._executeEditOperation(Ln.a.paste(this.context.config,this.context.model,this.getSelections(),t,i,m))},o.prototype._cut=function(){this._executeEditOperation(gn.a.cut(this.context.config,this.context.model,this.getSelections()))},o.prototype._externalExecuteCommand=function(t){this._cursors.killSecondaryCursors(),this._executeEditOperation(new Oe.e(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},o.prototype._externalExecuteCommands=function(t){this._executeEditOperation(new Oe.e(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},o.MAX_CURSOR_COUNT=1e4,o}(Bo),Ir=function(){function U(){}return U.executeCommands=function(o,t,i){for(var m={model:o,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},E=this._innerExecuteCommands(m,i),te=0,Re=m.trackedRanges.length;te<Re;te++)m.model._setTrackedRange(m.trackedRanges[te],null,0);return E},U._innerExecuteCommands=function(o,t){if(this._arrayIsEmpty(t))return null;var i=this._getEditOperations(o,t);if(i.operations.length===0)return null;var m=i.operations,E=this._getLoserCursorMap(m);if(E.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;for(var te=[],Re=0,Le=m.length;Re<Le;Re++)E.hasOwnProperty(m[Re].identifier.major.toString())||te.push(m[Re]);i.hadTrackedEditOperation&&te.length>0&&(te[0]._isTracked=!0);var qe=o.model.pushEditOperations(o.selectionsBefore,te,function(Ht){for(var qt=[],$t=0;$t<o.selectionsBefore.length;$t++)qt[$t]=[];for(var io=0,yo=Ht;io<yo.length;io++){var po=yo[io];if(!po.identifier)continue;qt[po.identifier.major].push(po)}for(var bo=function(Mo,Ko){return Mo.identifier.minor-Ko.identifier.minor},vo=[],Co=function(Mo){qt[Mo].length>0?(qt[Mo].sort(bo),vo[Mo]=t[Mo].computeCursorState(o.model,{getInverseEditOperations:function(){return qt[Mo]},getTrackedSelection:function(Ko){var zo=parseInt(Ko,10),ko=o.model._getTrackedRange(o.trackedRanges[zo]);return o.trackedRangesDirection[zo]===0?new gt.a(ko.startLineNumber,ko.startColumn,ko.endLineNumber,ko.endColumn):new gt.a(ko.endLineNumber,ko.endColumn,ko.startLineNumber,ko.startColumn)}})):vo[Mo]=o.selectionsBefore[Mo]},$t=0;$t<o.selectionsBefore.length;$t++)Co($t);return vo});qe||(qe=o.selectionsBefore);var ct=[];for(var wt in E)E.hasOwnProperty(wt)&&ct.push(parseInt(wt,10));ct.sort(function(Ht,qt){return qt-Ht});for(var tt=0,kt=ct;tt<kt.length;tt++){var Bt=kt[tt];qe.splice(Bt,1)}return qe},U._arrayIsEmpty=function(o){for(var t=0,i=o.length;t<i;t++)if(o[t])return!1;return!0},U._getEditOperations=function(o,t){for(var i=[],m=!1,E=0,te=t.length;E<te;E++){var Re=t[E];if(Re){var Le=this._getEditOperationsFromCommand(o,E,Re);i=i.concat(Le.operations),m=m||Le.hadTrackedEditOperation}}return{operations:i,hadTrackedEditOperation:m}},U._getEditOperationsFromCommand=function(o,t,i){var m=[],E=0,te=function(wt,tt,kt){if(kt===void 0&&(kt=!1),wt.isEmpty()&&tt==="")return;m.push({identifier:{major:t,minor:E++},range:wt,text:tt,forceMoveMarkers:kt,isAutoWhitespaceEdit:i.insertsAutoWhitespace})},Re=!1,Le=function(wt,tt,kt){Re=!0,te(wt,tt,kt)},qe=function(wt,tt){var kt;if(wt.isEmpty())if(typeof tt=="boolean")tt?kt=2:kt=3;else{var Bt=o.model.getLineMaxColumn(wt.startLineNumber);wt.startColumn===Bt?kt=2:kt=3}else kt=1;var Ht=o.trackedRanges.length,qt=o.model._setTrackedRange(null,wt,kt);return o.trackedRanges[Ht]=qt,o.trackedRangesDirection[Ht]=wt.getDirection(),Ht.toString()},ct={addEditOperation:te,addTrackedEditOperation:Le,trackSelection:qe};try{i.getEditOperations(o.model,ct)}catch(wt){return Object(R.e)(wt),{operations:[],hadTrackedEditOperation:!1}}return{operations:m,hadTrackedEditOperation:Re}},U._getLoserCursorMap=function(o){o=o.slice(0),o.sort(function(Le,qe){return-fe.a.compareRangesUsingEnds(Le.range,qe.range)});for(var t={},i=1;i<o.length;i++){var m=o[i-1],E=o[i];if(m.range.getStartPosition().isBefore(E.range.getEndPosition())){var te=void 0;m.identifier.major>E.identifier.major?te=m.identifier.major:te=E.identifier.major,t[te.toString()]=!0;for(var Re=0;Re<o.length;Re++)o[Re].identifier.major===te&&(o.splice(Re,1),Re<i&&i--,Re--);i>0&&i--}}return t},U}(),Es=e("9Y+e"),Jo=e("wQH0"),Ai=e("TQUy"),ws=e("QuOb"),Rn=function(){function U(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}return U.prototype.insert=function(o){this._hasPending=!0,this._inserts.push(o)},U.prototype.change=function(o){this._hasPending=!0,this._changes.push(o)},U.prototype.remove=function(o){this._hasPending=!0,this._removes.push(o)},U.prototype.mustCommit=function(){return this._hasPending},U.prototype.commit=function(o){if(!this._hasPending)return;var t=this._inserts,i=this._changes,m=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],o._commitPendingChanges(t,i,m)},U}(),wi=function(){function U(o,t,i,m,E){this.id=o,this.afterLineNumber=t,this.ordinal=i,this.height=m,this.minWidth=E,this.prefixSum=0}return U}(),Xn=function(){function U(o,t){this._instanceId=ge.M(++U.INSTANCE_COUNT),this._pendingChanges=new Rn,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=o,this._lineHeight=t}return U.findInsertionIndex=function(o,t,i){for(var m=0,E=o.length;m<E;){var te=m+E>>>1;t===o[te].afterLineNumber?i<o[te].ordinal?E=te:m=te+1:t<o[te].afterLineNumber?E=te:m=te+1}return m},U.prototype.setLineHeight=function(o){this._checkPendingChanges(),this._lineHeight=o},U.prototype.onFlushed=function(o){this._checkPendingChanges(),this._lineCount=o},U.prototype.changeWhitespace=function(o){var t=this;try{var i={insertWhitespace:function(m,E,te,Re){m=m|0,E=E|0,te=te|0,Re=Re|0;var Le=t._instanceId+ ++t._lastWhitespaceId;return t._pendingChanges.insert(new wi(Le,m,E,te,Re)),Le},changeOneWhitespace:function(m,E,te){E=E|0,te=te|0,t._pendingChanges.change({id:m,newAfterLineNumber:E,newHeight:te})},removeWhitespace:function(m){t._pendingChanges.remove({id:m})}};return o(i)}finally{this._pendingChanges.commit(this)}},U.prototype._commitPendingChanges=function(o,t,i){if((o.length>0||i.length>0)&&(this._minWidth=-1),o.length+t.length+i.length<=1){for(var m=0,E=o;m<E.length;m++){var te=E[m];this._insertWhitespace(te)}for(var Re=0,Le=t;Re<Le.length;Re++){var qe=Le[Re];this._changeOneWhitespace(qe.id,qe.newAfterLineNumber,qe.newHeight)}for(var ct=0,wt=i;ct<wt.length;ct++){var tt=wt[ct],kt=this._findWhitespaceIndex(tt.id);if(kt===-1)continue;this._removeWhitespace(kt)}return}for(var Bt=new Set,Ht=0,qt=i;Ht<qt.length;Ht++){var tt=qt[Ht];Bt.add(tt.id)}for(var $t=new Map,io=0,yo=t;io<yo.length;io++){var qe=yo[io];$t.set(qe.id,qe)}var po=function(vo){for(var Co=[],Mo=0,Ko=vo;Mo<Ko.length;Mo++){var zo=Ko[Mo];if(Bt.has(zo.id))continue;if($t.has(zo.id)){var ko=$t.get(zo.id);zo.afterLineNumber=ko.newAfterLineNumber,zo.height=ko.newHeight}Co.push(zo)}return Co},bo=po(this._arr).concat(po(o));bo.sort(function(vo,Co){return vo.afterLineNumber===Co.afterLineNumber?vo.ordinal-Co.ordinal:vo.afterLineNumber-Co.afterLineNumber}),this._arr=bo,this._prefixSumValidIndex=-1},U.prototype._checkPendingChanges=function(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)},U.prototype._insertWhitespace=function(o){var t=U.findInsertionIndex(this._arr,o.afterLineNumber,o.ordinal);this._arr.splice(t,0,o),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},U.prototype._findWhitespaceIndex=function(o){for(var t=this._arr,i=0,m=t.length;i<m;i++)if(t[i].id===o)return i;return-1},U.prototype._changeOneWhitespace=function(o,t,i){var m=this._findWhitespaceIndex(o);if(m===-1)return;if(this._arr[m].height!==i&&(this._arr[m].height=i,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,m-1)),this._arr[m].afterLineNumber!==t){var E=this._arr[m];this._removeWhitespace(m),E.afterLineNumber=t,this._insertWhitespace(E)}},U.prototype._removeWhitespace=function(o){this._arr.splice(o,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,o-1)},U.prototype.onLinesDeleted=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0,this._lineCount-=t-o+1;for(var i=0,m=this._arr.length;i<m;i++){var E=this._arr[i].afterLineNumber;o<=E&&E<=t?this._arr[i].afterLineNumber=o-1:E>t&&(this._arr[i].afterLineNumber-=t-o+1)}},U.prototype.onLinesInserted=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0,this._lineCount+=t-o+1;for(var i=0,m=this._arr.length;i<m;i++){var E=this._arr[i].afterLineNumber;o<=E&&(this._arr[i].afterLineNumber+=t-o+1)}},U.prototype.getWhitespacesTotalHeight=function(){return this._checkPendingChanges(),this._arr.length===0?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)},U.prototype.getWhitespacesAccumulatedHeight=function(o){this._checkPendingChanges(),o=o|0;var t=Math.max(0,this._prefixSumValidIndex+1);t===0&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(var i=t;i<=o;i++)this._arr[i].prefixSum=this._arr[i-1].prefixSum+this._arr[i].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,o),this._arr[o].prefixSum},U.prototype.getLinesTotalHeight=function(){this._checkPendingChanges();var o=this._lineHeight*this._lineCount,t=this.getWhitespacesTotalHeight();return o+t},U.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(o){this._checkPendingChanges(),o=o|0;var t=this._findLastWhitespaceBeforeLineNumber(o);return t===-1?0:this.getWhitespacesAccumulatedHeight(t)},U.prototype._findLastWhitespaceBeforeLineNumber=function(o){o=o|0;for(var t=this._arr,i=0,m=t.length-1;i<=m;){var E=m-i|0,te=E/2|0,Re=i+te|0;if(t[Re].afterLineNumber<o){if(Re+1>=t.length||t[Re+1].afterLineNumber>=o)return Re;i=Re+1|0}else m=Re-1|0}return-1},U.prototype._findFirstWhitespaceAfterLineNumber=function(o){o=o|0;var t=this._findLastWhitespaceBeforeLineNumber(o),i=t+1;return i<this._arr.length?i:-1},U.prototype.getFirstWhitespaceIndexAfterLineNumber=function(o){return this._checkPendingChanges(),o=o|0,this._findFirstWhitespaceAfterLineNumber(o)},U.prototype.getVerticalOffsetForLineNumber=function(o){this._checkPendingChanges(),o=o|0;var t;o>1?t=this._lineHeight*(o-1):t=0;var i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(o);return t+i},U.prototype.getWhitespaceMinWidth=function(){if(this._checkPendingChanges(),this._minWidth===-1){for(var o=0,t=0,i=this._arr.length;t<i;t++)o=Math.max(o,this._arr[t].minWidth);this._minWidth=o}return this._minWidth},U.prototype.isAfterLines=function(o){this._checkPendingChanges();var t=this.getLinesTotalHeight();return o>t},U.prototype.getLineNumberAtOrAfterVerticalOffset=function(o){if(this._checkPendingChanges(),o=o|0,o<0)return 1;for(var t=this._lineCount|0,i=this._lineHeight,m=1,E=t;m<E;){var te=(m+E)/2|0,Re=this.getVerticalOffsetForLineNumber(te)|0;if(o>=Re+i)m=te+1;else{if(o>=Re)return te;E=te}}return m>t?t:m},U.prototype.getLinesViewportData=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0;var i=this._lineHeight,m=this.getLineNumberAtOrAfterVerticalOffset(o)|0,E=this.getVerticalOffsetForLineNumber(m)|0,te=this._lineCount|0,Re=this.getFirstWhitespaceIndexAfterLineNumber(m)|0,Le=this.getWhitespacesCount()|0,qe,ct;Re===-1?(Re=Le,ct=te+1,qe=0):(ct=this.getAfterLineNumberForWhitespaceIndex(Re)|0,qe=this.getHeightForWhitespaceIndex(Re)|0);var wt=E,tt=wt,kt=5e5,Bt=0;E>=kt&&(Bt=Math.floor(E/kt)*kt,Bt=Math.floor(Bt/i)*i,tt-=Bt);for(var Ht=[],qt=o+(t-o)/2,$t=-1,io=m;io<=te;io++){if($t===-1){var yo=wt,po=wt+i;(yo<=qt&&qt<po||yo>qt)&&($t=io)}for(wt+=i,Ht[io-m]=tt,tt+=i;ct===io;)tt+=qe,wt+=qe,Re++,Re>=Le?ct=te+1:(ct=this.getAfterLineNumberForWhitespaceIndex(Re)|0,qe=this.getHeightForWhitespaceIndex(Re)|0);if(wt>=t){te=io;break}}$t===-1&&($t=te);var bo=this.getVerticalOffsetForLineNumber(te)|0,vo=m,Co=te;return vo<Co&&(E<o&&vo++),vo<Co&&(bo+i>t&&Co--),{bigNumbersDelta:Bt,startLineNumber:m,endLineNumber:te,relativeVerticalOffset:Ht,centeredLineNumber:$t,completelyVisibleStartLineNumber:vo,completelyVisibleEndLineNumber:Co}},U.prototype.getVerticalOffsetForWhitespaceIndex=function(o){this._checkPendingChanges(),o=o|0;var t=this.getAfterLineNumberForWhitespaceIndex(o),i;t>=1?i=this._lineHeight*t:i=0;var m;return o>0?m=this.getWhitespacesAccumulatedHeight(o-1):m=0,i+m},U.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(o){this._checkPendingChanges(),o=o|0;var t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;var m=this.getVerticalOffsetForWhitespaceIndex(i),E=this.getHeightForWhitespaceIndex(i);if(o>=m+E)return-1;for(;t<i;){var te=Math.floor((t+i)/2),Re=this.getVerticalOffsetForWhitespaceIndex(te),Le=this.getHeightForWhitespaceIndex(te);if(o>=Re+Le)t=te+1;else{if(o>=Re)return te;i=te}}return t},U.prototype.getWhitespaceAtVerticalOffset=function(o){this._checkPendingChanges(),o=o|0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(o);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>o)return null;var m=this.getHeightForWhitespaceIndex(t),E=this.getIdForWhitespaceIndex(t),te=this.getAfterLineNumberForWhitespaceIndex(t);return{id:E,afterLineNumber:te,verticalOffset:i,height:m}},U.prototype.getWhitespaceViewportData=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(o),m=this.getWhitespacesCount()-1;if(i<0)return[];for(var E=[],te=i;te<=m;te++){var Re=this.getVerticalOffsetForWhitespaceIndex(te),Le=this.getHeightForWhitespaceIndex(te);if(Re>=t)break;E.push({id:this.getIdForWhitespaceIndex(te),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(te),verticalOffset:Re,height:Le})}return E},U.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},U.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},U.prototype.getIdForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].id},U.prototype.getAfterLineNumberForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].afterLineNumber},U.prototype.getHeightForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].height},U.INSTANCE_COUNT=0,U}(),zn=e("qNAo"),Ri=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),tr=125,_i=function(){function U(o,t,i,m){o=o|0,t=t|0,i=i|0,m=m|0,o<0&&(o=0),t<0&&(t=0),i<0&&(i=0),m<0&&(m=0),this.width=o,this.contentWidth=t,this.scrollWidth=Math.max(o,t),this.height=i,this.contentHeight=m,this.scrollHeight=Math.max(i,m)}return U.prototype.equals=function(o){return this.width===o.width&&this.contentWidth===o.contentWidth&&this.height===o.height&&this.contentHeight===o.contentHeight},U}(),Ii=function(U){Ri(o,U);function o(t,i){var m=U.call(this)||this;return m._onDidContentSizeChange=m._register(new B.a),m.onDidContentSizeChange=m._onDidContentSizeChange.event,m._dimensions=new _i(0,0,0,0),m._scrollable=m._register(new ws.a(t,i)),m.onDidScroll=m._scrollable.onScroll,m}return o.prototype.getScrollable=function(){return this._scrollable},o.prototype.setSmoothScrollDuration=function(t){this._scrollable.setSmoothScrollDuration(t)},o.prototype.validateScrollPosition=function(t){return this._scrollable.validateScrollPosition(t)},o.prototype.getScrollDimensions=function(){return this._dimensions},o.prototype.setScrollDimensions=function(t){if(this._dimensions.equals(t))return;var i=this._dimensions;this._dimensions=t,this._scrollable.setScrollDimensions({width:t.width,scrollWidth:t.scrollWidth,height:t.height,scrollHeight:t.scrollHeight});var m=i.contentWidth!==t.contentWidth,E=i.contentHeight!==t.contentHeight;(m||E)&&this._onDidContentSizeChange.fire({contentWidth:t.contentWidth,contentHeight:t.contentHeight,contentWidthChanged:m,contentHeightChanged:E})},o.prototype.getFutureScrollPosition=function(){return this._scrollable.getFutureScrollPosition()},o.prototype.getCurrentScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},o.prototype.setScrollPositionNow=function(t){this._scrollable.setScrollPositionNow(t)},o.prototype.setScrollPositionSmooth=function(t){this._scrollable.setScrollPositionSmooth(t)},o}(z.a),_s=function(U){Ri(o,U);function o(t,i,m){var E=U.call(this)||this;E._configuration=t;var te=E._configuration.options,Re=te.get(107);return E._linesLayout=new Xn(i,te.get(49)),E._scrollable=E._register(new Ii(0,m)),E._configureSmoothScrollDuration(),E._scrollable.setScrollDimensions(new _i(Re.contentWidth,0,Re.height,0)),E.onDidScroll=E._scrollable.onDidScroll,E.onDidContentSizeChange=E._scrollable.onDidContentSizeChange,E._updateHeight(),E}return o.prototype.dispose=function(){U.prototype.dispose.call(this)},o.prototype.getScrollable=function(){return this._scrollable.getScrollable()},o.prototype.onHeightMaybeChanged=function(){this._updateHeight()},o.prototype._configureSmoothScrollDuration=function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(87)?tr:0)},o.prototype.onConfigurationChanged=function(t){var i=this._configuration.options;if(t.hasChanged(49)&&this._linesLayout.setLineHeight(i.get(49)),t.hasChanged(107)){var m=i.get(107),E=m.contentWidth,te=m.height,Re=this._scrollable.getScrollDimensions(),Le=Re.scrollWidth;this._scrollable.setScrollDimensions(new _i(E,Re.contentWidth,te,this._getContentHeight(E,te,Le)))}else this._updateHeight();t.hasChanged(87)&&this._configureSmoothScrollDuration()},o.prototype.onFlushed=function(t){this._linesLayout.onFlushed(t)},o.prototype.onLinesDeleted=function(t,i){this._linesLayout.onLinesDeleted(t,i)},o.prototype.onLinesInserted=function(t,i){this._linesLayout.onLinesInserted(t,i)},o.prototype._getHorizontalScrollbarHeight=function(t,i){var m=this._configuration.options,E=m.get(78);return E.horizontal===2||t>=i?0:E.horizontalScrollbarSize},o.prototype._getContentHeight=function(t,i,m){var E=this._configuration.options,te=this._linesLayout.getLinesTotalHeight();return E.get(80)?te+=i-E.get(49):te+=this._getHorizontalScrollbarHeight(t,m),te},o.prototype._updateHeight=function(){var t=this._scrollable.getScrollDimensions(),i=t.width,m=t.height,E=t.scrollWidth;this._scrollable.setScrollDimensions(new _i(i,t.contentWidth,m,this._getContentHeight(i,m,E)))},o.prototype.getCurrentViewport=function(){var t=this._scrollable.getScrollDimensions(),i=this._scrollable.getCurrentScrollPosition();return new zn.f(i.scrollTop,i.scrollLeft,t.width,t.height)},o.prototype.getFutureViewport=function(){var t=this._scrollable.getScrollDimensions(),i=this._scrollable.getFutureScrollPosition();return new zn.f(i.scrollTop,i.scrollLeft,t.width,t.height)},o.prototype._computeContentWidth=function(t){var i=this._configuration.options,m=i.get(108),E=i.get(34);if(m.isViewportWrapping){var te=i.get(107),Re=i.get(54);return t>te.contentWidth+E.typicalHalfwidthCharacterWidth&&(Re.enabled&&Re.side==="right")?t+te.verticalScrollbarWidth:t}else{var Le=i.get(79)*E.typicalHalfwidthCharacterWidth,qe=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+Le,qe)}},o.prototype.onMaxLineWidthChanged=function(t){var i=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new _i(i.width,this._computeContentWidth(t),i.height,i.contentHeight)),this._updateHeight()},o.prototype.saveState=function(){var t=this._scrollable.getFutureScrollPosition(),i=t.scrollTop,m=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(i),E=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(m);return{scrollTop:i,scrollTopWithoutViewZones:i-E,scrollLeft:t.scrollLeft}},o.prototype.changeWhitespace=function(t){return this._linesLayout.changeWhitespace(t)},o.prototype.getVerticalOffsetForLineNumber=function(t){return this._linesLayout.getVerticalOffsetForLineNumber(t)},o.prototype.isAfterLines=function(t){return this._linesLayout.isAfterLines(t)},o.prototype.getLineNumberAtVerticalOffset=function(t){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t)},o.prototype.getWhitespaceAtVerticalOffset=function(t){return this._linesLayout.getWhitespaceAtVerticalOffset(t)},o.prototype.getLinesViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(t.top,t.top+t.height)},o.prototype.getLinesViewportDataAtScrollTop=function(t){var i=this._scrollable.getScrollDimensions();return t+i.height>i.scrollHeight&&(t=i.scrollHeight-i.height),t<0&&(t=0),this._linesLayout.getLinesViewportData(t,t+i.height)},o.prototype.getWhitespaceViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(t.top,t.top+t.height)},o.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},o.prototype.getContentWidth=function(){var t=this._scrollable.getScrollDimensions();return t.contentWidth},o.prototype.getScrollWidth=function(){var t=this._scrollable.getScrollDimensions();return t.scrollWidth},o.prototype.getContentHeight=function(){var t=this._scrollable.getScrollDimensions();return t.contentHeight},o.prototype.getScrollHeight=function(){var t=this._scrollable.getScrollDimensions();return t.scrollHeight},o.prototype.getCurrentScrollLeft=function(){var t=this._scrollable.getCurrentScrollPosition();return t.scrollLeft},o.prototype.getCurrentScrollTop=function(){var t=this._scrollable.getCurrentScrollPosition();return t.scrollTop},o.prototype.validateScrollPosition=function(t){return this._scrollable.validateScrollPosition(t)},o.prototype.setScrollPositionNow=function(t){this._scrollable.setScrollPositionNow(t)},o.prototype.setScrollPositionSmooth=function(t){this._scrollable.setScrollPositionSmooth(t)},o.prototype.deltaScrollNow=function(t,i){var m=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:m.scrollLeft+t,scrollTop:m.scrollTop+i})},o}(z.a),hi=e("tX9W"),Ss=e("LeU+"),$n=function(){function U(o,t){this.outputLineIndex=o,this.outputOffset=t}return U}(),Jn=function(){function U(o,t,i){this.breakOffsets=o,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=i}return U.getInputOffsetOfOutputPosition=function(o,t,i){return t===0?i:o[t-1]+i},U.getOutputPositionOfInputOffset=function(o,t){for(var i=0,m=o.length-1,E=0,te=0;i<=m;){E=i+(m-i)/2|0;var Re=o[E];if(te=E>0?o[E-1]:0,t<te)m=E-1;else if(t>=Re)i=E+1;else break}return new $n(E,t-te)},U}(),Ls=function(){function U(o){this._lines=o}return U.prototype.convertViewPositionToModelPosition=function(o){return this._lines.convertViewPositionToModelPosition(o.lineNumber,o.column)},U.prototype.convertViewRangeToModelRange=function(o){return this._lines.convertViewRangeToModelRange(o)},U.prototype.validateViewPosition=function(o,t){return this._lines.validateViewPosition(o.lineNumber,o.column,t)},U.prototype.validateViewRange=function(o,t){return this._lines.validateViewRange(o,t)},U.prototype.convertModelPositionToViewPosition=function(o){return this._lines.convertModelPositionToViewPosition(o.lineNumber,o.column)},U.prototype.convertModelRangeToViewRange=function(o){return this._lines.convertModelRangeToViewRange(o)},U.prototype.modelPositionIsVisible=function(o){return this._lines.modelPositionIsVisible(o.lineNumber,o.column)},U}(),or=function(){function U(o){this._counts=o,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}return U.prototype._invalidate=function(o){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,o-1)},U.prototype._ensureValid=function(){if(this._isValid)return;for(var o=this._validEndIndex+1,t=this._counts.length;o<t;o++){var i=this._counts[o],m=o>0?this._modelToView[o-1]:0;this._modelToView[o]=m+i;for(var E=0;E<i;E++)this._viewToModel[m+E]=o}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1},U.prototype.changeValue=function(o,t){if(this._counts[o]===t)return;this._counts[o]=t,this._invalidate(o)},U.prototype.removeValues=function(o,t){this._counts.splice(o,t),this._invalidate(o)},U.prototype.insertValues=function(o,t){this._counts=Be.a(this._counts,o,t),this._invalidate(o)},U.prototype.getTotalValue=function(){return this._ensureValid(),this._viewToModel.length},U.prototype.getAccumulatedValue=function(o){return this._ensureValid(),this._modelToView[o]},U.prototype.getIndexOf=function(o){this._ensureValid();var t=this._viewToModel[o],i=t>0?this._modelToView[t-1]:0;return new Ss.b(t,o-i)},U}(),Nr=function(){function U(o,t,i,m,E,te,Re,Le){this.model=o,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=t,this._monospaceLineBreaksComputerFactory=i,this.fontInfo=m,this.tabSize=E,this.wrappingStrategy=te,this.wrappingColumn=Re,this.wrappingIndent=Le,this._constructLines(!0,null)}return U.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},U.prototype.createCoordinatesConverter=function(){return new Ls(this)},U.prototype._constructLines=function(o,t){var i=this;this.lines=[],o&&(this.hiddenAreasIds=[]);for(var m=this.model.getLinesContent(),E=m.length,te=this.createLineBreaksComputer(),Re=0;Re<E;Re++)te.addRequest(m[Re],t?t[Re]:null);for(var Le=te.finalize(),qe=[],ct=this.hiddenAreasIds.map(function(io){return i.model.getDecorationRange(io)}).sort(fe.a.compareRangesUsingStarts),wt=1,tt=0,kt=-1,Bt=kt+1<ct.length?tt+1:E+2,Re=0;Re<E;Re++){var Ht=Re+1;Ht===Bt&&(kt++,wt=ct[kt].startLineNumber,tt=ct[kt].endLineNumber,Bt=kt+1<ct.length?tt+1:E+2);var qt=Ht>=wt&&Ht<=tt,$t=Ni(Le[Re],!qt);qe[Re]=$t.getViewLineCount(),this.lines[Re]=$t}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new or(qe)},U.prototype.getHiddenAreas=function(){var o=this;return this.hiddenAreasIds.map(function(t){return o.model.getDecorationRange(t)})},U.prototype._reduceRanges=function(o){var t=this;if(o.length===0)return[];for(var i=o.map(function(ct){return t.model.validateRange(ct)}).sort(fe.a.compareRangesUsingStarts),m=[],E=i[0].startLineNumber,te=i[0].endLineNumber,Re=1,Le=i.length;Re<Le;Re++){var qe=i[Re];qe.startLineNumber>te+1?(m.push(new fe.a(E,1,te,1)),E=qe.startLineNumber,te=qe.endLineNumber):qe.endLineNumber>te&&(te=qe.endLineNumber)}return m.push(new fe.a(E,1,te,1)),m},U.prototype.setHiddenAreas=function(o){var t=this,i=this._reduceRanges(o),m=this.hiddenAreasIds.map(function(po){return t.model.getDecorationRange(po)}).sort(fe.a.compareRangesUsingStarts);if(i.length===m.length){for(var E=!1,te=0;te<i.length;te++)if(!i[te].equalsRange(m[te])){E=!0;break}if(!E)return!1}for(var Re=[],Le=0,qe=i;Le<qe.length;Le++){var ct=qe[Le];Re.push({range:ct,options:hi.a.EMPTY})}this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,Re);for(var wt=i,tt=1,kt=0,Bt=-1,Ht=Bt+1<wt.length?kt+1:this.lines.length+2,qt=!1,te=0;te<this.lines.length;te++){var $t=te+1;$t===Ht&&(Bt++,tt=wt[Bt].startLineNumber,kt=wt[Bt].endLineNumber,Ht=Bt+1<wt.length?kt+1:this.lines.length+2);var io=!1;if($t>=tt&&$t<=kt?this.lines[te].isVisible()&&(this.lines[te]=this.lines[te].setVisible(!1),io=!0):(qt=!0,this.lines[te].isVisible()||(this.lines[te]=this.lines[te].setVisible(!0),io=!0)),io){var yo=this.lines[te].getViewLineCount();this.prefixSumComputer.changeValue(te,yo)}}return qt||this.setHiddenAreas([]),!0},U.prototype.modelPositionIsVisible=function(o,t){return o<1||o>this.lines.length?!1:this.lines[o-1].isVisible()},U.prototype.setTabSize=function(o){return this.tabSize===o?!1:(this.tabSize=o,this._constructLines(!1,null),!0)},U.prototype.setWrappingSettings=function(o,t,i,m){var E=this.fontInfo.equals(o),te=this.wrappingStrategy===t,Re=this.wrappingColumn===i,Le=this.wrappingIndent===m;if(E&&te&&Re&&Le)return!1;var qe=E&&te&&!Re&&Le;this.fontInfo=o,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=m;var ct=null;if(qe){ct=[];for(var wt=0,tt=this.lines.length;wt<tt;wt++)ct[wt]=this.lines[wt].getLineBreakData()}return this._constructLines(!1,ct),!0},U.prototype.createLineBreaksComputer=function(){var o=this.wrappingStrategy==="advanced"?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory;return o.createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)},U.prototype.onModelFlushed=function(){this._constructLines(!0,null)},U.prototype.onModelLinesDeleted=function(o,t,i){if(o<=this._validModelVersionId)return null;var m=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,E=this.prefixSumComputer.getAccumulatedValue(i-1);return this.lines.splice(t-1,i-t+1),this.prefixSumComputer.removeValues(t-1,i-t+1),new un(m,E)},U.prototype.onModelLinesInserted=function(o,t,i,m){if(o<=this._validModelVersionId)return null;for(var E=this.getHiddenAreas(),te=!1,Re=new ne.a(t,1),Le=0,qe=E;Le<qe.length;Le++){var ct=qe[Le];if(ct.containsPosition(Re)){te=!0;break}}for(var wt=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,tt=0,kt=[],Bt=[],Ht=0,qt=m.length;Ht<qt;Ht++){var $t=Ni(m[Ht],!te);kt.push($t);var io=$t.getViewLineCount();tt+=io,Bt[Ht]=io}return this.lines=this.lines.slice(0,t-1).concat(kt).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,Bt),new Vo(wt,wt+tt-1)},U.prototype.onModelLineChanged=function(o,t,i){if(o<=this._validModelVersionId)return[!1,null,null,null];var m=t-1,E=this.lines[m].getViewLineCount(),te=this.lines[m].isVisible(),Re=Ni(i,te);this.lines[m]=Re;var Le=this.lines[m].getViewLineCount(),qe=!1,ct=0,wt=-1,tt=0,kt=-1,Bt=0,Ht=-1;E>Le?(ct=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,wt=ct+Le-1,Bt=wt+1,Ht=Bt+(E-Le)-1,qe=!0):E<Le?(ct=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,wt=ct+E-1,tt=wt+1,kt=tt+(Le-E)-1,qe=!0):(ct=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,wt=ct+Le-1),this.prefixSumComputer.changeValue(m,Le);var qt=ct<=wt?new tn(ct,wt):null,$t=tt<=kt?new Vo(tt,kt):null,io=Bt<=Ht?new un(Bt,Ht):null;return[qe,qt,$t,io]},U.prototype.acceptVersionId=function(o){this._validModelVersionId=o,this.lines.length===1&&!this.lines[0].isVisible()&&this.setHiddenAreas([])},U.prototype.getViewLineCount=function(){return this.prefixSumComputer.getTotalValue()},U.prototype._toValidViewLineNumber=function(o){if(o<1)return 1;var t=this.getViewLineCount();return o>t?t:o|0},U.prototype.getActiveIndentGuide=function(o,t,i){o=this._toValidViewLineNumber(o),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);var m=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),E=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),te=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),Re=this.model.getActiveIndentGuide(m.lineNumber,E.lineNumber,te.lineNumber),Le=this.convertModelPositionToViewPosition(Re.startLineNumber,1),qe=this.convertModelPositionToViewPosition(Re.endLineNumber,this.model.getLineMaxColumn(Re.endLineNumber));return{startLineNumber:Le.lineNumber,endLineNumber:qe.lineNumber,indent:Re.indent}},U.prototype.getViewLinesIndentGuides=function(o,t){o=this._toValidViewLineNumber(o),t=this._toValidViewLineNumber(t);for(var i=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),m=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),E=[],te=[],Re=[],Le=i.lineNumber-1,qe=m.lineNumber-1,ct=null,wt=Le;wt<=qe;wt++){var tt=this.lines[wt];if(tt.isVisible()){var kt=tt.getViewLineNumberOfModelPosition(0,wt===Le?i.column:1),Bt=tt.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(wt+1)),Ht=Bt-kt+1,qt=0;Ht>1&&tt.getViewLineMinColumn(this.model,wt+1,Bt)===1&&(qt=kt===0?1:2),te.push(Ht),Re.push(qt),ct===null&&(ct=new ne.a(wt+1,0))}else ct!==null&&(E=E.concat(this.model.getLinesIndentGuides(ct.lineNumber,wt)),ct=null)}ct!==null&&(E=E.concat(this.model.getLinesIndentGuides(ct.lineNumber,m.lineNumber)),ct=null);for(var $t=t-o+1,io=new Array($t),yo=0,po=0,bo=E.length;po<bo;po++){var vo=E[po],Ht=Math.min($t-yo,te[po]),qt=Re[po],Co=void 0;qt===2?Co=0:qt===1?Co=1:Co=Ht;for(var Mo=0;Mo<Ht;Mo++)Mo===Co&&(vo=0),io[yo++]=vo}return io},U.prototype.getViewLineContent=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,m=t.remainder;return this.lines[i].getViewLineContent(this.model,i+1,m)},U.prototype.getViewLineLength=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,m=t.remainder;return this.lines[i].getViewLineLength(this.model,i+1,m)},U.prototype.getViewLineMinColumn=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,m=t.remainder;return this.lines[i].getViewLineMinColumn(this.model,i+1,m)},U.prototype.getViewLineMaxColumn=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,m=t.remainder;return this.lines[i].getViewLineMaxColumn(this.model,i+1,m)},U.prototype.getViewLineData=function(o){o=this._toValidViewLineNumber(o);var t=this.prefixSumComputer.getIndexOf(o-1),i=t.index,m=t.remainder;return this.lines[i].getViewLineData(this.model,i+1,m)},U.prototype.getViewLinesData=function(o,t,i){o=this._toValidViewLineNumber(o),t=this._toValidViewLineNumber(t);for(var m=this.prefixSumComputer.getIndexOf(o-1),E=o,te=m.index,Re=m.remainder,Le=[],qe=te,ct=this.model.getLineCount();qe<ct;qe++){var wt=this.lines[qe];if(!wt.isVisible())continue;var tt=qe===te?Re:0,kt=wt.getViewLineCount()-tt,Bt=!1;E+kt>t&&(Bt=!0,kt=t-E+1);var Ht=tt+kt;if(wt.getViewLinesData(this.model,qe+1,tt,Ht,E-o,i,Le),E+=kt,Bt)break}return Le},U.prototype.validateViewPosition=function(o,t,i){o=this._toValidViewLineNumber(o);var m=this.prefixSumComputer.getIndexOf(o-1),E=m.index,te=m.remainder,Re=this.lines[E],Le=Re.getViewLineMinColumn(this.model,E+1,te),qe=Re.getViewLineMaxColumn(this.model,E+1,te);t<Le&&(t=Le),t>qe&&(t=qe);var ct=Re.getModelColumnOfViewPosition(te,t),wt=this.model.validatePosition(new ne.a(E+1,ct));return wt.equals(i)?new ne.a(o,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)},U.prototype.validateViewRange=function(o,t){var i=this.validateViewPosition(o.startLineNumber,o.startColumn,t.getStartPosition()),m=this.validateViewPosition(o.endLineNumber,o.endColumn,t.getEndPosition());return new fe.a(i.lineNumber,i.column,m.lineNumber,m.column)},U.prototype.convertViewPositionToModelPosition=function(o,t){o=this._toValidViewLineNumber(o);var i=this.prefixSumComputer.getIndexOf(o-1),m=i.index,E=i.remainder,te=this.lines[m].getModelColumnOfViewPosition(E,t);return this.model.validatePosition(new ne.a(m+1,te))},U.prototype.convertViewRangeToModelRange=function(o){var t=this.convertViewPositionToModelPosition(o.startLineNumber,o.startColumn),i=this.convertViewPositionToModelPosition(o.endLineNumber,o.endColumn);return new fe.a(t.lineNumber,t.column,i.lineNumber,i.column)},U.prototype.convertModelPositionToViewPosition=function(o,t){for(var i=this.model.validatePosition(new ne.a(o,t)),m=i.lineNumber,E=i.column,te=m-1,Re=!1;te>0&&!this.lines[te].isVisible();)te--,Re=!0;if(te===0&&!this.lines[te].isVisible())return new ne.a(1,1);var Le=1+(te===0?0:this.prefixSumComputer.getAccumulatedValue(te-1)),qe;return Re?qe=this.lines[te].getViewPositionOfModelPosition(Le,this.model.getLineMaxColumn(te+1)):qe=this.lines[m-1].getViewPositionOfModelPosition(Le,E),qe},U.prototype.convertModelRangeToViewRange=function(o){var t=this.convertModelPositionToViewPosition(o.startLineNumber,o.startColumn),i=this.convertModelPositionToViewPosition(o.endLineNumber,o.endColumn);return o.startLineNumber===o.endLineNumber&&t.lineNumber!==i.lineNumber&&i.column===this.getViewLineMinColumn(i.lineNumber)?new fe.a(t.lineNumber,t.column,i.lineNumber-1,this.getViewLineMaxColumn(i.lineNumber-1)):new fe.a(t.lineNumber,t.column,i.lineNumber,i.column)},U.prototype._getViewLineNumberForModelPosition=function(o,t){var i=o-1;if(this.lines[i].isVisible()){var m=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(m,t)}for(;i>0&&!this.lines[i].isVisible();)i--;if(i===0&&!this.lines[i].isVisible())return 1;var E=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(E,this.model.getLineMaxColumn(i+1))},U.prototype.getAllOverviewRulerDecorations=function(o,t,i){for(var m=this.model.getOverviewRulerDecorations(o,t),E=new oi,te=0,Re=m;te<Re.length;te++){var Le=Re[te],qe=Le.options.overviewRuler,ct=qe?qe.position:0;if(ct===0)continue;var wt=qe.getColor(i),tt=this._getViewLineNumberForModelPosition(Le.range.startLineNumber,Le.range.startColumn),kt=this._getViewLineNumberForModelPosition(Le.range.endLineNumber,Le.range.endColumn);E.accept(wt,tt,kt,ct)}return E.result},U.prototype.getDecorationsInRange=function(o,t,i){var m=this.convertViewPositionToModelPosition(o.startLineNumber,o.startColumn),E=this.convertViewPositionToModelPosition(o.endLineNumber,o.endColumn);if(E.lineNumber-m.lineNumber<=o.endLineNumber-o.startLineNumber)return this.model.getDecorationsInRange(new fe.a(m.lineNumber,1,E.lineNumber,E.column),t,i);for(var te=[],Re=m.lineNumber-1,Le=E.lineNumber-1,qe=null,ct=Re;ct<=Le;ct++){var wt=this.lines[ct];if(wt.isVisible())qe===null&&(qe=new ne.a(ct+1,ct===Re?m.column:1));else if(qe!==null){var tt=this.model.getLineMaxColumn(ct);te=te.concat(this.model.getDecorationsInRange(new fe.a(qe.lineNumber,qe.column,ct,tt),t,i)),qe=null}}qe!==null&&(te=te.concat(this.model.getDecorationsInRange(new fe.a(qe.lineNumber,qe.column,E.lineNumber,E.column),t,i)),qe=null),te.sort(function(po,bo){var vo=fe.a.compareRangesUsingStarts(po.range,bo.range);return vo===0?po.id<bo.id?-1:po.id>bo.id?1:0:vo});for(var kt=[],Bt=0,Ht=null,qt=0,$t=te;qt<$t.length;qt++){var io=$t[qt],yo=io.id;if(Ht===yo)continue;Ht=yo,kt[Bt++]=io}return kt},U}(),nr=function(){function U(){}return U.prototype.isVisible=function(){return!0},U.prototype.setVisible=function(o){return o?this:ir.INSTANCE},U.prototype.getLineBreakData=function(){return null},U.prototype.getViewLineCount=function(){return 1},U.prototype.getViewLineContent=function(o,t,i){return o.getLineContent(t)},U.prototype.getViewLineLength=function(o,t,i){return o.getLineLength(t)},U.prototype.getViewLineMinColumn=function(o,t,i){return o.getLineMinColumn(t)},U.prototype.getViewLineMaxColumn=function(o,t,i){return o.getLineMaxColumn(t)},U.prototype.getViewLineData=function(o,t,i){var m=o.getLineTokens(t),E=m.getLineContent();return new zn.c(E,!1,1,E.length+1,0,m.inflate())},U.prototype.getViewLinesData=function(o,t,i,m,E,te,Re){if(!te[E]){Re[E]=null;return}Re[E]=this.getViewLineData(o,t,0)},U.prototype.getModelColumnOfViewPosition=function(o,t){return t},U.prototype.getViewPositionOfModelPosition=function(o,t){return new ne.a(o,t)},U.prototype.getViewLineNumberOfModelPosition=function(o,t){return o},U.INSTANCE=new U,U}(),ir=function(){function U(){}return U.prototype.isVisible=function(){return!1},U.prototype.setVisible=function(o){return o?nr.INSTANCE:this},U.prototype.getLineBreakData=function(){return null},U.prototype.getViewLineCount=function(){return 0},U.prototype.getViewLineContent=function(o,t,i){throw new Error("Not supported")},U.prototype.getViewLineLength=function(o,t,i){throw new Error("Not supported")},U.prototype.getViewLineMinColumn=function(o,t,i){throw new Error("Not supported")},U.prototype.getViewLineMaxColumn=function(o,t,i){throw new Error("Not supported")},U.prototype.getViewLineData=function(o,t,i){throw new Error("Not supported")},U.prototype.getViewLinesData=function(o,t,i,m,E,te,Re){throw new Error("Not supported")},U.prototype.getModelColumnOfViewPosition=function(o,t){throw new Error("Not supported")},U.prototype.getViewPositionOfModelPosition=function(o,t){throw new Error("Not supported")},U.prototype.getViewLineNumberOfModelPosition=function(o,t){throw new Error("Not supported")},U.INSTANCE=new U,U}(),Yn=function(){function U(o,t){this._lineBreakData=o,this._isVisible=t}return U.prototype.isVisible=function(){return this._isVisible},U.prototype.setVisible=function(o){return this._isVisible=o,this},U.prototype.getLineBreakData=function(){return this._lineBreakData},U.prototype.getViewLineCount=function(){return this._isVisible?this._lineBreakData.breakOffsets.length:0},U.prototype.getInputStartOffsetOfOutputLineIndex=function(o){return Jn.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,o,0)},U.prototype.getInputEndOffsetOfOutputLineIndex=function(o,t,i){return i+1===this._lineBreakData.breakOffsets.length?o.getLineMaxColumn(t)-1:Jn.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,i+1,0)},U.prototype.getViewLineContent=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var m=this.getInputStartOffsetOfOutputLineIndex(i),E=this.getInputEndOffsetOfOutputLineIndex(o,t,i),te=o.getValueInRange({startLineNumber:t,startColumn:m+1,endLineNumber:t,endColumn:E+1});return i>0&&(te=rr(this._lineBreakData.wrappedTextIndentLength)+te),te},U.prototype.getViewLineLength=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var m=this.getInputStartOffsetOfOutputLineIndex(i),E=this.getInputEndOffsetOfOutputLineIndex(o,t,i),te=E-m;return i>0&&(te=this._lineBreakData.wrappedTextIndentLength+te),te},U.prototype.getViewLineMinColumn=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");return i>0?this._lineBreakData.wrappedTextIndentLength+1:1},U.prototype.getViewLineMaxColumn=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(o,t,i).length+1},U.prototype.getViewLineData=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var m=this.getInputStartOffsetOfOutputLineIndex(i),E=this.getInputEndOffsetOfOutputLineIndex(o,t,i),te=o.getValueInRange({startLineNumber:t,startColumn:m+1,endLineNumber:t,endColumn:E+1});i>0&&(te=rr(this._lineBreakData.wrappedTextIndentLength)+te);var Re=i>0?this._lineBreakData.wrappedTextIndentLength+1:1,Le=te.length+1,qe=i+1<this.getViewLineCount(),ct=0;i>0&&(ct=this._lineBreakData.wrappedTextIndentLength);var wt=o.getLineTokens(t),tt=i===0?0:this._lineBreakData.breakOffsetsVisibleColumn[i-1];return new zn.c(te,qe,Re,Le,tt,wt.sliceAndInflate(m,E,ct))},U.prototype.getViewLinesData=function(o,t,i,m,E,te,Re){if(!this._isVisible)throw new Error("Not supported");for(var Le=i;Le<m;Le++){var qe=E+Le-i;if(!te[qe]){Re[qe]=null;continue}Re[qe]=this.getViewLineData(o,t,Le)}},U.prototype.getModelColumnOfViewPosition=function(o,t){if(!this._isVisible)throw new Error("Not supported");var i=t-1;return o>0&&(i<this._lineBreakData.wrappedTextIndentLength?i=0:i-=this._lineBreakData.wrappedTextIndentLength),Jn.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,o,i)+1},U.prototype.getViewPositionOfModelPosition=function(o,t){if(!this._isVisible)throw new Error("Not supported");var i=Jn.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1),m=i.outputLineIndex,E=i.outputOffset+1;return m>0&&(E+=this._lineBreakData.wrappedTextIndentLength),new ne.a(o+m,E)},U.prototype.getViewLineNumberOfModelPosition=function(o,t){if(!this._isVisible)throw new Error("Not supported");var i=Jn.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1);return o+i.outputLineIndex},U}(),Tn=[""];function rr(U){if(U>=Tn.length)for(var o=1;o<=U;o++)Tn[o]=Ms(o);return Tn[U]}function Ms(U){return new Array(U+1).join(" ")}function Ni(U,o){return U===null?o?nr.INSTANCE:ir.INSTANCE:new Yn(U,o)}var Ds=function(){function U(o){this._lines=o}return U.prototype._validPosition=function(o){return this._lines.model.validatePosition(o)},U.prototype._validRange=function(o){return this._lines.model.validateRange(o)},U.prototype.convertViewPositionToModelPosition=function(o){return this._validPosition(o)},U.prototype.convertViewRangeToModelRange=function(o){return this._validRange(o)},U.prototype.validateViewPosition=function(o,t){return this._validPosition(t)},U.prototype.validateViewRange=function(o,t){return this._validRange(t)},U.prototype.convertModelPositionToViewPosition=function(o){return this._validPosition(o)},U.prototype.convertModelRangeToViewRange=function(o){return this._validRange(o)},U.prototype.modelPositionIsVisible=function(o){var t=this._lines.model.getLineCount();return!(o.lineNumber<1||o.lineNumber>t)},U}(),fi=function(){function U(o){this.model=o}return U.prototype.dispose=function(){},U.prototype.createCoordinatesConverter=function(){return new Ds(this)},U.prototype.getHiddenAreas=function(){return[]},U.prototype.setHiddenAreas=function(o){return!1},U.prototype.setTabSize=function(o){return!1},U.prototype.setWrappingSettings=function(o,t,i,m){return!1},U.prototype.createLineBreaksComputer=function(){var o=[];return{addRequest:function(t,i){o.push(null)},finalize:function(){return o}}},U.prototype.onModelFlushed=function(){},U.prototype.onModelLinesDeleted=function(o,t,i){return new un(t,i)},U.prototype.onModelLinesInserted=function(o,t,i,m){return new Vo(t,i)},U.prototype.onModelLineChanged=function(o,t,i){return[!1,new tn(t,t),null,null]},U.prototype.acceptVersionId=function(o){},U.prototype.getViewLineCount=function(){return this.model.getLineCount()},U.prototype.getActiveIndentGuide=function(o,t,i){return{startLineNumber:o,endLineNumber:o,indent:0}},U.prototype.getViewLinesIndentGuides=function(o,t){for(var i=t-o+1,m=new Array(i),E=0;E<i;E++)m[E]=0;return m},U.prototype.getViewLineContent=function(o){return this.model.getLineContent(o)},U.prototype.getViewLineLength=function(o){return this.model.getLineLength(o)},U.prototype.getViewLineMinColumn=function(o){return this.model.getLineMinColumn(o)},U.prototype.getViewLineMaxColumn=function(o){return this.model.getLineMaxColumn(o)},U.prototype.getViewLineData=function(o){var t=this.model.getLineTokens(o),i=t.getLineContent();return new zn.c(i,!1,1,i.length+1,0,t.inflate())},U.prototype.getViewLinesData=function(o,t,i){var m=this.model.getLineCount();o=Math.min(Math.max(1,o),m),t=Math.min(Math.max(1,t),m);for(var E=[],te=o;te<=t;te++){var Re=te-o;i[Re]||(E[Re]=null),E[Re]=this.getViewLineData(te)}return E},U.prototype.getAllOverviewRulerDecorations=function(o,t,i){for(var m=this.model.getOverviewRulerDecorations(o,t),E=new oi,te=0,Re=m;te<Re.length;te++){var Le=Re[te],qe=Le.options.overviewRuler,ct=qe?qe.position:0;if(ct===0)continue;var wt=qe.getColor(i),tt=Le.range.startLineNumber,kt=Le.range.endLineNumber;E.accept(wt,tt,kt,ct)}return E.result},U.prototype.getDecorationsInRange=function(o,t,i){return this.model.getDecorationsInRange(o,t,i)},U}(),oi=function(){function U(){this.result=Object.create(null)}return U.prototype.accept=function(o,t,i,m){var E=this.result[o];if(E){var te=E[E.length-3],Re=E[E.length-1];if(te===m&&Re+1>=t){i>Re&&(E[E.length-1]=i);return}E.push(m,t,i)}else this.result[o]=[m,t,i]},U}(),Os=function(){function U(o,t,i,m,E){this.editorId=o,this.model=t,this.configuration=i,this._linesCollection=m,this._coordinatesConverter=E,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return U.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},U.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},U.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},U.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},U.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},U.prototype._getOrCreateViewModelDecoration=function(o){var t=o.id,i=this._decorationsCache[t];if(!i){var m=o.range,E=o.options,te=void 0;if(E.isWholeLine){var Re=this._coordinatesConverter.convertModelPositionToViewPosition(new ne.a(m.startLineNumber,1)),Le=this._coordinatesConverter.convertModelPositionToViewPosition(new ne.a(m.endLineNumber,this.model.getLineMaxColumn(m.endLineNumber)));te=new fe.a(Re.lineNumber,Re.column,Le.lineNumber,Le.column)}else te=this._coordinatesConverter.convertModelRangeToViewRange(m);i=new zn.e(te,E),this._decorationsCache[t]=i}return i},U.prototype.getDecorationsViewportData=function(o){var t=this._cachedModelDecorationsResolver!==null;return t=t&&o.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(o),this._cachedModelDecorationsResolverViewRange=o),this._cachedModelDecorationsResolver},U.prototype._getDecorationsViewportData=function(o){for(var t=this._linesCollection.getDecorationsInRange(o,this.editorId,Object(ye.j)(this.configuration.options)),i=o.startLineNumber,m=o.endLineNumber,E=[],te=0,Re=[],Le=i;Le<=m;Le++)Re[Le-i]=[];for(var qe=0,ct=t.length;qe<ct;qe++){var wt=t[qe],tt=wt.options,kt=this._getOrCreateViewModelDecoration(wt),Bt=kt.range;if(E[te++]=kt,tt.inlineClassName)for(var Ht=new zn.a(Bt,tt.inlineClassName,tt.inlineClassNameAffectsLetterSpacing?3:0),qt=Math.max(i,Bt.startLineNumber),$t=Math.min(m,Bt.endLineNumber),Le=qt;Le<=$t;Le++)Re[Le-i].push(Ht);if(tt.beforeContentClassName&&(i<=Bt.startLineNumber&&Bt.startLineNumber<=m)){var Ht=new zn.a(new fe.a(Bt.startLineNumber,Bt.startColumn,Bt.startLineNumber,Bt.startColumn),tt.beforeContentClassName,1);Re[Bt.startLineNumber-i].push(Ht)}if(tt.afterContentClassName&&(i<=Bt.endLineNumber&&Bt.endLineNumber<=m)){var Ht=new zn.a(new fe.a(Bt.endLineNumber,Bt.endColumn,Bt.endLineNumber,Bt.endColumn),tt.afterContentClassName,2);Re[Bt.endLineNumber-i].push(Ht)}}return{decorations:E,inlineDecorations:Re}},U}(),Ts=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Si=!0,Kn=function(U){Ts(o,U);function o(t,i,m,E,te,Re){var Le=U.call(this)||this;if(Le.editorId=t,Le.configuration=i,Le.model=m,Le._tokenizeViewportSoon=Le._register(new g.d(function(){return Le.tokenizeViewport()},50)),Le.hasFocus=!1,Le.viewportStartLine=-1,Le.viewportStartLineTrackedRange=null,Le.viewportStartLineDelta=0,Si&&Le.model.isTooLargeForTokenization())Le.lines=new fi(Le.model);else{var qe=Le.configuration.options,ct=qe.get(34),wt=qe.get(103),tt=qe.get(108),kt=qe.get(102);Le.lines=new Nr(Le.model,E,te,ct,Le.model.getOptions().tabSize,wt,tt.wrappingColumn,kt)}return Le.coordinatesConverter=Le.lines.createCoordinatesConverter(),Le.viewLayout=Le._register(new _s(Le.configuration,Le.getLineCount(),Re)),Le._register(Le.viewLayout.onDidScroll(function(Bt){Bt.scrollTopChanged&&Le._tokenizeViewportSoon.schedule();try{var Ht=Le._beginEmit();Ht.emit(new pn(Bt))}finally{Le._endEmit()}})),Le._register(Le.viewLayout.onDidContentSizeChange(function(Bt){try{var Ht=Le._beginEmit();Ht.emit(new Ro(Bt))}finally{Le._endEmit()}})),Le.decorations=new Os(Le.editorId,Le.model,Le.configuration,Le.lines,Le.coordinatesConverter),Le._registerModelEvents(),Le._register(Le.configuration.onDidChange(function(Bt){try{var Ht=Le._beginEmit();Le._onConfigurationChanged(Ht,Bt)}finally{Le._endEmit()}})),Le._register(li.getInstance().onDidChange(function(){try{var Bt=Le._beginEmit();Bt.emit(new dn)}finally{Le._endEmit()}})),Le}return o.prototype.dispose=function(){U.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.invalidateMinimapColorCache(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,1)},o.prototype.tokenizeViewport=function(){var t=this.viewLayout.getLinesViewportData(),i=this.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(t.startLineNumber,1)),m=this.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(t.endLineNumber,1));this.model.tokenizeViewport(i.lineNumber,m.lineNumber)},o.prototype.setHasFocus=function(t){this.hasFocus=t},o.prototype._onConfigurationChanged=function(t,i){var m=null;if(this.viewportStartLine!==-1){var E=new ne.a(this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));m=this.coordinatesConverter.convertViewPositionToModelPosition(E)}var te=!1,Re=this.configuration.options,Le=Re.get(34),qe=Re.get(103),ct=Re.get(108),wt=Re.get(102);if(this.lines.setWrappingSettings(Le,qe,ct.wrappingColumn,wt)&&(t.emit(new Wo),t.emit(new Io),t.emit(new Eo),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.getCurrentScrollTop()!==0&&(te=!0)),i.hasChanged(68)&&(this.decorations.reset(),t.emit(new Eo)),t.emit(new Do(i)),this.viewLayout.onConfigurationChanged(i),te&&m){var tt=this.coordinatesConverter.convertModelPositionToViewPosition(m),kt=this.viewLayout.getVerticalOffsetForLineNumber(tt.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:kt+this.viewportStartLineDelta})}},o.prototype._registerModelEvents=function(){var t=this;this._register(this.model.onDidChangeRawContentFast(function(i){try{for(var m=t._beginEmit(),E=!1,te=!1,Re=i.changes,Le=i.versionId,qe=t.lines.createLineBreaksComputer(),ct=0,wt=Re;ct<wt.length;ct++){var tt=wt[ct];switch(tt.changeType){case 4:{for(var kt=0,Bt=tt.detail;kt<Bt.length;kt++){var Ht=Bt[kt];qe.addRequest(Ht,null)}break}case 2:{qe.addRequest(tt.detail,null);break}}}for(var qt=qe.finalize(),$t=0,io=0,yo=Re;io<yo.length;io++){var tt=yo[io];switch(tt.changeType){case 1:{t.lines.onModelFlushed(),m.emit(new Wo),t.decorations.reset(),t.viewLayout.onFlushed(t.getLineCount()),E=!0;break}case 3:{var po=t.lines.onModelLinesDeleted(Le,tt.fromLineNumber,tt.toLineNumber);po!==null&&(m.emit(po),t.viewLayout.onLinesDeleted(po.fromLineNumber,po.toLineNumber)),E=!0;break}case 4:{var bo=qt.slice($t,$t+tt.detail.length);$t+=tt.detail.length;var vo=t.lines.onModelLinesInserted(Le,tt.fromLineNumber,tt.toLineNumber,bo);vo!==null&&(m.emit(vo),t.viewLayout.onLinesInserted(vo.fromLineNumber,vo.toLineNumber)),E=!0;break}case 2:{var Co=qt[$t];$t++;var Mo=t.lines.onModelLineChanged(Le,tt.lineNumber,Co),Ko=Mo[0],zo=Mo[1],vo=Mo[2],po=Mo[3];te=Ko,zo&&m.emit(zo),vo&&(m.emit(vo),t.viewLayout.onLinesInserted(vo.fromLineNumber,vo.toLineNumber)),po&&(m.emit(po),t.viewLayout.onLinesDeleted(po.fromLineNumber,po.toLineNumber));break}case 5:break}}t.lines.acceptVersionId(Le),t.viewLayout.onHeightMaybeChanged(),!E&&te&&(m.emit(new Io),m.emit(new Eo),t.decorations.onLineMappingChanged())}finally{t._endEmit()}if(t.viewportStartLine=-1,t.configuration.setMaxLineNumber(t.model.getLineCount()),!t.hasFocus&&t.model.getAttachedEditorCount()>=2&&t.viewportStartLineTrackedRange){var ko=t.model._getTrackedRange(t.viewportStartLineTrackedRange);if(ko){var fn=t.coordinatesConverter.convertModelPositionToViewPosition(ko.getStartPosition()),In=t.viewLayout.getVerticalOffsetForLineNumber(fn.lineNumber);t.viewLayout.setScrollPositionNow({scrollTop:In+t.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(i){for(var m=[],E=0,te=i.ranges.length;E<te;E++){var Re=i.ranges[E],Le=t.coordinatesConverter.convertModelPositionToViewPosition(new ne.a(Re.fromLineNumber,1)).lineNumber,qe=t.coordinatesConverter.convertModelPositionToViewPosition(new ne.a(Re.toLineNumber,t.model.getLineMaxColumn(Re.toLineNumber))).lineNumber;m[E]={fromLineNumber:Le,toLineNumber:qe}}try{var ct=t._beginEmit();ct.emit(new on(m))}finally{t._endEmit()}i.tokenizationSupportChanged&&t._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(function(i){try{var m=t._beginEmit();m.emit(new Fo)}finally{t._endEmit()}})),this._register(this.model.onDidChangeOptions(function(i){if(t.lines.setTabSize(t.model.getOptions().tabSize)){t.decorations.onLineMappingChanged(),t.viewLayout.onFlushed(t.getLineCount());try{var m=t._beginEmit();m.emit(new Wo),m.emit(new Io),m.emit(new Eo)}finally{t._endEmit()}}})),this._register(this.model.onDidChangeDecorations(function(i){t.decorations.onModelDecorationsChanged();try{var m=t._beginEmit();m.emit(new Eo)}finally{t._endEmit()}}))},o.prototype.setHiddenAreas=function(t){try{var i=this._beginEmit(),m=this.lines.setHiddenAreas(t);m&&(i.emit(new Wo),i.emit(new Io),i.emit(new Eo),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._endEmit()}},o.prototype.getVisibleRanges=function(){var t=this.getCompletelyVisibleViewRange(),i=this.coordinatesConverter.convertViewRangeToModelRange(t),m=this.lines.getHiddenAreas();if(m.length===0)return[i];for(var E=[],te=0,Re=i.startLineNumber,Le=i.startColumn,qe=i.endLineNumber,ct=i.endColumn,wt=0,tt=m.length;wt<tt;wt++){var kt=m[wt].startLineNumber,Bt=m[wt].endLineNumber;if(Bt<Re)continue;if(kt>qe)continue;Re<kt&&(E[te++]=new fe.a(Re,Le,kt-1,this.model.getLineMaxColumn(kt-1))),Re=Bt+1,Le=1}return(Re<qe||Re===qe&&Le<ct)&&(E[te++]=new fe.a(Re,Le,qe,ct)),E},o.prototype.getCompletelyVisibleViewRange=function(){var t=this.viewLayout.getLinesViewportData(),i=t.completelyVisibleStartLineNumber,m=t.completelyVisibleEndLineNumber;return new fe.a(i,this.getLineMinColumn(i),m,this.getLineMaxColumn(m))},o.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(t){var i=this.viewLayout.getLinesViewportDataAtScrollTop(t),m=i.completelyVisibleStartLineNumber,E=i.completelyVisibleEndLineNumber;return new fe.a(m,this.getLineMinColumn(m),E,this.getLineMaxColumn(E))},o.prototype.saveState=function(){var t=this.viewLayout.saveState(),i=t.scrollTop,m=this.viewLayout.getLineNumberAtVerticalOffset(i),E=this.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(m,this.getLineMinColumn(m))),te=this.viewLayout.getVerticalOffsetForLineNumber(m)-i;return{scrollLeft:t.scrollLeft,firstPosition:E,firstPositionDeltaTop:te}},o.prototype.reduceRestoreState=function(t){if(typeof t.firstPosition=="undefined")return this._reduceRestoreStateCompatibility(t);var i=this.model.validatePosition(t.firstPosition),m=this.coordinatesConverter.convertModelPositionToViewPosition(i),E=this.viewLayout.getVerticalOffsetForLineNumber(m.lineNumber)-t.firstPositionDeltaTop;return{scrollLeft:t.scrollLeft,scrollTop:E}},o.prototype._reduceRestoreStateCompatibility=function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTopWithoutViewZones}},o.prototype.getTabSize=function(){return this.model.getOptions().tabSize},o.prototype.getOptions=function(){return this.model.getOptions()},o.prototype.getLineCount=function(){return this.lines.getViewLineCount()},o.prototype.setViewport=function(t,i,m){this.viewportStartLine=t;var E=this.coordinatesConverter.convertViewPositionToModelPosition(new ne.a(t,this.getLineMinColumn(t)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new fe.a(E.lineNumber,E.column,E.lineNumber,E.column),1);var te=this.viewLayout.getVerticalOffsetForLineNumber(t),Re=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=Re-te},o.prototype.getActiveIndentGuide=function(t,i,m){return this.lines.getActiveIndentGuide(t,i,m)},o.prototype.getLinesIndentGuides=function(t,i){return this.lines.getViewLinesIndentGuides(t,i)},o.prototype.getLineContent=function(t){return this.lines.getViewLineContent(t)},o.prototype.getLineLength=function(t){return this.lines.getViewLineLength(t)},o.prototype.getLineMinColumn=function(t){return this.lines.getViewLineMinColumn(t)},o.prototype.getLineMaxColumn=function(t){return this.lines.getViewLineMaxColumn(t)},o.prototype.getLineFirstNonWhitespaceColumn=function(t){var i=ge.q(this.getLineContent(t));return i===-1?0:i+1},o.prototype.getLineLastNonWhitespaceColumn=function(t){var i=ge.D(this.getLineContent(t));return i===-1?0:i+2},o.prototype.getDecorationsInViewport=function(t){return this.decorations.getDecorationsViewportData(t).decorations},o.prototype.getViewLineRenderingData=function(t,i){var m=this.model.mightContainRTL(),E=this.model.mightContainNonBasicASCII(),te=this.getTabSize(),Re=this.lines.getViewLineData(i),Le=this.decorations.getDecorationsViewportData(t).inlineDecorations,qe=Le[i-t.startLineNumber];return new zn.d(Re.minColumn,Re.maxColumn,Re.content,Re.continuesWithWrappedLine,m,E,Re.tokens,qe,te,Re.startVisibleColumn)},o.prototype.getViewLineData=function(t){return this.lines.getViewLineData(t)},o.prototype.getMinimapLinesRenderingData=function(t,i,m){var E=this.lines.getViewLinesData(t,i,m);return new zn.b(this.getTabSize(),E)},o.prototype.getAllOverviewRulerDecorations=function(t){return this.lines.getAllOverviewRulerDecorations(this.editorId,Object(ye.j)(this.configuration.options),t)},o.prototype.invalidateOverviewRulerColorCache=function(){for(var t=this.model.getOverviewRulerDecorations(),i=0,m=t;i<m.length;i++){var E=m[i],te=E.options.overviewRuler;te&&te.invalidateCachedColor()}},o.prototype.invalidateMinimapColorCache=function(){for(var t=this.model.getAllDecorations(),i=0,m=t;i<m.length;i++){var E=m[i],te=E.options.minimap;te&&te.invalidateCachedColor()}},o.prototype.getValueInRange=function(t,i){var m=this.coordinatesConverter.convertViewRangeToModelRange(t);return this.model.getValueInRange(m,i)},o.prototype.getModelLineMaxColumn=function(t){return this.model.getLineMaxColumn(t)},o.prototype.validateModelPosition=function(t){return this.model.validatePosition(t)},o.prototype.validateModelRange=function(t){return this.model.validateRange(t)},o.prototype.deduceModelPositionRelativeToViewPosition=function(t,i,m){var E=this.coordinatesConverter.convertViewPositionToModelPosition(t);this.model.getEOL().length===2&&(i<0?i-=m:i+=m);var te=this.model.getOffsetAt(E),Re=te+i;return this.model.getPositionAt(Re)},o.prototype.getEOL=function(){return this.model.getEOL()},o.prototype.getPlainTextToCopy=function(t,i,m){var E=m?`\r
`:this.model.getEOL();t=t.slice(0),t.sort(fe.a.compareRangesUsingStarts);for(var te=!1,Re=!1,Le=0,qe=t;Le<qe.length;Le++){var ct=qe[Le];ct.isEmpty()?te=!0:Re=!0}if(!Re){if(!i)return"";for(var wt=t.map(function(Co){return Co.startLineNumber}),tt="",kt=0;kt<wt.length;kt++){if(kt>0&&wt[kt-1]===wt[kt])continue;tt+=this.model.getLineContent(wt[kt])+E}return tt}if(te&&i){for(var Bt=[],Ht=0,qt=0,$t=t;qt<$t.length;qt++){var io=$t[qt],yo=io.startLineNumber;io.isEmpty()?yo!==Ht&&Bt.push(this.model.getLineContent(yo)):Bt.push(this.model.getValueInRange(io,m?2:0)),Ht=yo}return Bt.length===1?Bt[0]:Bt}for(var po=[],bo=0,vo=t;bo<vo.length;bo++){var io=vo[bo];io.isEmpty()||po.push(this.model.getValueInRange(io,m?2:0))}return po.length===1?po[0]:po},o.prototype.getRichTextToCopy=function(t,i){var m=this.model.getLanguageIdentifier();if(m.id===1)return null;if(t.length!==1)return null;var E=t[0];if(E.isEmpty()){if(!i)return null;var te=E.startLineNumber;E=new fe.a(te,this.model.getLineMinColumn(te),te,this.model.getLineMaxColumn(te))}var Re=this.configuration.options.get(34),Le=this._getColorMap(),qe=Re.fontFamily===ye.b.fontFamily?Re.fontFamily:"'"+Re.fontFamily+"', "+ye.b.fontFamily;return{mode:m.language,html:'<div style="'+("color: "+Le[1]+";")+("background-color: "+Le[2]+";")+("font-family: "+qe+";")+("font-weight: "+Re.fontWeight+";")+("font-size: "+Re.fontSize+"px;")+("line-height: "+Re.lineHeight+"px;")+'white-space: pre;">'+this._getHTMLToCopy(E,Le)+"</div>"}},o.prototype._getHTMLToCopy=function(t,i){for(var m=t.startLineNumber,E=t.startColumn,te=t.endLineNumber,Re=t.endColumn,Le=this.getTabSize(),qe="",ct=m;ct<=te;ct++){var wt=this.model.getLineTokens(ct),tt=wt.getLineContent(),kt=ct===m?E-1:0,Bt=ct===te?Re-1:tt.length;tt===""?qe+="<br>":qe+=Object(Ai.a)(tt,wt.inflate(),i,kt,Bt,Le,w.h)}return qe},o.prototype._getColorMap=function(){var t=$o.B.getColorMap(),i=["#000000"];if(t)for(var m=1,E=t.length;m<E;m++)i[m]=Hn.a.Format.CSS.formatHex(t[m]);return i},o}(Bo),ni=e("nnTU"),mi=e("T8No"),xs=e("Cg/j"),sr=e("8HsV"),ar=e("sM1p"),sn=e("R3nR"),As=e("746U"),Rs=e("MXAL"),jr=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Is=function(U){jr(o,U);function o(t,i){for(var m=U.call(this,0)||this,E=0;E<t.length;E++)m.set(t.charCodeAt(E),1);for(var E=0;E<i.length;E++)m.set(i.charCodeAt(E),2);return m}return o.prototype.get=function(t){return t>=0&&t<256?this._asciiMap[t]:t>=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?3:this._map.get(t)||this._defaultValue},o}(Rs.a),ji=[],lr=[],Ns=function(){function U(o,t){this.classifier=new Is(o,t)}return U.create=function(o){return new U(o.get(99),o.get(98))},U.prototype.createLineBreaksComputer=function(o,t,i,m){var E=this;t=t|0,i=+i;var te=[],Re=[];return{addRequest:function(Le,qe){te.push(Le),Re.push(qe)},finalize:function(){for(var Le=o.typicalFullwidthCharacterWidth/o.typicalHalfwidthCharacterWidth,qe=[],ct=0,wt=te.length;ct<wt;ct++){var tt=Re[ct];tt?qe[ct]=js(E.classifier,tt,te[ct],t,i,Le,m):qe[ct]=Ps(E.classifier,te[ct],t,i,Le,m)}return ji.length=0,lr.length=0,qe}}},U}();function js(U,o,t,i,m,E,te){if(m===-1)return null;var Re=t.length;if(Re<=1)return null;var Le=o.breakOffsets,qe=o.breakOffsetsVisibleColumn,ct=ki(t,i,m,E,te),wt=m-ct,tt=ji,kt=lr,Bt=0,Ht=m,qt=Le.length,$t=0;if($t>=0)for(var io=Math.abs(qe[$t]-Ht);$t+1<qt;){var yo=Math.abs(qe[$t+1]-Ht);if(yo>=io)break;io=yo,$t++}for(;$t<qt;){var po=$t<0?0:Le[$t],bo=$t<0?0:qe[$t],vo=0,Co=0,Mo=0,Ko=0;if(bo<=Ht){for(var zo=bo,ko=t.charCodeAt(po-1),fn=U.get(ko),In=!0,ln=po;ln<Re;ln++){var Nn=ln,cn=t.charCodeAt(ln),Wn=void 0,Fn=void 0;if(ge.z(cn)?(ln++,Wn=0,Fn=2):(Wn=U.get(cn),Fn=Pi(cn,zo,i,E)),cr(ko,fn,cn,Wn)&&(vo=Nn,Co=zo),zo+=Fn,zo>Ht){Mo=Nn,Ko=zo-Fn,zo-Co>wt&&(vo=0),In=!1;break}ko=cn,fn=Wn}if(In){Bt>0&&(tt[Bt]=Le[Le.length-1],kt[Bt]=qe[Le.length-1],Bt++);break}}if(vo===0){for(var zo=bo,cn=t.charCodeAt(po),Wn=U.get(cn),Ui=!1,ln=po-1;ln>=0;ln--){var Nn=ln+1,ko=t.charCodeAt(ln);if(ko===9){Ui=!0;break}var fn=void 0,fr=void 0;if(ge.A(ko)?(ln--,fn=0,fr=2):(fn=U.get(ko),fr=ge.y(ko)?E:1),zo<=Ht){if(Mo===0&&(Mo=Nn,Ko=zo),zo<=Ht-wt)break;if(cr(ko,fn,cn,Wn)){vo=Nn,Co=zo;break}}zo-=fr,cn=ko,Wn=fn}if(vo!==0){var Hr=wt-(Ko-Co);if(Hr<=i){var Zn=t.charCodeAt(Mo),Fn=void 0;ge.z(Zn)?Fn=2:Fn=Pi(Zn,Ko,i,E),Hr-Fn<0&&(vo=0)}}if(Ui){$t--;continue}}for(vo===0&&(vo=Mo,Co=Ko),tt[Bt]=vo,kt[Bt]=Co,Bt++,Ht=Co+wt;$t<0||$t<qt&&qe[$t]<Co;)$t++;for(var io=Math.abs(qe[$t]-Ht);$t+1<qt;){var yo=Math.abs(qe[$t+1]-Ht);if(yo>=io)break;io=yo,$t++}}return Bt===0?null:(tt.length=Bt,kt.length=Bt,ji=o.breakOffsets,lr=o.breakOffsetsVisibleColumn,o.breakOffsets=tt,o.breakOffsetsVisibleColumn=kt,o.wrappedTextIndentLength=ct,o)}function Ps(U,o,t,i,m,E){if(i===-1)return null;var te=o.length;if(te<=1)return null;var Re=ki(o,t,i,m,E),Le=i-Re,qe=[],ct=[],wt=0,tt=0,kt=0,Bt=i,Ht=o.charCodeAt(0),qt=U.get(Ht),$t=Pi(Ht,0,t,m),io=1;ge.z(Ht)&&($t+=1,Ht=o.charCodeAt(1),qt=U.get(Ht),io++);for(var yo=io;yo<te;yo++){var po=yo,bo=o.charCodeAt(yo),vo=void 0,Co=void 0;ge.z(bo)?(yo++,vo=0,Co=2):(vo=U.get(bo),Co=Pi(bo,$t,t,m)),cr(Ht,qt,bo,vo)&&(tt=po,kt=$t),$t+=Co,$t>Bt&&((tt===0||$t-kt>Le)&&(tt=po,kt=$t-Co),qe[wt]=tt,ct[wt]=kt,wt++,Bt=kt+Le,tt=0),Ht=bo,qt=vo}return wt===0?null:(qe[wt]=te,ct[wt]=$t,new Jn(qe,ct,Re))}function Pi(U,o,t,i){return U===9?t-o%t:ge.y(U)?i:1}function dr(U,o){return o-U%o}function cr(U,o,t,i){return t!==32&&(o===2||o===3&&i!==2||i===1||i===3&&o!==1)}function ki(U,o,t,i,m){var E=0;if(m!==0){var te=ge.q(U);if(te!==-1){for(var Re=0;Re<te;Re++){var Le=U.charCodeAt(Re)===9?dr(E,o):1;E+=Le}for(var qe=m===3?2:m===2?1:0,Re=0;Re<qe;Re++){var Le=dr(E,o);E+=Le}E+i>t&&(E=0)}}return E}var Pr=function(){function U(){}return U.create=function(){return new U},U.prototype.createLineBreaksComputer=function(o,t,i,m){t=t|0,i=+i;var E=[];return{addRequest:function(te,Re){E.push(te)},finalize:function(){return Fi(E,o,t,i,m)}}},U}();function Fi(U,o,t,i,m){if(i===-1){for(var E=[],te=0,Re=U.length;te<Re;te++)E[te]=null;return E}var Le=Math.round(i*o.typicalHalfwidthCharacterWidth);(m===2||m===3)&&(m=1);var qe=document.createElement("div");W.a.applyFontInfoSlow(qe,o);for(var ct=Object(Ft.a)(1e4),wt=[],tt=[],kt=[],Bt=[],Ht=[],te=0;te<U.length;te++){var qt=U[te],$t=0,io=0,yo=Le;if(m!==0)if($t=ge.q(qt),$t===-1)$t=0;else{for(var po=0;po<$t;po++){var bo=qt.charCodeAt(po)===9?t-io%t:1;io+=bo}var vo=Math.ceil(o.spaceWidth*io);vo+o.typicalFullwidthCharacterWidth>Le?($t=0,io=0):yo=Le-vo}var Co=qt.substr($t),Mo=kr(Co,io,t,yo,ct);wt[te]=$t,tt[te]=io,kt[te]=Co,Bt[te]=Mo[0],Ht[te]=Mo[1]}qe.innerHTML=ct.build(),qe.style.position="absolute",qe.style.top="10000",qe.style.wordWrap="break-word",document.body.appendChild(qe);for(var Ko=document.createRange(),zo=Array.prototype.slice.call(qe.children,0),ko=[],te=0;te<U.length;te++){var fn=zo[te],In=Fr(Ko,fn,kt[te],Bt[te]);if(In===null){ko[te]=null;continue}for(var $t=wt[te],io=tt[te],ln=Ht[te],Nn=[],cn=0,Re=In.length;cn<Re;cn++)Nn[cn]=ln[In[cn]];if($t!==0)for(var cn=0,Re=In.length;cn<Re;cn++)In[cn]+=$t;ko[te]=new Jn(In,Nn,io)}return document.body.removeChild(qe),ko}function kr(U,o,t,i,m){m.appendASCIIString('<div style="width:'),m.appendASCIIString(String(i)),m.appendASCIIString('px;">');for(var E=U.length,te=o,Re=0,Le=[],qe=[],ct=0<E?U.charCodeAt(0):0,wt=0;wt<E;wt++){Le[wt]=Re,qe[wt]=te;var tt=ct;ct=wt+1<E?U.charCodeAt(wt+1):0;var kt=1,Bt=1;switch(tt){case 9:kt=t-te%t,Bt=kt;for(var Ht=1;Ht<=kt;Ht++)Ht<kt?m.write1(160):m.appendASCII(32);break;case 32:ct===32?m.write1(160):m.appendASCII(32);break;case 60:m.appendASCIIString("&lt;");break;case 62:m.appendASCIIString("&gt;");break;case 38:m.appendASCIIString("&amp;");break;case 0:m.appendASCIIString("&#00;");break;case 65279:case 8232:m.write1(65533);break;default:ge.y(tt)&&Bt++,m.write1(tt)}Re+=kt,te+=Bt}return Le[U.length]=Re,qe[U.length]=te,m.appendASCIIString("</div>"),[Le,qe]}function Fr(U,o,t,i){if(t.length<=1)return null;var m=o.firstChild,E=[];return pi(U,m,i,0,null,t.length-1,null,E),E.length===0?null:(E.push(t.length),E)}function pi(U,o,t,i,m,E,te,Re){if(i===E)return;if(m=m||ur(U,o,t[i],t[i+1]),te=te||ur(U,o,t[E],t[E+1]),Math.abs(m[0].top-te[0].top)<=.1)return;if(i+1===E){Re.push(E);return}var Le=i+(E-i)/2|0,qe=ur(U,o,t[Le],t[Le+1]);pi(U,o,t,i,m,Le,qe,Re),pi(U,o,t,Le,qe,E,te,Re)}function ur(U,o,t,i){return U.setStart(o,t),U.setEnd(o,i),U.getClientRects()}var Li=function(){var U=function(o,t){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,m){i.__proto__=m}||function(i,m){for(var E in m)m.hasOwnProperty(E)&&(i[E]=m[E])},U(o,t)};return function(o,t){U(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Wr=function(U,o,t,i){var m=arguments.length,E=m<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,t):i,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(U,o,t,i);else for(var Re=U.length-1;Re>=0;Re--)(te=U[Re])&&(E=(m<3?te(E):m>3?te(o,t,E):te(o,t))||E);return m>3&&E&&Object.defineProperty(o,t,E),E},ii=function(U,o){return function(t,i){o(t,i,U)}},gi=0,hr=function(){function U(o,t,i,m,E,te){this.model=o,this.viewModel=t,this.cursor=i,this.view=m,this.hasRealView=E,this.listenersToRemove=te}return U.prototype.dispose=function(){Object(z.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},U}(),ks=function(U){Li(o,U);function o(t,i,m,E,te,Re,Le,qe,ct,wt){var tt=U.call(this)||this;tt._onDidDispose=tt._register(new B.a),tt.onDidDispose=tt._onDidDispose.event,tt._onDidChangeModelContent=tt._register(new B.a),tt.onDidChangeModelContent=tt._onDidChangeModelContent.event,tt._onDidChangeModelLanguage=tt._register(new B.a),tt.onDidChangeModelLanguage=tt._onDidChangeModelLanguage.event,tt._onDidChangeModelLanguageConfiguration=tt._register(new B.a),tt.onDidChangeModelLanguageConfiguration=tt._onDidChangeModelLanguageConfiguration.event,tt._onDidChangeModelOptions=tt._register(new B.a),tt.onDidChangeModelOptions=tt._onDidChangeModelOptions.event,tt._onDidChangeModelDecorations=tt._register(new B.a),tt.onDidChangeModelDecorations=tt._onDidChangeModelDecorations.event,tt._onDidChangeConfiguration=tt._register(new B.a),tt.onDidChangeConfiguration=tt._onDidChangeConfiguration.event,tt._onDidChangeModel=tt._register(new B.a),tt.onDidChangeModel=tt._onDidChangeModel.event,tt._onDidChangeCursorPosition=tt._register(new B.a),tt.onDidChangeCursorPosition=tt._onDidChangeCursorPosition.event,tt._onDidChangeCursorSelection=tt._register(new B.a),tt.onDidChangeCursorSelection=tt._onDidChangeCursorSelection.event,tt._onDidAttemptReadOnlyEdit=tt._register(new B.a),tt.onDidAttemptReadOnlyEdit=tt._onDidAttemptReadOnlyEdit.event,tt._onDidLayoutChange=tt._register(new B.a),tt.onDidLayoutChange=tt._onDidLayoutChange.event,tt._editorTextFocus=tt._register(new qn),tt.onDidFocusEditorText=tt._editorTextFocus.onDidChangeToTrue,tt.onDidBlurEditorText=tt._editorTextFocus.onDidChangeToFalse,tt._editorWidgetFocus=tt._register(new qn),tt.onDidFocusEditorWidget=tt._editorWidgetFocus.onDidChangeToTrue,tt.onDidBlurEditorWidget=tt._editorWidgetFocus.onDidChangeToFalse,tt._onWillType=tt._register(new B.a),tt.onWillType=tt._onWillType.event,tt._onDidType=tt._register(new B.a),tt.onDidType=tt._onDidType.event,tt._onDidCompositionStart=tt._register(new B.a),tt.onDidCompositionStart=tt._onDidCompositionStart.event,tt._onDidCompositionEnd=tt._register(new B.a),tt.onDidCompositionEnd=tt._onDidCompositionEnd.event,tt._onDidPaste=tt._register(new B.a),tt.onDidPaste=tt._onDidPaste.event,tt._onMouseUp=tt._register(new B.a),tt.onMouseUp=tt._onMouseUp.event,tt._onMouseDown=tt._register(new B.a),tt.onMouseDown=tt._onMouseDown.event,tt._onMouseDrag=tt._register(new B.a),tt.onMouseDrag=tt._onMouseDrag.event,tt._onMouseDrop=tt._register(new B.a),tt.onMouseDrop=tt._onMouseDrop.event,tt._onContextMenu=tt._register(new B.a),tt.onContextMenu=tt._onContextMenu.event,tt._onMouseMove=tt._register(new B.a),tt.onMouseMove=tt._onMouseMove.event,tt._onMouseLeave=tt._register(new B.a),tt.onMouseLeave=tt._onMouseLeave.event,tt._onMouseWheel=tt._register(new B.a),tt.onMouseWheel=tt._onMouseWheel.event,tt._onKeyUp=tt._register(new B.a),tt.onKeyUp=tt._onKeyUp.event,tt._onKeyDown=tt._register(new B.a),tt.onKeyDown=tt._onKeyDown.event,tt._onDidContentSizeChange=tt._register(new B.a),tt.onDidContentSizeChange=tt._onDidContentSizeChange.event,tt._onDidScrollChange=tt._register(new B.a),tt.onDidScrollChange=tt._onDidScrollChange.event,tt._onDidChangeViewZones=tt._register(new B.a),tt.onDidChangeViewZones=tt._onDidChangeViewZones.event,tt._domElement=t,tt._id=++gi,tt._decorationTypeKeysToIds={},tt._decorationTypeSubtypes={},tt.isSimpleWidget=m.isSimpleWidget||!1,tt._telemetryData=m.telemetryData,i=i||{},tt._configuration=tt._register(tt._createConfiguration(i,wt)),tt._register(tt._configuration.onDidChange(function(io){tt._onDidChangeConfiguration.fire(io);var yo=tt._configuration.options;if(io.hasChanged(107)){var po=yo.get(107);tt._onDidLayoutChange.fire(po)}})),tt._contextKeyService=tt._register(Le.createScoped(tt._domElement)),tt._notificationService=ct,tt._codeEditorService=te,tt._commandService=Re,tt._themeService=qe,tt._register(new Fs(tt,tt._contextKeyService)),tt._register(new Ws(tt,tt._contextKeyService)),tt._instantiationService=E.createChild(new sr.a([mi.c,tt._contextKeyService])),tt._modelData=null,tt._contributions={},tt._actions={},tt._focusTracker=new Br(t),tt._focusTracker.onChange(function(){tt._editorWidgetFocus.setValue(tt._focusTracker.hasFocus())}),tt._contentWidgets={},tt._overlayWidgets={};var kt;Array.isArray(m.contributions)?kt=m.contributions:kt=x.d.getEditorContributions();for(var Bt=0,Ht=kt;Bt<Ht.length;Bt++){var qt=Ht[Bt];try{var $t=tt._instantiationService.createInstance(qt.ctor,tt);tt._contributions[qt.id]=$t}catch(io){Object(R.e)(io)}}return x.d.getEditorActions().forEach(function(io){var yo=new Es.a(io.id,io.label,io.alias,Object(As.n)(io.precondition),function(){return tt._instantiationService.invokeFunction(function(po){return Promise.resolve(io.runEditorCommand(po,tt,null))})},tt._contextKeyService);tt._actions[yo.id]=yo}),tt._codeEditorService.addCodeEditor(tt),tt}return o.prototype._createConfiguration=function(t,i){return new W.a(this.isSimpleWidget,t,this._domElement,i)},o.prototype.getId=function(){return this.getEditorType()+":"+this._id},o.prototype.getEditorType=function(){return Sn.a.ICodeEditor},o.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();for(var t=Object.keys(this._contributions),i=0,m=t.length;i<m;i++){var E=t[i];this._contributions[E].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),U.prototype.dispose.call(this)},o.prototype.invokeWithinContext=function(t){return this._instantiationService.invokeFunction(t)},o.prototype.updateOptions=function(t){this._configuration.updateOptions(t)},o.prototype.getOptions=function(){return this._configuration.options},o.prototype.getOption=function(t){return this._configuration.options.get(t)},o.prototype.getRawOptions=function(){return this._configuration.getRawOptions()},o.prototype.getValue=function(t){if(t===void 0&&(t=null),!this._modelData)return"";var i=!!(t&&t.preserveBOM),m=0;return t&&t.lineEnding&&t.lineEnding===`
`?m=1:t&&t.lineEnding&&t.lineEnding===`\r
`&&(m=2),this._modelData.model.getValue(m,i)},o.prototype.setValue=function(t){if(!this._modelData)return;this._modelData.model.setValue(t)},o.prototype.getModel=function(){return this._modelData?this._modelData.model:null},o.prototype.setModel=function(t){t===void 0&&(t=null);var i=t;if(this._modelData===null&&i===null)return;if(this._modelData&&this._modelData.model===i)return;var m=this.hasTextFocus(),E=this._detachModel();this._attachModel(i),m&&this.hasModel()&&this.focus();var te={oldModelUrl:E?E.uri:null,newModelUrl:i?i.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(te),this._postDetachModelCleanup(E)},o.prototype._removeDecorationTypes=function(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(var t in this._decorationTypeSubtypes){var i=this._decorationTypeSubtypes[t];for(var m in i)this._removeDecorationType(t+"-"+m)}this._decorationTypeSubtypes={}}},o.prototype.getVisibleRanges=function(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]},o.prototype.getWhitespaces=function(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]},o._getVerticalOffsetForPosition=function(t,i,m){var E=t.model.validatePosition({lineNumber:i,column:m}),te=t.viewModel.coordinatesConverter.convertModelPositionToViewPosition(E);return t.viewModel.viewLayout.getVerticalOffsetForLineNumber(te.lineNumber)},o.prototype.getTopForLineNumber=function(t){return this._modelData?o._getVerticalOffsetForPosition(this._modelData,t,1):-1},o.prototype.getTopForPosition=function(t,i){return this._modelData?o._getVerticalOffsetForPosition(this._modelData,t,i):-1},o.prototype.setHiddenAreas=function(t){this._modelData&&this._modelData.viewModel.setHiddenAreas(t.map(function(i){return fe.a.lift(i)}))},o.prototype.getVisibleColumnFromPosition=function(t){if(!this._modelData)return t.column;var i=this._modelData.model.validatePosition(t),m=this._modelData.model.getOptions().tabSize;return Oe.a.visibleColumnFromColumn(this._modelData.model.getLineContent(i.lineNumber),i.column,m)+1},o.prototype.getPosition=function(){return this._modelData?this._modelData.cursor.getPosition():null},o.prototype.setPosition=function(t){if(!this._modelData)return;if(!ne.a.isIPosition(t))throw new Error("Invalid arguments");this._modelData.cursor.setSelections("api",[{selectionStartLineNumber:t.lineNumber,selectionStartColumn:t.column,positionLineNumber:t.lineNumber,positionColumn:t.column}])},o.prototype._sendRevealRange=function(t,i,m,E){if(!this._modelData)return;if(!fe.a.isIRange(t))throw new Error("Invalid arguments");var te=this._modelData.model.validateRange(t),Re=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(te);this._modelData.cursor.emitCursorRevealRange("api",Re,i,m,E)},o.prototype.revealLine=function(t,i){i===void 0&&(i=0),this._revealLine(t,0,i)},o.prototype.revealLineInCenter=function(t,i){i===void 0&&(i=0),this._revealLine(t,1,i)},o.prototype.revealLineInCenterIfOutsideViewport=function(t,i){i===void 0&&(i=0),this._revealLine(t,2,i)},o.prototype._revealLine=function(t,i,m){if(typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new fe.a(t,1,t,1),i,!1,m)},o.prototype.revealPosition=function(t,i){i===void 0&&(i=0),this._revealPosition(t,0,!0,i)},o.prototype.revealPositionInCenter=function(t,i){i===void 0&&(i=0),this._revealPosition(t,1,!0,i)},o.prototype.revealPositionInCenterIfOutsideViewport=function(t,i){i===void 0&&(i=0),this._revealPosition(t,2,!0,i)},o.prototype._revealPosition=function(t,i,m,E){if(!ne.a.isIPosition(t))throw new Error("Invalid arguments");this._sendRevealRange(new fe.a(t.lineNumber,t.column,t.lineNumber,t.column),i,m,E)},o.prototype.getSelection=function(){return this._modelData?this._modelData.cursor.getSelection():null},o.prototype.getSelections=function(){return this._modelData?this._modelData.cursor.getSelections():null},o.prototype.setSelection=function(t){var i=gt.a.isISelection(t),m=fe.a.isIRange(t);if(!i&&!m)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(t);else if(m){var E={selectionStartLineNumber:t.startLineNumber,selectionStartColumn:t.startColumn,positionLineNumber:t.endLineNumber,positionColumn:t.endColumn};this._setSelectionImpl(E)}},o.prototype._setSelectionImpl=function(t){if(!this._modelData)return;var i=new gt.a(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn);this._modelData.cursor.setSelections("api",[i])},o.prototype.revealLines=function(t,i,m){m===void 0&&(m=0),this._revealLines(t,i,0,m)},o.prototype.revealLinesInCenter=function(t,i,m){m===void 0&&(m=0),this._revealLines(t,i,1,m)},o.prototype.revealLinesInCenterIfOutsideViewport=function(t,i,m){m===void 0&&(m=0),this._revealLines(t,i,2,m)},o.prototype._revealLines=function(t,i,m,E){if(typeof t!="number"||typeof i!="number")throw new Error("Invalid arguments");this._sendRevealRange(new fe.a(t,1,i,1),m,!1,E)},o.prototype.revealRange=function(t,i,m,E){i===void 0&&(i=0),m===void 0&&(m=!1),E===void 0&&(E=!0),this._revealRange(t,m?1:0,E,i)},o.prototype.revealRangeInCenter=function(t,i){i===void 0&&(i=0),this._revealRange(t,1,!0,i)},o.prototype.revealRangeInCenterIfOutsideViewport=function(t,i){i===void 0&&(i=0),this._revealRange(t,2,!0,i)},o.prototype.revealRangeAtTop=function(t,i){i===void 0&&(i=0),this._revealRange(t,3,!0,i)},o.prototype._revealRange=function(t,i,m,E){if(!fe.a.isIRange(t))throw new Error("Invalid arguments");this._sendRevealRange(fe.a.lift(t),i,m,E)},o.prototype.setSelections=function(t,i){if(i===void 0&&(i="api"),!this._modelData)return;if(!t||t.length===0)throw new Error("Invalid arguments");for(var m=0,E=t.length;m<E;m++)if(!gt.a.isISelection(t[m]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(i,t)},o.prototype.getContentWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1},o.prototype.getScrollWidth=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1},o.prototype.getScrollLeft=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1},o.prototype.getContentHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1},o.prototype.getScrollHeight=function(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1},o.prototype.getScrollTop=function(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1},o.prototype.setScrollLeft=function(t){if(!this._modelData)return;if(typeof t!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:t})},o.prototype.setScrollTop=function(t){if(!this._modelData)return;if(typeof t!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:t})},o.prototype.setScrollPosition=function(t){if(!this._modelData)return;this._modelData.viewModel.viewLayout.setScrollPositionNow(t)},o.prototype.saveViewState=function(){if(!this._modelData)return null;for(var t={},i=Object.keys(this._contributions),m=0,E=i;m<E.length;m++){var te=E[m],Re=this._contributions[te];typeof Re.saveViewState=="function"&&(t[te]=Re.saveViewState())}var Le=this._modelData.cursor.saveState(),qe=this._modelData.viewModel.saveState();return{cursorState:Le,viewState:qe,contributionsState:t}},o.prototype.restoreViewState=function(t){if(!this._modelData||!this._modelData.hasRealView)return;var i=t;if(i&&i.cursorState&&i.viewState){var m=i.cursorState;Array.isArray(m)?this._modelData.cursor.restoreState(m):this._modelData.cursor.restoreState([m]);for(var E=i.contributionsState||{},te=Object.keys(this._contributions),Re=0,Le=te.length;Re<Le;Re++){var qe=te[Re],ct=this._contributions[qe];typeof ct.restoreViewState=="function"&&ct.restoreViewState(E[qe])}var wt=this._modelData.viewModel.reduceRestoreState(i.viewState);this._modelData.view.restoreState(wt)}},o.prototype.getContribution=function(t){return this._contributions[t]||null},o.prototype.getActions=function(){for(var t=[],i=Object.keys(this._actions),m=0,E=i.length;m<E;m++){var te=i[m];t.push(this._actions[te])}return t},o.prototype.getSupportedActions=function(){var t=this.getActions();return t=t.filter(function(i){return i.isSupported()}),t},o.prototype.getAction=function(t){return this._actions[t]||null},o.prototype.trigger=function(t,i,m){if(m=m||{},i===Sn.b.Type){if(!this._modelData||typeof m.text!="string"||m.text.length===0)return;t==="keyboard"&&this._onWillType.fire(m.text),this._modelData.cursor.trigger(t,i,m),t==="keyboard"&&this._onDidType.fire(m.text);return}if(i===Sn.b.Paste){if(!this._modelData||typeof m.text!="string"||m.text.length===0)return;var E=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(t,i,m);var te=this._modelData.cursor.getSelection().getStartPosition();t==="keyboard"&&this._onDidPaste.fire({range:new fe.a(E.lineNumber,E.column,te.lineNumber,te.column),mode:m.mode});return}var Re=this.getAction(i);if(Re){Promise.resolve(Re.run()).then(void 0,R.e);return}if(!this._modelData)return;if(this._triggerEditorCommand(t,i,m))return;this._modelData.cursor.trigger(t,i,m),i===Sn.b.CompositionStart&&this._onDidCompositionStart.fire(),i===Sn.b.CompositionEnd&&this._onDidCompositionEnd.fire()},o.prototype._triggerEditorCommand=function(t,i,m){var E=this,te=x.d.getEditorCommand(i);return te?(m=m||{},m.source=t,this._instantiationService.invokeFunction(function(Re){Promise.resolve(te.runEditorCommand(Re,E,m)).then(void 0,R.e)}),!0):!1},o.prototype._getCursors=function(){return this._modelData?this._modelData.cursor:null},o.prototype.pushUndoStop=function(){return this._modelData?this._configuration.options.get(68)?!1:(this._modelData.model.pushStackElement(),!0):!1},o.prototype.executeEdits=function(t,i,m){if(!this._modelData)return!1;if(this._configuration.options.get(68))return!1;var E;return m?Array.isArray(m)?E=function(){return m}:E=m:E=function(){return null},this._modelData.cursor.executeEdits(t,i,E),!0},o.prototype.executeCommand=function(t,i){if(!this._modelData)return;this._modelData.cursor.trigger(t,Sn.b.ExecuteCommand,i)},o.prototype.executeCommands=function(t,i){if(!this._modelData)return;this._modelData.cursor.trigger(t,Sn.b.ExecuteCommands,i)},o.prototype.changeDecorations=function(t){return this._modelData?this._modelData.model.changeDecorations(t,this._id):null},o.prototype.getLineDecorations=function(t){return this._modelData?this._modelData.model.getLineDecorations(t,this._id,Object(ye.j)(this._configuration.options)):null},o.prototype.deltaDecorations=function(t,i){return this._modelData?t.length===0&&i.length===0?t:this._modelData.model.deltaDecorations(t,i,this._id):[]},o.prototype.removeDecorations=function(t){var i=this._decorationTypeKeysToIds[t];i&&this.deltaDecorations(i,[]),this._decorationTypeKeysToIds.hasOwnProperty(t)&&delete this._decorationTypeKeysToIds[t],this._decorationTypeSubtypes.hasOwnProperty(t)&&delete this._decorationTypeSubtypes[t]},o.prototype.getLayoutInfo=function(){var t=this._configuration.options,i=t.get(107);return i},o.prototype.createOverviewRuler=function(t){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(t)},o.prototype.getContainerDomNode=function(){return this._domElement},o.prototype.getDomNode=function(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode},o.prototype.delegateVerticalScrollbarMouseDown=function(t){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.delegateVerticalScrollbarMouseDown(t)},o.prototype.layout=function(t){this._configuration.observeReferenceElement(t),this.render()},o.prototype.focus=function(){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.focus()},o.prototype.hasTextFocus=function(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()},o.prototype.hasWidgetFocus=function(){return this._focusTracker&&this._focusTracker.hasFocus()},o.prototype.addContentWidget=function(t){var i={widget:t,position:t.getPosition()};this._contentWidgets.hasOwnProperty(t.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[t.getId()]=i,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(i)},o.prototype.layoutContentWidget=function(t){var i=t.getId();if(this._contentWidgets.hasOwnProperty(i)){var m=this._contentWidgets[i];m.position=t.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(m)}},o.prototype.removeContentWidget=function(t){var i=t.getId();if(this._contentWidgets.hasOwnProperty(i)){var m=this._contentWidgets[i];delete this._contentWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(m)}},o.prototype.addOverlayWidget=function(t){var i={widget:t,position:t.getPosition()};this._overlayWidgets.hasOwnProperty(t.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[t.getId()]=i,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(i)},o.prototype.layoutOverlayWidget=function(t){var i=t.getId();if(this._overlayWidgets.hasOwnProperty(i)){var m=this._overlayWidgets[i];m.position=t.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(m)}},o.prototype.removeOverlayWidget=function(t){var i=t.getId();if(this._overlayWidgets.hasOwnProperty(i)){var m=this._overlayWidgets[i];delete this._overlayWidgets[i],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(m)}},o.prototype.changeViewZones=function(t){if(!this._modelData||!this._modelData.hasRealView)return;var i=this._modelData.view.change(t);i&&this._onDidChangeViewZones.fire()},o.prototype.getTargetAtClientPoint=function(t,i){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(t,i)},o.prototype.getScrolledVisiblePosition=function(t){if(!this._modelData||!this._modelData.hasRealView)return null;var i=this._modelData.model.validatePosition(t),m=this._configuration.options,E=m.get(107),te=o._getVerticalOffsetForPosition(this._modelData,i.lineNumber,i.column)-this.getScrollTop(),Re=this._modelData.view.getOffsetForColumn(i.lineNumber,i.column)+E.glyphMarginWidth+E.lineNumbersWidth+E.decorationsWidth-this.getScrollLeft();return{top:te,left:Re,height:m.get(49)}},o.prototype.getOffsetForColumn=function(t,i){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(t,i)},o.prototype.render=function(t){if(t===void 0&&(t=!1),!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.render(!0,t)},o.prototype.setAriaOptions=function(t){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.setAriaOptions(t)},o.prototype.applyFontInfo=function(t){W.a.applyFontInfoSlow(t,this._configuration.options.get(34))},o.prototype._attachModel=function(t){var i=this;if(!t){this._modelData=null;return}var m=[];this._domElement.setAttribute("data-mode-id",t.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(t.isDominatedByLongLines()),this._configuration.setMaxLineNumber(t.getLineCount()),t.onBeforeAttached();var E=new Kn(this._id,this._configuration,t,Pr.create(),Ns.create(this._configuration.options),function(Bt){return $.W(Bt)});m.push(t.onDidChangeDecorations(function(Bt){return i._onDidChangeModelDecorations.fire(Bt)})),m.push(t.onDidChangeLanguage(function(Bt){i._domElement.setAttribute("data-mode-id",t.getLanguageIdentifier().language),i._onDidChangeModelLanguage.fire(Bt)})),m.push(t.onDidChangeLanguageConfiguration(function(Bt){return i._onDidChangeModelLanguageConfiguration.fire(Bt)})),m.push(t.onDidChangeContent(function(Bt){return i._onDidChangeModelContent.fire(Bt)})),m.push(t.onDidChangeOptions(function(Bt){return i._onDidChangeModelOptions.fire(Bt)})),m.push(t.onWillDispose(function(){return i.setModel(null)}));var te=new Rr(this._configuration,t,E);m.push(te.onDidReachMaxCursorCount(function(){i._notificationService.warn(le.a("cursors.maximum","The number of cursors has been limited to {0}.",Rr.MAX_CURSOR_COUNT))})),m.push(te.onDidAttemptReadOnlyEdit(function(){i._onDidAttemptReadOnlyEdit.fire(void 0)})),m.push(te.onDidChange(function(Bt){for(var Ht=[],qt=0,$t=Bt.selections.length;qt<$t;qt++)Ht[qt]=Bt.selections[qt].getPosition();var io={position:Ht[0],secondaryPositions:Ht.slice(1),reason:Bt.reason,source:Bt.source};i._onDidChangeCursorPosition.fire(io);var yo={selection:Bt.selections[0],secondarySelections:Bt.selections.slice(1),modelVersionId:Bt.modelVersionId,oldSelections:Bt.oldSelections,oldModelVersionId:Bt.oldModelVersionId,source:Bt.source,reason:Bt.reason};i._onDidChangeCursorSelection.fire(yo)}));var Re=this._createView(E,te),Le=Re[0],qe=Re[1];if(qe){this._domElement.appendChild(Le.domNode.domNode);for(var ct=Object.keys(this._contentWidgets),wt=0,tt=ct.length;wt<tt;wt++){var kt=ct[wt];Le.addContentWidget(this._contentWidgets[kt])}ct=Object.keys(this._overlayWidgets);for(var wt=0,tt=ct.length;wt<tt;wt++){var kt=ct[wt];Le.addOverlayWidget(this._overlayWidgets[kt])}Le.render(!1,!0),Le.domNode.domNode.setAttribute("data-uri",t.uri.toString())}this._modelData=new hr(t,E,te,Le,qe,m)},o.prototype._createView=function(t,i){var m=this,E;this.isSimpleWidget?E={executeEditorCommand:function(Le,qe){Le.runCoreEditorCommand(i,qe)},paste:function(Le,qe,ct,wt,tt){m.trigger(Le,Sn.b.Paste,{text:qe,pasteOnNewLine:ct,multicursorText:wt,mode:tt})},type:function(Le,qe){m.trigger(Le,Sn.b.Type,{text:qe})},replacePreviousChar:function(Le,qe,ct){m.trigger(Le,Sn.b.ReplacePreviousChar,{text:qe,replaceCharCnt:ct})},compositionStart:function(Le){m.trigger(Le,Sn.b.CompositionStart,void 0)},compositionEnd:function(Le){m.trigger(Le,Sn.b.CompositionEnd,void 0)},cut:function(Le){m.trigger(Le,Sn.b.Cut,void 0)}}:E={executeEditorCommand:function(Le,qe){Le.runCoreEditorCommand(i,qe)},paste:function(Le,qe,ct,wt,tt){m._commandService.executeCommand(Sn.b.Paste,{text:qe,pasteOnNewLine:ct,multicursorText:wt,mode:tt})},type:function(Le,qe){m._commandService.executeCommand(Sn.b.Type,{text:qe})},replacePreviousChar:function(Le,qe,ct){m._commandService.executeCommand(Sn.b.ReplacePreviousChar,{text:qe,replaceCharCnt:ct})},compositionStart:function(Le){m._commandService.executeCommand(Sn.b.CompositionStart,{})},compositionEnd:function(Le){m._commandService.executeCommand(Sn.b.CompositionEnd,{})},cut:function(Le){m._commandService.executeCommand(Sn.b.Cut,{})}};var te=new ft(t);te.onDidContentSizeChange=function(Le){return m._onDidContentSizeChange.fire(Le)},te.onDidScroll=function(Le){return m._onDidScrollChange.fire(Le)},te.onDidGainFocus=function(){return m._editorTextFocus.setValue(!0)},te.onDidLoseFocus=function(){return m._editorTextFocus.setValue(!1)},te.onContextMenu=function(Le){return m._onContextMenu.fire(Le)},te.onMouseDown=function(Le){return m._onMouseDown.fire(Le)},te.onMouseUp=function(Le){return m._onMouseUp.fire(Le)},te.onMouseDrag=function(Le){return m._onMouseDrag.fire(Le)},te.onMouseDrop=function(Le){return m._onMouseDrop.fire(Le)},te.onKeyUp=function(Le){return m._onKeyUp.fire(Le)},te.onMouseMove=function(Le){return m._onMouseMove.fire(Le)},te.onMouseLeave=function(Le){return m._onMouseLeave.fire(Le)},te.onMouseWheel=function(Le){return m._onMouseWheel.fire(Le)},te.onKeyDown=function(Le){return m._onKeyDown.fire(Le)};var Re=new Cs(E,this._configuration,this._themeService,t,i,te);return[Re,!0]},o.prototype._postDetachModelCleanup=function(t){t&&t.removeAllDecorationsWithOwnerId(this._id)},o.prototype._detachModel=function(){if(!this._modelData)return null;var t=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),t},o.prototype._removeDecorationType=function(t){this._codeEditorService.removeDecorationType(t)},o.prototype.hasModel=function(){return this._modelData!==null},o=Wr([ii(3,xs.a),ii(4,h.a),ii(5,ni.b),ii(6,mi.c),ii(7,Z.c),ii(8,ar.a),ii(9,sn.b)],o),o}(z.a),qn=function(U){Li(o,U);function o(){var t=U.call(this)||this;return t._onDidChangeToTrue=t._register(new B.a),t.onDidChangeToTrue=t._onDidChangeToTrue.event,t._onDidChangeToFalse=t._register(new B.a),t.onDidChangeToFalse=t._onDidChangeToFalse.event,t._value=0,t}return o.prototype.setValue=function(t){var i=t?2:1;if(this._value===i)return;this._value=i,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire()},o}(z.a),Fs=function(U){Li(o,U);function o(t,i){var m=U.call(this)||this;return m._editor=t,i.createKey("editorId",t.getId()),m._editorSimpleInput=Jo.a.editorSimpleInput.bindTo(i),m._editorFocus=Jo.a.focus.bindTo(i),m._textInputFocus=Jo.a.textInputFocus.bindTo(i),m._editorTextFocus=Jo.a.editorTextFocus.bindTo(i),m._editorTabMovesFocus=Jo.a.tabMovesFocus.bindTo(i),m._editorReadonly=Jo.a.readOnly.bindTo(i),m._hasMultipleSelections=Jo.a.hasMultipleSelections.bindTo(i),m._hasNonEmptySelection=Jo.a.hasNonEmptySelection.bindTo(i),m._canUndo=Jo.a.canUndo.bindTo(i),m._canRedo=Jo.a.canRedo.bindTo(i),m._register(m._editor.onDidChangeConfiguration(function(){return m._updateFromConfig()})),m._register(m._editor.onDidChangeCursorSelection(function(){return m._updateFromSelection()})),m._register(m._editor.onDidFocusEditorWidget(function(){return m._updateFromFocus()})),m._register(m._editor.onDidBlurEditorWidget(function(){return m._updateFromFocus()})),m._register(m._editor.onDidFocusEditorText(function(){return m._updateFromFocus()})),m._register(m._editor.onDidBlurEditorText(function(){return m._updateFromFocus()})),m._register(m._editor.onDidChangeModel(function(){return m._updateFromModel()})),m._register(m._editor.onDidChangeConfiguration(function(){return m._updateFromModel()})),m._updateFromConfig(),m._updateFromSelection(),m._updateFromFocus(),m._updateFromModel(),m._editorSimpleInput.set(m._editor.isSimpleWidget),m}return o.prototype._updateFromConfig=function(){var t=this._editor.getOptions();this._editorTabMovesFocus.set(t.get(106)),this._editorReadonly.set(t.get(68))},o.prototype._updateFromSelection=function(){var t=this._editor.getSelections();t?(this._hasMultipleSelections.set(t.length>1),this._hasNonEmptySelection.set(t.some(function(i){return!i.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},o.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())},o.prototype._updateFromModel=function(){var t=this._editor.getModel();this._canUndo.set(Boolean(t&&t.canUndo())),this._canRedo.set(Boolean(t&&t.canRedo()))},o}(z.a),Ws=function(U){Li(o,U);function o(t,i){var m=U.call(this)||this;m._editor=t,m._contextKeyService=i,m._langId=Jo.a.languageId.bindTo(i),m._hasCompletionItemProvider=Jo.a.hasCompletionItemProvider.bindTo(i),m._hasCodeActionsProvider=Jo.a.hasCodeActionsProvider.bindTo(i),m._hasCodeLensProvider=Jo.a.hasCodeLensProvider.bindTo(i),m._hasDefinitionProvider=Jo.a.hasDefinitionProvider.bindTo(i),m._hasDeclarationProvider=Jo.a.hasDeclarationProvider.bindTo(i),m._hasImplementationProvider=Jo.a.hasImplementationProvider.bindTo(i),m._hasTypeDefinitionProvider=Jo.a.hasTypeDefinitionProvider.bindTo(i),m._hasHoverProvider=Jo.a.hasHoverProvider.bindTo(i),m._hasDocumentHighlightProvider=Jo.a.hasDocumentHighlightProvider.bindTo(i),m._hasDocumentSymbolProvider=Jo.a.hasDocumentSymbolProvider.bindTo(i),m._hasReferenceProvider=Jo.a.hasReferenceProvider.bindTo(i),m._hasRenameProvider=Jo.a.hasRenameProvider.bindTo(i),m._hasSignatureHelpProvider=Jo.a.hasSignatureHelpProvider.bindTo(i),m._hasDocumentFormattingProvider=Jo.a.hasDocumentFormattingProvider.bindTo(i),m._hasDocumentSelectionFormattingProvider=Jo.a.hasDocumentSelectionFormattingProvider.bindTo(i),m._hasMultipleDocumentFormattingProvider=Jo.a.hasMultipleDocumentFormattingProvider.bindTo(i),m._hasMultipleDocumentSelectionFormattingProvider=Jo.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(i),m._isInWalkThrough=Jo.a.isInEmbeddedEditor.bindTo(i);var E=function(){return m._update()};return m._register(t.onDidChangeModel(E)),m._register(t.onDidChangeModelLanguage(E)),m._register($o.d.onDidChange(E)),m._register($o.a.onDidChange(E)),m._register($o.b.onDidChange(E)),m._register($o.f.onDidChange(E)),m._register($o.e.onDidChange(E)),m._register($o.q.onDidChange(E)),m._register($o.C.onDidChange(E)),m._register($o.p.onDidChange(E)),m._register($o.i.onDidChange(E)),m._register($o.m.onDidChange(E)),m._register($o.u.onDidChange(E)),m._register($o.v.onDidChange(E)),m._register($o.g.onDidChange(E)),m._register($o.j.onDidChange(E)),m._register($o.x.onDidChange(E)),E(),m}return o.prototype.dispose=function(){U.prototype.dispose.call(this)},o.prototype.reset=function(){var t=this;this._contextKeyService.bufferChangeEvents(function(){t._langId.reset(),t._hasCompletionItemProvider.reset(),t._hasCodeActionsProvider.reset(),t._hasCodeLensProvider.reset(),t._hasDefinitionProvider.reset(),t._hasDeclarationProvider.reset(),t._hasImplementationProvider.reset(),t._hasTypeDefinitionProvider.reset(),t._hasHoverProvider.reset(),t._hasDocumentHighlightProvider.reset(),t._hasDocumentSymbolProvider.reset(),t._hasReferenceProvider.reset(),t._hasRenameProvider.reset(),t._hasDocumentFormattingProvider.reset(),t._hasDocumentSelectionFormattingProvider.reset(),t._hasSignatureHelpProvider.reset(),t._isInWalkThrough.reset()})},o.prototype._update=function(){var t=this,i=this._editor.getModel();if(!i){this.reset();return}this._contextKeyService.bufferChangeEvents(function(){t._langId.set(i.getLanguageIdentifier().language),t._hasCompletionItemProvider.set($o.d.has(i)),t._hasCodeActionsProvider.set($o.a.has(i)),t._hasCodeLensProvider.set($o.b.has(i)),t._hasDefinitionProvider.set($o.f.has(i)),t._hasDeclarationProvider.set($o.e.has(i)),t._hasImplementationProvider.set($o.q.has(i)),t._hasTypeDefinitionProvider.set($o.C.has(i)),t._hasHoverProvider.set($o.p.has(i)),t._hasDocumentHighlightProvider.set($o.i.has(i)),t._hasDocumentSymbolProvider.set($o.m.has(i)),t._hasReferenceProvider.set($o.u.has(i)),t._hasRenameProvider.set($o.v.has(i)),t._hasSignatureHelpProvider.set($o.x.has(i)),t._hasDocumentFormattingProvider.set($o.g.has(i)||$o.j.has(i)),t._hasDocumentSelectionFormattingProvider.set($o.j.has(i)),t._hasMultipleDocumentFormattingProvider.set($o.g.all(i).length+$o.j.all(i).length>1),t._hasMultipleDocumentSelectionFormattingProvider.set($o.j.all(i).length>1),t._isInWalkThrough.set(i.uri.scheme===D.b.walkThroughSnippet)})},o}(z.a),Br=function(U){Li(o,U);function o(t){var i=U.call(this)||this;return i._onChange=i._register(new B.a),i.onChange=i._onChange.event,i._hasFocus=!1,i._domFocusTracker=i._register($.Z(t)),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 o.prototype.hasFocus=function(){return this._hasFocus},o}(z.a),Bs=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='"),Ur=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 vi(U){return Bs+encodeURIComponent(U.toString())+Ur}var Us=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),Wi=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 Bi(U){return Us+encodeURIComponent(U.toString())+Wi}Object(Z.e)(function(U,o){var t=U.getColor(Dn.p);t&&o.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+t+"; }");var i=U.getColor(Dn.q);i&&o.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+vi(i)+'") repeat-x bottom left; }');var m=U.getColor(Dn.O);m&&o.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+m+"; }");var E=U.getColor(Dn.P);E&&o.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+vi(E)+'") repeat-x bottom left; }');var te=U.getColor(Dn.G);te&&o.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+te+"; }");var Re=U.getColor(Dn.H);Re&&o.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+vi(Re)+'") repeat-x bottom left; }');var Le=U.getColor(Dn.y);Le&&o.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+Le+"; }");var qe=U.getColor(Dn.z);qe&&o.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+Bi(qe)+'") no-repeat bottom left; }');var ct=U.getColor(dt.o);ct&&o.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+ct.rgba.a+"; }");var wt=U.getColor(dt.n);wt&&o.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+wt+"; }");var tt=U.getColor(Dn.x)||"inherit";o.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+tt+"}")})},nD70:function(Lt,N,e){"use strict";e.d(N,"a",function(){return T}),e.d(N,"b",function(){return le});var T=function(){function $(R){this._prefix=R,this._lastId=0}return $.prototype.nextId=function(){return this._prefix+ ++this._lastId},$}(),le=new T("id#")},nlbu:function(Lt,N,e){"use strict";e.d(N,"b",function(){return le}),e.d(N,"d",function(){return $}),e.d(N,"c",function(){return R}),e.d(N,"a",function(){return z});var T=e("N0LK"),le=function(){function D(W){this.value=W}return D.prototype.equals=function(W){return this.value===W.value},D.prototype.contains=function(W){return this.equals(W)||this.value===""||Object(T.N)(W.value,this.value+D.sep)},D.prototype.intersects=function(W){return this.contains(W)||W.contains(this)},D.prototype.append=function(W){return new D(this.value+D.sep+W)},D.sep=".",D.None=new D("@@none@@"),D.Empty=new D(""),D.QuickFix=new D("quickfix"),D.Refactor=new D("refactor"),D.Source=new D("source"),D.SourceOrganizeImports=D.Source.append("organizeImports"),D.SourceFixAll=D.Source.append("fixAll"),D}();function $(D,W){return D.include&&!D.include.intersects(W)||D.excludes&&D.excludes.some(function(x){return B(W,x,D.include)})?!1:!(!D.includeSourceActions&&le.Source.contains(W))}function R(D,W){var x=W.kind?new le(W.kind):void 0;return D.include&&(!x||!D.include.contains(x))||(D.excludes&&(x&&D.excludes.some(function(h){return B(x,h,D.include)}))||!D.includeSourceActions&&(x&&le.Source.contains(x)))?!1:!(D.onlyIncludePreferredActions&&!W.isPreferred)}function B(D,W,x){return W.contains(D)?!(x&&W.contains(x)):!1}var z=function(){function D(W,x,h){this.kind=W,this.apply=x,this.preferred=h}return D.fromUser=function(W,x){return!W||typeof W!="object"?new D(x.kind,x.apply,!1):new D(D.getKindFromUser(W,x.kind),D.getApplyFromUser(W,x.apply),D.getPreferredUser(W))},D.getApplyFromUser=function(W,x){switch(typeof W.apply=="string"?W.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return x}},D.getKindFromUser=function(W,x){return typeof W.kind=="string"?new le(W.kind):x},D.getPreferredUser=function(W){return typeof W.preferred=="boolean"?W.preferred:!1},D}()},nn6Y:function(Lt,N,e){},nnTU:function(Lt,N,e){"use strict";e.d(N,"b",function(){return W}),e.d(N,"a",function(){return x});var T=e("pmY6"),le=e("746U"),$=e("Cg/j"),R=e("MI8n"),B=e("24hK"),z=e("QDVR"),D=function(){for(var h=0,y=0,w=arguments.length;y<w;y++)h+=arguments[y].length;for(var f=Array(h),v=0,y=0;y<w;y++)for(var C=arguments[y],g=0,u=C.length;g<u;g++,v++)f[v]=C[g];return f},W=Object($.c)("commandService"),x=new(function(){function h(){this._commands=new Map,this._onDidRegisterCommand=new R.a,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return h.prototype.registerCommand=function(y,w){var f=this;if(!y)throw new Error("invalid command");if(typeof y=="string"){if(!w)throw new Error("invalid command");return this.registerCommand({id:y,handler:w})}if(y.description){for(var v=[],C=0,g=y.description.args;C<g.length;C++){var u=g[C];v.push(u.constraint)}var s=y.handler;y.handler=function(L){for(var I=[],P=1;P<arguments.length;P++)I[P-1]=arguments[P];return Object(le.m)(I,v),s.apply(void 0,D([L],I))}}var l=y.id,c=this._commands.get(l);c||(c=new B.a,this._commands.set(l,c));var p=c.unshift(y),_=Object(T.h)(function(){p();var L=f._commands.get(l);(L==null?void 0:L.isEmpty())&&f._commands.delete(l)});return this._onDidRegisterCommand.fire(l),_},h.prototype.registerCommandAlias=function(y,w){return x.registerCommand(y,function(f){for(var v,C=[],g=1;g<arguments.length;g++)C[g-1]=arguments[g];return(v=f.get(W)).executeCommand.apply(v,D([w],C))})},h.prototype.getCommand=function(y){var w=this._commands.get(y);return!w||w.isEmpty()?void 0:w.iterator().next().value},h.prototype.getCommands=function(){for(var y=new Map,w=0,f=Object(z.d)(this._commands);w<f.length;w++){var v=f[w],C=this.getCommand(v);C&&y.set(v,C)}return y},h}())},nrBJ:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return e.e(346).then(e.bind(null,"eXtt"))}})},nrhi:function(Lt,N,e){"use strict";e.d(N,"a",function(){return z});var T=e("/kV6"),le=e("MNsG"),$=e("nnTU"),R=e("ic2d"),B=function(){function x(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}return x.bindToCurrentPlatform=function(h){if(le.a===1){if(h&&h.win)return h.win}else if(le.a===2){if(h&&h.mac)return h.mac}else if(h&&h.linux)return h.linux;return h},x.prototype.registerKeybindingRule=function(h){var y=x.bindToCurrentPlatform(h);if(y&&y.primary){var w=Object(T.f)(y.primary,le.a);w&&this._registerDefaultKeybinding(w,h.id,h.args,h.weight,0,h.when)}if(y&&Array.isArray(y.secondary))for(var f=0,v=y.secondary.length;f<v;f++){var C=y.secondary[f],w=Object(T.f)(C,le.a);w&&this._registerDefaultKeybinding(w,h.id,h.args,h.weight,-f-1,h.when)}},x.prototype.registerCommandAndKeybindingRule=function(h){this.registerKeybindingRule(h),$.a.registerCommand(h)},x._mightProduceChar=function(h){return h>=21&&h<=30||h>=31&&h<=56?!0:h===80||h===81||h===82||h===83||h===84||h===85||h===86||h===110||h===111||h===87||h===88||h===89||h===90||h===91||h===92},x.prototype._assertNoCtrlAlt=function(h,y){h.ctrlKey&&h.altKey&&!h.metaKey&&(x._mightProduceChar(h.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",h," for ",y))},x.prototype._registerDefaultKeybinding=function(h,y,w,f,v,C){le.a===1&&this._assertNoCtrlAlt(h.parts[0],y),this._coreKeybindings.push({keybinding:h,command:y,commandArgs:w,when:C,weight1:f,weight2:v}),this._cachedMergedKeybindings=null},x.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(W)),this._cachedMergedKeybindings.slice(0)},x}(),z=new B,D={EditorModes:"platform.keybindingsRegistry"};R.a.add(D.EditorModes,z);function W(x,h){return x.weight1!==h.weight1?x.weight1-h.weight1:x.command<h.command?-1:x.command>h.command?1:x.weight2-h.weight2}},nuFA:function(Lt,N,e){"use strict";e.d(N,"a",function(){return T});var T;(function(le){function $(D,W){if(D.start>=W.end||W.start>=D.end)return{start:0,end:0};var x=Math.max(D.start,W.start),h=Math.min(D.end,W.end);return h-x<=0?{start:0,end:0}:{start:x,end:h}}le.intersect=$;function R(D){return D.end-D.start<=0}le.isEmpty=R;function B(D,W){return!R($(D,W))}le.intersects=B;function z(D,W){var x=[],h={start:D.start,end:Math.min(W.start,D.end)},y={start:Math.max(W.end,D.start),end:D.end};return R(h)||x.push(h),R(y)||x.push(y),x}le.relativeComplement=z})(T||(T={}))},o39E:function(Lt,N,e){"use strict";e.d(N,"a",function(){return R});var T=e("pmY6"),le=e("EffR"),$=function(){var B=function(z,D){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,x){W.__proto__=x}||function(W,x){for(var h in x)x.hasOwnProperty(h)&&(W[h]=x[h])},B(z,D)};return function(z,D){B(z,D);function W(){this.constructor=z}z.prototype=D===null?Object.create(D):(W.prototype=D.prototype,new W)}}(),R=function(B){$(z,B);function z(D,W,x){var h=B.call(this)||this;return h.referenceDomElement=D,h.changeCallback=x,h.width=-1,h.height=-1,h.mutationObserver=null,h.windowSizeListener=null,h.measureReferenceDomElement(!1,W),h}return z.prototype.dispose=function(){this.stopObserving(),B.prototype.dispose.call(this)},z.prototype.getWidth=function(){return this.width},z.prototype.getHeight=function(){return this.height},z.prototype.startObserving=function(){var D=this;!this.mutationObserver&&this.referenceDomElement&&(this.mutationObserver=new MutationObserver(function(){return D._onDidMutate()}),this.mutationObserver.observe(this.referenceDomElement,{attributes:!0})),this.windowSizeListener||(this.windowSizeListener=le.j(window,"resize",function(){return D._onDidResizeWindow()}))},z.prototype.stopObserving=function(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.windowSizeListener&&(this.windowSizeListener.dispose(),this.windowSizeListener=null)},z.prototype.observe=function(D){this.measureReferenceDomElement(!0,D)},z.prototype._onDidMutate=function(){this.measureReferenceDomElement(!0)},z.prototype._onDidResizeWindow=function(){this.measureReferenceDomElement(!0)},z.prototype.measureReferenceDomElement=function(D,W){var x=0,h=0;W?(x=W.width,h=W.height):this.referenceDomElement&&(x=this.referenceDomElement.clientWidth,h=this.referenceDomElement.clientHeight),x=Math.max(5,x),h=Math.max(5,h),(this.width!==x||this.height!==h)&&(this.width=x,this.height=h,D&&this.changeCallback())},z}(T.a)},oAeH:function(Lt,N,e){"use strict";e.d(N,"b",function(){return D}),e.d(N,"a",function(){return W});var T=e("746U"),le=e("Ll0s"),$=e("+Fos"),R=e("1I1M"),B=e("cGHE"),z=e("aokT"),D=function(){function x(){}return x.addCursorDown=function(h,y,w){for(var f=[],v=0,C=0,g=y.length;C<g;C++){var u=y[C];f[v++]=new le.d(u.modelState,u.viewState),w?f[v++]=le.d.fromModelState($.a.translateDown(h.config,h.model,u.modelState)):f[v++]=le.d.fromViewState($.a.translateDown(h.config,h.viewModel,u.viewState))}return f},x.addCursorUp=function(h,y,w){for(var f=[],v=0,C=0,g=y.length;C<g;C++){var u=y[C];f[v++]=new le.d(u.modelState,u.viewState),w?f[v++]=le.d.fromModelState($.a.translateUp(h.config,h.model,u.modelState)):f[v++]=le.d.fromViewState($.a.translateUp(h.config,h.viewModel,u.viewState))}return f},x.moveToBeginningOfLine=function(h,y,w){for(var f=[],v=0,C=y.length;v<C;v++){var g=y[v];f[v]=this._moveToLineStart(h,g,w)}return f},x._moveToLineStart=function(h,y,w){var f=y.viewState.position.column,v=y.modelState.position.column,C=f===v,g=y.viewState.position.lineNumber,u=h.viewModel.getLineFirstNonWhitespaceColumn(g),s=f===u;return!C&&!s?this._moveToLineStartByView(h,y,w):this._moveToLineStartByModel(h,y,w)},x._moveToLineStartByView=function(h,y,w){return le.d.fromViewState($.a.moveToBeginningOfLine(h.config,h.viewModel,y.viewState,w))},x._moveToLineStartByModel=function(h,y,w){return le.d.fromModelState($.a.moveToBeginningOfLine(h.config,h.model,y.modelState,w))},x.moveToEndOfLine=function(h,y,w){for(var f=[],v=0,C=y.length;v<C;v++){var g=y[v];f[v]=this._moveToLineEnd(h,g,w)}return f},x._moveToLineEnd=function(h,y,w){var f=y.viewState.position,v=h.viewModel.getLineMaxColumn(f.lineNumber),C=f.column===v,g=y.modelState.position,u=h.model.getLineMaxColumn(g.lineNumber),s=v-f.column===u-g.column;return C||s?this._moveToLineEndByModel(h,y,w):this._moveToLineEndByView(h,y,w)},x._moveToLineEndByView=function(h,y,w){return le.d.fromViewState($.a.moveToEndOfLine(h.config,h.viewModel,y.viewState,w))},x._moveToLineEndByModel=function(h,y,w){return le.d.fromModelState($.a.moveToEndOfLine(h.config,h.model,y.modelState,w))},x.expandLineSelection=function(h,y){for(var w=[],f=0,v=y.length;f<v;f++){var C=y[f],g=C.modelState.selection.startLineNumber,u=h.model.getLineCount(),s=C.modelState.selection.endLineNumber,l=void 0;s===u?l=h.model.getLineMaxColumn(u):(s++,l=1),w[f]=le.d.fromModelState(new le.f(new z.a(g,1,g,1),0,new B.a(s,l),0))}return w},x.moveToBeginningOfBuffer=function(h,y,w){for(var f=[],v=0,C=y.length;v<C;v++){var g=y[v];f[v]=le.d.fromModelState($.a.moveToBeginningOfBuffer(h.config,h.model,g.modelState,w))}return f},x.moveToEndOfBuffer=function(h,y,w){for(var f=[],v=0,C=y.length;v<C;v++){var g=y[v];f[v]=le.d.fromModelState($.a.moveToEndOfBuffer(h.config,h.model,g.modelState,w))}return f},x.selectAll=function(h,y){var w=h.model.getLineCount(),f=h.model.getLineMaxColumn(w);return le.d.fromModelState(new le.f(new z.a(1,1,1,1),0,new B.a(w,f),0))},x.line=function(h,y,w,f,v){var C=h.model.validatePosition(f),g=v?h.validateViewPosition(new B.a(v.lineNumber,v.column),C):h.convertModelPositionToViewPosition(C);if(!w||!y.modelState.hasSelection()){var u=h.model.getLineCount(),s=C.lineNumber+1,l=1;return s>u&&(s=u,l=h.model.getLineMaxColumn(s)),le.d.fromModelState(new le.f(new z.a(C.lineNumber,1,s,l),0,new B.a(s,l),0))}var c=y.modelState.selectionStart.getStartPosition().lineNumber;if(C.lineNumber<c)return le.d.fromViewState(y.viewState.move(y.modelState.hasSelection(),g.lineNumber,1,0));if(C.lineNumber>c){var u=h.viewModel.getLineCount(),p=g.lineNumber+1,_=1;return p>u&&(p=u,_=h.viewModel.getLineMaxColumn(p)),le.d.fromViewState(y.viewState.move(y.modelState.hasSelection(),p,_,0))}else{var L=y.modelState.selectionStart.getEndPosition();return le.d.fromModelState(y.modelState.move(y.modelState.hasSelection(),L.lineNumber,L.column,0))}},x.word=function(h,y,w,f){var v=h.model.validatePosition(f);return le.d.fromModelState(R.a.word(h.config,h.model,y.modelState,w,v))},x.cancelSelection=function(h,y){if(!y.modelState.hasSelection())return new le.d(y.modelState,y.viewState);var w=y.viewState.position.lineNumber,f=y.viewState.position.column;return le.d.fromViewState(new le.f(new z.a(w,f,w,f),0,new B.a(w,f),0))},x.moveTo=function(h,y,w,f,v){var C=h.model.validatePosition(f),g=v?h.validateViewPosition(new B.a(v.lineNumber,v.column),C):h.convertModelPositionToViewPosition(C);return le.d.fromViewState(y.viewState.move(w,g.lineNumber,g.column,0))},x.move=function(h,y,w){var f=w.select,v=w.value;switch(w.direction){case 0:return w.unit===4?this._moveHalfLineLeft(h,y,f):this._moveLeft(h,y,f,v);case 1:return w.unit===4?this._moveHalfLineRight(h,y,f):this._moveRight(h,y,f,v);case 2:return w.unit===2?this._moveUpByViewLines(h,y,f,v):this._moveUpByModelLines(h,y,f,v);case 3:return w.unit===2?this._moveDownByViewLines(h,y,f,v):this._moveDownByModelLines(h,y,f,v);case 4:return this._moveToViewMinColumn(h,y,f);case 5:return this._moveToViewFirstNonWhitespaceColumn(h,y,f);case 6:return this._moveToViewCenterColumn(h,y,f);case 7:return this._moveToViewMaxColumn(h,y,f);case 8:return this._moveToViewLastNonWhitespaceColumn(h,y,f);case 9:{var C=y[0],g=h.getCompletelyVisibleModelRange(),u=this._firstLineNumberInRange(h.model,g,v),s=h.model.getLineFirstNonWhitespaceColumn(u);return[this._moveToModelPosition(h,C,f,u,s)]}case 11:{var C=y[0],g=h.getCompletelyVisibleModelRange(),u=this._lastLineNumberInRange(h.model,g,v),s=h.model.getLineFirstNonWhitespaceColumn(u);return[this._moveToModelPosition(h,C,f,u,s)]}case 10:{var C=y[0],g=h.getCompletelyVisibleModelRange(),u=Math.round((g.startLineNumber+g.endLineNumber)/2),s=h.model.getLineFirstNonWhitespaceColumn(u);return[this._moveToModelPosition(h,C,f,u,s)]}case 12:{for(var l=h.getCompletelyVisibleViewRange(),c=[],p=0,_=y.length;p<_;p++){var C=y[p];c[p]=this.findPositionInViewportIfOutside(h,C,l,f)}return c}}return null},x.findPositionInViewportIfOutside=function(h,y,w,f){var v=y.viewState.position.lineNumber;if(w.startLineNumber<=v&&v<=w.endLineNumber-1)return new le.d(y.modelState,y.viewState);v>w.endLineNumber-1&&(v=w.endLineNumber-1),v<w.startLineNumber&&(v=w.startLineNumber);var C=h.viewModel.getLineFirstNonWhitespaceColumn(v);return this._moveToViewPosition(h,y,f,v,C)},x._firstLineNumberInRange=function(h,y,w){var f=y.startLineNumber;return y.startColumn!==h.getLineMinColumn(f)&&f++,Math.min(y.endLineNumber,f+w-1)},x._lastLineNumberInRange=function(h,y,w){var f=y.startLineNumber;return y.startColumn!==h.getLineMinColumn(f)&&f++,Math.max(f,y.endLineNumber-w+1)},x._moveLeft=function(h,y,w,f){for(var v=[],C=0,g=y.length;C<g;C++){var u=y[C],s=$.a.moveLeft(h.config,h.viewModel,u.viewState,w,f);if(f===1&&s.position.lineNumber!==u.viewState.position.lineNumber){var l=h.viewModel.coordinatesConverter.convertViewPositionToModelPosition(s.position);l.lineNumber===u.modelState.position.lineNumber&&(s=$.a.moveLeft(h.config,h.viewModel,s,w,1))}v[C]=le.d.fromViewState(s)}return v},x._moveHalfLineLeft=function(h,y,w){for(var f=[],v=0,C=y.length;v<C;v++){var g=y[v],u=g.viewState.position.lineNumber,s=Math.round(h.viewModel.getLineContent(u).length/2);f[v]=le.d.fromViewState($.a.moveLeft(h.config,h.viewModel,g.viewState,w,s))}return f},x._moveRight=function(h,y,w,f){for(var v=[],C=0,g=y.length;C<g;C++){var u=y[C],s=$.a.moveRight(h.config,h.viewModel,u.viewState,w,f);if(f===1&&s.position.lineNumber!==u.viewState.position.lineNumber){var l=h.viewModel.coordinatesConverter.convertViewPositionToModelPosition(s.position);l.lineNumber===u.modelState.position.lineNumber&&(s=$.a.moveRight(h.config,h.viewModel,s,w,1))}v[C]=le.d.fromViewState(s)}return v},x._moveHalfLineRight=function(h,y,w){for(var f=[],v=0,C=y.length;v<C;v++){var g=y[v],u=g.viewState.position.lineNumber,s=Math.round(h.viewModel.getLineContent(u).length/2);f[v]=le.d.fromViewState($.a.moveRight(h.config,h.viewModel,g.viewState,w,s))}return f},x._moveDownByViewLines=function(h,y,w,f){for(var v=[],C=0,g=y.length;C<g;C++){var u=y[C];v[C]=le.d.fromViewState($.a.moveDown(h.config,h.viewModel,u.viewState,w,f))}return v},x._moveDownByModelLines=function(h,y,w,f){for(var v=[],C=0,g=y.length;C<g;C++){var u=y[C];v[C]=le.d.fromModelState($.a.moveDown(h.config,h.model,u.modelState,w,f))}return v},x._moveUpByViewLines=function(h,y,w,f){for(var v=[],C=0,g=y.length;C<g;C++){var u=y[C];v[C]=le.d.fromViewState($.a.moveUp(h.config,h.viewModel,u.viewState,w,f))}return v},x._moveUpByModelLines=function(h,y,w,f){for(var v=[],C=0,g=y.length;C<g;C++){var u=y[C];v[C]=le.d.fromModelState($.a.moveUp(h.config,h.model,u.modelState,w,f))}return v},x._moveToViewPosition=function(h,y,w,f,v){return le.d.fromViewState(y.viewState.move(w,f,v,0))},x._moveToModelPosition=function(h,y,w,f,v){return le.d.fromModelState(y.modelState.move(w,f,v,0))},x._moveToViewMinColumn=function(h,y,w){for(var f=[],v=0,C=y.length;v<C;v++){var g=y[v],u=g.viewState.position.lineNumber,s=h.viewModel.getLineMinColumn(u);f[v]=this._moveToViewPosition(h,g,w,u,s)}return f},x._moveToViewFirstNonWhitespaceColumn=function(h,y,w){for(var f=[],v=0,C=y.length;v<C;v++){var g=y[v],u=g.viewState.position.lineNumber,s=h.viewModel.getLineFirstNonWhitespaceColumn(u);f[v]=this._moveToViewPosition(h,g,w,u,s)}return f},x._moveToViewCenterColumn=function(h,y,w){for(var f=[],v=0,C=y.length;v<C;v++){var g=y[v],u=g.viewState.position.lineNumber,s=Math.round((h.viewModel.getLineMaxColumn(u)+h.viewModel.getLineMinColumn(u))/2);f[v]=this._moveToViewPosition(h,g,w,u,s)}return f},x._moveToViewMaxColumn=function(h,y,w){for(var f=[],v=0,C=y.length;v<C;v++){var g=y[v],u=g.viewState.position.lineNumber,s=h.viewModel.getLineMaxColumn(u);f[v]=this._moveToViewPosition(h,g,w,u,s)}return f},x._moveToViewLastNonWhitespaceColumn=function(h,y,w){for(var f=[],v=0,C=y.length;v<C;v++){var g=y[v],u=g.viewState.position.lineNumber,s=h.viewModel.getLineLastNonWhitespaceColumn(u);f[v]=this._moveToViewPosition(h,g,w,u,s)}return f},x}(),W;(function(x){var h=function(w){if(!T.i(w))return!1;var f=w;return T.j(f.to)?!T.k(f.select)&&!T.e(f.select)||!T.k(f.by)&&!T.j(f.by)?!1:!(!T.k(f.value)&&!T.h(f.value)):!1};x.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:h,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}}}}]},x.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"},x.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function y(w){if(!w.to)return null;var f;switch(w.to){case x.RawDirection.Left:f=0;break;case x.RawDirection.Right:f=1;break;case x.RawDirection.Up:f=2;break;case x.RawDirection.Down:f=3;break;case x.RawDirection.WrappedLineStart:f=4;break;case x.RawDirection.WrappedLineFirstNonWhitespaceCharacter:f=5;break;case x.RawDirection.WrappedLineColumnCenter:f=6;break;case x.RawDirection.WrappedLineEnd:f=7;break;case x.RawDirection.WrappedLineLastNonWhitespaceCharacter:f=8;break;case x.RawDirection.ViewPortTop:f=9;break;case x.RawDirection.ViewPortBottom:f=11;break;case x.RawDirection.ViewPortCenter:f=10;break;case x.RawDirection.ViewPortIfOutside:f=12;break;default:return null}var v=0;switch(w.by){case x.RawUnit.Line:v=1;break;case x.RawUnit.WrappedLine:v=2;break;case x.RawUnit.Character:v=3;break;case x.RawUnit.HalfLine:v=4;break}return{direction:f,unit:v,select:!!w.select,value:w.value||1}}x.parse=y})(W||(W={}))},oKJv:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return e.e(320).then(e.bind(null,"HGU1"))}})},oQaD:function(Lt,N,e){"use strict";e.r(N),e.d(N,"getSelectionSearchString",function(){return M}),e.d(N,"CommonFindController",function(){return j}),e.d(N,"FindController",function(){return X}),e.d(N,"StartFindAction",function(){return Te}),e.d(N,"StartFindWithSelectionAction",function(){return Ae}),e.d(N,"MatchFindAction",function(){return Ne}),e.d(N,"NextMatchFindAction",function(){return lt}),e.d(N,"NextMatchFindAction2",function(){return ft}),e.d(N,"PreviousMatchFindAction",function(){return At}),e.d(N,"PreviousMatchFindAction2",function(){return Ft}),e.d(N,"SelectionMatchFindAction",function(){return Ut}),e.d(N,"NextSelectionMatchFindAction",function(){return Vt}),e.d(N,"PreviousSelectionMatchFindAction",function(){return oo}),e.d(N,"StartFindReplaceAction",function(){return Zt});var T=e("3/fG"),le=e("X+cX"),$=e("pmY6"),R=e("N0LK"),B=e("sswD"),z=e("wQH0"),D=e("LCkn"),W=e("cGHE"),x=e("aokT"),h=e("gCVg"),y=e("jAJ/"),w=e("M1Kb"),f=e("tX9W"),v=e("MD5Z"),C=e("t9D7"),g=function(){function mt(He){this._editor=He,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}return mt.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},mt.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},mt.prototype.getCount=function(){return this._decorations.length},mt.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},mt.prototype.getStartPosition=function(){return this._startPosition},mt.prototype.setStartPosition=function(He){this._startPosition=He,this.setCurrentFindMatch(null)},mt.prototype._getDecorationIndex=function(He){var De=this._decorations.indexOf(He);return De>=0?De+1:1},mt.prototype.getCurrentMatchesPosition=function(He){for(var De=this._editor.getModel().getDecorationsInRange(He),ot=0,xt=De;ot<xt.length;ot++){var pe=xt[ot],O=pe.options;if(O===mt._FIND_MATCH_DECORATION||O===mt._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(pe.id)}return 1},mt.prototype.setCurrentFindMatch=function(He){var De=this,ot=null,xt=0;if(He)for(var pe=0,O=this._decorations.length;pe<O;pe++){var me=this._editor.getModel().getDecorationRange(this._decorations[pe]);if(He.equalsRange(me)){ot=this._decorations[pe],xt=pe+1;break}}return(this._highlightedDecorationId!==null||ot!==null)&&this._editor.changeDecorations(function(Be){if(De._highlightedDecorationId!==null&&(Be.changeDecorationOptions(De._highlightedDecorationId,mt._FIND_MATCH_DECORATION),De._highlightedDecorationId=null),ot!==null&&(De._highlightedDecorationId=ot,Be.changeDecorationOptions(De._highlightedDecorationId,mt._CURRENT_FIND_MATCH_DECORATION)),De._rangeHighlightDecorationId!==null&&(Be.removeDecoration(De._rangeHighlightDecorationId),De._rangeHighlightDecorationId=null),ot!==null){var Ze=De._editor.getModel().getDecorationRange(ot);if(Ze.startLineNumber!==Ze.endLineNumber&&Ze.endColumn===1){var at=Ze.endLineNumber-1,_t=De._editor.getModel().getLineMaxColumn(at);Ze=new x.a(Ze.startLineNumber,Ze.startColumn,at,_t)}De._rangeHighlightDecorationId=Be.addDecoration(Ze,mt._RANGE_HIGHLIGHT_DECORATION)}}),xt},mt.prototype.set=function(He,De){var ot=this;this._editor.changeDecorations(function(xt){var pe=mt._FIND_MATCH_DECORATION,O=[];if(He.length>1e3){pe=mt._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var me=ot._editor.getModel().getLineCount(),Be=ot._editor.getLayoutInfo().height,Ze=Be/me,at=Math.max(2,Math.ceil(3/Ze)),_t=He[0].range.startLineNumber,zt=He[0].range.endLineNumber,Xt=1,no=He.length;Xt<no;Xt++){var uo=He[Xt].range;zt+at>=uo.startLineNumber?uo.endLineNumber>zt&&(zt=uo.endLineNumber):(O.push({range:new x.a(_t,1,zt,1),options:mt._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),_t=uo.startLineNumber,zt=uo.endLineNumber)}O.push({range:new x.a(_t,1,zt,1),options:mt._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}for(var go=new Array(He.length),Xt=0,no=He.length;Xt<no;Xt++)go[Xt]={range:He[Xt].range,options:pe};ot._decorations=xt.deltaDecorations(ot._decorations,go),ot._overviewRulerApproximateDecorations=xt.deltaDecorations(ot._overviewRulerApproximateDecorations,O),ot._rangeHighlightDecorationId&&(xt.removeDecoration(ot._rangeHighlightDecorationId),ot._rangeHighlightDecorationId=null),ot._findScopeDecorationId&&(xt.removeDecoration(ot._findScopeDecorationId),ot._findScopeDecorationId=null),De&&(ot._findScopeDecorationId=xt.addDecoration(De,mt._FIND_SCOPE_DECORATION))})},mt.prototype.matchBeforePosition=function(He){if(this._decorations.length===0)return null;for(var De=this._decorations.length-1;De>=0;De--){var ot=this._decorations[De],xt=this._editor.getModel().getDecorationRange(ot);if(!xt||xt.endLineNumber>He.lineNumber)continue;if(xt.endLineNumber<He.lineNumber)return xt;if(xt.endColumn>He.column)continue;return xt}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},mt.prototype.matchAfterPosition=function(He){if(this._decorations.length===0)return null;for(var De=0,ot=this._decorations.length;De<ot;De++){var xt=this._decorations[De],pe=this._editor.getModel().getDecorationRange(xt);if(!pe||pe.startLineNumber<He.lineNumber)continue;if(pe.startLineNumber>He.lineNumber)return pe;if(pe.startColumn<He.column)continue;return pe}return this._editor.getModel().getDecorationRange(this._decorations[0])},mt.prototype._allDecorations=function(){var He=[];return He=He.concat(this._decorations),He=He.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationId&&He.push(this._findScopeDecorationId),this._rangeHighlightDecorationId&&He.push(this._rangeHighlightDecorationId),He},mt._CURRENT_FIND_MATCH_DECORATION=f.a.register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(C.f)(v.Lb),position:w.d.Center},minimap:{color:Object(C.f)(v.Hb),position:w.c.Inline}}),mt._FIND_MATCH_DECORATION=f.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(C.f)(v.Lb),position:w.d.Center},minimap:{color:Object(C.f)(v.Hb),position:w.c.Inline}}),mt._FIND_MATCH_NO_OVERVIEW_DECORATION=f.a.register({stickiness:1,className:"findMatch",showIfCollapsed:!0}),mt._FIND_MATCH_ONLY_OVERVIEW_DECORATION=f.a.register({stickiness:1,overviewRuler:{color:Object(C.f)(v.Lb),position:w.d.Center}}),mt._RANGE_HIGHLIGHT_DECORATION=f.a.register({stickiness:1,className:"rangeHighlight",isWholeLine:!0}),mt._FIND_SCOPE_DECORATION=f.a.register({className:"findScope",isWholeLine:!0}),mt}(),u=function(){function mt(He,De,ot){this._editorSelection=He,this._ranges=De,this._replaceStrings=ot,this._trackedEditorSelectionId=null}return mt.prototype.getEditOperations=function(He,De){if(this._ranges.length>0){for(var ot=[],xt=0;xt<this._ranges.length;xt++)ot.push({range:this._ranges[xt],text:this._replaceStrings[xt]});ot.sort(function(at,_t){return x.a.compareRangesUsingStarts(at.range,_t.range)});for(var pe=[],O=ot[0],xt=1;xt<ot.length;xt++)O.range.endLineNumber===ot[xt].range.startLineNumber&&O.range.endColumn===ot[xt].range.startColumn?(O.range=O.range.plusRange(ot[xt].range),O.text=O.text+ot[xt].text):(pe.push(O),O=ot[xt]);pe.push(O);for(var me=0,Be=pe;me<Be.length;me++){var Ze=Be[me];De.addEditOperation(Ze.range,Ze.text)}}this._trackedEditorSelectionId=De.trackSelection(this._editorSelection)},mt.prototype.computeCursorState=function(He,De){return De.getTrackedSelection(this._trackedEditorSelectionId)},mt}();function s(mt,He){if(mt&&mt[0]!==""){var De=l(mt,He,"-"),ot=l(mt,He,"_");return De&&!ot?c(mt,He,"-"):!De&&ot?c(mt,He,"_"):mt[0].toUpperCase()===mt[0]?He.toUpperCase():mt[0].toLowerCase()===mt[0]?He.toLowerCase():R.j(mt[0][0])?He[0].toUpperCase()+He.substr(1):He}else return He}function l(mt,He,De){var ot=mt[0].indexOf(De)!==-1&&He.indexOf(De)!==-1;return ot&&mt[0].split(De).length===He.split(De).length}function c(mt,He,De){var ot=He.split(De),xt=mt[0].split(De),pe="";return ot.forEach(function(O,me){pe+=s([xt[me]],O)+De}),pe.slice(0,-1)}var p=function(){function mt(He){this.staticValue=He,this.kind=0}return mt}(),_=function(){function mt(He){this.pieces=He,this.kind=1}return mt}(),L=function(){function mt(He){!He||He.length===0?this._state=new p(""):He.length===1&&He[0].staticValue!==null?this._state=new p(He[0].staticValue):this._state=new _(He)}return mt.fromStaticValue=function(He){return new mt([I.staticValue(He)])},Object.defineProperty(mt.prototype,"hasReplacementPatterns",{get:function(){return this._state.kind===1},enumerable:!0,configurable:!0}),mt.prototype.buildReplaceString=function(He,De){if(this._state.kind===0)return De?s(He,this._state.staticValue):this._state.staticValue;for(var ot="",xt=0,pe=this._state.pieces.length;xt<pe;xt++){var O=this._state.pieces[xt];if(O.staticValue!==null){ot+=O.staticValue;continue}ot+=mt._substitute(O.matchIndex,He)}return ot},mt._substitute=function(He,De){if(De===null)return"";if(He===0)return De[0];for(var ot="";He>0;){if(He<De.length){var xt=De[He]||"";return xt+ot}ot=String(He%10)+ot,He=Math.floor(He/10)}return"$"+ot},mt}(),I=function(){function mt(He,De){this.staticValue=He,this.matchIndex=De}return mt.staticValue=function(He){return new mt(He,-1)},mt.matchIndex=function(He){return new mt(null,He)},mt}(),P=function(){function mt(He){this._source=He,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}return mt.prototype.emitUnchanged=function(He){this._emitStatic(this._source.substring(this._lastCharIndex,He)),this._lastCharIndex=He},mt.prototype.emitStatic=function(He,De){this._emitStatic(He),this._lastCharIndex=De},mt.prototype._emitStatic=function(He){if(He.length===0)return;this._currentStaticPiece+=He},mt.prototype.emitMatchIndex=function(He,De){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=I.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=I.matchIndex(He),this._lastCharIndex=De},mt.prototype.finalize=function(){return this.emitUnchanged(this._source.length),this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=I.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new L(this._result)},mt}();function A(mt){if(!mt||mt.length===0)return new L(null);for(var He=new P(mt),De=0,ot=mt.length;De<ot;De++){var xt=mt.charCodeAt(De);if(xt===92){if(De++,De>=ot)break;var pe=mt.charCodeAt(De);switch(pe){case 92:He.emitUnchanged(De-1),He.emitStatic("\\",De+1);break;case 110:He.emitUnchanged(De-1),He.emitStatic(`
`,De+1);break;case 116:He.emitUnchanged(De-1),He.emitStatic(" ",De+1);break}continue}if(xt===36){if(De++,De>=ot)break;var pe=mt.charCodeAt(De);if(pe===36){He.emitUnchanged(De-1),He.emitStatic("$",De+1);continue}if(pe===48||pe===38){He.emitUnchanged(De-1),He.emitMatchIndex(0,De+1);continue}if(49<=pe&&pe<=57){var O=pe-48;if(De+1<ot){var me=mt.charCodeAt(De+1);if(48<=me&&me<=57){De++,O=O*10+(me-48),He.emitUnchanged(De-2),He.emitMatchIndex(O,De+1);continue}}He.emitUnchanged(De-1),He.emitMatchIndex(O,De+1);continue}}}return He.finalize()}var Q=e("T8No"),K=new Q.d("findWidgetVisible",!1),H=new Q.d("findInputFocussed",!1),V=new Q.d("replaceInputFocussed",!1),de={primary:512|33,mac:{primary:2048|512|33}},_e={primary:512|53,mac:{primary:2048|512|53}},Se={primary:512|48,mac:{primary:2048|512|48}},Ie={primary:512|42,mac:{primary:2048|512|42}},Pe={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"},Ve=19999,ke=240,se=function(){function mt(He,De){var ot=this;this._toDispose=new $.b,this._editor=He,this._state=De,this._isDisposed=!1,this._startSearchingTimer=new le.e,this._decorations=new g(He),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new le.d(function(){return ot.research(!1)},100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(function(xt){(xt.reason===3||xt.reason===5||xt.reason===6)&&ot._decorations.setStartPosition(ot._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(function(xt){if(ot._ignoreModelContentChanged)return;xt.isFlush&&ot._decorations.reset(),ot._decorations.setStartPosition(ot._editor.getPosition()),ot._updateDecorationsScheduler.schedule()})),this._toDispose.add(this._state.onFindReplaceStateChange(function(xt){return ot._onStateChanged(xt)})),this.research(!1,this._state.searchScope)}return mt.prototype.dispose=function(){this._isDisposed=!0,Object($.f)(this._startSearchingTimer),this._toDispose.dispose()},mt.prototype._onStateChanged=function(He){var De=this;if(this._isDisposed)return;if(!this._editor.hasModel())return;if(He.searchString||He.isReplaceRevealed||He.isRegex||He.wholeWord||He.matchCase||He.searchScope){var ot=this._editor.getModel();ot.isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(function(){He.searchScope?De.research(He.moveCursor,De._state.searchScope):De.research(He.moveCursor)},ke)):He.searchScope?this.research(He.moveCursor,this._state.searchScope):this.research(He.moveCursor)}},mt._getSearchRange=function(He,De){return De||He.getFullModelRange()},mt.prototype.research=function(He,De){var ot=null;typeof De!="undefined"?ot=De:ot=this._decorations.getFindScope(),ot!==null&&(ot.startLineNumber!==ot.endLineNumber&&(ot.endColumn===1?ot=new x.a(ot.startLineNumber,1,ot.endLineNumber-1,this._editor.getModel().getLineMaxColumn(ot.endLineNumber-1)):ot=new x.a(ot.startLineNumber,1,ot.endLineNumber,this._editor.getModel().getLineMaxColumn(ot.endLineNumber))));var xt=this._findMatches(ot,!1,Ve);this._decorations.set(xt,ot),this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0),He&&this._moveToNextMatch(this._decorations.getStartPosition())},mt.prototype._hasMatches=function(){return this._state.matchesCount>0},mt.prototype._cannotFind=function(){if(!this._hasMatches()){var He=this._decorations.getFindScope();return He&&this._editor.revealRangeInCenterIfOutsideViewport(He,0),!0}return!1},mt.prototype._setCurrentFindMatch=function(He){var De=this._decorations.setCurrentFindMatch(He);this._state.changeMatchInfo(De,this._decorations.getCount(),He),this._editor.setSelection(He),this._editor.revealRangeInCenterIfOutsideViewport(He,0)},mt.prototype._prevSearchPosition=function(He){var De=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),ot=He.lineNumber,xt=He.column,pe=this._editor.getModel();return De||xt===1?(ot===1?ot=pe.getLineCount():ot--,xt=pe.getLineMaxColumn(ot)):xt--,new W.a(ot,xt)},mt.prototype._moveToPrevMatch=function(He,De){if(De===void 0&&(De=!1),this._decorations.getCount()<Ve){var ot=this._decorations.matchBeforePosition(He);ot&&ot.isEmpty()&&ot.getStartPosition().equals(He)&&(He=this._prevSearchPosition(He),ot=this._decorations.matchBeforePosition(He)),ot&&this._setCurrentFindMatch(ot);return}if(this._cannotFind())return;var xt=this._decorations.getFindScope(),pe=mt._getSearchRange(this._editor.getModel(),xt);pe.getEndPosition().isBefore(He)&&(He=pe.getEndPosition()),He.isBefore(pe.getStartPosition())&&(He=pe.getEndPosition());var O=He.lineNumber,me=He.column,Be=this._editor.getModel(),Ze=new W.a(O,me),at=Be.findPreviousMatch(this._state.searchString,Ze,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1);if(at&&at.range.isEmpty()&&at.range.getStartPosition().equals(Ze)&&(Ze=this._prevSearchPosition(Ze),at=Be.findPreviousMatch(this._state.searchString,Ze,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,!1)),!at)return;if(!De&&!pe.containsRange(at.range))return this._moveToPrevMatch(at.range.getStartPosition(),!0);this._setCurrentFindMatch(at.range)},mt.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},mt.prototype._nextSearchPosition=function(He){var De=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),ot=He.lineNumber,xt=He.column,pe=this._editor.getModel();return De||xt===pe.getLineMaxColumn(ot)?(ot===pe.getLineCount()?ot=1:ot++,xt=1):xt++,new W.a(ot,xt)},mt.prototype._moveToNextMatch=function(He){if(this._decorations.getCount()<Ve){var De=this._decorations.matchAfterPosition(He);De&&De.isEmpty()&&De.getStartPosition().equals(He)&&(He=this._nextSearchPosition(He),De=this._decorations.matchAfterPosition(He)),De&&this._setCurrentFindMatch(De);return}var ot=this._getNextMatch(He,!1,!0);ot&&this._setCurrentFindMatch(ot.range)},mt.prototype._getNextMatch=function(He,De,ot,xt){if(xt===void 0&&(xt=!1),this._cannotFind())return null;var pe=this._decorations.getFindScope(),O=mt._getSearchRange(this._editor.getModel(),pe);O.getEndPosition().isBefore(He)&&(He=O.getStartPosition()),He.isBefore(O.getStartPosition())&&(He=O.getStartPosition());var me=He.lineNumber,Be=He.column,Ze=this._editor.getModel(),at=new W.a(me,Be),_t=Ze.findNextMatch(this._state.searchString,at,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,De);return ot&&_t&&_t.range.isEmpty()&&_t.range.getStartPosition().equals(at)&&(at=this._nextSearchPosition(at),_t=Ze.findNextMatch(this._state.searchString,at,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,De)),_t?!xt&&!O.containsRange(_t.range)?this._getNextMatch(_t.range.getEndPosition(),De,ot,!0):_t:null},mt.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},mt.prototype._getReplacePattern=function(){return this._state.isRegex?A(this._state.replaceString):L.fromStaticValue(this._state.replaceString)},mt.prototype.replace=function(){if(!this._hasMatches())return;var He=this._getReplacePattern(),De=this._editor.getSelection(),ot=this._getNextMatch(De.getStartPosition(),!0,!1);if(ot)if(De.equalsRange(ot.range)){var xt=He.buildReplaceString(ot.matches,this._state.preserveCase),pe=new D.a(De,xt);this._executeEditorCommand("replace",pe),this._decorations.setStartPosition(new W.a(De.startLineNumber,De.startColumn+xt.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(ot.range)},mt.prototype._findMatches=function(He,De,ot){var xt=mt._getSearchRange(this._editor.getModel(),He);return this._editor.getModel().findMatches(this._state.searchString,xt,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null,De,ot)},mt.prototype.replaceAll=function(){if(!this._hasMatches())return;var He=this._decorations.getFindScope();He===null&&this._state.matchesCount>=Ve?this._largeReplaceAll():this._regularReplaceAll(He),this.research(!1)},mt.prototype._largeReplaceAll=function(){var He=new y.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null),De=He.parseSearchRequest();if(!De)return;var ot=De.regex;if(!ot.multiline){var xt="mu";ot.ignoreCase&&(xt+="i"),ot.global&&(xt+="g"),ot=new RegExp(ot.source,xt)}var pe=this._editor.getModel(),O=pe.getValue(1),me=pe.getFullModelRange(),Be=this._getReplacePattern(),Ze,at=this._state.preserveCase;Be.hasReplacementPatterns||at?Ze=O.replace(ot,function(){return Be.buildReplaceString(arguments,at)}):Ze=O.replace(ot,Be.buildReplaceString(null,at));var _t=new D.b(me,Ze,this._editor.getSelection());this._executeEditorCommand("replaceAll",_t)},mt.prototype._regularReplaceAll=function(He){for(var De=this._getReplacePattern(),ot=this._findMatches(He,De.hasReplacementPatterns||this._state.preserveCase,1073741824),xt=[],pe=0,O=ot.length;pe<O;pe++)xt[pe]=De.buildReplaceString(ot[pe].matches,this._state.preserveCase);var me=new u(this._editor.getSelection(),ot.map(function(Be){return Be.range}),xt);this._executeEditorCommand("replaceAll",me)},mt.prototype.selectAllMatches=function(){if(!this._hasMatches())return;for(var He=this._decorations.getFindScope(),De=this._findMatches(He,!1,1073741824),ot=De.map(function(Be){return new h.a(Be.range.startLineNumber,Be.range.startColumn,Be.range.endLineNumber,Be.range.endColumn)}),xt=this._editor.getSelection(),pe=0,O=ot.length;pe<O;pe++){var me=ot[pe];if(me.equalsRange(xt)){ot=[xt].concat(ot.slice(0,pe)).concat(ot.slice(pe+1));break}}this._editor.setSelections(ot)},mt.prototype._executeEditorCommand=function(He,De){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(He,De),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}},mt}(),ee=e("EffR"),ie=e("iJk1"),q=e("G300"),ce=e("zrhQ"),Z=e("MI8n"),ye=e("qj0h"),je=function(){var mt=function(He,De){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var pe in xt)xt.hasOwnProperty(pe)&&(ot[pe]=xt[pe])},mt(He,De)};return function(He,De){mt(He,De);function ot(){this.constructor=He}He.prototype=De===null?Object.create(De):(ot.prototype=De.prototype,new ot)}}(),Ge={inputActiveOptionBorder:ce.a.fromHex("#007ACC00"),inputActiveOptionBackground:ce.a.fromHex("#0E639C50")},ue=function(mt){je(He,mt);function He(De){var ot=mt.call(this)||this;return ot._onChange=ot._register(new Z.a),ot.onChange=ot._onChange.event,ot._onKeyDown=ot._register(new Z.a),ot.onKeyDown=ot._onKeyDown.event,ot._opts=ye.c(De),ye.g(ot._opts,Ge,!1),ot._checked=ot._opts.isChecked,ot.domNode=document.createElement("div"),ot.domNode.title=ot._opts.title,ot.domNode.className="monaco-custom-checkbox codicon "+(ot._opts.actionClassName||"")+" "+(ot._checked?"checked":"unchecked"),ot.domNode.tabIndex=0,ot.domNode.setAttribute("role","checkbox"),ot.domNode.setAttribute("aria-checked",String(ot._checked)),ot.domNode.setAttribute("aria-label",ot._opts.title),ot.applyStyles(),ot.onclick(ot.domNode,function(xt){ot.checked=!ot._checked,ot._onChange.fire(!1),xt.preventDefault()}),ot.ignoreGesture(ot.domNode),ot.onkeydown(ot.domNode,function(xt){if(xt.keyCode===10||xt.keyCode===3){ot.checked=!ot._checked,ot._onChange.fire(!0),xt.preventDefault();return}ot._onKeyDown.fire(xt)}),ot}return Object.defineProperty(He.prototype,"enabled",{get:function(){return this.domNode.getAttribute("aria-disabled")!=="true"},enumerable:!0,configurable:!0}),He.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(He.prototype,"checked",{get:function(){return this._checked},set:function(De){this._checked=De,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}),He.prototype.width=function(){return 2+2+2+16},He.prototype.style=function(De){De.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=De.inputActiveOptionBorder),De.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=De.inputActiveOptionBackground),this.applyStyles()},He.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")},He.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},He.prototype.disable=function(){ee.S(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},He}(q.a),ve=function(){var mt=function(He,De){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var pe in xt)xt.hasOwnProperty(pe)&&(ot[pe]=xt[pe])},mt(He,De)};return function(He,De){mt(He,De);function ot(){this.constructor=He}He.prototype=De===null?Object.create(De):(ot.prototype=De.prototype,new ot)}}(),Ee=T.a("caseDescription","Match Case"),xe=T.a("wordsDescription","Match Whole Word"),Ce=T.a("regexDescription","Use Regular Expression"),he=function(mt){ve(He,mt);function He(De){return mt.call(this,{actionClassName:"codicon-case-sensitive",title:Ee+De.appendTitle,isChecked:De.isChecked,inputActiveOptionBorder:De.inputActiveOptionBorder,inputActiveOptionBackground:De.inputActiveOptionBackground})||this}return He}(ue),J=function(mt){ve(He,mt);function He(De){return mt.call(this,{actionClassName:"codicon-whole-word",title:xe+De.appendTitle,isChecked:De.isChecked,inputActiveOptionBorder:De.inputActiveOptionBorder,inputActiveOptionBackground:De.inputActiveOptionBackground})||this}return He}(ue),b=function(mt){ve(He,mt);function He(De){return mt.call(this,{actionClassName:"codicon-regex",title:Ce+De.appendTitle,isChecked:De.isChecked,inputActiveOptionBorder:De.inputActiveOptionBorder,inputActiveOptionBackground:De.inputActiveOptionBackground})||this}return He}(ue),F=function(){var mt=function(He,De){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var pe in xt)xt.hasOwnProperty(pe)&&(ot[pe]=xt[pe])},mt(He,De)};return function(He,De){mt(He,De);function ot(){this.constructor=He}He.prototype=De===null?Object.create(De):(ot.prototype=De.prototype,new ot)}}(),re=function(mt){F(He,mt);function He(De,ot,xt,pe){var O=mt.call(this)||this;O._hideSoon=O._register(new le.d(function(){return O._hide()},2e3)),O._isVisible=!1,O._editor=De,O._state=ot,O._keybindingService=xt,O._domNode=document.createElement("div"),O._domNode.className="findOptionsWidget",O._domNode.style.display="none",O._domNode.style.top="10px",O._domNode.setAttribute("role","presentation"),O._domNode.setAttribute("aria-hidden","true");var me=pe.getTheme().getColor(v.Y),Be=pe.getTheme().getColor(v.X);return O.caseSensitive=O._register(new he({appendTitle:O._keybindingLabelFor(Pe.ToggleCaseSensitiveCommand),isChecked:O._state.matchCase,inputActiveOptionBorder:me,inputActiveOptionBackground:Be})),O._domNode.appendChild(O.caseSensitive.domNode),O._register(O.caseSensitive.onChange(function(){O._state.change({matchCase:O.caseSensitive.checked},!1)})),O.wholeWords=O._register(new J({appendTitle:O._keybindingLabelFor(Pe.ToggleWholeWordCommand),isChecked:O._state.wholeWord,inputActiveOptionBorder:me,inputActiveOptionBackground:Be})),O._domNode.appendChild(O.wholeWords.domNode),O._register(O.wholeWords.onChange(function(){O._state.change({wholeWord:O.wholeWords.checked},!1)})),O.regex=O._register(new b({appendTitle:O._keybindingLabelFor(Pe.ToggleRegexCommand),isChecked:O._state.isRegex,inputActiveOptionBorder:me,inputActiveOptionBackground:Be})),O._domNode.appendChild(O.regex.domNode),O._register(O.regex.onChange(function(){O._state.change({isRegex:O.regex.checked},!1)})),O._editor.addOverlayWidget(O),O._register(O._state.onFindReplaceStateChange(function(Ze){var at=!1;Ze.isRegex&&(O.regex.checked=O._state.isRegex,at=!0),Ze.wholeWord&&(O.wholeWords.checked=O._state.wholeWord,at=!0),Ze.matchCase&&(O.caseSensitive.checked=O._state.matchCase,at=!0),!O._state.isRevealed&&at&&O._revealTemporarily()})),O._register(ee.k(O._domNode,function(Ze){return O._onMouseOut()})),O._register(ee.j(O._domNode,"mouseover",function(Ze){return O._onMouseOver()})),O._applyTheme(pe.getTheme()),O._register(pe.onThemeChange(O._applyTheme.bind(O))),O}return He.prototype._keybindingLabelFor=function(De){var ot=this._keybindingService.lookupKeybinding(De);return ot?" ("+ot.getLabel()+")":""},He.prototype.dispose=function(){this._editor.removeOverlayWidget(this),mt.prototype.dispose.call(this)},He.prototype.getId=function(){return He.ID},He.prototype.getDomNode=function(){return this._domNode},He.prototype.getPosition=function(){return{preference:0}},He.prototype.highlightFindOptions=function(){this._revealTemporarily()},He.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},He.prototype._onMouseOut=function(){this._hideSoon.schedule()},He.prototype._onMouseOver=function(){this._hideSoon.cancel()},He.prototype._show=function(){if(this._isVisible)return;this._isVisible=!0,this._domNode.style.display="block"},He.prototype._hide=function(){if(!this._isVisible)return;this._isVisible=!1,this._domNode.style.display="none"},He.prototype._applyTheme=function(De){var ot={inputActiveOptionBorder:De.getColor(v.Y),inputActiveOptionBackground:De.getColor(v.X)};this.caseSensitive.style(ot),this.wholeWords.style(ot),this.regex.style(ot)},He.ID="editor.contrib.findOptionsWidget",He}(q.a);Object(C.e)(function(mt,He){var De=mt.getColor(v.Q);De&&He.addRule(".monaco-editor .findOptionsWidget { background-color: "+De+"; }");var ot=mt.getColor(v.S);ot&&He.addRule(".monaco-editor .findOptionsWidget { color: "+ot+"; }");var xt=mt.getColor(v.hc);xt&&He.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+xt+"; }");var pe=mt.getColor(v.e);pe&&He.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+pe+"; }")});var ne=function(){var mt=function(He,De){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var pe in xt)xt.hasOwnProperty(pe)&&(ot[pe]=xt[pe])},mt(He,De)};return function(He,De){mt(He,De);function ot(){this.constructor=He}He.prototype=De===null?Object.create(De):(ot.prototype=De.prototype,new ot)}}();function fe(mt,He){return mt===1?!0:mt===2?!1:He}var Oe=function(mt){ne(He,mt);function He(){var De=mt.call(this)||this;return De._onFindReplaceStateChange=De._register(new Z.a),De.onFindReplaceStateChange=De._onFindReplaceStateChange.event,De._searchString="",De._replaceString="",De._isRevealed=!1,De._isReplaceRevealed=!1,De._isRegex=!1,De._isRegexOverride=0,De._wholeWord=!1,De._wholeWordOverride=0,De._matchCase=!1,De._matchCaseOverride=0,De._preserveCase=!1,De._preserveCaseOverride=0,De._searchScope=null,De._matchesPosition=0,De._matchesCount=0,De._currentMatch=null,De}return Object.defineProperty(He.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"isRegex",{get:function(){return fe(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"wholeWord",{get:function(){return fe(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"matchCase",{get:function(){return fe(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"preserveCase",{get:function(){return fe(this._preserveCaseOverride,this._preserveCase)},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"actualPreserveCase",{get:function(){return this._preserveCase},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0}),Object.defineProperty(He.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0}),He.prototype.changeMatchInfo=function(De,ot,xt){var pe={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},O=!1;ot===0&&(De=0),De>ot&&(De=ot),this._matchesPosition!==De&&(this._matchesPosition=De,pe.matchesPosition=!0,O=!0),this._matchesCount!==ot&&(this._matchesCount=ot,pe.matchesCount=!0,O=!0),typeof xt!="undefined"&&(x.a.equalsRange(this._currentMatch,xt)||(this._currentMatch=xt,pe.currentMatch=!0,O=!0)),O&&this._onFindReplaceStateChange.fire(pe)},He.prototype.change=function(De,ot,xt){xt===void 0&&(xt=!0);var pe={moveCursor:ot,updateHistory:xt,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},O=!1,me=this.isRegex,Be=this.wholeWord,Ze=this.matchCase,at=this.preserveCase;typeof De.searchString!="undefined"&&(this._searchString!==De.searchString&&(this._searchString=De.searchString,pe.searchString=!0,O=!0)),typeof De.replaceString!="undefined"&&(this._replaceString!==De.replaceString&&(this._replaceString=De.replaceString,pe.replaceString=!0,O=!0)),typeof De.isRevealed!="undefined"&&(this._isRevealed!==De.isRevealed&&(this._isRevealed=De.isRevealed,pe.isRevealed=!0,O=!0)),typeof De.isReplaceRevealed!="undefined"&&(this._isReplaceRevealed!==De.isReplaceRevealed&&(this._isReplaceRevealed=De.isReplaceRevealed,pe.isReplaceRevealed=!0,O=!0)),typeof De.isRegex!="undefined"&&(this._isRegex=De.isRegex),typeof De.wholeWord!="undefined"&&(this._wholeWord=De.wholeWord),typeof De.matchCase!="undefined"&&(this._matchCase=De.matchCase),typeof De.preserveCase!="undefined"&&(this._preserveCase=De.preserveCase),typeof De.searchScope!="undefined"&&(x.a.equalsRange(this._searchScope,De.searchScope)||(this._searchScope=De.searchScope,pe.searchScope=!0,O=!0)),this._isRegexOverride=typeof De.isRegexOverride!="undefined"?De.isRegexOverride:0,this._wholeWordOverride=typeof De.wholeWordOverride!="undefined"?De.wholeWordOverride:0,this._matchCaseOverride=typeof De.matchCaseOverride!="undefined"?De.matchCaseOverride:0,this._preserveCaseOverride=typeof De.preserveCaseOverride!="undefined"?De.preserveCaseOverride:0,me!==this.isRegex&&(O=!0,pe.isRegex=!0),Be!==this.wholeWord&&(O=!0,pe.wholeWord=!0),Ze!==this.matchCase&&(O=!0,pe.matchCase=!0),at!==this.preserveCase&&(O=!0,pe.preserveCase=!0),O&&this._onFindReplaceStateChange.fire(pe)},He}($.a),Me=e("AbCa"),Ue=e("OBOq"),Je=e("cMOf"),nt=e("/cxE"),vt=e("MNsG"),Rt=e("yqFB"),Dt=e("0+8E"),Kt=function(){var mt=function(He,De){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var pe in xt)xt.hasOwnProperty(pe)&&(ot[pe]=xt[pe])},mt(He,De)};return function(He,De){mt(He,De);function ot(){this.constructor=He}He.prototype=De===null?Object.create(De):(ot.prototype=De.prototype,new ot)}}(),ao=T.a("defaultLabel","input"),lo=function(mt){Kt(He,mt);function He(De,ot,xt,pe){var O=mt.call(this)||this;O._showOptionButtons=xt,O.fixFocusOnOptionClickEnabled=!0,O._onDidOptionChange=O._register(new Z.a),O.onDidOptionChange=O._onDidOptionChange.event,O._onKeyDown=O._register(new Z.a),O.onKeyDown=O._onKeyDown.event,O._onMouseDown=O._register(new Z.a),O.onMouseDown=O._onMouseDown.event,O._onInput=O._register(new Z.a),O._onKeyUp=O._register(new Z.a),O._onCaseSensitiveKeyDown=O._register(new Z.a),O.onCaseSensitiveKeyDown=O._onCaseSensitiveKeyDown.event,O._onRegexKeyDown=O._register(new Z.a),O.onRegexKeyDown=O._onRegexKeyDown.event,O._lastHighlightFindOptions=0,O.contextViewProvider=ot,O.placeholder=pe.placeholder||"",O.validation=pe.validation,O.label=pe.label||ao,O.inputActiveOptionBorder=pe.inputActiveOptionBorder,O.inputActiveOptionBackground=pe.inputActiveOptionBackground,O.inputBackground=pe.inputBackground,O.inputForeground=pe.inputForeground,O.inputBorder=pe.inputBorder,O.inputValidationInfoBorder=pe.inputValidationInfoBorder,O.inputValidationInfoBackground=pe.inputValidationInfoBackground,O.inputValidationInfoForeground=pe.inputValidationInfoForeground,O.inputValidationWarningBorder=pe.inputValidationWarningBorder,O.inputValidationWarningBackground=pe.inputValidationWarningBackground,O.inputValidationWarningForeground=pe.inputValidationWarningForeground,O.inputValidationErrorBorder=pe.inputValidationErrorBorder,O.inputValidationErrorBackground=pe.inputValidationErrorBackground,O.inputValidationErrorForeground=pe.inputValidationErrorForeground;var me=pe.appendCaseSensitiveLabel||"",Be=pe.appendWholeWordsLabel||"",Ze=pe.appendRegexLabel||"",at=pe.history||[],_t=!!pe.flexibleHeight,zt=!!pe.flexibleWidth,Xt=pe.flexibleMaxHeight;O.domNode=document.createElement("div"),ee.f(O.domNode,"monaco-findInput"),O.inputBox=O._register(new Dt.a(O.domNode,O.contextViewProvider,{placeholder:O.placeholder||"",ariaLabel:O.label||"",validationOptions:{validation:O.validation},inputBackground:O.inputBackground,inputForeground:O.inputForeground,inputBorder:O.inputBorder,inputValidationInfoBackground:O.inputValidationInfoBackground,inputValidationInfoForeground:O.inputValidationInfoForeground,inputValidationInfoBorder:O.inputValidationInfoBorder,inputValidationWarningBackground:O.inputValidationWarningBackground,inputValidationWarningForeground:O.inputValidationWarningForeground,inputValidationWarningBorder:O.inputValidationWarningBorder,inputValidationErrorBackground:O.inputValidationErrorBackground,inputValidationErrorForeground:O.inputValidationErrorForeground,inputValidationErrorBorder:O.inputValidationErrorBorder,history:at,flexibleHeight:_t,flexibleWidth:zt,flexibleMaxHeight:Xt})),O.regex=O._register(new b({appendTitle:Ze,isChecked:!1,inputActiveOptionBorder:O.inputActiveOptionBorder,inputActiveOptionBackground:O.inputActiveOptionBackground})),O._register(O.regex.onChange(function(go){O._onDidOptionChange.fire(go),!go&&O.fixFocusOnOptionClickEnabled&&O.inputBox.focus(),O.validate()})),O._register(O.regex.onKeyDown(function(go){O._onRegexKeyDown.fire(go)})),O.wholeWords=O._register(new J({appendTitle:Be,isChecked:!1,inputActiveOptionBorder:O.inputActiveOptionBorder,inputActiveOptionBackground:O.inputActiveOptionBackground})),O._register(O.wholeWords.onChange(function(go){O._onDidOptionChange.fire(go),!go&&O.fixFocusOnOptionClickEnabled&&O.inputBox.focus(),O.validate()})),O.caseSensitive=O._register(new he({appendTitle:me,isChecked:!1,inputActiveOptionBorder:O.inputActiveOptionBorder,inputActiveOptionBackground:O.inputActiveOptionBackground})),O._register(O.caseSensitive.onChange(function(go){O._onDidOptionChange.fire(go),!go&&O.fixFocusOnOptionClickEnabled&&O.inputBox.focus(),O.validate()})),O._register(O.caseSensitive.onKeyDown(function(go){O._onCaseSensitiveKeyDown.fire(go)})),O._showOptionButtons&&(O.inputBox.paddingRight=O.caseSensitive.width()+O.wholeWords.width()+O.regex.width());var no=[O.caseSensitive.domNode,O.wholeWords.domNode,O.regex.domNode];O.onkeydown(O.domNode,function(go){if(go.equals(15)||go.equals(17)||go.equals(9)){var Ao=no.indexOf(document.activeElement);if(Ao>=0){var To=-1;go.equals(17)?To=(Ao+1)%no.length:go.equals(15)&&(Ao===0?To=no.length-1:To=Ao-1),go.equals(9)?no[Ao].blur():To>=0&&no[To].focus(),ee.c.stop(go,!0)}}});var uo=document.createElement("div");return uo.className="controls",uo.style.display=O._showOptionButtons?"block":"none",uo.appendChild(O.caseSensitive.domNode),uo.appendChild(O.wholeWords.domNode),uo.appendChild(O.regex.domNode),O.domNode.appendChild(uo),De&&De.appendChild(O.domNode),O.onkeydown(O.inputBox.inputElement,function(go){return O._onKeyDown.fire(go)}),O.onkeyup(O.inputBox.inputElement,function(go){return O._onKeyUp.fire(go)}),O.oninput(O.inputBox.inputElement,function(go){return O._onInput.fire()}),O.onmousedown(O.inputBox.inputElement,function(go){return O._onMouseDown.fire(go)}),O}return He.prototype.enable=function(){ee.P(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},He.prototype.disable=function(){ee.f(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},He.prototype.setFocusInputOnOptionClick=function(De){this.fixFocusOnOptionClickEnabled=De},He.prototype.setEnabled=function(De){De?this.enable():this.disable()},He.prototype.getValue=function(){return this.inputBox.value},He.prototype.setValue=function(De){this.inputBox.value!==De&&(this.inputBox.value=De)},He.prototype.style=function(De){this.inputActiveOptionBorder=De.inputActiveOptionBorder,this.inputActiveOptionBackground=De.inputActiveOptionBackground,this.inputBackground=De.inputBackground,this.inputForeground=De.inputForeground,this.inputBorder=De.inputBorder,this.inputValidationInfoBackground=De.inputValidationInfoBackground,this.inputValidationInfoForeground=De.inputValidationInfoForeground,this.inputValidationInfoBorder=De.inputValidationInfoBorder,this.inputValidationWarningBackground=De.inputValidationWarningBackground,this.inputValidationWarningForeground=De.inputValidationWarningForeground,this.inputValidationWarningBorder=De.inputValidationWarningBorder,this.inputValidationErrorBackground=De.inputValidationErrorBackground,this.inputValidationErrorForeground=De.inputValidationErrorForeground,this.inputValidationErrorBorder=De.inputValidationErrorBorder,this.applyStyles()},He.prototype.applyStyles=function(){if(this.domNode){var De={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(De),this.wholeWords.style(De),this.caseSensitive.style(De);var ot={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(ot)}},He.prototype.select=function(){this.inputBox.select()},He.prototype.focus=function(){this.inputBox.focus()},He.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},He.prototype.setCaseSensitive=function(De){this.caseSensitive.checked=De},He.prototype.getWholeWords=function(){return this.wholeWords.checked},He.prototype.setWholeWords=function(De){this.wholeWords.checked=De},He.prototype.getRegex=function(){return this.regex.checked},He.prototype.setRegex=function(De){this.regex.checked=De,this.validate()},He.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},He.prototype.highlightFindOptions=function(){ee.P(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,ee.f(this.domNode,"highlight-"+this._lastHighlightFindOptions)},He.prototype.validate=function(){this.inputBox.validate()},He.prototype.clearMessage=function(){this.inputBox.hideMessage()},He}(q.a),so=e("nrhi"),jt=function(){var mt=function(He,De){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var pe in xt)xt.hasOwnProperty(pe)&&(ot[pe]=xt[pe])},mt(He,De)};return function(He,De){mt(He,De);function ot(){this.constructor=He}He.prototype=De===null?Object.create(De):(ot.prototype=De.prototype,new ot)}}(),pt=T.a("defaultLabel","input"),gt=T.a("label.preserveCaseCheckbox","Preserve Case"),Tt=function(mt){jt(He,mt);function He(De){return mt.call(this,{actionClassName:"codicon-preserve-case",title:gt+De.appendTitle,isChecked:De.isChecked,inputActiveOptionBorder:De.inputActiveOptionBorder,inputActiveOptionBackground:De.inputActiveOptionBackground})||this}return He}(ue),it=function(mt){jt(He,mt);function He(De,ot,xt,pe){var O=mt.call(this)||this;O._showOptionButtons=xt,O.fixFocusOnOptionClickEnabled=!0,O.cachedOptionsWidth=0,O._onDidOptionChange=O._register(new Z.a),O.onDidOptionChange=O._onDidOptionChange.event,O._onKeyDown=O._register(new Z.a),O.onKeyDown=O._onKeyDown.event,O._onMouseDown=O._register(new Z.a),O._onInput=O._register(new Z.a),O._onKeyUp=O._register(new Z.a),O._onPreserveCaseKeyDown=O._register(new Z.a),O.onPreserveCaseKeyDown=O._onPreserveCaseKeyDown.event,O.contextViewProvider=ot,O.placeholder=pe.placeholder||"",O.validation=pe.validation,O.label=pe.label||pt,O.inputActiveOptionBorder=pe.inputActiveOptionBorder,O.inputActiveOptionBackground=pe.inputActiveOptionBackground,O.inputBackground=pe.inputBackground,O.inputForeground=pe.inputForeground,O.inputBorder=pe.inputBorder,O.inputValidationInfoBorder=pe.inputValidationInfoBorder,O.inputValidationInfoBackground=pe.inputValidationInfoBackground,O.inputValidationInfoForeground=pe.inputValidationInfoForeground,O.inputValidationWarningBorder=pe.inputValidationWarningBorder,O.inputValidationWarningBackground=pe.inputValidationWarningBackground,O.inputValidationWarningForeground=pe.inputValidationWarningForeground,O.inputValidationErrorBorder=pe.inputValidationErrorBorder,O.inputValidationErrorBackground=pe.inputValidationErrorBackground,O.inputValidationErrorForeground=pe.inputValidationErrorForeground;var me=pe.history||[],Be=!!pe.flexibleHeight,Ze=!!pe.flexibleWidth,at=pe.flexibleMaxHeight;O.domNode=document.createElement("div"),ee.f(O.domNode,"monaco-findInput"),O.inputBox=O._register(new Dt.a(O.domNode,O.contextViewProvider,{ariaLabel:O.label||"",placeholder:O.placeholder||"",validationOptions:{validation:O.validation},inputBackground:O.inputBackground,inputForeground:O.inputForeground,inputBorder:O.inputBorder,inputValidationInfoBackground:O.inputValidationInfoBackground,inputValidationInfoForeground:O.inputValidationInfoForeground,inputValidationInfoBorder:O.inputValidationInfoBorder,inputValidationWarningBackground:O.inputValidationWarningBackground,inputValidationWarningForeground:O.inputValidationWarningForeground,inputValidationWarningBorder:O.inputValidationWarningBorder,inputValidationErrorBackground:O.inputValidationErrorBackground,inputValidationErrorForeground:O.inputValidationErrorForeground,inputValidationErrorBorder:O.inputValidationErrorBorder,history:me,flexibleHeight:Be,flexibleWidth:Ze,flexibleMaxHeight:at})),O.preserveCase=O._register(new Tt({appendTitle:"",isChecked:!1,inputActiveOptionBorder:O.inputActiveOptionBorder,inputActiveOptionBackground:O.inputActiveOptionBackground})),O._register(O.preserveCase.onChange(function(Xt){O._onDidOptionChange.fire(Xt),!Xt&&O.fixFocusOnOptionClickEnabled&&O.inputBox.focus(),O.validate()})),O._register(O.preserveCase.onKeyDown(function(Xt){O._onPreserveCaseKeyDown.fire(Xt)})),O._showOptionButtons?O.cachedOptionsWidth=O.preserveCase.width():O.cachedOptionsWidth=0;var _t=[O.preserveCase.domNode];O.onkeydown(O.domNode,function(Xt){if(Xt.equals(15)||Xt.equals(17)||Xt.equals(9)){var no=_t.indexOf(document.activeElement);if(no>=0){var uo=-1;Xt.equals(17)?uo=(no+1)%_t.length:Xt.equals(15)&&(no===0?uo=_t.length-1:uo=no-1),Xt.equals(9)?_t[no].blur():uo>=0&&_t[uo].focus(),ee.c.stop(Xt,!0)}}});var zt=document.createElement("div");return zt.className="controls",zt.style.display=O._showOptionButtons?"block":"none",zt.appendChild(O.preserveCase.domNode),O.domNode.appendChild(zt),De&&De.appendChild(O.domNode),O.onkeydown(O.inputBox.inputElement,function(Xt){return O._onKeyDown.fire(Xt)}),O.onkeyup(O.inputBox.inputElement,function(Xt){return O._onKeyUp.fire(Xt)}),O.oninput(O.inputBox.inputElement,function(Xt){return O._onInput.fire()}),O.onmousedown(O.inputBox.inputElement,function(Xt){return O._onMouseDown.fire(Xt)}),O}return He.prototype.enable=function(){ee.P(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},He.prototype.disable=function(){ee.f(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},He.prototype.setEnabled=function(De){De?this.enable():this.disable()},He.prototype.style=function(De){this.inputActiveOptionBorder=De.inputActiveOptionBorder,this.inputActiveOptionBackground=De.inputActiveOptionBackground,this.inputBackground=De.inputBackground,this.inputForeground=De.inputForeground,this.inputBorder=De.inputBorder,this.inputValidationInfoBackground=De.inputValidationInfoBackground,this.inputValidationInfoForeground=De.inputValidationInfoForeground,this.inputValidationInfoBorder=De.inputValidationInfoBorder,this.inputValidationWarningBackground=De.inputValidationWarningBackground,this.inputValidationWarningForeground=De.inputValidationWarningForeground,this.inputValidationWarningBorder=De.inputValidationWarningBorder,this.inputValidationErrorBackground=De.inputValidationErrorBackground,this.inputValidationErrorForeground=De.inputValidationErrorForeground,this.inputValidationErrorBorder=De.inputValidationErrorBorder,this.applyStyles()},He.prototype.applyStyles=function(){if(this.domNode){var De={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(De);var ot={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(ot)}},He.prototype.select=function(){this.inputBox.select()},He.prototype.focus=function(){this.inputBox.focus()},He.prototype.getPreserveCase=function(){return this.preserveCase.checked},He.prototype.setPreserveCase=function(De){this.preserveCase.checked=De},He.prototype.focusOnPreserve=function(){this.preserveCase.focus()},He.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(He.prototype,"width",{set:function(De){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=De,this.domNode.style.width=De+"px"},enumerable:!0,configurable:!0}),He.prototype.dispose=function(){mt.prototype.dispose.call(this)},He}(q.a),et=function(){var mt=function(He,De){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var pe in xt)xt.hasOwnProperty(pe)&&(ot[pe]=xt[pe])},mt(He,De)};return function(He,De){mt(He,De);function ot(){this.constructor=He}He.prototype=De===null?Object.create(De):(ot.prototype=De.prototype,new ot)}}(),ut=function(mt,He,De,ot){var xt=arguments.length,pe=xt<3?He:ot===null?ot=Object.getOwnPropertyDescriptor(He,De):ot,O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(mt,He,De,ot);else for(var me=mt.length-1;me>=0;me--)(O=mt[me])&&(pe=(xt<3?O(pe):xt>3?O(He,De,pe):O(He,De))||pe);return xt>3&&pe&&Object.defineProperty(He,De,pe),pe},Ct=function(mt,He){return function(De,ot){He(De,ot,mt)}},ht="historyNavigationWidget",Et="historyNavigationEnabled";function Yt(mt,He,De){new Q.d(De,He).bindTo(mt)}function Nt(mt,He){return mt.createScoped(He.target)}function bt(mt,He){return mt.getContext(document.activeElement).getValue(He)}function $e(mt,He){var De=Nt(mt,He);Yt(De,He,ht);var ot=new Q.d(Et,!0).bindTo(De);return{scopedContextKeyService:De,historyNavigationEnablement:ot}}var Ye=function(mt){et(He,mt);function He(De,ot,xt,pe,O){O===void 0&&(O=!1);var me=mt.call(this,De,ot,O,xt)||this;return me._register($e(pe,{target:me.inputBox.element,historyNavigator:me.inputBox}).scopedContextKeyService),me}return He=ut([Ct(3,Q.c)],He),He}(lo),ze=function(mt){et(He,mt);function He(De,ot,xt,pe,O){O===void 0&&(O=!1);var me=mt.call(this,De,ot,O,xt)||this;return me._register($e(pe,{target:me.inputBox.element,historyNavigator:me.inputBox}).scopedContextKeyService),me}return He=ut([Ct(3,Q.c)],He),He}(it);so.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:Q.a.and(Q.a.has(ht),Q.a.equals(Et,!0)),primary:16,secondary:[512|16],handler:function(mt,He){var De=bt(mt.get(Q.c),ht);if(De){var ot=De.historyNavigator;ot.showPreviousValue()}}}),so.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:Q.a.and(Q.a.has(ht),Q.a.equals(Et,!0)),primary:18,secondary:[512|18],handler:function(mt,He){var De=bt(mt.get(Q.c),ht);if(De){var ot=De.historyNavigator;ot.showNextValue()}}});var Ke=function(){var mt=function(He,De){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var pe in xt)xt.hasOwnProperty(pe)&&(ot[pe]=xt[pe])},mt(He,De)};return function(He,De){mt(He,De);function ot(){this.constructor=He}He.prototype=De===null?Object.create(De):(ot.prototype=De.prototype,new ot)}}(),ge=T.a("label.find","Find"),G=T.a("placeholder.find","Find"),oe=T.a("label.previousMatchButton","Previous match"),Y=T.a("label.nextMatchButton","Next match"),ae=T.a("label.toggleSelectionFind","Find in selection"),Fe=T.a("label.closeButton","Close"),dt=T.a("label.replace","Replace"),Ot=T.a("placeholder.replace","Replace"),Qt=T.a("label.replaceButton","Replace"),to=T.a("label.replaceAllButton","Replace All"),fo=T.a("label.toggleReplaceButton","Toggle Replace mode"),ho=T.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",Ve),_o=T.a("label.matchesLocation","{0} of {1}"),Do=T.a("label.noResults","No Results"),Ro=419,jo=275,Eo=jo-54,Wo=69,Ho=33,Fo="ctrlEnterReplaceAll.windows.donotask",Io=vt.e?256:2048,tn=function(){function mt(He){this.afterLineNumber=He,this.heightInPx=Ho,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}return mt}();function un(mt,He,De){var ot=!!He.match(/\n/);if(De&&ot&&De.selectionStart>0){mt.stopPropagation();return}}function Vo(mt,He,De){var ot=!!He.match(/\n/);if(De&&ot&&De.selectionEnd<De.value.length){mt.stopPropagation();return}}var Cn=function(mt){Ke(He,mt);function He(De,ot,xt,pe,O,me,Be,Ze,at){var _t=mt.call(this)||this;return _t._cachedHeight=null,_t._codeEditor=De,_t._controller=ot,_t._state=xt,_t._contextViewProvider=pe,_t._keybindingService=O,_t._contextKeyService=me,_t._storageService=Ze,_t._notificationService=at,_t._ctrlEnterReplaceAllWarningPrompted=!!Ze.getBoolean(Fo,0),_t._isVisible=!1,_t._isReplaceVisible=!1,_t._ignoreChangeEvent=!1,_t._updateHistoryDelayer=new le.a(500),_t._register(Object($.h)(function(){return _t._updateHistoryDelayer.cancel()})),_t._register(_t._state.onFindReplaceStateChange(function(zt){return _t._onStateChanged(zt)})),_t._buildDomNode(),_t._updateButtons(),_t._tryUpdateWidgetWidth(),_t._findInput.inputBox.layout(),_t._register(_t._codeEditor.onDidChangeConfiguration(function(zt){if(zt.hasChanged(68)&&(_t._codeEditor.getOption(68)&&_t._state.change({isReplaceRevealed:!1},!1),_t._updateButtons()),zt.hasChanged(107)&&_t._tryUpdateWidgetWidth(),zt.hasChanged(2)&&_t.updateAccessibilitySupport(),zt.hasChanged(28)){var Xt=_t._codeEditor.getOption(28).addExtraSpaceOnTop;Xt&&!_t._viewZone&&(_t._viewZone=new tn(0),_t._showViewZone()),!Xt&&_t._viewZone&&_t._removeViewZone()}})),_t.updateAccessibilitySupport(),_t._register(_t._codeEditor.onDidChangeCursorSelection(function(){_t._isVisible&&_t._updateToggleSelectionFindButton()})),_t._register(_t._codeEditor.onDidFocusEditorWidget(function(){if(_t._isVisible){var zt=_t._controller.getGlobalBufferTerm();zt&&zt!==_t._state.searchString&&(_t._state.change({searchString:zt},!0),_t._findInput.select())}})),_t._findInputFocused=H.bindTo(me),_t._findFocusTracker=_t._register(ee.Z(_t._findInput.inputBox.inputElement)),_t._register(_t._findFocusTracker.onDidFocus(function(){_t._findInputFocused.set(!0),_t._updateSearchScope()})),_t._register(_t._findFocusTracker.onDidBlur(function(){_t._findInputFocused.set(!1)})),_t._replaceInputFocused=V.bindTo(me),_t._replaceFocusTracker=_t._register(ee.Z(_t._replaceInput.inputBox.inputElement)),_t._register(_t._replaceFocusTracker.onDidFocus(function(){_t._replaceInputFocused.set(!0),_t._updateSearchScope()})),_t._register(_t._replaceFocusTracker.onDidBlur(function(){_t._replaceInputFocused.set(!1)})),_t._codeEditor.addOverlayWidget(_t),_t._codeEditor.getOption(28).addExtraSpaceOnTop&&(_t._viewZone=new tn(0)),_t._applyTheme(Be.getTheme()),_t._register(Be.onThemeChange(_t._applyTheme.bind(_t))),_t._register(_t._codeEditor.onDidChangeModel(function(){if(!_t._isVisible)return;_t._viewZoneId=void 0})),_t._register(_t._codeEditor.onDidScrollChange(function(zt){if(zt.scrollTopChanged){_t._layoutViewZone();return}setTimeout(function(){_t._layoutViewZone()},0)})),_t}return He.prototype.getId=function(){return He.ID},He.prototype.getDomNode=function(){return this._domNode},He.prototype.getPosition=function(){return this._isVisible?{preference:0}:null},He.prototype._onStateChanged=function(De){if(De.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(De.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),De.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),De.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(68)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=ee.H(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(De.isRevealed||De.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&(this._tryUpdateHeight()&&this._showViewZone()),De.isRegex&&this._findInput.setRegex(this._state.isRegex),De.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),De.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),De.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),De.searchString||De.matchesCount||De.matchesPosition){var ot=this._state.searchString.length>0&&this._state.matchesCount===0;ee.Y(this._domNode,"no-results",ot),this._updateMatchesCount(),this._updateButtons()}(De.searchString||De.currentMatch)&&this._layoutViewZone(),De.updateHistory&&this._delayedUpdateHistory()},He.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},He.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},He.prototype._updateMatchesCount=function(){this._matchesCount.style.minWidth=Wo+"px",this._state.matchesCount>=Ve?this._matchesCount.title=ho:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);var De;if(this._state.matchesCount>0){var ot=String(this._state.matchesCount);this._state.matchesCount>=Ve&&(ot+="+");var xt=String(this._state.matchesPosition);xt==="0"&&(xt="?"),De=R.r(_o,xt,ot)}else De=Do;this._matchesCount.appendChild(document.createTextNode(De)),Object(Ue.a)(this._getAriaLabel(De,this._state.currentMatch,this._state.searchString),!0),Wo=Math.max(Wo,this._matchesCount.clientWidth)},He.prototype._getAriaLabel=function(De,ot,xt){return De===Do?xt===""?T.a("ariaSearchNoResultEmpty","{0} found",De):T.a("ariaSearchNoResult","{0} found for {1}",De,xt):ot?T.a("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",De,xt,ot.startLineNumber+":"+ot.startColumn):T.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",De,xt)},He.prototype._updateToggleSelectionFindButton=function(){var De=this._codeEditor.getSelection(),ot=De?De.startLineNumber!==De.endLineNumber||De.startColumn!==De.endColumn:!1,xt=this._toggleSelectionFind.checked;this._isVisible&&(xt||ot)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},He.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var De=this._state.searchString.length>0,ot=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&De&&ot),this._nextBtn.setEnabled(this._isVisible&&De&&ot),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&De),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&De),ee.Y(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 xt=!this._codeEditor.getOption(68);this._toggleReplaceBtn.setEnabled(this._isVisible&&xt)},He.prototype._reveal=function(){var De=this;if(!this._isVisible){this._isVisible=!0;var ot=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 xt=!!ot&&ot.startLineNumber!==ot.endLineNumber;this._toggleSelectionFind.checked=xt;break;default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){ee.f(De._domNode,"visible"),De._domNode.setAttribute("aria-hidden","false")},0),setTimeout(function(){De._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);var pe=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&ot){var O=this._codeEditor.getDomNode();if(O){var me=ee.C(O),Be=this._codeEditor.getScrolledVisiblePosition(ot.getStartPosition()),Ze=me.left+(Be?Be.left:0),at=Be?Be.top:0;if(this._viewZone&&at<this._viewZone.heightInPx){ot.endLineNumber>ot.startLineNumber&&(pe=!1);var _t=ee.F(this._domNode).left;Ze>_t&&(pe=!1);var zt=this._codeEditor.getScrolledVisiblePosition(ot.getEndPosition()),Xt=me.left+(zt?zt.left:0);Xt>_t&&(pe=!1)}}}this._showViewZone(pe)}},He.prototype._hide=function(De){this._isVisible&&(this._isVisible=!1,this._updateButtons(),ee.P(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),De&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},He.prototype._layoutViewZone=function(){var De=this,ot=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!ot){this._removeViewZone();return}if(!this._isVisible)return;var xt=this._viewZone;if(this._viewZoneId!==void 0||!xt)return;this._codeEditor.changeViewZones(function(pe){xt.heightInPx=De._getHeight(),De._viewZoneId=pe.addZone(xt),De._codeEditor.setScrollTop(De._codeEditor.getScrollTop()+xt.heightInPx)})},He.prototype._showViewZone=function(De){var ot=this;if(De===void 0&&(De=!0),!this._isVisible)return;var xt=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!xt)return;this._viewZone===void 0&&(this._viewZone=new tn(0));var pe=this._viewZone;this._codeEditor.changeViewZones(function(O){if(ot._viewZoneId!==void 0){var me=ot._getHeight();if(me===pe.heightInPx)return;var Be=me-pe.heightInPx;pe.heightInPx=me,O.layoutZone(ot._viewZoneId),De&&ot._codeEditor.setScrollTop(ot._codeEditor.getScrollTop()+Be);return}else{var Be=ot._getHeight();pe.heightInPx=Be,ot._viewZoneId=O.addZone(pe),De&&ot._codeEditor.setScrollTop(ot._codeEditor.getScrollTop()+Be)}})},He.prototype._removeViewZone=function(){var De=this;this._codeEditor.changeViewZones(function(ot){De._viewZoneId!==void 0&&(ot.removeZone(De._viewZoneId),De._viewZoneId=void 0,De._viewZone&&(De._codeEditor.setScrollTop(De._codeEditor.getScrollTop()-De._viewZone.heightInPx),De._viewZone=void 0))})},He.prototype._applyTheme=function(De){var ot={inputActiveOptionBorder:De.getColor(v.Y),inputActiveOptionBackground:De.getColor(v.X),inputBackground:De.getColor(v.Z),inputForeground:De.getColor(v.bb),inputBorder:De.getColor(v.ab),inputValidationInfoBackground:De.getColor(v.fb),inputValidationInfoForeground:De.getColor(v.hb),inputValidationInfoBorder:De.getColor(v.gb),inputValidationWarningBackground:De.getColor(v.ib),inputValidationWarningForeground:De.getColor(v.kb),inputValidationWarningBorder:De.getColor(v.jb),inputValidationErrorBackground:De.getColor(v.cb),inputValidationErrorForeground:De.getColor(v.eb),inputValidationErrorBorder:De.getColor(v.db)};this._findInput.style(ot),this._replaceInput.style(ot),this._toggleSelectionFind.style(ot)},He.prototype._tryUpdateWidgetWidth=function(){if(!this._isVisible)return;if(!ee.M(this._domNode))return;var De=this._codeEditor.getLayoutInfo(),ot=De.contentWidth;if(ot<=0){ee.f(this._domNode,"hiddenEditor");return}else ee.I(this._domNode,"hiddenEditor")&&ee.P(this._domNode,"hiddenEditor");var xt=De.width,pe=De.minimapWidth,O=!1,me=!1,Be=!1;if(this._resized){var Ze=ee.H(this._domNode);if(Ze>Ro){this._domNode.style.maxWidth=xt-28-pe-15+"px",this._replaceInput.width=ee.H(this._findInput.domNode);return}}if(Ro+28+pe>=xt&&(me=!0),Ro+28+pe-Wo>=xt&&(Be=!0),Ro+28+pe-Wo>=xt+50&&(O=!0),ee.Y(this._domNode,"collapsed-find-widget",O),ee.Y(this._domNode,"narrow-find-widget",Be),ee.Y(this._domNode,"reduced-find-widget",me),!Be&&!O&&(this._domNode.style.maxWidth=xt-28-pe-15+"px"),this._resized){this._findInput.inputBox.layout();var at=this._findInput.inputBox.element.clientWidth;at>0&&(this._replaceInput.width=at)}else this._isReplaceVisible&&(this._replaceInput.width=ee.H(this._findInput.domNode))},He.prototype._getHeight=function(){var De=0;return De+=4,De+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(De+=4,De+=this._replaceInput.inputBox.height+2),De+=4,De},He.prototype._tryUpdateHeight=function(){var De=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===De?!1:(this._cachedHeight=De,this._domNode.style.height=De+"px",!0)},He.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},He.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},He.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},He.prototype._updateSearchScope=function(){if(!this._codeEditor.hasModel())return;if(this._toggleSelectionFind.checked){var De=this._codeEditor.getSelection();De.endColumn===1&&De.endLineNumber>De.startLineNumber&&(De=De.setEndPosition(De.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(De.endLineNumber-1)));var ot=this._state.currentMatch;De.startLineNumber!==De.endLineNumber&&(x.a.equalsRange(De,ot)||this._state.change({searchScope:De},!0))}},He.prototype._onFindInputMouseDown=function(De){De.middleButton&&De.stopPropagation()},He.prototype._onFindInputKeyDown=function(De){if(De.equals(Io|3)){this._findInput.inputBox.insertAtCursor(`
`),De.preventDefault();return}if(De.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),De.preventDefault();return}if(De.equals(2048|18)){this._codeEditor.focus(),De.preventDefault();return}if(De.equals(16))return un(De,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(De.equals(18))return Vo(De,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))},He.prototype._onReplaceInputKeyDown=function(De){if(De.equals(Io|3)){vt.h&&vt.f&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(T.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(Fo,!0,0)),this._replaceInput.inputBox.insertAtCursor(`
`),De.preventDefault();return}if(De.equals(2)){this._findInput.focusOnCaseSensitive(),De.preventDefault();return}if(De.equals(1024|2)){this._findInput.focus(),De.preventDefault();return}if(De.equals(2048|18)){this._codeEditor.focus(),De.preventDefault();return}if(De.equals(16))return un(De,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(De.equals(18))return Vo(De,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))},He.prototype.getHorizontalSashTop=function(De){return 0},He.prototype.getHorizontalSashLeft=function(De){return 0},He.prototype.getHorizontalSashWidth=function(De){return 500},He.prototype._keybindingLabelFor=function(De){var ot=this._keybindingService.lookupKeybinding(De);return ot?" ("+ot.getLabel()+")":""},He.prototype._buildDomNode=function(){var De=this,ot=!0,xt=!0;this._findInput=this._register(new Ye(null,this._contextViewProvider,{width:Eo,label:ge,placeholder:G,appendCaseSensitiveLabel:this._keybindingLabelFor(Pe.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(Pe.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(Pe.ToggleRegexCommand),validation:function(at){if(at.length===0||!De._findInput.getRegex())return null;try{return new RegExp(at),null}catch(_t){return{content:_t.message}}},flexibleHeight:ot,flexibleWidth:xt,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(at){return De._onFindInputKeyDown(at)})),this._register(this._findInput.inputBox.onDidChange(function(){if(De._ignoreChangeEvent)return;De._state.change({searchString:De._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(function(){De._state.change({isRegex:De._findInput.getRegex(),wholeWord:De._findInput.getWholeWords(),matchCase:De._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(function(at){at.equals(1024|2)&&(De._isReplaceVisible&&(De._replaceInput.focus(),at.preventDefault()))})),this._register(this._findInput.onRegexKeyDown(function(at){at.equals(2)&&(De._isReplaceVisible&&(De._replaceInput.focusOnPreserve(),at.preventDefault()))})),this._register(this._findInput.inputBox.onDidHeightChange(function(at){De._tryUpdateHeight()&&De._showViewZone()})),vt.d&&this._register(this._findInput.onMouseDown(function(at){return De._onFindInputMouseDown(at)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new pn({label:oe+this._keybindingLabelFor(Pe.PreviousMatchFindAction),className:"codicon codicon-arrow-up",onTrigger:function(){De._codeEditor.getAction(Pe.PreviousMatchFindAction).run().then(void 0,nt.e)}})),this._nextBtn=this._register(new pn({label:Y+this._keybindingLabelFor(Pe.NextMatchFindAction),className:"codicon codicon-arrow-down",onTrigger:function(){De._codeEditor.getAction(Pe.NextMatchFindAction).run().then(void 0,nt.e)}}));var pe=document.createElement("div");pe.className="find-part",pe.appendChild(this._findInput.domNode);var O=document.createElement("div");O.className="find-actions",pe.appendChild(O),O.appendChild(this._matchesCount),O.appendChild(this._prevBtn.domNode),O.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new ue({actionClassName:"codicon codicon-selection",title:ae+this._keybindingLabelFor(Pe.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(function(){if(De._toggleSelectionFind.checked){if(De._codeEditor.hasModel()){var at=De._codeEditor.getSelection();at.endColumn===1&&at.endLineNumber>at.startLineNumber&&(at=at.setEndPosition(at.endLineNumber-1,De._codeEditor.getModel().getLineMaxColumn(at.endLineNumber-1))),at.isEmpty()||De._state.change({searchScope:at},!0)}}else De._state.change({searchScope:null},!0)})),O.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new pn({label:Fe+this._keybindingLabelFor(Pe.CloseFindWidgetCommand),className:"codicon codicon-close",onTrigger:function(){De._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(at){at.equals(2)&&(De._isReplaceVisible&&(De._replaceBtn.isEnabled()?De._replaceBtn.focus():De._codeEditor.focus(),at.preventDefault()))}})),O.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new ze(null,void 0,{label:dt,placeholder:Ot,history:[],flexibleHeight:ot,flexibleWidth:xt,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(function(at){return De._onReplaceInputKeyDown(at)})),this._register(this._replaceInput.inputBox.onDidChange(function(){De._state.change({replaceString:De._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(function(at){De._isReplaceVisible&&De._tryUpdateHeight()&&De._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(function(){De._state.change({preserveCase:De._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(function(at){at.equals(2)&&(De._prevBtn.isEnabled()?De._prevBtn.focus():De._nextBtn.isEnabled()?De._nextBtn.focus():De._toggleSelectionFind.enabled?De._toggleSelectionFind.focus():De._closeBtn.isEnabled()&&De._closeBtn.focus(),at.preventDefault())})),this._replaceBtn=this._register(new pn({label:Qt+this._keybindingLabelFor(Pe.ReplaceOneAction),className:"codicon codicon-replace",onTrigger:function(){De._controller.replace()},onKeyDown:function(at){at.equals(1024|2)&&(De._closeBtn.focus(),at.preventDefault())}})),this._replaceAllBtn=this._register(new pn({label:to+this._keybindingLabelFor(Pe.ReplaceAllAction),className:"codicon codicon-replace-all",onTrigger:function(){De._controller.replaceAll()}}));var me=document.createElement("div");me.className="replace-part",me.appendChild(this._replaceInput.domNode);var Be=document.createElement("div");Be.className="replace-actions",me.appendChild(Be),Be.appendChild(this._replaceBtn.domNode),Be.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new pn({label:fo,className:"codicon toggle left",onTrigger:function(){De._state.change({isReplaceRevealed:!De._isReplaceVisible},!1),De._isReplaceVisible&&(De._replaceInput.width=ee.H(De._findInput.domNode),De._replaceInput.inputBox.layout()),De._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=Ro+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(pe),this._domNode.appendChild(me),this._resizeSash=new Je.a(this._domNode,this,{orientation:0}),this._resized=!1;var Ze=Ro;this._register(this._resizeSash.onDidStart(function(){Ze=ee.H(De._domNode)})),this._register(this._resizeSash.onDidChange(function(at){De._resized=!0;var _t=Ze+at.startX-at.currentX;if(_t<Ro)return;var zt=parseFloat(ee.z(De._domNode).maxWidth)||0;if(_t>zt)return;De._domNode.style.width=_t+"px",De._isReplaceVisible&&(De._replaceInput.width=ee.H(De._findInput.domNode)),De._findInput.inputBox.layout(),De._tryUpdateHeight()})),this._register(this._resizeSash.onDidReset(function(){var at=ee.H(De._domNode);if(at<Ro)return;var _t=Ro;if(!De._resized||at===Ro){var zt=De._codeEditor.getLayoutInfo();_t=zt.width-28-zt.minimapWidth-15,De._resized=!0}De._domNode.style.width=_t+"px",De._isReplaceVisible&&(De._replaceInput.width=ee.H(De._findInput.domNode)),De._findInput.inputBox.layout()}))},He.prototype.updateAccessibilitySupport=function(){var De=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(De!==2)},He.ID="editor.contrib.findWidget",He}(q.a),pn=function(mt){Ke(He,mt);function He(De){var ot=mt.call(this)||this;return ot._opts=De,ot._domNode=document.createElement("div"),ot._domNode.title=ot._opts.label,ot._domNode.tabIndex=0,ot._domNode.className="button "+ot._opts.className,ot._domNode.setAttribute("role","button"),ot._domNode.setAttribute("aria-label",ot._opts.label),ot.onclick(ot._domNode,function(xt){ot._opts.onTrigger(),xt.preventDefault()}),ot.onkeydown(ot._domNode,function(xt){if(xt.equals(10)||xt.equals(3)){ot._opts.onTrigger(),xt.preventDefault();return}ot._opts.onKeyDown&&ot._opts.onKeyDown(xt)}),ot}return Object.defineProperty(He.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),He.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},He.prototype.focus=function(){this._domNode.focus()},He.prototype.setEnabled=function(De){ee.Y(this._domNode,"disabled",!De),this._domNode.setAttribute("aria-disabled",String(!De)),this._domNode.tabIndex=De?0:-1},He.prototype.setExpanded=function(De){this._domNode.setAttribute("aria-expanded",String(!!De))},He.prototype.toggleClass=function(De,ot){ee.Y(this._domNode,De,ot)},He}(q.a);Object(C.e)(function(mt,He){var De=function(no,uo){uo&&He.addRule(".monaco-editor "+no+" { background-color: "+uo+"; }")};De(".findMatch",mt.getColor(v.t)),De(".currentFindMatch",mt.getColor(v.r)),De(".findScope",mt.getColor(v.v));var ot=mt.getColor(v.Q);De(".find-widget",ot);var xt=mt.getColor(v.hc);xt&&He.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+xt+"; }");var pe=mt.getColor(v.u);pe&&He.addRule(".monaco-editor .findMatch { border: 1px "+(mt.type==="hc"?"dotted":"solid")+" "+pe+"; box-sizing: border-box; }");var O=mt.getColor(v.s);O&&He.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+O+"; padding: 1px; box-sizing: border-box; }");var me=mt.getColor(v.w);me&&He.addRule(".monaco-editor .findScope { border: 1px "+(mt.type==="hc"?"dashed":"solid")+" "+me+"; }");var Be=mt.getColor(v.e);Be&&He.addRule(".monaco-editor .find-widget { border: 1px solid "+Be+"; }");var Ze=mt.getColor(v.S);Ze&&He.addRule(".monaco-editor .find-widget { color: "+Ze+"; }");var at=mt.getColor(v.U);at&&He.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+at+"; }");var _t=mt.getColor(v.T);if(_t)He.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+_t+"; width: 3px !important; margin-left: -4px;}");else{var zt=mt.getColor(v.R);zt&&He.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+zt+"; width: 3px !important; margin-left: -4px;}")}var Xt=mt.getColor(v.V);Xt&&He.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+Xt+"; }")});var rn=e("9XeP"),on=e("Uzvx"),dn=e("Cg/j"),Uo=e("bexQ"),Bo=e("A+jI"),St=e("sM1p"),st=function(){var mt=function(He,De){return mt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ot,xt){ot.__proto__=xt}||function(ot,xt){for(var pe in xt)xt.hasOwnProperty(pe)&&(ot[pe]=xt[pe])},mt(He,De)};return function(He,De){mt(He,De);function ot(){this.constructor=He}He.prototype=De===null?Object.create(De):(ot.prototype=De.prototype,new ot)}}(),rt=function(mt,He,De,ot){var xt=arguments.length,pe=xt<3?He:ot===null?ot=Object.getOwnPropertyDescriptor(He,De):ot,O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(mt,He,De,ot);else for(var me=mt.length-1;me>=0;me--)(O=mt[me])&&(pe=(xt<3?O(pe):xt>3?O(He,De,pe):O(He,De))||pe);return xt>3&&pe&&Object.defineProperty(He,De,pe),pe},Mt=function(mt,He){return function(De,ot){He(De,ot,mt)}},be=524288;function M(mt){if(!mt.hasModel())return null;var He=mt.getSelection();if(He.startLineNumber===He.endLineNumber){if(He.isEmpty()){var De=mt.getModel().getWordAtPosition(He.getStartPosition());if(De)return De.word}else if(mt.getModel().getValueLengthInRange(He)<be)return mt.getModel().getValueInRange(He)}return null}var j=function(mt){st(He,mt);function He(De,ot,xt,pe){var O=mt.call(this)||this;return O._editor=De,O._findWidgetVisible=K.bindTo(ot),O._contextKeyService=ot,O._storageService=xt,O._clipboardService=pe,O._updateHistoryDelayer=new le.a(500),O._state=O._register(new Oe),O.loadQueryState(),O._register(O._state.onFindReplaceStateChange(function(me){return O._onStateChanged(me)})),O._model=null,O._register(O._editor.onDidChangeModel(function(){var me=O._editor.getModel()&&O._state.isRevealed;O.disposeModel(),O._state.change({searchScope:null,matchCase:O._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:O._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:O._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:O._storageService.getBoolean("editor.preserveCase",1,!1)},!1),me&&O._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})})),O}return He.get=function(De){return De.getContribution(He.ID)},He.prototype.dispose=function(){this.disposeModel(),mt.prototype.dispose.call(this)},He.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},He.prototype._onStateChanged=function(De){this.saveQueryState(De),De.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),De.searchString&&this.setGlobalBufferTerm(this._state.searchString)},He.prototype.saveQueryState=function(De){De.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),De.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),De.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),De.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},He.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)},He.prototype.isFindInputFocused=function(){return!!H.getValue(this._contextKeyService)},He.prototype.getState=function(){return this._state},He.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},He.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},He.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},He.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},He.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var De=this._editor.getSelection();De.endColumn===1&&De.endLineNumber>De.startLineNumber&&(De=De.setEndPosition(De.endLineNumber-1,this._editor.getModel().getLineMaxColumn(De.endLineNumber-1))),De.isEmpty()||this._state.change({searchScope:De},!0)}},He.prototype.setSearchString=function(De){this._state.isRegex&&(De=R.p(De)),this._state.change({searchString:De},!1)},He.prototype.highlightFindOptions=function(){},He.prototype._start=function(De){if(this.disposeModel(),!this._editor.hasModel())return;var ot={isRevealed:!0};if(De.seedSearchStringFromSelection){var xt=M(this._editor);xt&&(this._state.isRegex?ot.searchString=R.p(xt):ot.searchString=xt)}if(!ot.searchString&&De.seedSearchStringFromGlobalClipboard){var xt=this.getGlobalBufferTerm();xt&&(ot.searchString=xt)}if(De.forceRevealReplace?ot.isReplaceRevealed=!0:this._findWidgetVisible.get()||(ot.isReplaceRevealed=!1),De.updateSearchScope){var pe=this._editor.getSelection();pe.isEmpty()||(ot.searchScope=pe)}this._state.change(ot,!1),this._model||(this._model=new se(this._editor,this._state))},He.prototype.start=function(De){this._start(De)},He.prototype.moveToNextMatch=function(){return this._model?(this._model.moveToNextMatch(),!0):!1},He.prototype.moveToPrevMatch=function(){return this._model?(this._model.moveToPrevMatch(),!0):!1},He.prototype.replace=function(){return this._model?(this._model.replace(),!0):!1},He.prototype.replaceAll=function(){return this._model?(this._model.replaceAll(),!0):!1},He.prototype.selectAllMatches=function(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1},He.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},He.prototype.setGlobalBufferTerm=function(De){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(De)},He.ID="editor.contrib.findController",He=rt([Mt(1,Q.c),Mt(2,Bo.a),Mt(3,rn.a)],He),He}($.a),X=function(mt){st(He,mt);function He(De,ot,xt,pe,O,me,Be,Ze){var at=mt.call(this,De,xt,Be,Ze)||this;return at._contextViewService=ot,at._keybindingService=pe,at._themeService=O,at._notificationService=me,at._widget=null,at._findOptionsWidget=null,at}return He.prototype._start=function(De){this._widget||this._createFindWidget();var ot=this._editor.getSelection(),xt=!1;switch(this._editor.getOption(28).autoFindInSelection){case"always":xt=!0;break;case"never":xt=!1;break;case"multiline":var pe=!!ot&&ot.startLineNumber!==ot.endLineNumber;xt=pe;break;default:break}De.updateSearchScope=xt,mt.prototype._start.call(this,De),De.shouldFocus===2?this._widget.focusReplaceInput():De.shouldFocus===1&&this._widget.focusFindInput()},He.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},He.prototype._createFindWidget=function(){this._widget=this._register(new Cn(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new re(this._editor,this._state,this._keybindingService,this._themeService))},He=rt([Mt(1,on.b),Mt(2,Q.c),Mt(3,Uo.a),Mt(4,C.c),Mt(5,St.a),Mt(6,Bo.a),Mt(7,Object(dn.d)(rn.a))],He),He}(j),Te=function(mt){st(He,mt);function He(){return mt.call(this,{id:Pe.StartFindAction,label:T.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|36,weight:100},menuOpts:{menuId:17,group:"3_find",title:T.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return He.prototype.run=function(De,ot){var xt=j.get(ot);xt&&xt.start({forceRevealReplace:!1,seedSearchStringFromSelection:ot.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:ot.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},He}(B.b),Ae=function(mt){st(He,mt);function He(){return mt.call(this,{id:Pe.StartFindWithSelection,label:T.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 He.prototype.run=function(De,ot){var xt=j.get(ot);xt&&(xt.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),xt.setGlobalBufferTerm(xt.getState().searchString))},He}(B.b),Ne=function(mt){st(He,mt);function He(){return mt!==null&&mt.apply(this,arguments)||this}return He.prototype.run=function(De,ot){var xt=j.get(ot);xt&&!this._run(xt)&&(xt.start({forceRevealReplace:!1,seedSearchStringFromSelection:xt.getState().searchString.length===0&&ot.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(xt))},He}(B.b),lt=function(mt){st(He,mt);function He(){return mt.call(this,{id:Pe.NextMatchFindAction,label:T.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:61,mac:{primary:2048|37,secondary:[61]},weight:100}})||this}return He.prototype._run=function(De){return De.moveToNextMatch()},He}(Ne),ft=function(mt){st(He,mt);function He(){return mt.call(this,{id:Pe.NextMatchFindAction,label:T.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:Q.a.and(z.a.focus,H),primary:3,weight:100}})||this}return He.prototype._run=function(De){return De.moveToNextMatch()},He}(Ne),At=function(mt){st(He,mt);function He(){return mt.call(this,{id:Pe.PreviousMatchFindAction,label:T.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:1024|61,mac:{primary:2048|1024|37,secondary:[1024|61]},weight:100}})||this}return He.prototype._run=function(De){return De.moveToPrevMatch()},He}(Ne),Ft=function(mt){st(He,mt);function He(){return mt.call(this,{id:Pe.PreviousMatchFindAction,label:T.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:Q.a.and(z.a.focus,H),primary:1024|3,weight:100}})||this}return He.prototype._run=function(De){return De.moveToPrevMatch()},He}(Ne),Ut=function(mt){st(He,mt);function He(){return mt!==null&&mt.apply(this,arguments)||this}return He.prototype.run=function(De,ot){var xt=j.get(ot);if(!xt)return;var pe=M(ot);pe&&xt.setSearchString(pe),this._run(xt)||(xt.start({forceRevealReplace:!1,seedSearchStringFromSelection:ot.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(xt))},He}(B.b),Vt=function(mt){st(He,mt);function He(){return mt.call(this,{id:Pe.NextSelectionMatchFindAction,label:T.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2048|61,weight:100}})||this}return He.prototype._run=function(De){return De.moveToNextMatch()},He}(Ut),oo=function(mt){st(He,mt);function He(){return mt.call(this,{id:Pe.PreviousSelectionMatchFindAction,label:T.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2048|1024|61,weight:100}})||this}return He.prototype._run=function(De){return De.moveToPrevMatch()},He}(Ut),Zt=function(mt){st(He,mt);function He(){return mt.call(this,{id:Pe.StartFindReplaceAction,label:T.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:T.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return He.prototype.run=function(De,ot){if(!ot.hasModel()||ot.getOption(68))return;var xt=j.get(ot),pe=ot.getSelection(),O=xt.isFindInputFocused(),me=!pe.isEmpty()&&pe.startLineNumber===pe.endLineNumber&&ot.getOption(28).seedSearchStringFromSelection&&!O,Be=O||me?2:1;xt&&xt.start({forceRevealReplace:!0,seedSearchStringFromSelection:me,seedSearchStringFromGlobalClipboard:ot.getOption(28).seedSearchStringFromSelection,shouldFocus:Be,shouldAnimate:!0,updateSearchScope:!1})},He}(B.b);Object(B.h)(j.ID,X),Object(B.f)(Te),Object(B.f)(Ae),Object(B.f)(lt),Object(B.f)(ft),Object(B.f)(At),Object(B.f)(Ft),Object(B.f)(Vt),Object(B.f)(oo),Object(B.f)(Zt);var mo=B.c.bindToContribution(j.get);Object(B.g)(new mo({id:Pe.CloseFindWidgetCommand,precondition:K,handler:function(mt){return mt.closeFindWidget()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:9,secondary:[1024|9]}})),Object(B.g)(new mo({id:Pe.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(mt){return mt.toggleCaseSensitive()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:de.primary,mac:de.mac,win:de.win,linux:de.linux}})),Object(B.g)(new mo({id:Pe.ToggleWholeWordCommand,precondition:void 0,handler:function(mt){return mt.toggleWholeWords()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:_e.primary,mac:_e.mac,win:_e.win,linux:_e.linux}})),Object(B.g)(new mo({id:Pe.ToggleRegexCommand,precondition:void 0,handler:function(mt){return mt.toggleRegex()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:Se.primary,mac:Se.mac,win:Se.win,linux:Se.linux}})),Object(B.g)(new mo({id:Pe.ToggleSearchScopeCommand,precondition:void 0,handler:function(mt){return mt.toggleSearchScope()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:Ie.primary,mac:Ie.mac,win:Ie.win,linux:Ie.linux}})),Object(B.g)(new mo({id:Pe.ReplaceOneAction,precondition:K,handler:function(mt){return mt.replace()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:2048|1024|22}})),Object(B.g)(new mo({id:Pe.ReplaceOneAction,precondition:K,handler:function(mt){return mt.replace()},kbOpts:{weight:100+5,kbExpr:Q.a.and(z.a.focus,V),primary:3}})),Object(B.g)(new mo({id:Pe.ReplaceAllAction,precondition:K,handler:function(mt){return mt.replaceAll()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:2048|512|3}})),Object(B.g)(new mo({id:Pe.ReplaceAllAction,precondition:K,handler:function(mt){return mt.replaceAll()},kbOpts:{weight:100+5,kbExpr:Q.a.and(z.a.focus,V),primary:void 0,mac:{primary:2048|3}}})),Object(B.g)(new mo({id:Pe.SelectAllMatchesAction,precondition:K,handler:function(mt){return mt.selectAllMatches()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:512|3}}))},oiKk:function(Lt,N,e){"use strict";e.r(N),e.d(N,"IPadShowKeyboard",function(){return W});var T=e("ci+S"),le=e.n(T),$=e("D3Dy"),R=e("EffR"),B=e("pmY6"),z=e("sswD"),D=function(){var h=function(y,w){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var C in v)v.hasOwnProperty(C)&&(f[C]=v[C])},h(y,w)};return function(y,w){h(y,w);function f(){this.constructor=y}y.prototype=w===null?Object.create(w):(f.prototype=w.prototype,new f)}}(),W=function(h){D(y,h);function y(w){var f=h.call(this)||this;return f.editor=w,f.widget=null,$.j&&(f._register(w.onDidChangeConfiguration(function(){return f.update()})),f.update()),f}return y.prototype.update=function(){var w=!this.editor.getOption(68);!this.widget&&w?this.widget=new x(this.editor):this.widget&&!w&&(this.widget.dispose(),this.widget=null)},y.prototype.dispose=function(){h.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},y.ID="editor.contrib.iPadShowKeyboard",y}(B.a),x=function(h){D(y,h);function y(w){var f=h.call(this)||this;return f.editor=w,f._domNode=document.createElement("textarea"),f._domNode.className="iPadShowKeyboard",f._register(R.j(f._domNode,"touchstart",function(v){f.editor.focus()})),f._register(R.j(f._domNode,"focus",function(v){f.editor.focus()})),f.editor.addOverlayWidget(f),f}return y.prototype.dispose=function(){this.editor.removeOverlayWidget(this),h.prototype.dispose.call(this)},y.prototype.getId=function(){return y.ID},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return{preference:1}},y.ID="editor.contrib.ShowKeyboardWidget",y}(B.a);Object(z.h)(W.ID,W)},p3Ex:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return e.e(298).then(e.bind(null,"/Om3"))}})},p5tG:function(Lt,N,e){"use strict";e.r(N),e.d(N,"LanguageServiceDefaultsImpl",function(){return R});var T=e("M/lh"),le=e.n(T);"use strict";var $=monaco.Emitter,R=function(){function h(y,w,f){this._onDidChange=new $,this._languageId=y,this.setDiagnosticsOptions(w),this.setModeConfiguration(f)}return Object.defineProperty(h.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),h.prototype.setDiagnosticsOptions=function(y){this._diagnosticsOptions=y||Object.create(null),this._onDidChange.fire(this)},h.prototype.setModeConfiguration=function(y){this._modeConfiguration=y||Object.create(null),this._onDidChange.fire(this)},h}(),B={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},z={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},D=new R("json",B,z);function W(){return{jsonDefaults:D}}monaco.languages.json=W();function x(){return e.e(290).then(e.bind(null,"R7lK"))}monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",function(){x().then(function(h){return h.setupMode(D)})})},pAvP:function(Lt,N,e){"use strict";e.d(N,"a",function(){return $});var T=e("Cg/j"),le="editorWorkerService",$=Object(T.c)(le)},pI2L:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return e.e(330).then(e.bind(null,"KpXS"))}})},pg8w:function(Lt,N,e){"use strict";e.d(N,"a",function(){return D}),e.d(N,"b",function(){return W});var T=e("6OMU"),le=e("pmY6"),$=e("EffR"),R=e("ZCR3"),B=function(){var x=function(h,y){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,f){w.__proto__=f}||function(w,f){for(var v in f)f.hasOwnProperty(v)&&(w[v]=f[v])},x(h,y)};return function(h,y){x(h,y);function w(){this.constructor=h}h.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}}(),z=function(x,h,y,w){var f=arguments.length,v=f<3?h:w===null?w=Object.getOwnPropertyDescriptor(h,y):w,C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(x,h,y,w);else for(var g=x.length-1;g>=0;g--)(C=x[g])&&(v=(f<3?C(v):f>3?C(h,y,v):C(h,y))||v);return f>3&&v&&Object.defineProperty(h,y,v),v},D;(function(x){x.Tap="-monaco-gesturetap",x.Change="-monaco-gesturechange",x.Start="-monaco-gesturestart",x.End="-monaco-gesturesend",x.Contextmenu="-monaco-gesturecontextmenu"})(D||(D={}));var W=function(x){B(h,x);function h(){var y=x.call(this)||this;return y.dispatched=!1,y.activeTouches={},y.handle=null,y.targets=[],y.ignoreTargets=[],y._lastSetTapCountTime=0,y._register($.j(document,"touchstart",function(w){return y.onTouchStart(w)})),y._register($.j(document,"touchend",function(w){return y.onTouchEnd(w)})),y._register($.j(document,"touchmove",function(w){return y.onTouchMove(w)})),y}return h.addTarget=function(y){return h.isTouchDevice()?(h.INSTANCE||(h.INSTANCE=new h),h.INSTANCE.targets.push(y),{dispose:function(){h.INSTANCE.targets=h.INSTANCE.targets.filter(function(w){return w!==y})}}):le.a.None},h.ignoreTarget=function(y){return h.isTouchDevice()?(h.INSTANCE||(h.INSTANCE=new h),h.INSTANCE.ignoreTargets.push(y),{dispose:function(){h.INSTANCE.ignoreTargets=h.INSTANCE.ignoreTargets.filter(function(w){return w!==y})}}):le.a.None},h.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},h.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),x.prototype.dispose.call(this)},h.prototype.onTouchStart=function(y){var w=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var f=0,v=y.targetTouches.length;f<v;f++){var C=y.targetTouches.item(f);this.activeTouches[C.identifier]={id:C.identifier,initialTarget:C.target,initialTimeStamp:w,initialPageX:C.pageX,initialPageY:C.pageY,rollingTimestamps:[w],rollingPageX:[C.pageX],rollingPageY:[C.pageY]};var g=this.newGestureEvent(D.Start,C.target);g.pageX=C.pageX,g.pageY=C.pageY,this.dispatchEvent(g)}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)},h.prototype.onTouchEnd=function(y){for(var w=Date.now(),f=Object.keys(this.activeTouches).length,v=function(s,l){var c=y.changedTouches.item(s);if(!C.activeTouches.hasOwnProperty(String(c.identifier)))return console.warn("move of an UNKNOWN touch",c),"continue";var p=C.activeTouches[c.identifier],_=Date.now()-p.initialTimeStamp;if(_<h.HOLD_DELAY&&Math.abs(p.initialPageX-T.v(p.rollingPageX))<30&&Math.abs(p.initialPageY-T.v(p.rollingPageY))<30){var L=C.newGestureEvent(D.Tap,p.initialTarget);L.pageX=T.v(p.rollingPageX),L.pageY=T.v(p.rollingPageY),C.dispatchEvent(L)}else if(_>=h.HOLD_DELAY&&Math.abs(p.initialPageX-T.v(p.rollingPageX))<30&&Math.abs(p.initialPageY-T.v(p.rollingPageY))<30){var L=C.newGestureEvent(D.Contextmenu,p.initialTarget);L.pageX=T.v(p.rollingPageX),L.pageY=T.v(p.rollingPageY),C.dispatchEvent(L)}else if(f===1){var I=T.v(p.rollingPageX),P=T.v(p.rollingPageY),A=T.v(p.rollingTimestamps)-p.rollingTimestamps[0],Q=I-p.rollingPageX[0],K=P-p.rollingPageY[0],H=C.targets.filter(function(V){return p.initialTarget instanceof Node&&V.contains(p.initialTarget)});C.inertia(H,w,Math.abs(Q)/A,Q>0?1:-1,I,Math.abs(K)/A,K>0?1:-1,P)}C.dispatchEvent(C.newGestureEvent(D.End,p.initialTarget)),delete C.activeTouches[c.identifier]},C=this,g=0,u=y.changedTouches.length;g<u;g++)v(g,u);this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)},h.prototype.newGestureEvent=function(y,w){var f=document.createEvent("CustomEvent");return f.initEvent(y,!1,!0),f.initialTarget=w,f.tapCount=0,f},h.prototype.dispatchEvent=function(y){var w=this;if(y.type===D.Tap){var f=new Date().getTime(),v=0;f-this._lastSetTapCountTime>h.CLEAR_TAP_COUNT_TIME?v=1:v=2,this._lastSetTapCountTime=f,y.tapCount=v}else(y.type===D.Change||y.type===D.Contextmenu)&&(this._lastSetTapCountTime=0);for(var C=0;C<this.ignoreTargets.length;C++)if(y.initialTarget instanceof Node&&this.ignoreTargets[C].contains(y.initialTarget))return;this.targets.forEach(function(g){y.initialTarget instanceof Node&&g.contains(y.initialTarget)&&(g.dispatchEvent(y),w.dispatched=!0)})},h.prototype.inertia=function(y,w,f,v,C,g,u,s){var l=this;this.handle=$.W(function(){var c=Date.now(),p=c-w,_=0,L=0,I=!0;f+=h.SCROLL_FRICTION*p,g+=h.SCROLL_FRICTION*p,f>0&&(I=!1,_=v*f*p),g>0&&(I=!1,L=u*g*p);var P=l.newGestureEvent(D.Change);P.translationX=_,P.translationY=L,y.forEach(function(A){return A.dispatchEvent(P)}),I||l.inertia(y,c,f,v,C+_,g,u,s+L)})},h.prototype.onTouchMove=function(y){for(var w=Date.now(),f=0,v=y.changedTouches.length;f<v;f++){var C=y.changedTouches.item(f);if(!this.activeTouches.hasOwnProperty(String(C.identifier))){console.warn("end of an UNKNOWN touch",C);continue}var g=this.activeTouches[C.identifier],u=this.newGestureEvent(D.Change,g.initialTarget);u.translationX=C.pageX-T.v(g.rollingPageX),u.translationY=C.pageY-T.v(g.rollingPageY),u.pageX=C.pageX,u.pageY=C.pageY,this.dispatchEvent(u),g.rollingPageX.length>3&&(g.rollingPageX.shift(),g.rollingPageY.shift(),g.rollingTimestamps.shift()),g.rollingPageX.push(C.pageX),g.rollingPageY.push(C.pageY),g.rollingTimestamps.push(w)}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)},h.SCROLL_FRICTION=-.005,h.HOLD_DELAY=700,h.CLEAR_TAP_COUNT_TIME=400,z([R.a],h,"isTouchDevice",null),h}(le.a)},pmY6:function(Lt,N,e){"use strict";e.d(N,"g",function(){return B}),e.d(N,"f",function(){return z}),e.d(N,"e",function(){return D}),e.d(N,"h",function(){return W}),e.d(N,"b",function(){return x}),e.d(N,"a",function(){return h}),e.d(N,"d",function(){return y}),e.d(N,"c",function(){return w});var T=!1,le="__is_disposable_tracked__";function $(f){if(!T)return;if(f&&f!==h.None)try{f[le]=!0}catch(v){}}function R(f){if(!T)return f;var v=new Error("Potentially leaked disposable").stack;return setTimeout(function(){f[le]||console.log(v)},3e3),f}function B(f){return typeof f.dispose=="function"&&f.dispose.length===0}function z(f){return Array.isArray(f)?(f.forEach(function(v){v&&($(v),v.dispose())}),[]):f?($(f),f.dispose(),f):void 0}function D(){for(var f=[],v=0;v<arguments.length;v++)f[v]=arguments[v];return f.forEach($),R({dispose:function(){return z(f)}})}function W(f){var v=R({dispose:function(){$(v),f()}});return v}var x=function(){function f(){this._toDispose=new Set,this._isDisposed=!1}return f.prototype.dispose=function(){if(this._isDisposed)return;$(this),this._isDisposed=!0,this.clear()},f.prototype.clear=function(){this._toDispose.forEach(function(v){return v.dispose()}),this._toDispose.clear()},f.prototype.add=function(v){if(!v)return v;if(v===this)throw new Error("Cannot register a disposable on itself!");return $(v),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(v),v},f}(),h=function(){function f(){this._store=new x,R(this)}return f.prototype.dispose=function(){$(this),this._store.dispose()},f.prototype._register=function(v){if(v===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(v)},f.None=Object.freeze({dispose:function(){}}),f}(),y=function(){function f(){this._isDisposed=!1,R(this)}return Object.defineProperty(f.prototype,"value",{get:function(){return this._isDisposed?void 0:this._value},set:function(v){if(this._isDisposed||v===this._value)return;this._value&&this._value.dispose(),v&&$(v),this._value=v},enumerable:!0,configurable:!0}),f.prototype.clear=function(){this.value=void 0},f.prototype.dispose=function(){this._isDisposed=!0,$(this),this._value&&this._value.dispose(),this._value=void 0},f}(),w=function(){function f(v){this.object=v}return f.prototype.dispose=function(){},f}()},ptcw:function(Lt,N,e){"use strict";e.d(N,"a",function(){return B}),e.d(N,"d",function(){return z}),e.d(N,"b",function(){return D}),e.d(N,"c",function(){return h});var T=e("MD5Z"),le=function(){return le=Object.assign||function(y){for(var w,f=1,v=arguments.length;f<v;f++){w=arguments[f];for(var C in w)Object.prototype.hasOwnProperty.call(w,C)&&(y[C]=w[C])}return y},le.apply(this,arguments)};function $(y,w){var f=Object.create(null);for(var v in w){var C=w[v];C&&(f[v]=Object(T.Ub)(C,y))}return f}function R(y,w,f){function v(C){var g=$(y.getTheme(),w);typeof f=="function"?f(g):f.style(g)}return v(y.getTheme()),y.onThemeChange(v)}function B(y,w,f){return R(w,{badgeBackground:f&&f.badgeBackground||T.c,badgeForeground:f&&f.badgeForeground||T.d,badgeBorder:T.e},y)}function z(y,w,f){return R(w,{foreground:f&&f.foreground||T.W,background:f&&f.background||T.o,borderColor:f&&f.borderColor||T.e,widgetShadow:f&&f.widgetShadow||T.hc,progressBarBackground:f&&f.progressBarBackground||T.Sb,pickerGroupForeground:f&&f.pickerGroupForeground||T.Ob,pickerGroupBorder:f&&f.pickerGroupBorder||T.Nb,inputBackground:f&&f.inputBackground||T.Z,inputForeground:f&&f.inputForeground||T.bb,inputBorder:f&&f.inputBorder||T.ab,inputValidationInfoBorder:f&&f.inputValidationInfoBorder||T.gb,inputValidationInfoBackground:f&&f.inputValidationInfoBackground||T.fb,inputValidationInfoForeground:f&&f.inputValidationInfoForeground||T.hb,inputValidationWarningBorder:f&&f.inputValidationWarningBorder||T.jb,inputValidationWarningBackground:f&&f.inputValidationWarningBackground||T.ib,inputValidationWarningForeground:f&&f.inputValidationWarningForeground||T.kb,inputValidationErrorBorder:f&&f.inputValidationErrorBorder||T.db,inputValidationErrorBackground:f&&f.inputValidationErrorBackground||T.cb,inputValidationErrorForeground:f&&f.inputValidationErrorForeground||T.eb,listFocusBackground:f&&f.listFocusBackground||T.rb,listFocusForeground:f&&f.listFocusForeground||T.sb,listActiveSelectionBackground:f&&f.listActiveSelectionBackground||Object(T.f)(T.lb,.1),listActiveSelectionForeground:f&&f.listActiveSelectionForeground||T.mb,listFocusAndSelectionBackground:f&&f.listFocusAndSelectionBackground||T.lb,listFocusAndSelectionForeground:f&&f.listFocusAndSelectionForeground||T.mb,listInactiveSelectionBackground:f&&f.listInactiveSelectionBackground||T.xb,listInactiveSelectionForeground:f&&f.listInactiveSelectionForeground||T.yb,listInactiveFocusBackground:f&&f.listInactiveFocusBackground||T.wb,listHoverBackground:f&&f.listHoverBackground||T.ub,listHoverForeground:f&&f.listHoverForeground||T.vb,listDropBackground:f&&f.listDropBackground||T.nb,listFocusOutline:f&&f.listFocusOutline||T.b,listSelectionOutline:f&&f.listSelectionOutline||T.b,listHoverOutline:f&&f.listHoverOutline||T.b},y)}function D(y,w,f){return R(w,le(le({},W),f||{}),y)}var W={listFocusBackground:T.rb,listFocusForeground:T.sb,listActiveSelectionBackground:Object(T.f)(T.lb,.1),listActiveSelectionForeground:T.mb,listFocusAndSelectionBackground:T.lb,listFocusAndSelectionForeground:T.mb,listInactiveSelectionBackground:T.xb,listInactiveSelectionForeground:T.yb,listInactiveFocusBackground:T.wb,listHoverBackground:T.ub,listHoverForeground:T.vb,listDropBackground:T.nb,listFocusOutline:T.b,listSelectionOutline:T.b,listHoverOutline:T.b,listFilterWidgetBackground:T.ob,listFilterWidgetOutline:T.qb,listFilterWidgetNoMatchesOutline:T.pb,listMatchesShadow:T.hc,treeIndentGuidesStroke:T.gc},x={shadowColor:T.hc,borderColor:T.Ab,foregroundColor:T.Bb,backgroundColor:T.zb,selectionForegroundColor:T.Eb,selectionBackgroundColor:T.Cb,selectionBorderColor:T.Db,separatorColor:T.Fb};function h(y,w,f){return R(w,le(le({},x),f),y)}},"q/I2":function(Lt,N,e){},q8qy:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return e.e(318).then(e.bind(null,"ywQP"))}})},qH2V:function(Lt,N,e){},qNAo:function(Lt,N,e){"use strict";e.d(N,"f",function(){return le}),e.d(N,"b",function(){return $}),e.d(N,"c",function(){return R}),e.d(N,"d",function(){return B}),e.d(N,"a",function(){return z}),e.d(N,"e",function(){return D});var T=e("N0LK"),le=function(){function W(x,h,y,w){this.top=x|0,this.left=h|0,this.width=y|0,this.height=w|0}return W}(),$=function(){function W(x,h){this.tabSize=x,this.data=h}return W}(),R=function(){function W(x,h,y,w,f,v){this.content=x,this.continuesWithWrappedLine=h,this.minColumn=y,this.maxColumn=w,this.startVisibleColumn=f,this.tokens=v}return W}(),B=function(){function W(x,h,y,w,f,v,C,g,u,s){this.minColumn=x,this.maxColumn=h,this.content=y,this.continuesWithWrappedLine=w,this.isBasicASCII=W.isBasicASCII(y,v),this.containsRTL=W.containsRTL(y,this.isBasicASCII,f),this.tokens=C,this.inlineDecorations=g,this.tabSize=u,this.startVisibleColumn=s}return W.isBasicASCII=function(x,h){return h?T.v(x):!0},W.containsRTL=function(x,h,y){return!h&&y?T.i(x):!1},W}(),z=function(){function W(x,h,y){this.range=x,this.inlineClassName=h,this.type=y}return W}(),D=function(){function W(x,h){this.range=x,this.options=h}return W}()},qj0h:function(Lt,N,e){"use strict";e.d(N,"c",function(){return le}),e.d(N,"d",function(){return $}),e.d(N,"b",function(){return B}),e.d(N,"g",function(){return D}),e.d(N,"a",function(){return W}),e.d(N,"e",function(){return x}),e.d(N,"f",function(){return h});var T=e("746U");function le(y){if(!y||typeof y!="object")return y;if(y instanceof RegExp)return y;var w=Array.isArray(y)?[]:{};return Object.keys(y).forEach(function(f){y[f]&&typeof y[f]=="object"?w[f]=le(y[f]):w[f]=y[f]}),w}function $(y){if(!y||typeof y!="object")return y;for(var w=[y];w.length>0;){var f=w.shift();Object.freeze(f);for(var v in f)if(R.call(f,v)){var C=f[v];typeof C=="object"&&!Object.isFrozen(C)&&w.push(C)}}return y}var R=Object.prototype.hasOwnProperty;function B(y,w){return z(y,w,new Set)}function z(y,w,f){if(Object(T.l)(y))return y;var v=w(y);if(typeof v!="undefined")return v;if(Object(T.d)(y)){for(var C=[],g=0,u=y;g<u.length;g++){var s=u[g];C.push(z(s,w,f))}return C}if(Object(T.i)(y)){if(f.has(y))throw new Error("Cannot clone recursive data-structure");f.add(y);var l={};for(var c in y)R.call(y,c)&&(l[c]=z(y[c],w,f));return f.delete(y),l}return y}function D(y,w,f){return f===void 0&&(f=!0),Object(T.i)(y)?(Object(T.i)(w)&&Object.keys(w).forEach(function(v){v in y?f&&(Object(T.i)(y[v])&&Object(T.i)(w[v])?D(y[v],w[v],f):y[v]=w[v]):y[v]=w[v]}),y):w}function W(y){for(var w=[],f=1;f<arguments.length;f++)w[f-1]=arguments[f];return w.forEach(function(v){return Object.keys(v).forEach(function(C){return y[C]=v[C]})}),y}function x(y,w){if(y===w)return!0;if(y==null||w===null||w===void 0)return!1;if(typeof y!==typeof w)return!1;if(typeof y!="object")return!1;if(Array.isArray(y)!==Array.isArray(w))return!1;var f,v;if(Array.isArray(y)){if(y.length!==w.length)return!1;for(f=0;f<y.length;f++)if(!x(y[f],w[f]))return!1}else{var C=[];for(v in y)C.push(v);C.sort();var g=[];for(v in w)g.push(v);if(g.sort(),!x(C,g))return!1;for(f=0;f<C.length;f++)if(!x(y[C[f]],w[C[f]]))return!1}return!0}function h(y,w,f){var v=w(y);return typeof v=="undefined"?f:v}},r0BQ:function(Lt,N,e){"use strict";e.d(N,"a",function(){return T});var T=function(){function le($,R,B){R===void 0&&(R=[]),B===void 0&&(B=!1),this.ctor=$,this.staticArguments=R,this.supportsDelayedInstantiation=B}return le}()},rugR:function(Lt,N,e){"use strict";e.r(N),e.d(N,"ModesHoverController",function(){return pt});var T=e("uAX5"),le=e("3/fG"),$=e("/kV6"),R=e("pmY6"),B=e("sswD"),z=e("aokT"),D=e("wQH0"),W=e("WBhO"),x=e("EffR"),h=e("JQT/"),y=e("zrhQ"),w=e("eLzo"),f=e("cGHE"),v=e("tX9W"),C=e("twdY"),g=e("ZIMw"),u=e("kqbb"),s=e("MI8n"),l=function(){function it(et,ut,Ct){this.presentationIndex=Ct,this._onColorFlushed=new s.a,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new s.a,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new s.a,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=et,this._color=et,this._colorPresentations=ut}return Object.defineProperty(it.prototype,"color",{get:function(){return this._color},set:function(et){if(this._color.equals(et))return;this._color=et,this._onDidChangeColor.fire(et)},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"colorPresentations",{get:function(){return this._colorPresentations},set:function(et){this._colorPresentations=et,this.presentationIndex>et.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),it.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},it.prototype.guessColorPresentation=function(et,ut){for(var Ct=0;Ct<this.colorPresentations.length;Ct++)if(ut===this.colorPresentations[Ct].label){this.presentationIndex=Ct,this._onDidChangePresentation.fire(this.presentation);break}},it.prototype.flushColor=function(){this._onColorFlushed.fire(this._color)},it}(),c=e("EPS+"),p=e("D3Dy"),_=e("AKMP"),L=e("G300"),I=e("MD5Z"),P=e("t9D7"),A=function(){var it=function(et,ut){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,ht){Ct.__proto__=ht}||function(Ct,ht){for(var Et in ht)ht.hasOwnProperty(Et)&&(Ct[Et]=ht[Et])},it(et,ut)};return function(et,ut){it(et,ut);function Ct(){this.constructor=et}et.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),Q=x.a,K=function(it){A(et,it);function et(ut,Ct,ht){var Et=it.call(this)||this;Et.model=Ct,Et.domNode=Q(".colorpicker-header"),x.q(ut,Et.domNode),Et.pickedColorNode=x.q(Et.domNode,Q(".picked-color"));var Yt=x.q(Et.domNode,Q(".original-color"));return Yt.style.backgroundColor=y.a.Format.CSS.format(Et.model.originalColor)||"",Et.backgroundColor=ht.getTheme().getColor(I.A)||y.a.white,Et._register(Object(P.e)(function(Nt,bt){Et.backgroundColor=Nt.getColor(I.A)||y.a.white})),Et._register(x.j(Et.pickedColorNode,x.d.CLICK,function(){return Et.model.selectNextColorPresentation()})),Et._register(x.j(Yt,x.d.CLICK,function(){Et.model.color=Et.model.originalColor,Et.model.flushColor()})),Et._register(Ct.onDidChangeColor(Et.onDidChangeColor,Et)),Et._register(Ct.onDidChangePresentation(Et.onDidChangePresentation,Et)),Et.pickedColorNode.style.backgroundColor=y.a.Format.CSS.format(Ct.color)||"",x.Y(Et.pickedColorNode,"light",Ct.color.rgba.a<.5?Et.backgroundColor.isLighter():Ct.color.isLighter()),Et}return et.prototype.onDidChangeColor=function(ut){this.pickedColorNode.style.backgroundColor=y.a.Format.CSS.format(ut)||"",x.Y(this.pickedColorNode,"light",ut.rgba.a<.5?this.backgroundColor.isLighter():ut.isLighter()),this.onDidChangePresentation()},et.prototype.onDidChangePresentation=function(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""},et}(R.a),H=function(it){A(et,it);function et(ut,Ct,ht){var Et=it.call(this)||this;return Et.model=Ct,Et.pixelRatio=ht,Et.domNode=Q(".colorpicker-body"),x.q(ut,Et.domNode),Et.saturationBox=new V(Et.domNode,Et.model,Et.pixelRatio),Et._register(Et.saturationBox),Et._register(Et.saturationBox.onDidChange(Et.onDidSaturationValueChange,Et)),Et._register(Et.saturationBox.onColorFlushed(Et.flushColor,Et)),Et.opacityStrip=new _e(Et.domNode,Et.model),Et._register(Et.opacityStrip),Et._register(Et.opacityStrip.onDidChange(Et.onDidOpacityChange,Et)),Et._register(Et.opacityStrip.onColorFlushed(Et.flushColor,Et)),Et.hueStrip=new Se(Et.domNode,Et.model),Et._register(Et.hueStrip),Et._register(Et.hueStrip.onDidChange(Et.onDidHueChange,Et)),Et._register(Et.hueStrip.onColorFlushed(Et.flushColor,Et)),Et}return et.prototype.flushColor=function(){this.model.flushColor()},et.prototype.onDidSaturationValueChange=function(ut){var Ct=ut.s,ht=ut.v,Et=this.model.color.hsva;this.model.color=new y.a(new y.b(Et.h,Ct,ht,Et.a))},et.prototype.onDidOpacityChange=function(ut){var Ct=this.model.color.hsva;this.model.color=new y.a(new y.b(Ct.h,Ct.s,Ct.v,ut))},et.prototype.onDidHueChange=function(ut){var Ct=this.model.color.hsva,ht=(1-ut)*360;this.model.color=new y.a(new y.b(ht===360?0:ht,Ct.s,Ct.v,Ct.a))},et.prototype.layout=function(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()},et}(R.a),V=function(it){A(et,it);function et(ut,Ct,ht){var Et=it.call(this)||this;return Et.model=Ct,Et.pixelRatio=ht,Et._onDidChange=new s.a,Et.onDidChange=Et._onDidChange.event,Et._onColorFlushed=new s.a,Et.onColorFlushed=Et._onColorFlushed.event,Et.domNode=Q(".saturation-wrap"),x.q(ut,Et.domNode),Et.canvas=document.createElement("canvas"),Et.canvas.className="saturation-box",x.q(Et.domNode,Et.canvas),Et.selection=Q(".saturation-selection"),x.q(Et.domNode,Et.selection),Et.layout(),Et._register(x.h(Et.domNode,function(Yt){return Et.onMouseDown(Yt)})),Et._register(Et.model.onDidChangeColor(Et.onDidChangeColor,Et)),Et.monitor=null,Et}return et.prototype.onMouseDown=function(ut){var Ct=this;this.monitor=this._register(new _.a);var ht=x.C(this.domNode);ut.target!==this.selection&&this.onDidChangePosition(ut.offsetX,ut.offsetY),this.monitor.startMonitoring(ut.target,ut.buttons,_.b,function(Yt){return Ct.onDidChangePosition(Yt.posx-ht.left,Yt.posy-ht.top)},function(){return null});var Et=x.i(document,function(){Ct._onColorFlushed.fire(),Et.dispose(),Ct.monitor&&(Ct.monitor.stopMonitoring(!0),Ct.monitor=null)},!0)},et.prototype.onDidChangePosition=function(ut,Ct){var ht=Math.max(0,Math.min(1,ut/this.width)),Et=Math.max(0,Math.min(1,1-Ct/this.height));this.paintSelection(ht,Et),this._onDidChange.fire({s:ht,v:Et})},et.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 ut=this.model.color.hsva;this.paintSelection(ut.s,ut.v)},et.prototype.paint=function(){var ut=this.model.color.hsva,Ct=new y.a(new y.b(ut.h,1,1,1)),ht=this.canvas.getContext("2d"),Et=ht.createLinearGradient(0,0,this.canvas.width,0);Et.addColorStop(0,"rgba(255, 255, 255, 1)"),Et.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),Et.addColorStop(1,"rgba(255, 255, 255, 0)");var Yt=ht.createLinearGradient(0,0,0,this.canvas.height);Yt.addColorStop(0,"rgba(0, 0, 0, 0)"),Yt.addColorStop(1,"rgba(0, 0, 0, 1)"),ht.rect(0,0,this.canvas.width,this.canvas.height),ht.fillStyle=y.a.Format.CSS.format(Ct),ht.fill(),ht.fillStyle=Et,ht.fill(),ht.fillStyle=Yt,ht.fill()},et.prototype.paintSelection=function(ut,Ct){this.selection.style.left=ut*this.width+"px",this.selection.style.top=this.height-Ct*this.height+"px"},et.prototype.onDidChangeColor=function(){if(this.monitor&&this.monitor.isMonitoring())return;this.paint()},et}(R.a),de=function(it){A(et,it);function et(ut,Ct){var ht=it.call(this)||this;return ht.model=Ct,ht._onDidChange=new s.a,ht.onDidChange=ht._onDidChange.event,ht._onColorFlushed=new s.a,ht.onColorFlushed=ht._onColorFlushed.event,ht.domNode=x.q(ut,Q(".strip")),ht.overlay=x.q(ht.domNode,Q(".overlay")),ht.slider=x.q(ht.domNode,Q(".slider")),ht.slider.style.top="0px",ht._register(x.h(ht.domNode,function(Et){return ht.onMouseDown(Et)})),ht.layout(),ht}return et.prototype.layout=function(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;var ut=this.getValue(this.model.color);this.updateSliderPosition(ut)},et.prototype.onMouseDown=function(ut){var Ct=this,ht=this._register(new _.a),Et=x.C(this.domNode);x.f(this.domNode,"grabbing"),ut.target!==this.slider&&this.onDidChangeTop(ut.offsetY),ht.startMonitoring(ut.target,ut.buttons,_.b,function(Nt){return Ct.onDidChangeTop(Nt.posy-Et.top)},function(){return null});var Yt=x.i(document,function(){Ct._onColorFlushed.fire(),Yt.dispose(),ht.stopMonitoring(!0),x.P(Ct.domNode,"grabbing")},!0)},et.prototype.onDidChangeTop=function(ut){var Ct=Math.max(0,Math.min(1,1-ut/this.height));this.updateSliderPosition(Ct),this._onDidChange.fire(Ct)},et.prototype.updateSliderPosition=function(ut){this.slider.style.top=(1-ut)*this.height+"px"},et}(R.a),_e=function(it){A(et,it);function et(ut,Ct){var ht=it.call(this,ut,Ct)||this;return x.f(ht.domNode,"opacity-strip"),ht._register(Ct.onDidChangeColor(ht.onDidChangeColor,ht)),ht.onDidChangeColor(ht.model.color),ht}return et.prototype.onDidChangeColor=function(ut){var Ct=ut.rgba,ht=Ct.r,Et=Ct.g,Yt=Ct.b,Nt=new y.a(new y.c(ht,Et,Yt,1)),bt=new y.a(new y.c(ht,Et,Yt,0));this.overlay.style.background="linear-gradient(to bottom, "+Nt+" 0%, "+bt+" 100%)"},et.prototype.getValue=function(ut){return ut.hsva.a},et}(de),Se=function(it){A(et,it);function et(ut,Ct){var ht=it.call(this,ut,Ct)||this;return x.f(ht.domNode,"hue-strip"),ht}return et.prototype.getValue=function(ut){return 1-ut.hsva.h/360},et}(de),Ie=function(it){A(et,it);function et(ut,Ct,ht,Et){var Yt=it.call(this)||this;Yt.model=Ct,Yt.pixelRatio=ht,Yt._register(Object(p.o)(function(){return Yt.layout()}));var Nt=Q(".colorpicker-widget");ut.appendChild(Nt);var bt=new K(Nt,Yt.model,Et);return Yt.body=new H(Nt,Yt.model,Yt.pixelRatio),Yt._register(bt),Yt._register(Yt.body),Yt}return et.prototype.layout=function(){this.body.layout()},et}(L.a),Pe=e("6OMU"),Ve=e("/cxE");function ke(it,et,ut){var Ct=C.p.ordered(it),ht=Ct.map(function(Et){return Promise.resolve(Et.provideHover(it,et,ut)).then(function(Yt){return Yt&&se(Yt)?Yt:void 0},function(Yt){Object(Ve.f)(Yt);return})});return Promise.all(ht).then(Pe.d)}Object(B.k)("_executeHoverProvider",function(it,et){return ke(it,et,h.a.None)});function se(it){var et=typeof it.range!="undefined",ut=typeof it.contents!="undefined"&&it.contents&&it.contents.length>0;return et&&ut}var ee=e("X+cX"),ie=function(){function it(et,ut,Ct,ht,Et){var Yt=this;this._computer=et,this._state=0,this._hoverTime=Et,this._firstWaitScheduler=new ee.d(function(){return Yt._triggerAsyncComputation()},0),this._secondWaitScheduler=new ee.d(function(){return Yt._triggerSyncComputation()},0),this._loadingMessageScheduler=new ee.d(function(){return Yt._showLoadingMessage()},0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=ut,this._errorCallback=Ct,this._progressCallback=ht}return it.prototype.setHoverTime=function(et){this._hoverTime=et},it.prototype._firstWaitTime=function(){return this._hoverTime/2},it.prototype._secondWaitTime=function(){return this._hoverTime/2},it.prototype._loadingMessageTime=function(){return 3*this._hoverTime},it.prototype._triggerAsyncComputation=function(){var et=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(ee.f)(function(ut){return et._computer.computeAsync(ut)}),this._asyncComputationPromise.then(function(ut){et._asyncComputationPromiseDone=!0,et._withAsyncResult(ut)},function(ut){return et._onError(ut)})):this._asyncComputationPromiseDone=!0},it.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()))},it.prototype._showLoadingMessage=function(){this._state===3&&this._onProgress(this._computer.getResultWithLoadingMessage())},it.prototype._withAsyncResult=function(et){et&&this._computer.onResult(et,!1),this._state===3&&(this._state=0,this._onComplete(this._computer.getResult()))},it.prototype._onComplete=function(et){this._completeCallback&&this._completeCallback(et)},it.prototype._onError=function(et){this._errorCallback?this._errorCallback(et):Object(Ve.e)(et)},it.prototype._onProgress=function(et){this._progressCallback&&this._progressCallback(et)},it.prototype.start=function(et){if(et===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}},it.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},it}(),q=e("GJhM"),ce=function(){var it=function(et,ut){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,ht){Ct.__proto__=ht}||function(Ct,ht){for(var Et in ht)ht.hasOwnProperty(Et)&&(Ct[Et]=ht[Et])},it(et,ut)};return function(et,ut){it(et,ut);function Ct(){this.constructor=et}et.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),Z=function(){for(var it=0,et=0,ut=arguments.length;et<ut;et++)it+=arguments[et].length;for(var Ct=Array(it),ht=0,et=0;et<ut;et++)for(var Et=arguments[et],Yt=0,Nt=Et.length;Yt<Nt;Yt++,ht++)Ct[ht]=Et[Yt];return Ct},ye=function(it){ce(et,it);function et(ut,Ct){var ht=it.call(this)||this;return ht.allowEditorOverflow=!0,ht._id=ut,ht._editor=Ct,ht._isVisible=!1,ht._stoleFocus=!1,ht._containerDomNode=document.createElement("div"),ht._containerDomNode.className="monaco-editor-hover hidden",ht._containerDomNode.tabIndex=0,ht._domNode=document.createElement("div"),ht._domNode.className="monaco-editor-hover-content",ht.scrollbar=new q.a(ht._domNode,{}),ht._register(ht.scrollbar),ht._containerDomNode.appendChild(ht.scrollbar.getDomNode()),ht.onkeydown(ht._containerDomNode,function(Et){Et.equals(9)&&ht.hide()}),ht._register(ht._editor.onDidChangeConfiguration(function(Et){Et.hasChanged(34)&&ht.updateFont()})),ht._editor.onDidLayoutChange(function(Et){return ht.layout()}),ht.layout(),ht._editor.addContentWidget(ht),ht._showAtPosition=null,ht._showAtRange=null,ht._stoleFocus=!1,ht}return Object.defineProperty(et.prototype,"isVisible",{get:function(){return this._isVisible},set:function(ut){this._isVisible=ut,Object(x.Y)(this._containerDomNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),et.prototype.getId=function(){return this._id},et.prototype.getDomNode=function(){return this._containerDomNode},et.prototype.showAt=function(ut,Ct,ht){this._showAtPosition=ut,this._showAtRange=Ct,this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=ht,ht&&this._containerDomNode.focus()},et.prototype.hide=function(){if(!this.isVisible)return;this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus()},et.prototype.getPosition=function(){return this.isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null},et.prototype.dispose=function(){this._editor.removeContentWidget(this),it.prototype.dispose.call(this)},et.prototype.updateFont=function(){var ut=this,Ct=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));Ct.forEach(function(ht){return ut._editor.applyFontInfo(ht)})},et.prototype.updateContents=function(ut){this._domNode.textContent="",this._domNode.appendChild(ut),this.updateFont(),this._editor.layoutContentWidget(this),this.onContentsChange()},et.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},et.prototype.layout=function(){var ut=Math.max(this._editor.getLayoutInfo().height/4,250),Ct=this._editor.getOption(34),ht=Ct.fontSize,Et=Ct.lineHeight;this._domNode.style.fontSize=ht+"px",this._domNode.style.lineHeight=Et+"px",this._domNode.style.maxHeight=ut+"px",this._domNode.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px"},et}(L.a),je=function(it){ce(et,it);function et(ut,Ct){var ht=it.call(this)||this;return ht._id=ut,ht._editor=Ct,ht._isVisible=!1,ht._domNode=document.createElement("div"),ht._domNode.className="monaco-editor-hover hidden",ht._domNode.setAttribute("aria-hidden","true"),ht._domNode.setAttribute("role","presentation"),ht._showAtLineNumber=-1,ht._register(ht._editor.onDidChangeConfiguration(function(Et){Et.hasChanged(34)&&ht.updateFont()})),ht._editor.addOverlayWidget(ht),ht}return Object.defineProperty(et.prototype,"isVisible",{get:function(){return this._isVisible},set:function(ut){this._isVisible=ut,Object(x.Y)(this._domNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),et.prototype.getId=function(){return this._id},et.prototype.getDomNode=function(){return this._domNode},et.prototype.showAt=function(ut){this._showAtLineNumber=ut,this.isVisible||(this.isVisible=!0);var Ct=this._editor.getLayoutInfo(),ht=this._editor.getTopForLineNumber(this._showAtLineNumber),Et=this._editor.getScrollTop(),Yt=this._editor.getOption(49),Nt=this._domNode.clientHeight,bt=ht-Et-(Nt-Yt)/2;this._domNode.style.left=Ct.glyphMarginLeft+Ct.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(bt),0)+"px"},et.prototype.hide=function(){if(!this.isVisible)return;this.isVisible=!1},et.prototype.getPosition=function(){return null},et.prototype.dispose=function(){this._editor.removeOverlayWidget(this),it.prototype.dispose.call(this)},et.prototype.updateFont=function(){var ut=this,Ct=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),ht=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));Z(Ct,ht).forEach(function(Et){return ut._editor.applyFontInfo(Et)})},et.prototype.updateContents=function(ut){this._domNode.textContent="",this._domNode.appendChild(ut),this.updateFont()},et}(L.a),Ge=e("3qCu"),ue=e("tADe"),ve=e("gslv"),Ee=e("W9cx"),xe=e("lY/7"),Ce=e("hJVp"),he=e("C1Q+"),J=e("nlbu"),b=function(){var it=function(et,ut){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,ht){Ct.__proto__=ht}||function(Ct,ht){for(var Et in ht)ht.hasOwnProperty(Et)&&(Ct[Et]=ht[Et])},it(et,ut)};return function(et,ut){it(et,ut);function Ct(){this.constructor=et}et.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),F=function(){for(var it=0,et=0,ut=arguments.length;et<ut;et++)it+=arguments[et].length;for(var Ct=Array(it),ht=0,et=0;et<ut;et++)for(var Et=arguments[et],Yt=0,Nt=Et.length;Yt<Nt;Yt++,ht++)Ct[ht]=Et[Yt];return Ct},re=x.a,ne=function(){function it(et,ut,Ct){this.range=et,this.color=ut,this.provider=Ct}return it}(),fe=function(){function it(et,ut){this.range=et,this.marker=ut}return it}(),Oe=function(){function it(et,ut){this._markerDecorationsService=ut,this._editor=et,this._result=[]}return it.prototype.setRange=function(et){this._range=et,this._result=[]},it.prototype.clearResult=function(){this._result=[]},it.prototype.computeAsync=function(et){if(!this._editor.hasModel()||!this._range)return Promise.resolve([]);var ut=this._editor.getModel();return C.p.has(ut)?ke(ut,new f.a(this._range.startLineNumber,this._range.startColumn),et):Promise.resolve([])},it.prototype.computeSync=function(){var et=this;if(!this._editor.hasModel()||!this._range)return[];var ut=this._editor.getModel(),Ct=this._range.startLineNumber;if(Ct>this._editor.getModel().getLineCount())return[];var ht=u.ColorDetector.get(this._editor),Et=ut.getLineMaxColumn(Ct),Yt=this._editor.getLineDecorations(Ct),Nt=!1,bt=this._range,$e=Yt.map(function(Ye){var ze=Ye.range.startLineNumber===Ct?Ye.range.startColumn:1,Ke=Ye.range.endLineNumber===Ct?Ye.range.endColumn:Et;if(ze>bt.startColumn||bt.endColumn>Ke)return null;var ge=new z.a(bt.startLineNumber,ze,bt.startLineNumber,Ke),G=et._markerDecorationsService.getMarker(ut,Ye);if(G)return new fe(ge,G);var oe=ht.getColorData(Ye.range.getStartPosition());if(!Nt&&oe){Nt=!0;var Y=oe.colorInfo,ae=Y.color,Fe=Y.range;return new ne(Fe,ae,oe.provider)}else{if(Object(w.b)(Ye.options.hoverMessage))return null;var dt=Ye.options.hoverMessage?Object(Pe.b)(Ye.options.hoverMessage):[];return{contents:dt,range:ge}}});return Object(Pe.d)($e)},it.prototype.onResult=function(et,ut){ut?this._result=et.concat(this._result.sort(function(Ct,ht){return Ct instanceof ne?-1:ht instanceof ne?1:0})):this._result=this._result.concat(et)},it.prototype.getResult=function(){return this._result.slice(0)},it.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},it.prototype._getLoadingMessage=function(){return{range:this._range,contents:[new w.a().appendText(le.a("modesContentHover.loading","Loading..."))]}},it}(),Me={type:2,filter:{include:J.b.QuickFix}},Ue=function(it){b(et,it);function et(ut,Ct,ht,Et,Yt,Nt){Nt===void 0&&(Nt=Ee.b);var bt=it.call(this,et.ID,ut)||this;return bt._themeService=ht,bt._keybindingService=Et,bt._modeService=Yt,bt._openerService=Nt,bt.renderDisposable=bt._register(new R.d),bt._messages=[],bt._lastRange=null,bt._computer=new Oe(bt._editor,Ct),bt._highlightDecorations=[],bt._isChangingDecorations=!1,bt._shouldFocus=!1,bt._colorPicker=null,bt._hoverOperation=new ie(bt._computer,function($e){return bt._withResult($e,!0)},null,function($e){return bt._withResult($e,!1)},bt._editor.getOption(44).delay),bt._register(x.o(bt.getDomNode(),x.d.FOCUS,function(){bt._colorPicker&&x.f(bt.getDomNode(),"colorpicker-hover")})),bt._register(x.o(bt.getDomNode(),x.d.BLUR,function(){x.P(bt.getDomNode(),"colorpicker-hover")})),bt._register(ut.onDidChangeConfiguration(function($e){bt._hoverOperation.setHoverTime(bt._editor.getOption(44).delay)})),bt._register(C.B.onDidChange(function($e){bt.isVisible&&bt._lastRange&&bt._messages.length>0&&(bt._domNode.textContent="",bt._renderMessages(bt._lastRange,bt._messages))})),bt}return et.prototype.dispose=function(){this._hoverOperation.cancel(),it.prototype.dispose.call(this)},et.prototype.onModelDecorationsChanged=function(){if(this._isChangingDecorations)return;this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},et.prototype.startShowingAt=function(ut,Ct,ht){if(this._lastRange&&this._lastRange.equalsRange(ut))return;if(this._hoverOperation.cancel(),this.isVisible)if(!this._showAtPosition||this._showAtPosition.lineNumber!==ut.startLineNumber)this.hide();else{for(var Et=[],Yt=0,Nt=this._messages.length;Yt<Nt;Yt++){var bt=this._messages[Yt],$e=bt.range;$e&&$e.startColumn<=ut.startColumn&&$e.endColumn>=ut.endColumn&&Et.push(bt)}if(Et.length>0){if(Je(Et,this._messages))return;this._renderMessages(ut,Et)}else this.hide()}this._lastRange=ut,this._computer.setRange(ut),this._shouldFocus=ht,this._hoverOperation.start(Ct)},et.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),it.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},et.prototype.isColorPickerVisible=function(){return!!this._colorPicker},et.prototype._withResult=function(ut,Ct){this._messages=ut,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):Ct&&this.hide()},et.prototype._renderMessages=function(ut,Ct){var ht=this;this.renderDisposable.dispose(),this._colorPicker=null;var Et=1073741824,Yt=Ct[0].range?z.a.lift(Ct[0].range):null,Nt=document.createDocumentFragment(),bt=!0,$e=!1,Ye=new R.b,ze=[];if(Ct.forEach(function(ge){if(!ge.range)return;if(Et=Math.min(Et,ge.range.startColumn),Yt=Yt?z.a.plusRange(Yt,ge.range):z.a.lift(ge.range),ge instanceof ne){$e=!0;var G=ge.color,oe=G.red,Y=G.green,ae=G.blue,Fe=G.alpha,dt=new y.c(Math.round(oe*255),Math.round(Y*255),Math.round(ae*255),Fe),Ot=new y.a(dt);if(!ht._editor.hasModel())return;var Qt=ht._editor.getModel(),to=new z.a(ge.range.startLineNumber,ge.range.startColumn,ge.range.endLineNumber,ge.range.endColumn),fo={range:ge.range,color:ge.color},ho=new l(Ot,[],0),_o=new Ie(Nt,ho,ht._editor.getOption(105),ht._themeService);Object(g.a)(Qt,fo,ge.provider,h.a.None).then(function(Do){if(ho.colorPresentations=Do||[],!ht._editor.hasModel())return;var Ro=ht._editor.getModel().getValueInRange(ge.range);ho.guessColorPresentation(Ot,Ro);var jo=function(){var Fo,Io;ho.presentation.textEdit?(Fo=[ho.presentation.textEdit],Io=new z.a(ho.presentation.textEdit.range.startLineNumber,ho.presentation.textEdit.range.startColumn,ho.presentation.textEdit.range.endLineNumber,ho.presentation.textEdit.range.endColumn),Io=Io.setEndPosition(Io.endLineNumber,Io.startColumn+ho.presentation.textEdit.text.length)):(Fo=[{identifier:null,range:to,text:ho.presentation.label,forceMoveMarkers:!1}],Io=to.setEndPosition(to.endLineNumber,to.startColumn+ho.presentation.label.length)),ht._editor.pushUndoStop(),ht._editor.executeEdits("colorpicker",Fo),ho.presentation.additionalTextEdits&&(Fo=F(ho.presentation.additionalTextEdits),ht._editor.executeEdits("colorpicker",Fo),ht.hide()),ht._editor.pushUndoStop(),to=Io},Eo=function(Fo){return Object(g.a)(Qt,{range:to,color:{red:Fo.rgba.r/255,green:Fo.rgba.g/255,blue:Fo.rgba.b/255,alpha:Fo.rgba.a}},ge.provider,h.a.None).then(function(Io){ho.colorPresentations=Io||[]})},Wo=ho.onColorFlushed(function(Fo){Eo(Fo).then(jo)}),Ho=ho.onDidChangeColor(Eo);ht._colorPicker=_o,ht.showAt(to.getStartPosition(),to,ht._shouldFocus),ht.updateContents(Nt),ht._colorPicker.layout(),ht.renderDisposable.value=Object(R.e)(Wo,Ho,_o,Ye)})}else ge instanceof fe?(ze.push(ge),bt=!1):ge.contents.filter(function(Do){return!Object(w.b)(Do)}).forEach(function(Do){var Ro=re("div.hover-row.markdown-hover"),jo=x.q(Ro,re("div.hover-contents")),Eo=Ye.add(new Ge.a(ht._editor,ht._modeService,ht._openerService));Ye.add(Eo.onDidRenderCodeBlock(function(){jo.className="hover-contents code-hover-contents",ht.onContentsChange()}));var Wo=Ye.add(Eo.render(Do));jo.appendChild(Wo.element),Nt.appendChild(Ro),bt=!1})}),ze.length){ze.forEach(function(ge){return Nt.appendChild(ht.renderMarkerHover(ge))});var Ke=ze.length===1?ze[0]:ze.sort(function(ge,G){return ue.c.compare(ge.marker.severity,G.marker.severity)})[0];Nt.appendChild(this.renderMarkerStatusbar(Ke))}!$e&&!bt&&(this.showAt(new f.a(ut.startLineNumber,Et),Yt,this._shouldFocus),this.updateContents(Nt)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,Yt?[{range:Yt,options:et._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},et.prototype.renderMarkerHover=function(ut){var Ct=this,ht=re("div.hover-row"),Et=x.q(ht,re("div.marker.hover-contents")),Yt=ut.marker,Nt=Yt.source,bt=Yt.message,$e=Yt.code,Ye=Yt.relatedInformation;this._editor.applyFontInfo(Et);var ze=x.q(Et,re("span"));if(ze.style.whiteSpace="pre-wrap",ze.innerText=bt,Nt||$e){if(typeof $e=="string"){var Ke=x.q(Et,re("span"));Ke.style.opacity="0.6",Ke.style.paddingLeft="6px",Ke.innerText=Nt&&$e?Nt+"("+$e+")":Nt||"("+$e+")"}else if($e){var ge=re("span");if(Nt){var G=x.q(ge,re("span"));G.innerText=Nt}this._codeLink=x.q(ge,re("a.code-link")),this._codeLink.setAttribute("href",$e.link.toString()),this._codeLink.onclick=function(Do){Ct._openerService.open($e.link),Do.preventDefault(),Do.stopPropagation()};var oe=x.q(this._codeLink,re("span"));oe.innerText=$e.value;var Ke=x.q(Et,ge);Ke.style.opacity="0.6",Ke.style.paddingLeft="6px"}}if(Object(Pe.q)(Ye))for(var Y=function(_o,Do,Ro,jo){var Eo=x.q(Et,re("div"));Eo.style.marginTop="8px";var Wo=x.q(Eo,re("a"));Wo.innerText=Object(ve.b)(Do)+"("+Ro+", "+jo+"): ",Wo.style.cursor="pointer",Wo.onclick=function(Fo){Fo.stopPropagation(),Fo.preventDefault(),Ct._openerService&&Ct._openerService.open(Do.with({fragment:Ro+","+jo}),{fromUserGesture:!0}).catch(Ve.e)};var Ho=x.q(Eo,re("span"));Ho.innerText=_o,ae._editor.applyFontInfo(Ho)},ae=this,Fe=0,dt=Ye;Fe<dt.length;Fe++){var Ot=dt[Fe],Qt=Ot.message,to=Ot.resource,fo=Ot.startLineNumber,ho=Ot.startColumn;Y(Qt,to,fo,ho)}return ht},et.prototype.renderMarkerStatusbar=function(ut){var Ct=this,ht=re("div.hover-row.status-bar"),Et=new R.b,Yt=x.q(ht,re("div.actions"));(ut.marker.severity===ue.c.Error||ut.marker.severity===ue.c.Warning||ut.marker.severity===ue.c.Info)&&Et.add(this.renderAction(Yt,{label:le.a("peek problem","Peek Problem"),commandId:xe.NextMarkerAction.ID,run:function(){Ct.hide(),xe.MarkerController.get(Ct._editor).show(ut.marker),Ct._editor.focus()}}));var Nt=x.q(Yt,re("div"));Nt.style.opacity="0",Nt.style.transition="opacity 0.2s",setTimeout(function(){return Nt.style.opacity="1"},200),Nt.textContent=le.a("checkingForQuickFixes","Checking for quick fixes..."),Et.add(Object(R.h)(function(){return Nt.remove()}));var bt=this.getCodeActions(ut.marker);return Et.add(Object(R.h)(function(){return bt.cancel()})),bt.then(function($e){if(Nt.style.transition="",Nt.style.opacity="1",!$e.validActions.length){$e.dispose(),Nt.textContent=le.a("noQuickFixes","No quick fixes available");return}Nt.remove();var Ye=!1;Et.add(Object(R.h)(function(){Ye||$e.dispose()})),Et.add(Ct.renderAction(Yt,{label:le.a("quick fixes","Quick Fix..."),commandId:he.e.Id,run:function(ze){Ye=!0;var Ke=he.f.get(Ct._editor),ge=x.C(ze);Ke.showCodeActions(Me,$e,{x:ge.left+6,y:ge.top+ge.height+6})}}))}),this.renderDisposable.value=Et,ht},et.prototype.getCodeActions=function(ut){var Ct=this;return Object(ee.f)(function(ht){return Object(Ce.c)(Ct._editor.getModel(),new z.a(ut.startLineNumber,ut.startColumn,ut.endLineNumber,ut.endColumn),Me,ht)})},et.prototype.renderAction=function(ut,Ct){var ht=x.q(ut,re("div.action-container")),Et=x.q(ht,re("a.action"));Ct.iconClass&&x.q(Et,re("span.icon."+Ct.iconClass));var Yt=x.q(Et,re("span"));Yt.textContent=Ct.label;var Nt=this._keybindingService.lookupKeybinding(Ct.commandId);return Nt&&(Yt.title=Ct.label+" ("+Nt.getLabel()+")"),x.j(ht,x.d.CLICK,function(bt){bt.stopPropagation(),bt.preventDefault(),Ct.run(ht)})},et.ID="editor.contrib.modesContentHoverWidget",et._DECORATION_OPTIONS=v.a.register({className:"hoverHighlight"}),et}(ye);function Je(it,et){if(!it&&et||it&&!et||it.length!==et.length)return!1;for(var ut=0;ut<it.length;ut++){var Ct=it[ut],ht=et[ut];if(Ct instanceof fe&&ht instanceof fe)return ue.a.makeKey(Ct.marker)===ue.a.makeKey(ht.marker);if(Ct instanceof ne||ht instanceof ne)return!1;if(Ct instanceof fe||ht instanceof fe)return!1;if(!Object(w.c)(Ct.contents,ht.contents))return!1}return!0}Object(P.e)(function(it,et){var ut=it.getColor(I.ec);ut&&et.addRule(".monaco-editor-hover .hover-contents a.code-link span:hover { color: "+ut+"; }")});var nt=function(){var it=function(et,ut){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,ht){Ct.__proto__=ht}||function(Ct,ht){for(var Et in ht)ht.hasOwnProperty(Et)&&(Ct[Et]=ht[Et])},it(et,ut)};return function(et,ut){it(et,ut);function Ct(){this.constructor=et}et.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),vt=function(){function it(et){this._editor=et,this._lineNumber=-1,this._result=[]}return it.prototype.setLineNumber=function(et){this._lineNumber=et,this._result=[]},it.prototype.clearResult=function(){this._result=[]},it.prototype.computeSync=function(){var et=function(bt){return{value:bt}},ut=this._editor.getLineDecorations(this._lineNumber),Ct=[];if(!ut)return Ct;for(var ht=0,Et=ut;ht<Et.length;ht++){var Yt=Et[ht];if(!Yt.options.glyphMarginClassName)continue;var Nt=Yt.options.glyphMarginHoverMessage;if(!Nt||Object(w.b)(Nt))continue;Ct.push.apply(Ct,Object(Pe.b)(Nt).map(et))}return Ct},it.prototype.onResult=function(et,ut){this._result=this._result.concat(et)},it.prototype.getResult=function(){return this._result},it.prototype.getResultWithLoadingMessage=function(){return this.getResult()},it}(),Rt=function(it){nt(et,it);function et(ut,Ct,ht){ht===void 0&&(ht=Ee.b);var Et=it.call(this,et.ID,ut)||this;return Et._renderDisposeables=Et._register(new R.b),Et._messages=[],Et._lastLineNumber=-1,Et._markdownRenderer=Et._register(new Ge.a(Et._editor,Ct,ht)),Et._computer=new vt(Et._editor),Et._hoverOperation=new ie(Et._computer,function(Yt){return Et._withResult(Yt)},void 0,function(Yt){return Et._withResult(Yt)},300),Et}return et.prototype.dispose=function(){this._hoverOperation.cancel(),it.prototype.dispose.call(this)},et.prototype.onModelDecorationsChanged=function(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))},et.prototype.startShowingAt=function(ut){if(this._lastLineNumber===ut)return;this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=ut,this._computer.setLineNumber(ut),this._hoverOperation.start(0)},et.prototype.hide=function(){this._lastLineNumber=-1,this._hoverOperation.cancel(),it.prototype.hide.call(this)},et.prototype._withResult=function(ut){this._messages=ut,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},et.prototype._renderMessages=function(ut,Ct){this._renderDisposeables.clear();for(var ht=document.createDocumentFragment(),Et=0,Yt=Ct;Et<Yt.length;Et++){var Nt=Yt[Et],bt=this._markdownRenderer.render(Nt.value);this._renderDisposeables.add(bt),ht.appendChild(Object(x.a)("div.hover-row",void 0,bt.element))}this.updateContents(ht),this.showAt(ut)},et.ID="editor.contrib.modesGlyphHoverWidget",et}(je),Dt=e("79sc"),Kt=e("bexQ"),ao=e("H4T2"),lo=function(){var it=function(et,ut){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,ht){Ct.__proto__=ht}||function(Ct,ht){for(var Et in ht)ht.hasOwnProperty(Et)&&(Ct[Et]=ht[Et])},it(et,ut)};return function(et,ut){it(et,ut);function Ct(){this.constructor=et}et.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),so=function(it,et,ut,Ct){var ht=arguments.length,Et=ht<3?et:Ct===null?Ct=Object.getOwnPropertyDescriptor(et,ut):Ct,Yt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Et=Reflect.decorate(it,et,ut,Ct);else for(var Nt=it.length-1;Nt>=0;Nt--)(Yt=it[Nt])&&(Et=(ht<3?Yt(Et):ht>3?Yt(et,ut,Et):Yt(et,ut))||Et);return ht>3&&Et&&Object.defineProperty(et,ut,Et),Et},jt=function(it,et){return function(ut,Ct){et(ut,Ct,it)}},pt=function(){function it(et,ut,Ct,ht,Et,Yt){var Nt=this;this._editor=et,this._openerService=ut,this._modeService=Ct,this._markerDecorationsService=ht,this._keybindingService=Et,this._themeService=Yt,this._toUnhook=new R.b,this._contentWidget=new R.d,this._glyphWidget=new R.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(function(bt){bt.hasChanged(44)&&(Nt._hideWidgets(),Nt._unhookEvents(),Nt._hookEvents())})}return Object.defineProperty(it.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(it.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),it.get=function(et){return et.getContribution(it.ID)},it.prototype._hookEvents=function(){var et=this,ut=function(){return et._hideWidgets()},Ct=this._editor.getOption(44);this._isHoverEnabled=Ct.enabled,this._isHoverSticky=Ct.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(function(ht){return et._onEditorMouseDown(ht)})),this._toUnhook.add(this._editor.onMouseUp(function(ht){return et._onEditorMouseUp(ht)})),this._toUnhook.add(this._editor.onMouseMove(function(ht){return et._onEditorMouseMove(ht)})),this._toUnhook.add(this._editor.onKeyDown(function(ht){return et._onKeyDown(ht)})),this._toUnhook.add(this._editor.onDidChangeModelDecorations(function(){return et._onModelDecorationsChanged()}))):this._toUnhook.add(this._editor.onMouseMove(ut)),this._toUnhook.add(this._editor.onMouseLeave(ut)),this._toUnhook.add(this._editor.onDidChangeModel(ut)),this._toUnhook.add(this._editor.onDidScrollChange(function(ht){return et._onEditorScrollChanged(ht)}))},it.prototype._unhookEvents=function(){this._toUnhook.clear()},it.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},it.prototype._onEditorScrollChanged=function(et){(et.scrollTopChanged||et.scrollLeftChanged)&&this._hideWidgets()},it.prototype._onEditorMouseDown=function(et){this._isMouseDown=!0;var ut=et.target.type;if(ut===9&&et.target.detail===Ue.ID){this._hoverClicked=!0;return}if(ut===12&&et.target.detail===Rt.ID)return;ut!==12&&et.target.detail!==Rt.ID&&(this._hoverClicked=!1),this._hideWidgets()},it.prototype._onEditorMouseUp=function(et){this._isMouseDown=!1},it.prototype._onEditorMouseMove=function(et){var ut=et.target.type;if(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())return;if(this._isHoverSticky&&ut===9&&et.target.detail===Ue.ID)return;if(this._isHoverSticky&&ut===12&&et.target.detail===Rt.ID)return;if(ut===7){var Ct=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,ht=et.target.detail;ht&&!ht.isAfterLines&&typeof ht.horizontalDistanceToText=="number"&&ht.horizontalDistanceToText<Ct&&(ut=6)}ut===6?(this.glyphWidget.hide(),this._isHoverEnabled&&et.target.range&&this.contentWidget.startShowingAt(et.target.range,0,!1)):ut===2?(this.contentWidget.hide(),this._isHoverEnabled&&et.target.position&&this.glyphWidget.startShowingAt(et.target.position.lineNumber)):this._hideWidgets()},it.prototype._onKeyDown=function(et){et.keyCode!==5&&et.keyCode!==6&&et.keyCode!==57&&et.keyCode!==4&&this._hideWidgets()},it.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()},it.prototype._createHoverWidgets=function(){this._contentWidget.value=new Ue(this._editor,this._markerDecorationsService,this._themeService,this._keybindingService,this._modeService,this._openerService),this._glyphWidget.value=new Rt(this._editor,this._modeService,this._openerService)},it.prototype.showContentHover=function(et,ut,Ct){this.contentWidget.startShowingAt(et,ut,Ct)},it.prototype.dispose=function(){this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),this._glyphWidget.dispose(),this._contentWidget.dispose()},it.ID="editor.contrib.hover",it=so([jt(1,Ee.a),jt(2,W.a),jt(3,Dt.a),jt(4,Kt.a),jt(5,P.c)],it),it}(),gt=function(it){lo(et,it);function et(){return it.call(this,{id:"editor.action.showHover",label:le.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:D.a.editorTextFocus,primary:Object($.a)(2048|41,2048|39),weight:100}})||this}return et.prototype.run=function(ut,Ct){if(!Ct.hasModel())return;var ht=pt.get(Ct);if(!ht)return;var Et=Ct.getPosition(),Yt=new z.a(Et.lineNumber,Et.column,Et.lineNumber,Et.column),Nt=Ct.getOption(2)===2;ht.showContentHover(Yt,1,Nt)},et}(B.b),Tt=function(it){lo(et,it);function et(){return it.call(this,{id:"editor.action.showDefinitionPreviewHover",label:le.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 et.prototype.run=function(ut,Ct){var ht=pt.get(Ct);if(!ht)return;var Et=Ct.getPosition();if(!Et)return;var Yt=new z.a(Et.lineNumber,Et.column,Et.lineNumber,Et.column),Nt=ao.GotoDefinitionAtPositionEditorContribution.get(Ct),bt=Nt.startFindDefinitionFromCursor(Et);bt?bt.then(function(){ht.showContentHover(Yt,1,!0)}):ht.showContentHover(Yt,1,!0)},et}(B.b);Object(B.h)(pt.ID,pt),Object(B.f)(gt),Object(B.f)(Tt),Object(P.e)(function(it,et){var ut=it.getColor(I.D);ut&&et.addRule(".monaco-editor .hoverHighlight { background-color: "+ut+"; }");var Ct=it.getColor(I.A);Ct&&et.addRule(".monaco-editor .monaco-editor-hover { background-color: "+Ct+"; }");var ht=it.getColor(I.B);ht&&(et.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+ht+"; }"),et.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+ht.transparent(.5)+"; }"),et.addRule(".monaco-editor .monaco-editor-hover hr { border-top: 1px solid "+ht.transparent(.5)+"; }"),et.addRule(".monaco-editor .monaco-editor-hover hr { border-bottom: 0px solid "+ht.transparent(.5)+"; }"));var Et=it.getColor(I.ec);Et&&et.addRule(".monaco-editor .monaco-editor-hover a { color: "+Et+"; }");var Yt=it.getColor(I.C);Yt&&et.addRule(".monaco-editor .monaco-editor-hover { color: "+Yt+"; }");var Nt=it.getColor(I.E);Nt&&et.addRule(".monaco-editor .monaco-editor-hover .hover-row .actions { background-color: "+Nt+"; }");var bt=it.getColor(I.dc);bt&&et.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+bt+"; }")})},rzPn:function(Lt,N,e){"use strict";e.d(N,"a",function(){return Ke});var T=e("qH2V"),le=e("sswD"),$=e("tX9W"),R=e("EffR"),B=e("UsjR"),z=e("3/fG"),D=e("MNsG"),W=e("746U"),x=function(){function ge(G){this.modelProvider=Object(W.g)(G.getModel)?G:{getModel:function(){return G}}}return ge.prototype.getId=function(G,oe){if(!oe)return null;var Y=this.modelProvider.getModel();return Y===oe?"__root__":Y.dataSource.getId(oe)},ge.prototype.hasChildren=function(G,oe){var Y=this.modelProvider.getModel();return!!(Y&&Y===oe&&Y.entries.length>0)},ge.prototype.getChildren=function(G,oe){var Y=this.modelProvider.getModel();return Promise.resolve(Y===oe?Y.entries:[])},ge.prototype.getParent=function(G,oe){return Promise.resolve(null)},ge}(),h=function(){function ge(G){this.modelProvider=G}return ge.prototype.getAriaLabel=function(G,oe){var Y=this.modelProvider.getModel();return Y.accessibilityProvider?Y.accessibilityProvider.getAriaLabel(oe):null},ge.prototype.getPosInSet=function(G,oe){var Y=this.modelProvider.getModel(),ae=0;if(Y.filter)for(var Fe=0,dt=Y.entries;Fe<dt.length;Fe++){var Ot=dt[Fe];if(Y.filter.isVisible(Ot)&&ae++,Ot===oe)break}else ae=Y.entries.indexOf(oe)+1;return String(ae)},ge.prototype.getSetSize=function(){var G=this.modelProvider.getModel(),oe=0;if(G.filter)for(var Y=0,ae=G.entries;Y<ae.length;Y++){var Fe=ae[Y];G.filter.isVisible(Fe)&&oe++}else oe=G.entries.length;return String(oe)},ge}(),y=function(){function ge(G){this.modelProvider=G}return ge.prototype.isVisible=function(G,oe){var Y=this.modelProvider.getModel();return Y.filter?Y.filter.isVisible(oe):!0},ge}(),w=function(){function ge(G,oe){this.modelProvider=G,this.styles=oe}return ge.prototype.updateStyles=function(G){this.styles=G},ge.prototype.getHeight=function(G,oe){var Y=this.modelProvider.getModel();return Y.renderer.getHeight(oe)},ge.prototype.getTemplateId=function(G,oe){var Y=this.modelProvider.getModel();return Y.renderer.getTemplateId(oe)},ge.prototype.renderTemplate=function(G,oe,Y){var ae=this.modelProvider.getModel();return ae.renderer.renderTemplate(oe,Y,this.styles)},ge.prototype.renderElement=function(G,oe,Y,ae){var Fe=this.modelProvider.getModel();Fe.renderer.renderElement(oe,Y,ae,this.styles)},ge.prototype.disposeTemplate=function(G,oe,Y){var ae=this.modelProvider.getModel();ae.renderer.disposeTemplate(oe,Y)},ge}(),f=e("0+8E"),v=e("vMFT"),C=e("/cxE"),g=e("/kV6"),u=function(){function ge(){this._arr=[]}return ge.prototype.set=function(G,oe){this._arr.push({keybinding:Object(g.f)(G,D.a),callback:oe})},ge.prototype.dispatch=function(G){for(var oe=this._arr.length-1;oe>=0;oe--){var Y=this._arr[oe];if(G.toChord().equals(Y.keybinding))return Y.callback}return null},ge}(),s=function(){function ge(G){var oe=this;G===void 0&&(G={clickBehavior:0,keyboardSupport:!0,openMode:0}),this.options=G,this.downKeyBindingDispatcher=new u,this.upKeyBindingDispatcher=new u,(typeof G.keyboardSupport!="boolean"||G.keyboardSupport)&&(this.downKeyBindingDispatcher.set(16,function(Y,ae){return oe.onUp(Y,ae)}),this.downKeyBindingDispatcher.set(18,function(Y,ae){return oe.onDown(Y,ae)}),this.downKeyBindingDispatcher.set(15,function(Y,ae){return oe.onLeft(Y,ae)}),this.downKeyBindingDispatcher.set(17,function(Y,ae){return oe.onRight(Y,ae)}),D.e&&(this.downKeyBindingDispatcher.set(2048|16,function(Y,ae){return oe.onLeft(Y,ae)}),this.downKeyBindingDispatcher.set(256|44,function(Y,ae){return oe.onDown(Y,ae)}),this.downKeyBindingDispatcher.set(256|46,function(Y,ae){return oe.onUp(Y,ae)})),this.downKeyBindingDispatcher.set(11,function(Y,ae){return oe.onPageUp(Y,ae)}),this.downKeyBindingDispatcher.set(12,function(Y,ae){return oe.onPageDown(Y,ae)}),this.downKeyBindingDispatcher.set(14,function(Y,ae){return oe.onHome(Y,ae)}),this.downKeyBindingDispatcher.set(13,function(Y,ae){return oe.onEnd(Y,ae)}),this.downKeyBindingDispatcher.set(10,function(Y,ae){return oe.onSpace(Y,ae)}),this.downKeyBindingDispatcher.set(9,function(Y,ae){return oe.onEscape(Y,ae)}),this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this)),this.upKeyBindingDispatcher.set(2048|3,this.onEnter.bind(this)))}return ge.prototype.onMouseDown=function(G,oe,Y,ae){if(ae===void 0&&(ae="mouse"),this.options.clickBehavior===0&&(Y.leftButton||Y.middleButton)){if(Y.target){if(Y.target.tagName&&Y.target.tagName.toLowerCase()==="input")return!1;if(R.x(Y.target,"scrollbar","monaco-tree"))return!1;if(R.x(Y.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(G,oe,Y,ae)}return!1},ge.prototype.onClick=function(G,oe,Y){var ae=D.e;return ae&&Y.ctrlKey?(Y.preventDefault(),Y.stopPropagation(),!1):Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input"||this.options.clickBehavior===0&&(Y.leftButton||Y.middleButton)?!1:this.onLeftClick(G,oe,Y)},ge.prototype.onLeftClick=function(G,oe,Y,ae){ae===void 0&&(ae="mouse");var Fe=Y,dt={origin:ae,originalEvent:Y,didClickOnTwistie:this.isClickOnTwistie(Fe)};if(G.getInput()===oe)G.clearFocus(dt),G.clearSelection(dt);else{var Ot=Y&&Fe.browserEvent&&Fe.browserEvent.type==="mousedown"&&Fe.browserEvent.detail===1;Ot||Y.preventDefault(),Y.stopPropagation(),G.domFocus(),G.setSelection([oe],dt),G.setFocus(oe,dt),this.shouldToggleExpansion(oe,Fe,ae)&&(G.isExpanded(oe)?G.collapse(oe).then(void 0,C.e):G.expand(oe).then(void 0,C.e))}return!0},ge.prototype.shouldToggleExpansion=function(G,oe,Y){var ae=Y==="mouse"&&oe.detail===2;return this.openOnSingleClick||ae||this.isClickOnTwistie(oe)},Object.defineProperty(ge.prototype,"openOnSingleClick",{get:function(){return this.options.openMode===0},enumerable:!0,configurable:!0}),ge.prototype.isClickOnTwistie=function(G){var oe=G.target;if(!R.I(oe,"content"))return!1;var Y=window.getComputedStyle(oe,":before");if(Y.backgroundImage==="none"||Y.display==="none")return!1;var ae=parseInt(Y.width)+parseInt(Y.paddingRight);return G.browserEvent.offsetX<=ae},ge.prototype.onContextMenu=function(G,oe,Y){return Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input"||Y&&(Y.preventDefault(),Y.stopPropagation()),!1},ge.prototype.onTap=function(G,oe,Y){var ae=Y.initialTarget;return ae&&ae.tagName&&ae.tagName.toLowerCase()==="input"?!1:this.onLeftClick(G,oe,Y,"touch")},ge.prototype.onKeyDown=function(G,oe){return this.onKey(this.downKeyBindingDispatcher,G,oe)},ge.prototype.onKeyUp=function(G,oe){return this.onKey(this.upKeyBindingDispatcher,G,oe)},ge.prototype.onKey=function(G,oe,Y){var ae=G.dispatch(Y.toKeybinding());return ae&&ae(oe,Y)?(Y.preventDefault(),Y.stopPropagation(),!0):!1},ge.prototype.onUp=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?G.clearHighlight(Y):(G.focusPrevious(1,Y),G.reveal(G.getFocus()).then(void 0,C.e)),!0},ge.prototype.onPageUp=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?G.clearHighlight(Y):(G.focusPreviousPage(Y),G.reveal(G.getFocus()).then(void 0,C.e)),!0},ge.prototype.onDown=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?G.clearHighlight(Y):(G.focusNext(1,Y),G.reveal(G.getFocus()).then(void 0,C.e)),!0},ge.prototype.onPageDown=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?G.clearHighlight(Y):(G.focusNextPage(Y),G.reveal(G.getFocus()).then(void 0,C.e)),!0},ge.prototype.onHome=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?G.clearHighlight(Y):(G.focusFirst(Y),G.reveal(G.getFocus()).then(void 0,C.e)),!0},ge.prototype.onEnd=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?G.clearHighlight(Y):(G.focusLast(Y),G.reveal(G.getFocus()).then(void 0,C.e)),!0},ge.prototype.onLeft=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};if(G.getHighlight())G.clearHighlight(Y);else{var ae=G.getFocus();G.collapse(ae).then(function(Fe){return ae&&!Fe?(G.focusParent(Y),G.reveal(G.getFocus())):void 0}).then(void 0,C.e)}return!0},ge.prototype.onRight=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};if(G.getHighlight())G.clearHighlight(Y);else{var ae=G.getFocus();G.expand(ae).then(function(Fe){return ae&&!Fe?(G.focusFirstChild(Y),G.reveal(G.getFocus())):void 0}).then(void 0,C.e)}return!0},ge.prototype.onEnter=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};if(G.getHighlight())return!1;var ae=G.getFocus();return ae&&G.setSelection([ae],Y),!0},ge.prototype.onSpace=function(G,oe){if(G.getHighlight())return!1;var Y=G.getFocus();return Y&&G.toggleExpansion(Y),!0},ge.prototype.onEscape=function(G,oe){var Y={origin:"keyboard",originalEvent:oe};return G.getHighlight()?(G.clearHighlight(Y),!0):G.getSelection().length?(G.clearSelection(Y),!0):G.getFocus()?(G.clearFocus(Y),!0):!1},ge}(),l=function(){function ge(){}return ge.prototype.getDragURI=function(G,oe){return null},ge.prototype.onDragStart=function(G,oe,Y){return},ge.prototype.onDragOver=function(G,oe,Y,ae){return null},ge.prototype.drop=function(G,oe,Y,ae){return},ge}(),c=function(){function ge(){}return ge.prototype.isVisible=function(G,oe){return!0},ge}(),p=function(){function ge(){}return ge.prototype.getAriaLabel=function(G,oe){return null},ge}(),_=function(){function ge(G,oe){this.styleElement=G,this.selectorSuffix=oe}return ge.prototype.style=function(G){var oe=this.selectorSuffix?"."+this.selectorSuffix:"",Y=[];G.listFocusBackground&&Y.push(".monaco-tree"+oe+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+G.listFocusBackground+"; }"),G.listFocusForeground&&Y.push(".monaco-tree"+oe+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+G.listFocusForeground+"; }"),G.listActiveSelectionBackground&&Y.push(".monaco-tree"+oe+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+G.listActiveSelectionBackground+"; }"),G.listActiveSelectionForeground&&Y.push(".monaco-tree"+oe+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+G.listActiveSelectionForeground+"; }"),G.listFocusAndSelectionBackground&&Y.push(`
.monaco-tree-drag-image,
.monaco-tree`+oe+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+G.listFocusAndSelectionBackground+`; }
`),G.listFocusAndSelectionForeground&&Y.push(`
.monaco-tree-drag-image,
.monaco-tree`+oe+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+G.listFocusAndSelectionForeground+`; }
`),G.listInactiveSelectionBackground&&Y.push(".monaco-tree"+oe+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+G.listInactiveSelectionBackground+"; }"),G.listInactiveSelectionForeground&&Y.push(".monaco-tree"+oe+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+G.listInactiveSelectionForeground+"; }"),G.listHoverBackground&&Y.push(".monaco-tree"+oe+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+G.listHoverBackground+"; }"),G.listHoverForeground&&Y.push(".monaco-tree"+oe+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+G.listHoverForeground+"; }"),G.listDropBackground&&Y.push(`
.monaco-tree`+oe+` .monaco-tree-wrapper.drop-target,
.monaco-tree`+oe+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+G.listDropBackground+` !important; color: inherit !important; }
`),G.listFocusOutline&&Y.push(`
.monaco-tree-drag-image { border: 1px solid `+G.listFocusOutline+`; background: #000; }
.monaco-tree`+oe+` .monaco-tree-rows > .monaco-tree-row { border: 1px solid transparent; }
.monaco-tree`+oe+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { border: 1px dotted "+G.listFocusOutline+`; }
.monaco-tree`+oe+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { border: 1px solid "+G.listFocusOutline+`; }
.monaco-tree`+oe+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { border: 1px solid "+G.listFocusOutline+`; }
.monaco-tree`+oe+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { border: 1px dashed "+G.listFocusOutline+`; }
.monaco-tree`+oe+` .monaco-tree-wrapper.drop-target,
.monaco-tree`+oe+" .monaco-tree-rows > .monaco-tree-row.drop-target { border: 1px dashed "+G.listFocusOutline+`; }
`);var ae=Y.join(`
`);ae!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=ae)},ge}(),L=e("FWmy"),I=e("pmY6"),P=e("MI8n"),A=function(){var ge=function(G,oe){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,ae){Y.__proto__=ae}||function(Y,ae){for(var Fe in ae)ae.hasOwnProperty(Fe)&&(Y[Fe]=ae[Fe])},ge(G,oe)};return function(G,oe){ge(G,oe);function Y(){this.constructor=G}G.prototype=oe===null?Object.create(oe):(Y.prototype=oe.prototype,new Y)}}(),Q=function(){function ge(G){this._onDispose=new P.a,this.onDispose=this._onDispose.event,this._item=G}return Object.defineProperty(ge.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),ge.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},ge}(),K=function(){function ge(){this.locks=Object.create({})}return ge.prototype.isLocked=function(G){return!!this.locks[G.id]},ge.prototype.run=function(G,oe){var Y=this,ae=this.getLock(G);if(ae)return new Promise(function(dt,Ot){P.b.once(ae.onDispose)(function(){return Y.run(G,oe).then(dt,Ot)})});var Fe;return new Promise(function(dt,Ot){if(G.isDisposed())return Ot(new Error("Item is disposed."));var Qt=Y.locks[G.id]=new Q(G);return Fe=oe().then(function(to){return delete Y.locks[G.id],Qt.dispose(),to}).then(dt,Ot),Fe})},ge.prototype.getLock=function(G){var oe;for(oe in this.locks){var Y=this.locks[oe];if(G.intersects(Y.item))return Y}return null},ge}(),H=function(){function ge(){this._isDisposed=!1,this._onDidRevealItem=new P.d,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new P.d,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new P.d,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new P.d,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new P.d,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new P.d,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new P.d,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new P.d,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new P.d,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new P.d,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new P.d,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return ge.prototype.register=function(G){L.a(!this.isRegistered(G.id),"item already registered: "+G.id);var oe=Object(I.e)(this._onDidRevealItem.add(G.onDidReveal),this._onExpandItem.add(G.onExpand),this._onDidExpandItem.add(G.onDidExpand),this._onCollapseItem.add(G.onCollapse),this._onDidCollapseItem.add(G.onDidCollapse),this._onDidAddTraitItem.add(G.onDidAddTrait),this._onDidRemoveTraitItem.add(G.onDidRemoveTrait),this._onDidRefreshItem.add(G.onDidRefresh),this._onRefreshItemChildren.add(G.onRefreshChildren),this._onDidRefreshItemChildren.add(G.onDidRefreshChildren),this._onDidDisposeItem.add(G.onDidDispose));this.items[G.id]={item:G,disposable:oe}},ge.prototype.deregister=function(G){L.a(this.isRegistered(G.id),"item not registered: "+G.id),this.items[G.id].disposable.dispose(),delete this.items[G.id]},ge.prototype.isRegistered=function(G){return this.items.hasOwnProperty(G)},ge.prototype.getItem=function(G){var oe=this.items[G];return oe?oe.item:null},ge.prototype.dispose=function(){this.items={},this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},ge.prototype.isDisposed=function(){return this._isDisposed},ge}(),V=function(){function ge(G,oe,Y,ae,Fe){this._onDidCreate=new P.a,this._onDidReveal=new P.a,this.onDidReveal=this._onDidReveal.event,this._onExpand=new P.a,this.onExpand=this._onExpand.event,this._onDidExpand=new P.a,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new P.a,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new P.a,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new P.a,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new P.a,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new P.a,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new P.a,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new P.a,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new P.a,this.onDidDispose=this._onDidDispose.event,this.registry=oe,this.context=Y,this.lock=ae,this.element=Fe,this.id=G,this.registry.register(this),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.needsChildrenRefresh=!0,this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this.traits={},this.depth=0,this.expanded=!!(this.context.dataSource.shouldAutoexpand&&this.context.dataSource.shouldAutoexpand(this.context.tree,Fe)),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}return ge.prototype.getElement=function(){return this.element},ge.prototype.hasChildren=function(){return this.doesHaveChildren},ge.prototype.getDepth=function(){return this.depth},ge.prototype.isVisible=function(){return this.visible},ge.prototype.setVisible=function(G){this.visible=G},ge.prototype.isExpanded=function(){return this.expanded},ge.prototype._setExpanded=function(G){this.expanded=G},ge.prototype.reveal=function(G){G===void 0&&(G=null);var oe={item:this,relativeTop:G};this._onDidReveal.fire(oe)},ge.prototype.expand=function(){var G=this;if(this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this))return Promise.resolve(!1);var oe=this.lock.run(this,function(){if(G.isExpanded()||!G.doesHaveChildren)return Promise.resolve(!1);var Y={item:G},ae;return G._onExpand.fire(Y),G.needsChildrenRefresh?ae=G.refreshChildren(!1,!0,!0):ae=Promise.resolve(null),ae.then(function(){return G._setExpanded(!0),G._onDidExpand.fire(Y),!0})});return oe.then(function(Y){return G.isDisposed()?!1:G.context.options.autoExpandSingleChildren&&Y&&G.firstChild!==null&&G.firstChild===G.lastChild&&G.firstChild.isVisible()?G.firstChild.expand().then(function(){return!0}):Y})},ge.prototype.collapse=function(G){var oe=this;if(G===void 0&&(G=!1),G){var Y=Promise.resolve(null);return this.forEachChild(function(ae){Y=Y.then(function(){return ae.collapse(!0)})}),Y.then(function(){return oe.collapse(!1)})}else return!this.isExpanded()||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,function(){var ae={item:oe};return oe._onCollapse.fire(ae),oe._setExpanded(!1),oe._onDidCollapse.fire(ae),Promise.resolve(!0)})},ge.prototype.addTrait=function(G){var oe={item:this,trait:G};this.traits[G]=!0,this._onDidAddTrait.fire(oe)},ge.prototype.removeTrait=function(G){var oe={item:this,trait:G};delete this.traits[G],this._onDidRemoveTrait.fire(oe)},ge.prototype.hasTrait=function(G){return this.traits[G]||!1},ge.prototype.getAllTraits=function(){var G=[],oe;for(oe in this.traits)this.traits.hasOwnProperty(oe)&&this.traits[oe]&&G.push(oe);return G},ge.prototype.getHeight=function(){return this.height},ge.prototype.refreshChildren=function(G,oe,Y){var ae=this;if(oe===void 0&&(oe=!1),Y===void 0&&(Y=!1),!Y&&!this.isExpanded()){var Fe=function(Ot){Ot.needsChildrenRefresh=!0,Ot.forEachChild(Fe)};return Fe(this),Promise.resolve(this)}this.needsChildrenRefresh=!1;var dt=function(){var Ot={item:ae,isNested:oe};ae._onRefreshChildren.fire(Ot);var Qt;ae.doesHaveChildren?Qt=ae.context.dataSource.getChildren(ae.context.tree,ae.element):Qt=Promise.resolve([]);var to=Qt.then(function(fo){if(ae.isDisposed()||ae.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(fo))return Promise.reject(new Error("Please return an array of children."));fo=fo?fo.slice(0):[],fo=ae.sort(fo);for(var ho={};ae.firstChild!==null;)ho[ae.firstChild.id]=ae.firstChild,ae.removeChild(ae.firstChild);for(var _o=0,Do=fo.length;_o<Do;_o++){var Ro=fo[_o],jo=ae.context.dataSource.getId(ae.context.tree,Ro),Eo=ho[jo]||new ge(jo,ae.registry,ae.context,ae.lock,Ro);Eo.element=Ro,G&&(Eo.needsChildrenRefresh=G),delete ho[jo],ae.addChild(Eo)}for(var Wo in ho)ho.hasOwnProperty(Wo)&&ho[Wo].dispose();return G?Promise.all(ae.mapEachChild(function(Ho){return Ho.doRefresh(G,!0)})):Promise.all(ae.mapEachChild(function(Ho){return Ho.isExpanded()&&Ho.needsChildrenRefresh?Ho.doRefresh(G,!0):(Ho.updateVisibility(),Promise.resolve(null))}))});return to.then(void 0,C.e).then(function(){return ae._onDidRefreshChildren.fire(Ot)})};return oe?dt():this.lock.run(this,dt)},ge.prototype.doRefresh=function(G,oe){return oe===void 0&&(oe=!1),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.height=this._getHeight(),this.updateVisibility(),this._onDidRefresh.fire(this),this.refreshChildren(G,oe)},ge.prototype.updateVisibility=function(){this.setVisible(this._isVisible())},ge.prototype.refresh=function(G){return this.doRefresh(G)},ge.prototype.getNavigator=function(){return new _e(this)},ge.prototype.intersects=function(G){return this.isAncestorOf(G)||G.isAncestorOf(this)},ge.prototype.isAncestorOf=function(G){for(var oe=G;oe;){if(oe.id===this.id)return!0;oe=oe.parent}return!1},ge.prototype.addChild=function(G,oe){oe===void 0&&(oe=this.lastChild);var Y=this.firstChild===null,ae=oe===null,Fe=oe===this.lastChild;if(Y)this.firstChild=this.lastChild=G,G.next=G.previous=null;else if(ae){if(!this.firstChild)throw new Error("Invalid tree state");this.firstChild.previous=G,G.next=this.firstChild,G.previous=null,this.firstChild=G}else if(Fe){if(!this.lastChild)throw new Error("Invalid tree state");this.lastChild.next=G,G.next=null,G.previous=this.lastChild,this.lastChild=G}else{if(G.previous=oe,!oe)throw new Error("Invalid tree state");if(G.next=oe.next,!oe.next)throw new Error("Invalid tree state");oe.next.previous=G,oe.next=G}G.parent=this,G.depth=this.depth+1},ge.prototype.removeChild=function(G){var oe=this.firstChild===G,Y=this.lastChild===G;if(oe&&Y)this.firstChild=this.lastChild=null;else if(oe){if(!G.next)throw new Error("Invalid tree state");G.next.previous=null,this.firstChild=G.next}else if(Y){if(!G.previous)throw new Error("Invalid tree state");G.previous.next=null,this.lastChild=G.previous}else{if(!G.next)throw new Error("Invalid tree state");if(G.next.previous=G.previous,!G.previous)throw new Error("Invalid tree state");G.previous.next=G.next}G.parent=null,G.depth=NaN},ge.prototype.forEachChild=function(G){for(var oe=this.firstChild,Y;oe;)Y=oe.next,G(oe),oe=Y},ge.prototype.mapEachChild=function(G){var oe=[];return this.forEachChild(function(Y){oe.push(G(Y))}),oe},ge.prototype.sort=function(G){var oe=this,Y=this.context.sorter;return Y?G.sort(function(ae,Fe){return Y.compare(oe.context.tree,ae,Fe)}):G},ge.prototype._getHeight=function(){return this.context.renderer?this.context.renderer.getHeight(this.context.tree,this.element):0},ge.prototype._isVisible=function(){return this.context.filter?this.context.filter.isVisible(this.context.tree,this.element):!1},ge.prototype.isDisposed=function(){return this._isDisposed},ge.prototype.dispose=function(){this.forEachChild(function(G){return G.dispose()}),this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this._onDidDispose.fire(this),this.registry.deregister(this),this._onDidCreate.dispose(),this._onDidReveal.dispose(),this._onExpand.dispose(),this._onDidExpand.dispose(),this._onCollapse.dispose(),this._onDidCollapse.dispose(),this._onDidAddTrait.dispose(),this._onDidRemoveTrait.dispose(),this._onDidRefresh.dispose(),this._onRefreshChildren.dispose(),this._onDidRefreshChildren.dispose(),this._onDidDispose.dispose(),this._isDisposed=!0},ge}(),de=function(ge){A(G,ge);function G(oe,Y,ae,Fe,dt){return ge.call(this,oe,Y,ae,Fe,dt)||this}return G.prototype.isVisible=function(){return!1},G.prototype.setVisible=function(oe){},G.prototype.isExpanded=function(){return!0},G.prototype._setExpanded=function(oe){},G.prototype._getHeight=function(){return 0},G.prototype._isVisible=function(){return!1},G}(V),_e=function(){function ge(G,oe){oe===void 0&&(oe=!0),this.item=G,this.start=oe?G:null}return ge.lastDescendantOf=function(G){return G?G instanceof de?ge.lastDescendantOf(G.lastChild):G.isVisible()?!G.isExpanded()||G.lastChild===null?G:ge.lastDescendantOf(G.lastChild):ge.lastDescendantOf(G.previous):null},ge.prototype.current=function(){return this.item||null},ge.prototype.next=function(){if(this.item)do if((this.item instanceof de||this.item.isVisible()&&this.item.isExpanded())&&this.item.firstChild)this.item=this.item.firstChild;else if(this.item===this.start)this.item=null;else{for(;this.item&&this.item!==this.start&&!this.item.next;)this.item=this.item.parent;this.item===this.start&&(this.item=null),this.item=this.item?this.item.next:null}while(this.item&&!this.item.isVisible());return this.item||null},ge.prototype.previous=function(){if(this.item)do{var G=ge.lastDescendantOf(this.item.previous);G?this.item=G:this.item.parent&&this.item.parent!==this.start&&this.item.parent.isVisible()?this.item=this.item.parent:this.item=null}while(this.item&&!this.item.isVisible());return this.item||null},ge.prototype.parent=function(){if(this.item){var G=this.item.parent;G&&G!==this.start&&G.isVisible()?this.item=G:this.item=null}return this.item||null},ge.prototype.first=function(){return this.item=this.start,this.next(),this.item||null},ge.prototype.last=function(){return ge.lastDescendantOf(this.start)},ge}(),Se=function(){function ge(G){this.registry=new H,this.registryDisposable=I.a.None,this._onSetInput=new P.a,this.onSetInput=this._onSetInput.event,this._onDidSetInput=new P.a,this.onDidSetInput=this._onDidSetInput.event,this._onRefresh=new P.a,this.onRefresh=this._onRefresh.event,this._onDidRefresh=new P.a,this.onDidRefresh=this._onDidRefresh.event,this._onDidHighlight=new P.a,this.onDidHighlight=this._onDidHighlight.event,this._onDidSelect=new P.a,this.onDidSelect=this._onDidSelect.event,this._onDidFocus=new P.a,this.onDidFocus=this._onDidFocus.event,this._onDidRevealItem=new P.f,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new P.f,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new P.f,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new P.f,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new P.f,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new P.f,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new P.f,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new P.f,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new P.f,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new P.f,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new P.f,this.context=G,this.input=null,this.traitsToItems={}}return ge.prototype.setInput=function(G){var oe=this,Y={item:this.input};this._onSetInput.fire(Y),this.setSelection([]),this.setFocus(),this.setHighlight(),this.lock=new K,this.input&&this.input.dispose(),this.registry&&(this.registry.dispose(),this.registryDisposable.dispose()),this.registry=new H,this._onDidRevealItem.input=this.registry.onDidRevealItem,this._onExpandItem.input=this.registry.onExpandItem,this._onDidExpandItem.input=this.registry.onDidExpandItem,this._onCollapseItem.input=this.registry.onCollapseItem,this._onDidCollapseItem.input=this.registry.onDidCollapseItem,this._onDidAddTraitItem.input=this.registry.onDidAddTraitItem,this._onDidRemoveTraitItem.input=this.registry.onDidRemoveTraitItem,this._onDidRefreshItem.input=this.registry.onDidRefreshItem,this._onRefreshItemChildren.input=this.registry.onRefreshItemChildren,this._onDidRefreshItemChildren.input=this.registry.onDidRefreshItemChildren,this._onDidDisposeItem.input=this.registry.onDidDisposeItem,this.registryDisposable=this.registry.onDidDisposeItem(function(Fe){return Fe.getAllTraits().forEach(function(dt){return delete oe.traitsToItems[dt][Fe.id]})});var ae=this.context.dataSource.getId(this.context.tree,G);return this.input=new de(ae,this.registry,this.context,this.lock,G),Y={item:this.input},this._onDidSetInput.fire(Y),this.refresh(this.input)},ge.prototype.getInput=function(){return this.input?this.input.getElement():null},ge.prototype.refresh=function(G,oe){var Y=this;G===void 0&&(G=null),oe===void 0&&(oe=!0);var ae=this.getItem(G);if(!ae)return Promise.resolve(null);var Fe={item:ae,recursive:oe};return this._onRefresh.fire(Fe),ae.refresh(oe).then(function(){Y._onDidRefresh.fire(Fe)})},ge.prototype.expand=function(G){var oe=this.getItem(G);return oe?oe.expand():Promise.resolve(!1)},ge.prototype.collapse=function(G,oe){oe===void 0&&(oe=!1);var Y=this.getItem(G);return Y?Y.collapse(oe):Promise.resolve(!1)},ge.prototype.toggleExpansion=function(G,oe){return oe===void 0&&(oe=!1),this.isExpanded(G)?this.collapse(G,oe):this.expand(G)},ge.prototype.isExpanded=function(G){var oe=this.getItem(G);return oe?oe.isExpanded():!1},ge.prototype.reveal=function(G,oe){var Y=this;return oe===void 0&&(oe=null),this.resolveUnknownParentChain(G).then(function(ae){var Fe=Promise.resolve(null);return ae.forEach(function(dt){Fe=Fe.then(function(){return Y.expand(dt)})}),Fe}).then(function(){var ae=Y.getItem(G);if(ae)return ae.reveal(oe)})},ge.prototype.resolveUnknownParentChain=function(G){var oe=this;return this.context.dataSource.getParent(this.context.tree,G).then(function(Y){return Y?oe.resolveUnknownParentChain(Y).then(function(ae){return ae.push(Y),ae}):Promise.resolve([])})},ge.prototype.setHighlight=function(G,oe){this.setTraits("highlighted",G?[G]:[]);var Y={highlight:this.getHighlight(),payload:oe};this._onDidHighlight.fire(Y)},ge.prototype.getHighlight=function(G){G===void 0&&(G=!1);var oe=this.getElementsWithTrait("highlighted",G);return oe.length===0?null:oe[0]},ge.prototype.setSelection=function(G,oe){this.setTraits("selected",G);var Y={selection:this.getSelection(),payload:oe};this._onDidSelect.fire(Y)},ge.prototype.getSelection=function(G){return G===void 0&&(G=!1),this.getElementsWithTrait("selected",G)},ge.prototype.setFocus=function(G,oe){this.setTraits("focused",G?[G]:[]);var Y={focus:this.getFocus(),payload:oe};this._onDidFocus.fire(Y)},ge.prototype.getFocus=function(G){G===void 0&&(G=!1);var oe=this.getElementsWithTrait("focused",G);return oe.length===0?null:oe[0]},ge.prototype.focusNext=function(G,oe){G===void 0&&(G=1);for(var Y=this.getFocus()||this.input,ae,Fe=this.getNavigator(Y,!1),dt=0;dt<G&&!(ae=Fe.next(),!ae);dt++)Y=ae;this.setFocus(Y,oe)},ge.prototype.focusPrevious=function(G,oe){G===void 0&&(G=1);for(var Y=this.getFocus()||this.input,ae,Fe=this.getNavigator(Y,!1),dt=0;dt<G&&!(ae=Fe.previous(),!ae);dt++)Y=ae;this.setFocus(Y,oe)},ge.prototype.focusParent=function(G){var oe=this.getFocus()||this.input,Y=this.getNavigator(oe,!1),ae=Y.parent();ae&&this.setFocus(ae,G)},ge.prototype.focusFirstChild=function(G){var oe=this.getItem(this.getFocus()||this.input),Y=this.getNavigator(oe,!1),ae=Y.next(),Fe=Y.parent();Fe===oe&&this.setFocus(ae,G)},ge.prototype.focusFirst=function(G,oe){this.focusNth(0,G,oe)},ge.prototype.focusNth=function(G,oe,Y){for(var ae=this.getParent(Y),Fe=this.getNavigator(ae),dt=Fe.first(),Ot=0;Ot<G;Ot++)dt=Fe.next();dt&&this.setFocus(dt,oe)},ge.prototype.focusLast=function(G,oe){var Y=this.getParent(oe),ae;if(oe&&Y)ae=Y.lastChild;else{var Fe=this.getNavigator(Y);ae=Fe.last()}ae&&this.setFocus(ae,G)},ge.prototype.getParent=function(G){if(G){var oe=this.getItem(G);if(oe&&oe.parent)return oe.parent}return this.getItem(this.input)},ge.prototype.getNavigator=function(G,oe){return G===void 0&&(G=null),oe===void 0&&(oe=!0),new _e(this.getItem(G),oe)},ge.prototype.getItem=function(G){return G===void 0&&(G=null),G===null?this.input:G instanceof V?G:typeof G=="string"?this.registry.getItem(G):this.registry.getItem(this.context.dataSource.getId(this.context.tree,G))},ge.prototype.removeTraits=function(G,oe){var Y=this.traitsToItems[G]||{},ae,Fe;if(oe.length===0){for(Fe in Y)Y.hasOwnProperty(Fe)&&(ae=Y[Fe],ae.removeTrait(G));delete this.traitsToItems[G]}else for(var dt=0,Ot=oe.length;dt<Ot;dt++)ae=this.getItem(oe[dt]),ae&&(ae.removeTrait(G),delete Y[ae.id])},ge.prototype.setTraits=function(G,oe){if(oe.length===0)this.removeTraits(G,oe);else{for(var Y={},ae=void 0,Fe=0,dt=oe.length;Fe<dt;Fe++)ae=this.getItem(oe[Fe]),ae&&(Y[ae.id]=ae);var Ot=this.traitsToItems[G]||{},Qt=[],to=void 0;for(to in Ot)Ot.hasOwnProperty(to)&&(Y.hasOwnProperty(to)?delete Y[to]:Qt.push(Ot[to]));for(var Fe=0,dt=Qt.length;Fe<dt;Fe++)ae=Qt[Fe],ae.removeTrait(G),delete Ot[ae.id];for(to in Y)Y.hasOwnProperty(to)&&(ae=Y[to],ae.addTrait(G),Ot[to]=ae);this.traitsToItems[G]=Ot}},ge.prototype.getElementsWithTrait=function(G,oe){var Y=[],ae=this.traitsToItems[G]||{},Fe;for(Fe in ae)ae.hasOwnProperty(Fe)&&(ae[Fe].isVisible()||oe)&&Y.push(ae[Fe].getElement());return Y},ge.prototype.dispose=function(){this.registry.dispose(),this._onSetInput.dispose(),this._onDidSetInput.dispose(),this._onRefresh.dispose(),this._onDidRefresh.dispose(),this._onDidHighlight.dispose(),this._onDidSelect.dispose(),this._onDidFocus.dispose(),this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._onDidDisposeItem.dispose()},ge}(),Ie=e("D3Dy"),Pe=e("Gw4z"),Ve=e("pg8w"),ke=e("N0LK"),se=e("XSiN"),ee=e("uDWl"),ie=function(){function ge(G){this.elements=G}return ge.prototype.update=function(G){},ge.prototype.getData=function(){return this.elements},ge}(),q=function(){function ge(G){this.elements=G}return ge.prototype.update=function(G){},ge.prototype.getData=function(){return this.elements},ge}(),ce=function(){function ge(){this.types=[],this.files=[]}return ge.prototype.update=function(G){G.types&&(this.types=[],Array.prototype.push.apply(this.types,G.types)),G.files&&(this.files=[],Array.prototype.push.apply(this.files,G.files),this.files=this.files.filter(function(oe){return oe.size||oe.type}))},ge.prototype.getData=function(){return{types:this.types,files:this.files}},ge}(),Z=e("JYp7"),ye=e("GJhM"),je=function(){function ge(){this.heightMap=[],this.indexes={}}return ge.prototype.getContentHeight=function(){var G=this.heightMap[this.heightMap.length-1];return G?G.top+G.height:0},ge.prototype.onInsertItems=function(G,oe){oe===void 0&&(oe=null);var Y=null,ae,Fe,dt,Ot,Qt=0;if(oe===null)Fe=0,Ot=0;else{if(Fe=this.indexes[oe]+1,ae=this.heightMap[Fe-1],!ae){console.error("view item doesnt exist");return}Ot=ae.top+ae.height}for(var to=this.heightMap.splice.bind(this.heightMap,Fe,0),fo=[];Y=G.next();)ae=this.createViewItem(Y),ae.top=Ot+Qt,this.indexes[Y.id]=Fe++,fo.push(ae),Qt+=ae.height;for(to.apply(this.heightMap,fo),dt=Fe;dt<this.heightMap.length;dt++)ae=this.heightMap[dt],ae.top+=Qt,this.indexes[ae.model.id]=dt;for(dt=fo.length-1;dt>=0;dt--)this.onInsertItem(fo[dt]);for(dt=this.heightMap.length-1;dt>=Fe;dt--)this.onRefreshItem(this.heightMap[dt]);return Qt},ge.prototype.onInsertItem=function(G){},ge.prototype.onRemoveItems=function(G){for(var oe=null,Y,ae=null,Fe=0,dt=0;oe=G.next();){if(Fe=this.indexes[oe],Y=this.heightMap[Fe],!Y){console.error("view item doesnt exist");return}dt-=Y.height,delete this.indexes[oe],this.onRemoveItem(Y),ae===null&&(ae=Fe)}if(dt===0||ae===null)return;for(this.heightMap.splice(ae,Fe-ae+1),Fe=ae;Fe<this.heightMap.length;Fe++)Y=this.heightMap[Fe],Y.top+=dt,this.indexes[Y.model.id]=Fe,this.onRefreshItem(Y)},ge.prototype.onRemoveItem=function(G){},ge.prototype.onRefreshItemSet=function(G){var oe=this,Y=G.sort(function(ae,Fe){return oe.indexes[ae.id]-oe.indexes[Fe.id]});this.onRefreshItems(new Z.a(Y))},ge.prototype.onRefreshItems=function(G){for(var oe=null,Y,ae,Fe,dt=null,Ot=0;oe=G.next();){for(Fe=this.indexes[oe.id];Ot!==0&&dt!==null&&dt<Fe;dt++)Y=this.heightMap[dt],Y.top+=Ot,this.onRefreshItem(Y);Y=this.heightMap[Fe],ae=oe.getHeight(),Y.top+=Ot,Ot+=ae-Y.height,Y.height=ae,this.onRefreshItem(Y,!0),dt=Fe+1}if(Ot!==0&&dt!==null)for(;dt<this.heightMap.length;dt++)Y=this.heightMap[dt],Y.top+=Ot,this.onRefreshItem(Y)},ge.prototype.onRefreshItem=function(G,oe){oe===void 0&&(oe=!1)},ge.prototype.indexAt=function(G){for(var oe=0,Y=this.heightMap.length,ae,Fe;oe<Y;)if(ae=Math.floor((oe+Y)/2),Fe=this.heightMap[ae],G<Fe.top)Y=ae;else if(G>=Fe.top+Fe.height){if(oe===ae)break;oe=ae}else return ae;return this.heightMap.length},ge.prototype.indexAfter=function(G){return Math.min(this.indexAt(G)+1,this.heightMap.length)},ge.prototype.itemAtIndex=function(G){return this.heightMap[G]},ge.prototype.itemAfter=function(G){return this.heightMap[this.indexes[G.model.id]+1]||null},ge.prototype.createViewItem=function(G){throw new Error("not implemented")},ge.prototype.dispose=function(){this.heightMap=[],this.indexes={}},ge}(),Ge=function(){var ge=function(G,oe){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,ae){Y.__proto__=ae}||function(Y,ae){for(var Fe in ae)ae.hasOwnProperty(Fe)&&(Y[Fe]=ae[Fe])},ge(G,oe)};return function(G,oe){ge(G,oe);function Y(){this.constructor=G}G.prototype=oe===null?Object.create(oe):(Y.prototype=oe.prototype,new Y)}}(),ue=function(){function ge(G,oe,Y){this._posx=G,this._posy=oe,this._target=Y}return ge.prototype.preventDefault=function(){},ge.prototype.stopPropagation=function(){},Object.defineProperty(ge.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),ge}(),ve=function(ge){Ge(G,ge);function G(oe){var Y=ge.call(this,oe.posx,oe.posy,oe.target)||this;return Y.originalEvent=oe,Y}return G.prototype.preventDefault=function(){this.originalEvent.preventDefault()},G.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},G}(ue),Ee=function(ge){Ge(G,ge);function G(oe,Y,ae){var Fe=ge.call(this,oe,Y,ae.target)||this;return Fe.originalEvent=ae,Fe}return G.prototype.preventDefault=function(){this.originalEvent.preventDefault()},G.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},G}(ue),xe=e("ZQ78"),Ce=e("X+cX"),he=function(){var ge=function(G,oe){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,ae){Y.__proto__=ae}||function(Y,ae){for(var Fe in ae)ae.hasOwnProperty(Fe)&&(Y[Fe]=ae[Fe])},ge(G,oe)};return function(G,oe){ge(G,oe);function Y(){this.constructor=G}G.prototype=oe===null?Object.create(oe):(Y.prototype=oe.prototype,new Y)}}();function J(ge){try{ge.parentElement.removeChild(ge)}catch(G){}}var b=function(){function ge(G){this.context=G,this._cache={"":[]}}return ge.prototype.alloc=function(G){var oe=this.cache(G).pop();if(!oe){var Y=document.createElement("div");Y.className="content";var ae=document.createElement("div");ae.appendChild(Y);var Fe=null;try{Fe=this.context.renderer.renderTemplate(this.context.tree,G,Y)}catch(dt){console.error("Tree usage error: exception while rendering template"),console.error(dt)}oe={element:ae,templateId:G,templateData:Fe}}return oe},ge.prototype.release=function(G,oe){J(oe.element),this.cache(G).push(oe)},ge.prototype.cache=function(G){return this._cache[G]||(this._cache[G]=[])},ge.prototype.garbageCollect=function(){var G=this;this._cache&&Object.keys(this._cache).forEach(function(oe){G._cache[oe].forEach(function(Y){G.context.renderer.disposeTemplate(G.context.tree,oe,Y.templateData),Y.element=null,Y.templateData=null}),delete G._cache[oe]})},ge.prototype.dispose=function(){this.garbageCollect(),this._cache=null},ge}(),F=function(){function ge(G,oe){var Y=this;this.width=0,this.needsRender=!1,this.uri=null,this.unbindDragStart=I.a.None,this._draggable=!1,this.context=G,this.model=oe,this.id=this.model.id,this.row=null,this.top=0,this.height=oe.getHeight(),this._styles={},oe.getAllTraits().forEach(function(ae){return Y._styles[ae]=!0}),oe.isExpanded()&&this.addClass("expanded")}return Object.defineProperty(ge.prototype,"expanded",{set:function(G){G?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"loading",{set:function(G){G?this.addClass("codicon-loading"):this.removeClass("codicon-loading")},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"draggable",{get:function(){return this._draggable},set:function(G){this._draggable=G,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"dropTarget",{set:function(G){G?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(ge.prototype,"templateId",{get:function(){return this._templateId||(this._templateId=this.context.renderer.getTemplateId&&this.context.renderer.getTemplateId(this.context.tree,this.model.getElement()))},enumerable:!0,configurable:!0}),ge.prototype.addClass=function(G){this._styles[G]=!0,this.render(!0)},ge.prototype.removeClass=function(G){delete this._styles[G],this.render(!0)},ge.prototype.render=function(G){var oe=this;if(G===void 0&&(G=!1),!this.model||!this.element)return;var Y=["monaco-tree-row"];Y.push.apply(Y,Object.keys(this._styles)),this.model.hasChildren()&&Y.push("has-children"),this.element.className=Y.join(" "),this.element.draggable=this.draggable,this.element.style.height=this.height+"px",this.element.setAttribute("role","treeitem");var ae=this.context.accessibilityProvider,Fe=ae.getAriaLabel(this.context.tree,this.model.getElement());if(Fe&&this.element.setAttribute("aria-label",Fe),ae.getPosInSet&&ae.getSetSize&&(this.element.setAttribute("aria-setsize",ae.getSetSize()),this.element.setAttribute("aria-posinset",ae.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var dt=ke.L(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",dt)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id");this.model.hasChildren()?this.element.setAttribute("aria-expanded",String(!!this._styles.expanded)):this.element.removeAttribute("aria-expanded"),this.element.setAttribute("aria-level",String(this.model.getDepth())),this.context.options.paddingOnRow?this.element.style.paddingLeft=this.context.options.twistiePixels+(this.model.getDepth()-1)*this.context.options.indentPixels+"px":(this.element.style.paddingLeft=(this.model.getDepth()-1)*this.context.options.indentPixels+"px",this.row.element.firstElementChild.style.paddingLeft=this.context.options.twistiePixels+"px");var Ot=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(Ot!==this.uri&&(this.unbindDragStart&&this.unbindDragStart.dispose(),Ot?(this.uri=Ot,this.draggable=!0,this.unbindDragStart=R.j(this.element,"dragstart",function(fo){oe.onDragStart(fo)})):this.uri=null),!G&&this.element){var Qt=0;if(this.context.horizontalScrolling){var to=window.getComputedStyle(this.element);Qt=parseFloat(to.paddingLeft)}this.context.horizontalScrolling&&(this.element.style.width=Ie.h?"-moz-fit-content":"fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(fo){console.error("Tree usage error: exception while rendering element"),console.error(fo)}this.context.horizontalScrolling&&(this.width=R.B(this.element)+Qt,this.element.style.width="")}},ge.prototype.insertInDOM=function(G,oe){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[fe.BINDING]=this),this.element.parentElement)return;if(oe===null)G.appendChild(this.element);else try{G.insertBefore(this.element,oe)}catch(Y){console.warn("Failed to locate previous tree element"),G.appendChild(this.element)}this.render()},ge.prototype.removeFromDOM=function(){if(!this.row)return;this.unbindDragStart.dispose(),this.uri=null,this.element[fe.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null},ge.prototype.dispose=function(){this.row=null},ge}(),re=function(ge){he(G,ge);function G(oe,Y,ae){var Fe=ge.call(this,oe,Y)||this;return Fe.row={element:ae,templateData:null,templateId:null},Fe}return G.prototype.render=function(){if(!this.model||!this.element)return;var oe=["monaco-tree-wrapper"];oe.push.apply(oe,Object.keys(this._styles)),this.model.hasChildren()&&oe.push("has-children"),this.element.className=oe.join(" ")},G.prototype.insertInDOM=function(oe,Y){},G.prototype.removeFromDOM=function(){},G}(F);function ne(ge,G){return!ge&&!G?!0:!ge||!G||(ge.accept!==G.accept||ge.bubble!==G.bubble)?!1:!(ge.effect!==G.effect)}var fe=function(ge){he(G,ge);function G(oe,Y){var ae=ge.call(this)||this;ae.model=null,ae.lastPointerType="",ae.lastClickTimeStamp=0,ae.contentWidthUpdateDelayer=new Ce.a(50),ae.isRefreshing=!1,ae.refreshingPreviousChildrenIds={},ae.currentDragAndDropData=null,ae.currentDropTarget=null,ae.currentDropTargets=null,ae.currentDropDisposable=I.a.None,ae.gestureDisposable=I.a.None,ae.dragAndDropScrollInterval=null,ae.dragAndDropScrollTimeout=null,ae.dragAndDropMouseY=null,ae.highlightedItemWasDraggable=!1,ae.onHiddenScrollTop=null,ae._onDOMFocus=new P.a,ae.onDOMFocus=ae._onDOMFocus.event,ae._onDOMBlur=new P.a,ae._onDidScroll=new P.a,G.counter++,ae.instance=G.counter;var Fe=typeof oe.options.horizontalScrollMode=="undefined"?2:oe.options.horizontalScrollMode;ae.horizontalScrolling=Fe!==2,ae.context={dataSource:oe.dataSource,renderer:oe.renderer,controller:oe.controller,dnd:oe.dnd,filter:oe.filter,sorter:oe.sorter,tree:oe.tree,accessibilityProvider:oe.accessibilityProvider,options:oe.options,cache:new b(oe),horizontalScrolling:ae.horizontalScrolling},ae.modelListeners=[],ae.viewListeners=[],ae.items={},ae.domNode=document.createElement("div"),ae.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+ae.instance,ae.domNode.tabIndex=oe.options.preventRootFocus?-1:0,ae.styleElement=R.w(ae.domNode),ae.treeStyler=oe.styler||new _(ae.styleElement,"monaco-tree-instance-"+ae.instance),ae.domNode.setAttribute("role","tree"),ae.context.options.ariaLabel&&ae.domNode.setAttribute("aria-label",ae.context.options.ariaLabel),ae.context.options.alwaysFocused&&R.f(ae.domNode,"focused"),ae.context.options.paddingOnRow||R.f(ae.domNode,"no-row-padding"),ae.wrapper=document.createElement("div"),ae.wrapper.className="monaco-tree-wrapper",ae.scrollableElement=new ye.b(ae.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:Fe,vertical:typeof oe.options.verticalScrollMode!="undefined"?oe.options.verticalScrollMode:1,useShadows:oe.options.useShadows}),ae.scrollableElement.onScroll(function(Ot){ae.render(Ot.scrollTop,Ot.height,Ot.scrollLeft,Ot.width,Ot.scrollWidth),ae._onDidScroll.fire()}),Ie.i?(ae.wrapper.style.msTouchAction="none",ae.wrapper.style.msContentZooming="none"):ae.gestureDisposable=Ve.b.addTarget(ae.wrapper),ae.rowsContainer=document.createElement("div"),ae.rowsContainer.className="monaco-tree-rows",oe.options.showTwistie&&(ae.rowsContainer.className+=" show-twisties");var dt=R.Z(ae.domNode);return ae.viewListeners.push(dt.onDidFocus(function(){return ae.onFocus()})),ae.viewListeners.push(dt.onDidBlur(function(){return ae.onBlur()})),ae.viewListeners.push(dt),ae.viewListeners.push(R.j(ae.domNode,"keydown",function(Ot){return ae.onKeyDown(Ot)})),ae.viewListeners.push(R.j(ae.domNode,"keyup",function(Ot){return ae.onKeyUp(Ot)})),ae.viewListeners.push(R.j(ae.domNode,"mousedown",function(Ot){return ae.onMouseDown(Ot)})),ae.viewListeners.push(R.j(ae.domNode,"mouseup",function(Ot){return ae.onMouseUp(Ot)})),ae.viewListeners.push(R.j(ae.wrapper,"auxclick",function(Ot){Ot&&Ot.button===1&&ae.onMouseMiddleClick(Ot)})),ae.viewListeners.push(R.j(ae.wrapper,"click",function(Ot){return ae.onClick(Ot)})),ae.viewListeners.push(R.j(ae.domNode,"contextmenu",function(Ot){return ae.onContextMenu(Ot)})),ae.viewListeners.push(R.j(ae.wrapper,Ve.a.Tap,function(Ot){return ae.onTap(Ot)})),ae.viewListeners.push(R.j(ae.wrapper,Ve.a.Change,function(Ot){return ae.onTouchChange(Ot)})),Ie.i&&(ae.viewListeners.push(R.j(ae.wrapper,"MSPointerDown",function(Ot){return ae.onMsPointerDown(Ot)})),ae.viewListeners.push(R.j(ae.wrapper,"MSGestureTap",function(Ot){return ae.onMsGestureTap(Ot)})),ae.viewListeners.push(R.m(ae.wrapper,"MSGestureChange",function(Ot){return ae.onThrottledMsGestureChange(Ot)},function(Ot,Qt){Qt.stopPropagation(),Qt.preventDefault();var to={translationY:Qt.translationY,translationX:Qt.translationX};return Ot&&(to.translationY+=Ot.translationY,to.translationX+=Ot.translationX),to}))),ae.viewListeners.push(R.j(window,"dragover",function(Ot){return ae.onDragOver(Ot)})),ae.viewListeners.push(R.j(ae.wrapper,"drop",function(Ot){return ae.onDrop(Ot)})),ae.viewListeners.push(R.j(window,"dragend",function(Ot){return ae.onDragEnd(Ot)})),ae.viewListeners.push(R.j(window,"dragleave",function(Ot){return ae.onDragOver(Ot)})),ae.wrapper.appendChild(ae.rowsContainer),ae.domNode.appendChild(ae.scrollableElement.getDomNode()),Y.appendChild(ae.domNode),ae.lastRenderTop=0,ae.lastRenderHeight=0,ae.didJustPressContextMenuKey=!1,ae.currentDropTarget=null,ae.currentDropTargets=[],ae.shouldInvalidateDropReaction=!1,ae.dragAndDropScrollInterval=null,ae.dragAndDropScrollTimeout=null,ae.onRowsChanged(),ae.layout(),ae.setupMSGesture(),ae.applyStyles(oe.options),ae}return G.prototype.applyStyles=function(oe){this.treeStyler.style(oe)},G.prototype.createViewItem=function(oe){return new F(this.context,oe)},G.prototype.getHTMLElement=function(){return this.domNode},G.prototype.focus=function(){this.domNode.focus()},G.prototype.isFocused=function(){return document.activeElement===this.domNode},G.prototype.blur=function(){this.domNode.blur()},G.prototype.setupMSGesture=function(){var oe=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout(function(){return oe.msGesture.target=oe.wrapper},100))},G.prototype.isTreeVisible=function(){return this.onHiddenScrollTop===null},G.prototype.layout=function(oe,Y){if(!this.isTreeVisible())return;this.viewHeight=oe||R.A(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=Y||R.B(this.wrapper))},G.prototype.render=function(oe,Y,ae,Fe,dt){var Ot,Qt,to=oe,fo=oe+Y,ho=this.lastRenderTop+this.lastRenderHeight;for(Ot=this.indexAfter(fo)-1,Qt=this.indexAt(Math.max(ho,to));Ot>=Qt;Ot--)this.insertItemInDOM(this.itemAtIndex(Ot));for(Ot=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(fo))-1,Qt=this.indexAt(to);Ot>=Qt;Ot--)this.insertItemInDOM(this.itemAtIndex(Ot));for(Ot=this.indexAt(this.lastRenderTop),Qt=Math.min(this.indexAt(to),this.indexAfter(ho));Ot<Qt;Ot++)this.removeItemFromDOM(this.itemAtIndex(Ot));for(Ot=Math.max(this.indexAfter(fo),this.indexAt(this.lastRenderTop)),Qt=this.indexAfter(ho);Ot<Qt;Ot++)this.removeItemFromDOM(this.itemAtIndex(Ot));var _o=this.itemAtIndex(this.indexAt(to));_o&&(this.rowsContainer.style.top=_o.top-to+"px"),this.horizontalScrolling&&(this.rowsContainer.style.left=-ae+"px",this.rowsContainer.style.width=Math.max(dt,Fe)+"px"),this.lastRenderTop=to,this.lastRenderHeight=fo-to},G.prototype.setModel=function(oe){this.releaseModel(),this.model=oe,this.model.onRefresh(this.onRefreshing,this,this.modelListeners),this.model.onDidRefresh(this.onRefreshed,this,this.modelListeners),this.model.onSetInput(this.onClearingInput,this,this.modelListeners),this.model.onDidSetInput(this.onSetInput,this,this.modelListeners),this.model.onDidFocus(this.onModelFocusChange,this,this.modelListeners),this.model.onRefreshItemChildren(this.onItemChildrenRefreshing,this,this.modelListeners),this.model.onDidRefreshItemChildren(this.onItemChildrenRefreshed,this,this.modelListeners),this.model.onDidRefreshItem(this.onItemRefresh,this,this.modelListeners),this.model.onExpandItem(this.onItemExpanding,this,this.modelListeners),this.model.onDidExpandItem(this.onItemExpanded,this,this.modelListeners),this.model.onCollapseItem(this.onItemCollapsing,this,this.modelListeners),this.model.onDidRevealItem(this.onItemReveal,this,this.modelListeners),this.model.onDidAddTraitItem(this.onItemAddTrait,this,this.modelListeners),this.model.onDidRemoveTraitItem(this.onItemRemoveTrait,this,this.modelListeners)},G.prototype.onRefreshing=function(){this.isRefreshing=!0},G.prototype.onRefreshed=function(){this.isRefreshing=!1,this.onRowsChanged()},G.prototype.onRowsChanged=function(oe){if(oe===void 0&&(oe=this.scrollTop),this.isRefreshing)return;this.scrollTop=oe,this.updateScrollWidth()},G.prototype.updateScrollWidth=function(){var oe=this;if(!this.horizontalScrolling)return;this.contentWidthUpdateDelayer.trigger(function(){for(var Y=Object.keys(oe.items),ae=0,Fe=0,dt=Y;Fe<dt.length;Fe++){var Ot=dt[Fe];ae=Math.max(ae,oe.items[Ot].width)}oe.scrollWidth=ae+10})},G.prototype.focusNextPage=function(oe){var Y=this,ae=this.indexAt(this.scrollTop+this.viewHeight);ae=ae===0?0:ae-1;var Fe=this.itemAtIndex(ae).model.getElement(),dt=this.model.getFocus();if(dt!==Fe)this.model.setFocus(Fe,oe);else{var Ot=this.scrollTop;this.scrollTop+=this.viewHeight,this.scrollTop!==Ot&&setTimeout(function(){Y.focusNextPage(oe)},0)}},G.prototype.focusPreviousPage=function(oe){var Y=this,ae;this.scrollTop===0?ae=this.indexAt(this.scrollTop):ae=this.indexAfter(this.scrollTop-1);var Fe=this.itemAtIndex(ae).model.getElement(),dt=this.model.getFocus();if(dt!==Fe)this.model.setFocus(Fe,oe);else{var Ot=this.scrollTop;this.scrollTop-=this.viewHeight,this.scrollTop!==Ot&&setTimeout(function(){Y.focusPreviousPage(oe)},0)}},Object.defineProperty(G.prototype,"viewHeight",{get:function(){var oe=this.scrollableElement.getScrollDimensions();return oe.height},set:function(oe){this.scrollableElement.setScrollDimensions({height:oe})},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"scrollHeight",{set:function(oe){oe=oe+(this.horizontalScrolling?10:0),this.scrollableElement.setScrollDimensions({scrollHeight:oe})},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"viewWidth",{get:function(){var oe=this.scrollableElement.getScrollDimensions();return oe.width},set:function(oe){this.scrollableElement.setScrollDimensions({width:oe})},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"scrollWidth",{set:function(oe){this.scrollableElement.setScrollDimensions({scrollWidth:oe})},enumerable:!0,configurable:!0}),Object.defineProperty(G.prototype,"scrollTop",{get:function(){var oe=this.scrollableElement.getScrollPosition();return oe.scrollTop},set:function(oe){var Y=this.getContentHeight()+(this.horizontalScrolling?10:0);this.scrollableElement.setScrollDimensions({scrollHeight:Y}),this.scrollableElement.setScrollPosition({scrollTop:oe})},enumerable:!0,configurable:!0}),G.prototype.onClearingInput=function(oe){var Y=oe.item;Y&&(this.onRemoveItems(new Z.e(Y.getNavigator(),function(ae){return ae&&ae.id})),this.onRowsChanged())},G.prototype.onSetInput=function(oe){this.context.cache.garbageCollect(),this.inputItem=new re(this.context,oe.item,this.wrapper)},G.prototype.onItemChildrenRefreshing=function(oe){var Y=oe.item,ae=this.items[Y.id];if(ae&&this.context.options.showLoading&&(ae.loadingTimer=setTimeout(function(){ae.loadingTimer=0,ae.loading=!0},G.LOADING_DECORATION_DELAY)),!oe.isNested){for(var Fe=[],dt=Y.getNavigator(),Ot=void 0;Ot=dt.next();)Fe.push(Ot.id);this.refreshingPreviousChildrenIds[Y.id]=Fe}},G.prototype.onItemChildrenRefreshed=function(oe){var Y=this,ae=oe.item,Fe=this.items[ae.id];if(Fe&&(Fe.loadingTimer&&(clearTimeout(Fe.loadingTimer),Fe.loadingTimer=0),Fe.loading=!1),!oe.isNested){for(var dt=this.refreshingPreviousChildrenIds[ae.id],Ot=[],Qt=ae.getNavigator(),to=void 0;to=Qt.next();)Ot.push(to);var fo=Math.abs(dt.length-Ot.length)>1e3,ho=[],_o=!1;if(!fo){var Do=new Pe.a({getElements:function(){return dt}},{getElements:function(){return Ot.map(function(Ho){return Ho.id})}},null);ho=Do.ComputeDiff(!1).changes,_o=ho.some(function(Ho){if(Ho.modifiedLength>0){for(var Fo=Ho.modifiedStart,Io=Ho.modifiedStart+Ho.modifiedLength;Fo<Io;Fo++)if(Y.items.hasOwnProperty(Ot[Fo].id))return!0}return!1})}if(!fo&&!_o&&ho.length<50)for(var Ro=0,jo=ho;Ro<jo.length;Ro++){var Eo=jo[Ro];if(Eo.originalLength>0&&this.onRemoveItems(new Z.a(dt,Eo.originalStart,Eo.originalStart+Eo.originalLength)),Eo.modifiedLength>0){var Wo=Ot[Eo.modifiedStart-1]||ae;Wo=Wo.getDepth()>0?Wo:null,this.onInsertItems(new Z.a(Ot,Eo.modifiedStart,Eo.modifiedStart+Eo.modifiedLength),Wo?Wo.id:null)}}else(fo||ho.length)&&(this.onRemoveItems(new Z.a(dt)),this.onInsertItems(new Z.a(Ot),ae.getDepth()>0?ae.id:null));(fo||ho.length)&&this.onRowsChanged()}},G.prototype.onItemRefresh=function(oe){this.onItemsRefresh([oe])},G.prototype.onItemsRefresh=function(oe){var Y=this;this.onRefreshItemSet(oe.filter(function(ae){return Y.items.hasOwnProperty(ae.id)})),this.onRowsChanged()},G.prototype.onItemExpanding=function(oe){var Y=this.items[oe.item.id];Y&&(Y.expanded=!0)},G.prototype.onItemExpanded=function(oe){var Y=oe.item,ae=this.items[Y.id];if(ae){ae.expanded=!0;var Fe=this.onInsertItems(Y.getNavigator(),Y.id)||0,dt=this.scrollTop;ae.top+ae.height<=this.scrollTop&&(dt+=Fe),this.onRowsChanged(dt)}},G.prototype.onItemCollapsing=function(oe){var Y=oe.item,ae=this.items[Y.id];ae&&(ae.expanded=!1,this.onRemoveItems(new Z.e(Y.getNavigator(),function(Fe){return Fe&&Fe.id})),this.onRowsChanged())},G.prototype.onItemReveal=function(oe){var Y=oe.item,ae=oe.relativeTop,Fe=this.items[Y.id];if(Fe)if(ae!==null){ae=ae<0?0:ae,ae=ae>1?1:ae;var dt=Fe.height-this.viewHeight;this.scrollTop=dt*ae+Fe.top}else{var Ot=Fe.top+Fe.height,Qt=this.scrollTop+this.viewHeight;Fe.top<this.scrollTop?this.scrollTop=Fe.top:Ot>=Qt&&(this.scrollTop=Ot-this.viewHeight)}},G.prototype.onItemAddTrait=function(oe){var Y=oe.item,ae=oe.trait,Fe=this.items[Y.id];Fe&&Fe.addClass(ae),ae==="highlighted"&&(R.f(this.domNode,ae),Fe&&(this.highlightedItemWasDraggable=!!Fe.draggable,Fe.draggable&&(Fe.draggable=!1)))},G.prototype.onItemRemoveTrait=function(oe){var Y=oe.item,ae=oe.trait,Fe=this.items[Y.id];Fe&&Fe.removeClass(ae),ae==="highlighted"&&(R.P(this.domNode,ae),this.highlightedItemWasDraggable&&(Fe.draggable=!0),this.highlightedItemWasDraggable=!1)},G.prototype.onModelFocusChange=function(){var oe=this.model&&this.model.getFocus();R.Y(this.domNode,"no-focused-item",!oe),oe?this.domNode.setAttribute("aria-activedescendant",ke.L(this.context.dataSource.getId(this.context.tree,oe))):this.domNode.removeAttribute("aria-activedescendant")},G.prototype.onInsertItem=function(oe){var Y=this;oe.onDragStart=function(ae){Y.onDragStart(oe,ae)},oe.needsRender=!0,this.refreshViewItem(oe),this.items[oe.id]=oe},G.prototype.onRefreshItem=function(oe,Y){Y===void 0&&(Y=!1),oe.needsRender=oe.needsRender||Y,this.refreshViewItem(oe)},G.prototype.onRemoveItem=function(oe){this.removeItemFromDOM(oe),oe.dispose(),delete this.items[oe.id]},G.prototype.refreshViewItem=function(oe){oe.render(),this.shouldBeRendered(oe)?this.insertItemInDOM(oe):this.removeItemFromDOM(oe)},G.prototype.onClick=function(oe){if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new se.b(oe),ae=this.getItemAround(Y.target);if(!ae)return;Ie.i&&Date.now()-this.lastClickTimeStamp<300&&(Y.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,ae.model.getElement(),Y)},G.prototype.onMouseMiddleClick=function(oe){if(!this.context.controller.onMouseMiddleClick)return;var Y=new se.b(oe),ae=this.getItemAround(Y.target);if(!ae)return;this.context.controller.onMouseMiddleClick(this.context.tree,ae.model.getElement(),Y)},G.prototype.onMouseDown=function(oe){if(this.didJustPressContextMenuKey=!1,!this.context.controller.onMouseDown)return;if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new se.b(oe);if(Y.ctrlKey&&D.f&&D.e)return;var ae=this.getItemAround(Y.target);if(!ae)return;this.context.controller.onMouseDown(this.context.tree,ae.model.getElement(),Y)},G.prototype.onMouseUp=function(oe){if(!this.context.controller.onMouseUp)return;if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new se.b(oe);if(Y.ctrlKey&&D.f&&D.e)return;var ae=this.getItemAround(Y.target);if(!ae)return;this.context.controller.onMouseUp(this.context.tree,ae.model.getElement(),Y)},G.prototype.onTap=function(oe){var Y=this.getItemAround(oe.initialTarget);if(!Y)return;this.context.controller.onTap(this.context.tree,Y.model.getElement(),oe)},G.prototype.onTouchChange=function(oe){oe.preventDefault(),oe.stopPropagation(),this.scrollTop-=oe.translationY},G.prototype.onContextMenu=function(oe){var Y,ae;if(oe instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var Fe=new ee.a(oe);ae=this.model.getFocus();var dt=void 0;if(!ae)ae=this.model.getInput(),dt=R.C(this.inputItem.element);else{var Ot=this.context.dataSource.getId(this.context.tree,ae),Qt=this.items[Ot];dt=R.C(Qt.element)}Y=new Ee(dt.left+dt.width,dt.top,Fe)}else{var to=new se.b(oe),fo=this.getItemAround(to.target);if(!fo)return;ae=fo.model.getElement(),Y=new ve(to)}this.context.controller.onContextMenu(this.context.tree,ae,Y)},G.prototype.onKeyDown=function(oe){var Y=new ee.a(oe);if(this.didJustPressContextMenuKey=Y.keyCode===58||Y.shiftKey&&Y.keyCode===68,Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input")return;this.didJustPressContextMenuKey&&(Y.preventDefault(),Y.stopPropagation()),this.context.controller.onKeyDown(this.context.tree,Y)},G.prototype.onKeyUp=function(oe){this.didJustPressContextMenuKey&&this.onContextMenu(oe),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new ee.a(oe))},G.prototype.onDragStart=function(oe,Y){if(this.model.getHighlight())return;var ae=oe.model.getElement(),Fe=this.model.getSelection(),dt;if(Fe.indexOf(ae)>-1?dt=Fe:dt=[ae],Y.dataTransfer.effectAllowed="copyMove",Y.dataTransfer.setData(xe.a.RESOURCES,JSON.stringify([oe.uri])),Y.dataTransfer.setDragImage){var Ot=void 0;this.context.dnd.getDragLabel?Ot=this.context.dnd.getDragLabel(this.context.tree,dt):Ot=String(dt.length);var Qt=document.createElement("div");Qt.className="monaco-tree-drag-image",Qt.textContent=Ot,document.body.appendChild(Qt),Y.dataTransfer.setDragImage(Qt,-10,-10),setTimeout(function(){return document.body.removeChild(Qt)},0)}this.currentDragAndDropData=new ie(dt),xe.c.CurrentDragAndDropData=new q(dt),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new se.a(Y))},G.prototype.setupDragAndDropScrollInterval=function(){var oe=this,Y=R.F(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(oe.dragAndDropMouseY===null)return;var ae=oe.dragAndDropMouseY-Y,Fe=0,dt=oe.viewHeight-35;ae<35?Fe=Math.max(-14,.2*(ae-35)):ae>dt&&(Fe=Math.min(14,.2*(ae-dt))),oe.scrollTop+=Fe},10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout(function(){oe.cancelDragAndDropScrollInterval(),oe.dragAndDropScrollTimeout=null},1e3))},G.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},G.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},G.prototype.onDragOver=function(oe){var Y=this;oe.preventDefault();var ae=new se.a(oe),Fe=this.getItemAround(ae.target);if(!Fe||ae.posx===0&&ae.posy===0&&ae.browserEvent.type===R.d.DRAG_LEAVE)return this.currentDropTarget&&(this.currentDropTargets.forEach(function(Ro){return Ro.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.cancelDragAndDropScrollInterval(),this.currentDropTarget=null,this.currentDropElement=null,this.dragAndDropMouseY=null,!1;if(this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=ae.posy,!this.currentDragAndDropData)if(xe.c.CurrentDragAndDropData)this.currentDragAndDropData=xe.c.CurrentDragAndDropData;else{if(!ae.dataTransfer.types)return!1;this.currentDragAndDropData=new ce}this.currentDragAndDropData.update(ae.browserEvent.dataTransfer);var dt,Ot=Fe.model,Qt;do{if(dt=Ot?Ot.getElement():this.model.getInput(),Qt=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,dt,ae),!Qt||Qt.bubble!==1)break;Ot=Ot&&Ot.parent}while(Ot);if(!Ot)return this.currentDropElement=null,!1;var to=Qt&&Qt.accept;to?(this.currentDropElement=Ot.getElement(),ae.preventDefault(),ae.dataTransfer.dropEffect=Qt.effect===0?"copy":"move"):this.currentDropElement=null;var fo=Ot.id===this.inputItem.id?this.inputItem:this.items[Ot.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==fo||!ne(this.currentDropElementReaction,Qt))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach(function(Ro){return Ro.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.currentDropTarget=fo,this.currentDropElementReaction=Qt,to)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),Qt.bubble===0)for(var ho=Ot.getNavigator(),_o=void 0;_o=ho.next();)Fe=this.items[_o.id],Fe&&(Fe.dropTarget=!0,this.currentDropTargets.push(Fe));if(Qt.autoExpand){var Do=Object(Ce.l)(500);this.currentDropDisposable=I.h(function(){return Do.cancel()}),Do.then(function(){return Y.context.tree.expand(Y.currentDropElement)}).then(function(){return Y.shouldInvalidateDropReaction=!0})}}return!0},G.prototype.onDrop=function(oe){if(this.currentDropElement){var Y=new se.a(oe);Y.preventDefault(),this.currentDragAndDropData.update(Y.browserEvent.dataTransfer),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,Y),this.onDragEnd(oe)}this.cancelDragAndDropScrollInterval()},G.prototype.onDragEnd=function(oe){this.currentDropTarget&&(this.currentDropTargets.forEach(function(Y){return Y.dropTarget=!1}),this.currentDropTargets=[]),this.currentDropDisposable.dispose(),this.cancelDragAndDropScrollInterval(),this.currentDragAndDropData=null,xe.c.CurrentDragAndDropData=void 0,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},G.prototype.onFocus=function(){this.context.options.alwaysFocused||R.f(this.domNode,"focused"),this._onDOMFocus.fire()},G.prototype.onBlur=function(){this.context.options.alwaysFocused||R.P(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},G.prototype.onMsPointerDown=function(oe){if(!this.msGesture)return;var Y=oe.pointerType;if(Y===(oe.MSPOINTER_TYPE_MOUSE||"mouse")){this.lastPointerType="mouse";return}else if(Y===(oe.MSPOINTER_TYPE_TOUCH||"touch"))this.lastPointerType="touch";else return;oe.stopPropagation(),oe.preventDefault(),this.msGesture.addPointer(oe.pointerId)},G.prototype.onThrottledMsGestureChange=function(oe){this.scrollTop-=oe.translationY},G.prototype.onMsGestureTap=function(oe){oe.initialTarget=document.elementFromPoint(oe.clientX,oe.clientY),this.onTap(oe)},G.prototype.insertItemInDOM=function(oe){var Y=null,ae=this.itemAfter(oe);ae&&ae.element&&(Y=ae.element),oe.insertInDOM(this.rowsContainer,Y)},G.prototype.removeItemFromDOM=function(oe){if(!oe)return;oe.removeFromDOM()},G.prototype.shouldBeRendered=function(oe){return oe.top<this.lastRenderTop+this.lastRenderHeight&&oe.top+oe.height>this.lastRenderTop},G.prototype.getItemAround=function(oe){var Y=this.inputItem,ae=oe;do{if(ae[G.BINDING]&&(Y=ae[G.BINDING]),ae===this.wrapper||ae===this.domNode)return Y;if(ae===this.scrollableElement.getDomNode()||ae===document.body)return}while(ae=ae.parentElement);return},G.prototype.releaseModel=function(){this.model&&(this.modelListeners=I.f(this.modelListeners),this.model=null)},G.prototype.dispose=function(){var oe=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=I.f(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.items&&Object.keys(this.items).forEach(function(Y){return oe.items[Y].removeFromDOM()}),this.context.cache&&this.context.cache.dispose(),this.gestureDisposable.dispose(),ge.prototype.dispose.call(this)},G.BINDING="monaco-tree-row",G.LOADING_DECORATION_DELAY=800,G.counter=0,G}(je),Oe=e("zrhQ"),Me=e("qj0h"),Ue=function(){function ge(G,oe,Y){if(Y===void 0&&(Y={}),this.tree=G,this.configuration=oe,this.options=Y,!oe.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=oe.dataSource,this.renderer=oe.renderer,this.controller=oe.controller||new s({clickBehavior:1,keyboardSupport:typeof Y.keyboardSupport!="boolean"||Y.keyboardSupport}),this.dnd=oe.dnd||new l,this.filter=oe.filter||new c,this.sorter=oe.sorter,this.accessibilityProvider=oe.accessibilityProvider||new p,this.styler=oe.styler}return ge}(),Je={listFocusBackground:Oe.a.fromHex("#073655"),listActiveSelectionBackground:Oe.a.fromHex("#0E639C"),listActiveSelectionForeground:Oe.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:Oe.a.fromHex("#094771"),listFocusAndSelectionForeground:Oe.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:Oe.a.fromHex("#3F3F46"),listHoverBackground:Oe.a.fromHex("#2A2D2E"),listDropBackground:Oe.a.fromHex("#383B3D")},nt=function(){function ge(G,oe,Y){Y===void 0&&(Y={}),this._onDidChangeFocus=new P.f,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new P.f,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new P.f,this._onDidExpandItem=new P.f,this._onDidCollapseItem=new P.f,this._onDispose=new P.a,this.onDidDispose=this._onDispose.event,this.container=G,Object(Me.g)(Y,Je,!1),Y.twistiePixels=typeof Y.twistiePixels=="number"?Y.twistiePixels:32,Y.showTwistie=!(Y.showTwistie===!1),Y.indentPixels=typeof Y.indentPixels=="number"?Y.indentPixels:12,Y.alwaysFocused=Y.alwaysFocused===!0,Y.useShadows=!(Y.useShadows===!1),Y.paddingOnRow=!(Y.paddingOnRow===!1),Y.showLoading=!(Y.showLoading===!1),this.context=new Ue(this,oe,Y),this.model=new Se(this.context),this.view=new fe(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}return ge.prototype.style=function(G){this.view.applyStyles(G)},Object.defineProperty(ge.prototype,"onDidFocus",{get:function(){return this.view.onDOMFocus},enumerable:!0,configurable:!0}),ge.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},ge.prototype.layout=function(G,oe){this.view.layout(G,oe)},ge.prototype.domFocus=function(){this.view.focus()},ge.prototype.isDOMFocused=function(){return this.view.isFocused()},ge.prototype.domBlur=function(){this.view.blur()},ge.prototype.setInput=function(G){return this.model.setInput(G)},ge.prototype.getInput=function(){return this.model.getInput()},ge.prototype.expand=function(G){return this.model.expand(G)},ge.prototype.collapse=function(G,oe){return oe===void 0&&(oe=!1),this.model.collapse(G,oe)},ge.prototype.toggleExpansion=function(G,oe){return oe===void 0&&(oe=!1),this.model.toggleExpansion(G,oe)},ge.prototype.isExpanded=function(G){return this.model.isExpanded(G)},ge.prototype.reveal=function(G,oe){return oe===void 0&&(oe=null),this.model.reveal(G,oe)},ge.prototype.getHighlight=function(){return this.model.getHighlight()},ge.prototype.clearHighlight=function(G){this.model.setHighlight(null,G)},ge.prototype.setSelection=function(G,oe){this.model.setSelection(G,oe)},ge.prototype.getSelection=function(){return this.model.getSelection()},ge.prototype.clearSelection=function(G){this.model.setSelection([],G)},ge.prototype.setFocus=function(G,oe){this.model.setFocus(G,oe)},ge.prototype.getFocus=function(){return this.model.getFocus()},ge.prototype.focusNext=function(G,oe){this.model.focusNext(G,oe)},ge.prototype.focusPrevious=function(G,oe){this.model.focusPrevious(G,oe)},ge.prototype.focusParent=function(G){this.model.focusParent(G)},ge.prototype.focusFirstChild=function(G){this.model.focusFirstChild(G)},ge.prototype.focusFirst=function(G,oe){this.model.focusFirst(G,oe)},ge.prototype.focusNth=function(G,oe){this.model.focusNth(G,oe)},ge.prototype.focusLast=function(G,oe){this.model.focusLast(G,oe)},ge.prototype.focusNextPage=function(G){this.view.focusNextPage(G)},ge.prototype.focusPreviousPage=function(G){this.view.focusPreviousPage(G)},ge.prototype.clearFocus=function(G){this.model.setFocus(null,G)},ge.prototype.dispose=function(){this._onDispose.fire(),this.model.dispose(),this.view.dispose(),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},ge}(),vt=e("HyZH"),Rt=function(){var ge=function(G,oe){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,ae){Y.__proto__=ae}||function(Y,ae){for(var Fe in ae)ae.hasOwnProperty(Fe)&&(Y[Fe]=ae[Fe])},ge(G,oe)};return function(G,oe){ge(G,oe);function Y(){this.constructor=G}G.prototype=oe===null?Object.create(oe):(Y.prototype=oe.prototype,new Y)}}(),Dt="done",Kt="active",ao="infinite",lo="discrete",so="monaco-progress-container",jt="progress-bit",pt={progressBarBackground:Oe.a.fromHex("#0E70C0")},gt=function(ge){Rt(G,ge);function G(oe,Y){var ae=ge.call(this)||this;return ae.options=Y||Object.create(null),Object(Me.g)(ae.options,pt,!1),ae.workedVal=0,ae.progressBarBackground=ae.options.progressBarBackground,ae._register(ae.showDelayedScheduler=new Ce.d(function(){return Object(R.X)(ae.element)},0)),ae.create(oe),ae}return G.prototype.create=function(oe){this.element=document.createElement("div"),Object(R.f)(this.element,so),oe.appendChild(this.element),this.bit=document.createElement("div"),Object(R.f)(this.bit,jt),this.element.appendChild(this.bit),this.applyStyles()},G.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(R.Q)(this.element,Kt,ao,lo),this.workedVal=0,this.totalWork=void 0},G.prototype.stop=function(){return this.doDone(!1)},G.prototype.doDone=function(oe){var Y=this;return Object(R.f)(this.element,Dt),Object(R.I)(this.element,ao)?(this.bit.style.opacity="0",oe?setTimeout(function(){return Y.off()},200):this.off()):(this.bit.style.width="inherit",oe?setTimeout(function(){return Y.off()},200):this.off()),this},G.prototype.hide=function(){Object(R.J)(this.element),this.showDelayedScheduler.cancel()},G.prototype.style=function(oe){this.progressBarBackground=oe.progressBarBackground,this.applyStyles()},G.prototype.applyStyles=function(){if(this.bit){var oe=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=oe}},G}(I.a),Tt=function(){var ge=function(G,oe){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,ae){Y.__proto__=ae}||function(Y,ae){for(var Fe in ae)ae.hasOwnProperty(Fe)&&(Y[Fe]=ae[Fe])},ge(G,oe)};return function(G,oe){ge(G,oe);function Y(){this.constructor=G}G.prototype=oe===null?Object.create(oe):(Y.prototype=oe.prototype,new Y)}}(),it=function(ge){Tt(G,ge);function G(){return ge!==null&&ge.apply(this,arguments)||this}return G.prototype.onContextMenu=function(oe,Y,ae){return D.e?this.onLeftClick(oe,Y,ae):ge.prototype.onContextMenu.call(this,oe,Y,ae)},G}(s),et={background:Oe.a.fromHex("#1E1E1E"),foreground:Oe.a.fromHex("#CCCCCC"),pickerGroupForeground:Oe.a.fromHex("#0097FB"),pickerGroupBorder:Oe.a.fromHex("#3F3F46"),widgetShadow:Oe.a.fromHex("#000000"),progressBarBackground:Oe.a.fromHex("#0E70C0")},ut=z.a("quickOpenAriaLabel","Quick picker. Type to narrow down results."),Ct=function(ge){Tt(G,ge);function G(oe,Y,ae){var Fe=ge.call(this)||this;return Fe.isDisposed=!1,Fe.container=oe,Fe.callbacks=Y,Fe.options=ae,Fe.styles=ae||Object.create(null),Object(Me.g)(Fe.styles,et,!1),Fe.model=null,Fe}return G.prototype.getModel=function(){return this.model},G.prototype.create=function(){var oe=this;this.element=document.createElement("div"),R.f(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(R.j(this.element,R.d.CONTEXT_MENU,function(ae){return R.c.stop(ae,!0)})),this._register(R.j(this.element,R.d.FOCUS,function(ae){return oe.gainingFocus()},!0)),this._register(R.j(this.element,R.d.BLUR,function(ae){return oe.loosingFocus(ae)},!0)),this._register(R.j(this.element,R.d.KEY_DOWN,function(ae){var Fe=new ee.a(ae);if(Fe.keyCode===9)R.c.stop(ae,!0),oe.hide(2);else if(Fe.keyCode===2&&!Fe.altKey&&!Fe.ctrlKey&&!Fe.metaKey){var dt=ae.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");Fe.shiftKey&&Fe.target===dt[0]?(R.c.stop(ae,!0),dt[dt.length-1].focus()):!Fe.shiftKey&&Fe.target===dt[dt.length-1]&&(R.c.stop(ae,!0),dt[0].focus())}})),this.progressBar=this._register(new gt(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),R.f(this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new f.b(this.inputContainer,void 0,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:ut,inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder})),this.inputElement=this.inputBox.inputElement,this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-haspopup","false"),this.inputElement.setAttribute("aria-autocomplete","list"),this._register(R.j(this.inputBox.inputElement,R.d.INPUT,function(ae){return oe.onType()})),this._register(R.j(this.inputBox.inputElement,R.d.KEY_DOWN,function(ae){var Fe=new ee.a(ae),dt=oe.shouldOpenInBackground(Fe);if(Fe.keyCode===2)return;if(Fe.keyCode===18||Fe.keyCode===16||Fe.keyCode===12||Fe.keyCode===11)R.c.stop(ae,!0),oe.navigateInTree(Fe.keyCode,Fe.shiftKey),oe.inputBox.inputElement.selectionStart===oe.inputBox.inputElement.selectionEnd&&(oe.inputBox.inputElement.selectionStart=oe.inputBox.value.length);else if(Fe.keyCode===3||dt){R.c.stop(ae,!0);var Ot=oe.tree.getFocus();Ot&&oe.elementSelected(Ot,ae,dt?2:1)}})),this.resultCount=document.createElement("div"),R.f(this.resultCount,"quick-open-result-count"),this.resultCount.setAttribute("aria-live","polite"),this.resultCount.setAttribute("aria-atomic","true"),this.element.appendChild(this.resultCount),this.treeContainer=document.createElement("div"),R.f(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var Y=this.options.treeCreator||function(ae,Fe,dt){return new nt(ae,Fe,dt)};return this.tree=this._register(Y(this.treeContainer,{dataSource:new x(this),controller:new it({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new w(this,this.styles),filter:new y(this),accessibilityProvider:new h(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:z.a("treeAriaLabel","Quick Picker"),keyboardSupport:this.options.keyboardSupport,preventRootFocus:!1})),this.treeElement=this.tree.getHTMLElement(),this._register(this.tree.onDidChangeFocus(function(ae){oe.elementFocused(ae.focus,ae)})),this._register(this.tree.onDidChangeSelection(function(ae){if(ae.selection&&ae.selection.length>0){var Fe=ae.payload&&ae.payload.originalEvent instanceof se.b?ae.payload.originalEvent:void 0,dt=Fe?oe.shouldOpenInBackground(Fe):!1;oe.elementSelected(ae.selection[0],ae,dt?2:1)}})),this._register(R.j(this.treeContainer,R.d.KEY_DOWN,function(ae){var Fe=new ee.a(ae);if(!oe.quickNavigateConfiguration)return;if(Fe.keyCode===18||Fe.keyCode===16||Fe.keyCode===12||Fe.keyCode===11)R.c.stop(ae,!0),oe.navigateInTree(Fe.keyCode);else if(Fe.keyCode===3){R.c.stop(ae,!0);var dt=oe.tree.getFocus();dt&&oe.elementSelected(dt,ae)}})),this._register(R.j(this.treeContainer,R.d.KEY_UP,function(ae){var Fe=new ee.a(ae),dt=Fe.keyCode;if(!oe.quickNavigateConfiguration)return;var Ot=oe.quickNavigateConfiguration.keybindings,Qt=Ot.some(function(fo){var ho=fo.getParts(),_o=ho[0],Do=ho[1];return Do?!1:_o.shiftKey&&dt===4?!(Fe.ctrlKey||Fe.altKey||Fe.metaKey):_o.altKey&&dt===6||_o.ctrlKey&&dt===5?!0:!!(_o.metaKey&&dt===57)});if(Qt){var to=oe.tree.getFocus();to&&oe.elementSelected(to,ae)}})),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(R.j(this.treeContainer,R.d.KEY_DOWN,function(ae){var Fe=new ee.a(ae);if(oe.quickNavigateConfiguration)return;(Fe.keyCode===18||Fe.keyCode===16||Fe.keyCode===12||Fe.keyCode===11)&&(R.c.stop(ae,!0),oe.navigateInTree(Fe.keyCode,Fe.shiftKey),oe.treeElement.focus())})),this.element},G.prototype.style=function(oe){this.styles=oe,this.applyStyles()},G.prototype.applyStyles=function(){if(this.element){var oe=this.styles.foreground?this.styles.foreground.toString():"",Y=this.styles.background?this.styles.background.toString():"",ae=this.styles.borderColor?this.styles.borderColor.toString():"",Fe=this.styles.widgetShadow?this.styles.widgetShadow.toString():"";this.element.style.color=oe,this.element.style.backgroundColor=Y,this.element.style.borderColor=ae,this.element.style.borderWidth=ae?"1px":"",this.element.style.borderStyle=ae?"solid":"",this.element.style.boxShadow=Fe?"0 5px 8px "+Fe:""}this.progressBar&&this.progressBar.style({progressBarBackground:this.styles.progressBarBackground}),this.inputBox&&this.inputBox.style({inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder}),this.tree&&!this.options.treeCreator&&this.tree.style(this.styles),this.renderer&&this.renderer.updateStyles(this.styles)},G.prototype.shouldOpenInBackground=function(oe){if(oe instanceof ee.a){if(oe.keyCode!==17)return!1;if(oe.metaKey||oe.ctrlKey||oe.shiftKey||oe.altKey)return!1;var Y=this.inputBox.inputElement;return Y.selectionEnd===this.inputBox.value.length&&Y.selectionStart===Y.selectionEnd}return oe.middleButton},G.prototype.onType=function(){var oe=this.inputBox.value;this.helpText&&(oe?R.J(this.helpText):R.X(this.helpText)),this.callbacks.onType(oe)},G.prototype.navigateInTree=function(oe,Y){var ae=this.tree.getInput(),Fe=ae?ae.entries:[],dt=this.tree.getFocus();switch(oe){case 18:this.tree.focusNext();break;case 16:this.tree.focusPrevious();break;case 12:this.tree.focusNextPage();break;case 11:this.tree.focusPreviousPage();break;case 2:Y?this.tree.focusPrevious():this.tree.focusNext();break}var Ot=this.tree.getFocus();Fe.length>1&&dt===Ot&&(oe===16||oe===2&&Y?this.tree.focusLast():(oe===18||oe===2&&!Y)&&this.tree.focusFirst()),Ot=this.tree.getFocus(),Ot&&this.tree.reveal(Ot)},G.prototype.elementFocused=function(oe,Y){if(!oe||!this.isVisible())return;var ae=this.treeElement.getAttribute("aria-activedescendant");ae?this.inputElement.setAttribute("aria-activedescendant",ae):this.inputElement.removeAttribute("aria-activedescendant");var Fe={event:Y,keymods:this.extractKeyMods(Y),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(oe,0,Fe)},G.prototype.elementSelected=function(oe,Y,ae){var Fe=!0;if(this.isVisible()){var dt=ae||1,Ot={event:Y,keymods:this.extractKeyMods(Y),quickNavigateConfiguration:this.quickNavigateConfiguration};Fe=this.model.runner.run(oe,dt,Ot)}Fe&&this.hide(0)},G.prototype.extractKeyMods=function(oe){return{ctrlCmd:oe&&(oe.ctrlKey||oe.metaKey||oe.payload&&oe.payload.originalEvent&&(oe.payload.originalEvent.ctrlKey||oe.payload.originalEvent.metaKey)),alt:oe&&(oe.altKey||oe.payload&&oe.payload.originalEvent&&oe.payload.originalEvent.altKey)}},G.prototype.show=function(oe,Y){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=Y?Y.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(R.J(this.inputContainer),R.X(this.element),this.tree.domFocus()):(R.X(this.inputContainer),R.X(this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||W.j(oe)?R.J(this.helpText):R.X(this.helpText)),W.j(oe)?this.doShowWithPrefix(oe):(Y&&Y.value&&this.restoreLastInput(Y.value),this.doShowWithInput(oe,Y&&Y.autoFocus?Y.autoFocus:{})),Y&&Y.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(Y.inputSelection),this.callbacks.onShow&&this.callbacks.onShow()},G.prototype.restoreLastInput=function(oe){this.inputBox.value=oe,this.inputBox.select(),this.callbacks.onType(oe)},G.prototype.doShowWithPrefix=function(oe){this.inputBox.value=oe,this.callbacks.onType(oe)},G.prototype.doShowWithInput=function(oe,Y){this.setInput(oe,Y)},G.prototype.setInputAndLayout=function(oe,Y){var ae=this;this.treeContainer.style.height=this.getHeight(oe)+"px",this.tree.setInput(null).then(function(){return ae.model=oe,ae.inputElement.setAttribute("aria-haspopup",String(oe&&oe.entries&&oe.entries.length>0)),ae.tree.setInput(oe)}).then(function(){ae.tree.layout();var Fe=oe?oe.entries.filter(function(dt){return ae.isElementVisible(oe,dt)}):[];ae.updateResultCount(Fe.length),Fe.length&&ae.autoFocus(oe,Fe,Y)})},G.prototype.isElementVisible=function(oe,Y){return oe.filter?oe.filter.isVisible(Y):!0},G.prototype.autoFocus=function(oe,Y,ae){if(ae===void 0&&(ae={}),ae.autoFocusPrefixMatch){for(var Fe=void 0,dt=void 0,Ot=ae.autoFocusPrefixMatch,Qt=Ot.toLowerCase(),to=0,fo=Y;to<fo.length;to++){var ho=fo[to],_o=oe.dataSource.getLabel(ho)||"";if(!Fe&&_o.indexOf(Ot)===0?Fe=ho:!dt&&_o.toLowerCase().indexOf(Qt)===0&&(dt=ho),Fe&&dt)break}var Do=Fe||dt;if(Do){this.tree.setFocus(Do),this.tree.reveal(Do,.5);return}}ae.autoFocusFirstEntry?(this.tree.focusFirst(),this.tree.reveal(this.tree.getFocus())):typeof ae.autoFocusIndex=="number"?Y.length>ae.autoFocusIndex&&(this.tree.focusNth(ae.autoFocusIndex),this.tree.reveal(this.tree.getFocus())):ae.autoFocusSecondEntry?Y.length>1&&this.tree.focusNth(1):ae.autoFocusLastEntry&&(Y.length>1&&(this.tree.focusLast(),this.tree.reveal(this.tree.getFocus())))},G.prototype.getHeight=function(oe){var Y=this,ae=oe.renderer;if(!oe){var Fe=ae.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*Fe:0}var dt=0,Ot;this.layoutDimensions&&this.layoutDimensions.height&&(Ot=(this.layoutDimensions.height-50)*.4),(!Ot||Ot>G.MAX_ITEMS_HEIGHT)&&(Ot=G.MAX_ITEMS_HEIGHT);for(var Qt=oe.entries.filter(function(_o){return Y.isElementVisible(oe,_o)}),to=this.options.maxItemsToShow||Qt.length,fo=0;fo<to&&fo<Qt.length;fo++){var ho=ae.getHeight(Qt[fo]);if(dt+ho<=Ot)dt+=ho;else break}return dt},G.prototype.updateResultCount=function(oe){this.resultCount.textContent=z.a({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results",oe)},G.prototype.hide=function(oe){if(!this.isVisible())return;this.visible=!1,R.J(this.element),this.element.blur(),this.inputBox.value="",this.tree.setInput(null),this.inputElement.setAttribute("aria-haspopup","false"),this.treeContainer.style.height=(this.options.minItemsToShow?this.options.minItemsToShow*22:0)+"px",this.progressBar.stop().hide(),this.tree.isDOMFocused()?this.tree.domBlur():this.inputBox.hasFocus()&&this.inputBox.blur(),oe===0?this.callbacks.onOk():this.callbacks.onCancel(),this.callbacks.onHide&&this.callbacks.onHide(oe)},G.prototype.setInput=function(oe,Y,ae){if(!this.isVisible())return;this.getInput()&&this.onInputChanging(),this.setInputAndLayout(oe,Y),this.inputBox&&this.inputBox.setAriaLabel(ae||ut)},G.prototype.onInputChanging=function(){var oe=this;this.inputChangingTimeoutHandle&&(clearTimeout(this.inputChangingTimeoutHandle),this.inputChangingTimeoutHandle=null),R.f(this.element,"content-changing"),this.inputChangingTimeoutHandle=setTimeout(function(){R.P(oe.element,"content-changing")},500)},G.prototype.getInput=function(){return this.tree.getInput()},G.prototype.isVisible=function(){return this.visible},G.prototype.layout=function(oe){this.layoutDimensions=oe;var Y=Math.min(this.layoutDimensions.width*.62,G.MAX_WIDTH);this.element&&(this.element.style.width=Y+"px",this.element.style.marginLeft="-"+Y/2+"px",this.inputContainer.style.width=Y-12+"px")},G.prototype.gainingFocus=function(){this.isLoosingFocus=!1},G.prototype.loosingFocus=function(oe){var Y=this;if(!this.isVisible())return;var ae=oe.relatedTarget;if(!this.quickNavigateConfiguration&&R.K(ae,this.element))return;this.isLoosingFocus=!0,setTimeout(function(){if(!Y.isLoosingFocus||Y.isDisposed)return;var Fe=Y.callbacks.onFocusLost&&Y.callbacks.onFocusLost();Fe||Y.hide(1)},0)},G.prototype.dispose=function(){ge.prototype.dispose.call(this),this.isDisposed=!0},G.MAX_WIDTH=600,G.MAX_ITEMS_HEIGHT=20*22,G}(I.a),ht=e("MD5Z"),Et=e("ptcw"),Yt=function(){function ge(G,oe,Y,ae,Fe,dt){this.codeEditor=G,this.themeService=dt,this.visible=!1,this.domNode=document.createElement("div"),this.quickOpenWidget=new Ct(this.domNode,{onOk:oe,onCancel:Y,onType:ae},{inputPlaceHolder:void 0,inputAriaLabel:Fe.inputAriaLabel,keyboardSupport:!0}),this.styler=Object(Et.d)(this.quickOpenWidget,this.themeService,{pickerGroupForeground:ht.W}),this.quickOpenWidget.create(),this.codeEditor.addOverlayWidget(this)}return ge.prototype.setInput=function(G,oe){this.quickOpenWidget.setInput(G,oe)},ge.prototype.getId=function(){return ge.ID},ge.prototype.getDomNode=function(){return this.domNode},ge.prototype.destroy=function(){this.codeEditor.removeOverlayWidget(this),this.quickOpenWidget.dispose(),this.styler.dispose()},ge.prototype.show=function(G){this.visible=!0;var oe=this.codeEditor.getLayoutInfo();oe&&this.quickOpenWidget.layout(new R.b(oe.width,oe.height)),this.quickOpenWidget.show(G),this.codeEditor.layoutOverlayWidget(this)},ge.prototype.getPosition=function(){return this.visible?{preference:2}:null},ge.ID="editor.contrib.quickOpenEditorWidget",ge}(),Nt=e("t9D7"),bt=function(){var ge=function(G,oe){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,ae){Y.__proto__=ae}||function(Y,ae){for(var Fe in ae)ae.hasOwnProperty(Fe)&&(Y[Fe]=ae[Fe])},ge(G,oe)};return function(G,oe){ge(G,oe);function Y(){this.constructor=G}G.prototype=oe===null?Object.create(oe):(Y.prototype=oe.prototype,new Y)}}(),$e=function(ge,G,oe,Y){var ae=arguments.length,Fe=ae<3?G:Y===null?Y=Object.getOwnPropertyDescriptor(G,oe):Y,dt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Fe=Reflect.decorate(ge,G,oe,Y);else for(var Ot=ge.length-1;Ot>=0;Ot--)(dt=ge[Ot])&&(Fe=(ae<3?dt(Fe):ae>3?dt(G,oe,Fe):dt(G,oe))||Fe);return ae>3&&Fe&&Object.defineProperty(G,oe,Fe),Fe},Ye=function(ge,G){return function(oe,Y){G(oe,Y,ge)}},ze=function(){function ge(G,oe){this.themeService=oe,this.widget=null,this.rangeHighlightDecorationId=null,this.lastKnownEditorSelection=null,this.editor=G}return ge.get=function(G){return G.getContribution(ge.ID)},ge.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null)},ge.prototype.run=function(G){var oe=this;this.widget&&(this.widget.destroy(),this.widget=null);var Y=function(ae){oe.clearDecorations(),ae&&oe.lastKnownEditorSelection&&(oe.editor.setSelection(oe.lastKnownEditorSelection),oe.editor.revealRangeInCenterIfOutsideViewport(oe.lastKnownEditorSelection,0)),oe.lastKnownEditorSelection=null,(document.activeElement===document.body||!ae)&&oe.editor.focus()};this.widget=new Yt(this.editor,function(){return Y(!1)},function(){return Y(!0)},function(ae){oe.widget.setInput(G.getModel(ae),G.getAutoFocus(ae))},{inputAriaLabel:G.inputAriaLabel},this.themeService),this.lastKnownEditorSelection||(this.lastKnownEditorSelection=this.editor.getSelection()),this.widget.show("")},ge.prototype.decorateLine=function(G,oe){var Y=[];this.rangeHighlightDecorationId&&(Y.push(this.rangeHighlightDecorationId),this.rangeHighlightDecorationId=null);var ae=[{range:G,options:ge._RANGE_HIGHLIGHT_DECORATION}],Fe=oe.deltaDecorations(Y,ae);this.rangeHighlightDecorationId=Fe[0]},ge.prototype.clearDecorations=function(){this.rangeHighlightDecorationId&&(this.editor.deltaDecorations([this.rangeHighlightDecorationId],[]),this.rangeHighlightDecorationId=null)},ge.ID="editor.controller.quickOpenController",ge._RANGE_HIGHLIGHT_DECORATION=$.a.register({className:"rangeHighlight",isWholeLine:!0}),ge=$e([Ye(1,Nt.c)],ge),ge}(),Ke=function(ge){bt(G,ge);function G(oe,Y){var ae=ge.call(this,Y)||this;return ae._inputAriaLabel=oe,ae}return G.prototype.getController=function(oe){return ze.get(oe)},G.prototype._show=function(oe,Y){oe.run({inputAriaLabel:this._inputAriaLabel,getModel:function(ae){return Y.getModel(ae)},getAutoFocus:function(ae){return Y.getAutoFocus(ae)}})},G}(le.b);Object(le.h)(ze.ID,ze)},s7Km:function(Lt,N,e){"use strict";e.r(N),e.d(N,"MoveWordCommand",function(){return v}),e.d(N,"WordLeftCommand",function(){return C}),e.d(N,"WordRightCommand",function(){return g}),e.d(N,"CursorWordStartLeft",function(){return u}),e.d(N,"CursorWordEndLeft",function(){return s}),e.d(N,"CursorWordLeft",function(){return l}),e.d(N,"CursorWordStartLeftSelect",function(){return c}),e.d(N,"CursorWordEndLeftSelect",function(){return p}),e.d(N,"CursorWordLeftSelect",function(){return _}),e.d(N,"CursorWordAccessibilityLeft",function(){return L}),e.d(N,"CursorWordAccessibilityLeftSelect",function(){return I}),e.d(N,"CursorWordStartRight",function(){return P}),e.d(N,"CursorWordEndRight",function(){return A}),e.d(N,"CursorWordRight",function(){return Q}),e.d(N,"CursorWordStartRightSelect",function(){return K}),e.d(N,"CursorWordEndRightSelect",function(){return H}),e.d(N,"CursorWordRightSelect",function(){return V}),e.d(N,"CursorWordAccessibilityRight",function(){return de}),e.d(N,"CursorWordAccessibilityRightSelect",function(){return _e}),e.d(N,"DeleteWordCommand",function(){return Se}),e.d(N,"DeleteWordLeftCommand",function(){return Ie}),e.d(N,"DeleteWordRightCommand",function(){return Pe}),e.d(N,"DeleteWordStartLeft",function(){return Ve}),e.d(N,"DeleteWordEndLeft",function(){return ke}),e.d(N,"DeleteWordLeft",function(){return se}),e.d(N,"DeleteWordStartRight",function(){return ee}),e.d(N,"DeleteWordEndRight",function(){return ie}),e.d(N,"DeleteWordRight",function(){return q});var T=e("sswD"),le=e("LCkn"),$=e("Ll0s"),R=e("1I1M"),B=e("5v8Y"),z=e("cGHE"),D=e("aokT"),W=e("gCVg"),x=e("wQH0"),h=e("R3nR"),y=e("T8No"),w=e("/UlZ"),f=function(){var ce=function(Z,ye){return ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(je,Ge){je.__proto__=Ge}||function(je,Ge){for(var ue in Ge)Ge.hasOwnProperty(ue)&&(je[ue]=Ge[ue])},ce(Z,ye)};return function(Z,ye){ce(Z,ye);function je(){this.constructor=Z}Z.prototype=ye===null?Object.create(ye):(je.prototype=ye.prototype,new je)}}(),v=function(ce){f(Z,ce);function Z(ye){var je=ce.call(this,ye)||this;return je._inSelectionMode=ye.inSelectionMode,je._wordNavigationType=ye.wordNavigationType,je}return Z.prototype.runEditorCommand=function(ye,je,Ge){var ue=this;if(!je.hasModel())return;var ve=Object(B.a)(je.getOption(96)),Ee=je.getModel(),xe=je.getSelections(),Ce=xe.map(function(J){var b=new z.a(J.positionLineNumber,J.positionColumn),F=ue._move(ve,Ee,b,ue._wordNavigationType);return ue._moveTo(J,F,ue._inSelectionMode)});if(je._getCursors().setStates("moveWordCommand",0,Ce.map(function(J){return $.d.fromModelSelection(J)})),Ce.length===1){var he=new z.a(Ce[0].positionLineNumber,Ce[0].positionColumn);je.revealPosition(he,0)}},Z.prototype._moveTo=function(ye,je,Ge){return Ge?new W.a(ye.selectionStartLineNumber,ye.selectionStartColumn,je.lineNumber,je.column):new W.a(je.lineNumber,je.column,je.lineNumber,je.column)},Z}(T.c),C=function(ce){f(Z,ce);function Z(){return ce!==null&&ce.apply(this,arguments)||this}return Z.prototype._move=function(ye,je,Ge,ue){return R.a.moveWordLeft(ye,je,Ge,ue)},Z}(v),g=function(ce){f(Z,ce);function Z(){return ce!==null&&ce.apply(this,arguments)||this}return Z.prototype._move=function(ye,je,Ge,ue){return R.a.moveWordRight(ye,je,Ge,ue)},Z}(v),u=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|15,mac:{primary:512|15},weight:100}})||this}return Z}(C),s=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})||this}return Z}(C),l=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0})||this}return Z}(C),c=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|1024|15,mac:{primary:512|1024|15},weight:100}})||this}return Z}(C),p=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})||this}return Z}(C),_=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0})||this}return Z}(C),L=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,h.a),win:{primary:2048|15},weight:100+1}})||this}return Z.prototype._move=function(ye,je,Ge,ue){return ce.prototype._move.call(this,Object(B.a)(w.e.wordSeparators.defaultValue),je,Ge,ue)},Z}(C),I=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,h.a),win:{primary:2048|1024|15},weight:100+1}})||this}return Z.prototype._move=function(ye,je,Ge,ue){return ce.prototype._move.call(this,Object(B.a)(w.e.wordSeparators.defaultValue),je,Ge,ue)},Z}(C),P=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})||this}return Z}(g),A=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|17,mac:{primary:512|17},weight:100}})||this}return Z}(g),Q=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})||this}return Z}(g),K=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})||this}return Z}(g),H=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|1024|17,mac:{primary:512|1024|17},weight:100}})||this}return Z}(g),V=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})||this}return Z}(g),de=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,h.a),win:{primary:2048|17},weight:100+1}})||this}return Z.prototype._move=function(ye,je,Ge,ue){return ce.prototype._move.call(this,Object(B.a)(w.e.wordSeparators.defaultValue),je,Ge,ue)},Z}(g),_e=function(ce){f(Z,ce);function Z(){return ce.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,h.a),win:{primary:2048|1024|17},weight:100+1}})||this}return Z.prototype._move=function(ye,je,Ge,ue){return ce.prototype._move.call(this,Object(B.a)(w.e.wordSeparators.defaultValue),je,Ge,ue)},Z}(g),Se=function(ce){f(Z,ce);function Z(ye){var je=ce.call(this,ye)||this;return je._whitespaceHeuristics=ye.whitespaceHeuristics,je._wordNavigationType=ye.wordNavigationType,je}return Z.prototype.runEditorCommand=function(ye,je,Ge){var ue=this;if(!je.hasModel())return;var ve=Object(B.a)(je.getOption(96)),Ee=je.getModel(),xe=je.getSelections(),Ce=xe.map(function(he){var J=ue._delete(ve,Ee,he,ue._whitespaceHeuristics,ue._wordNavigationType);return new le.a(J,"")});je.pushUndoStop(),je.executeCommands(this.id,Ce),je.pushUndoStop()},Z}(T.c),Ie=function(ce){f(Z,ce);function Z(){return ce!==null&&ce.apply(this,arguments)||this}return Z.prototype._delete=function(ye,je,Ge,ue,ve){var Ee=R.a.deleteWordLeft(ye,je,Ge,ue,ve);return Ee||new D.a(1,1,1,1)},Z}(Se),Pe=function(ce){f(Z,ce);function Z(){return ce!==null&&ce.apply(this,arguments)||this}return Z.prototype._delete=function(ye,je,Ge,ue,ve){var Ee=R.a.deleteWordRight(ye,je,Ge,ue,ve);if(Ee)return Ee;var xe=je.getLineCount(),Ce=je.getLineMaxColumn(xe);return new D.a(xe,Ce,xe,Ce)},Z}(Se),Ve=function(ce){f(Z,ce);function Z(){return ce.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:x.a.writable})||this}return Z}(Ie),ke=function(ce){f(Z,ce);function Z(){return ce.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:x.a.writable})||this}return Z}(Ie),se=function(ce){f(Z,ce);function Z(){return ce.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:x.a.writable,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|1,mac:{primary:512|1},weight:100}})||this}return Z}(Ie),ee=function(ce){f(Z,ce);function Z(){return ce.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:x.a.writable})||this}return Z}(Pe),ie=function(ce){f(Z,ce);function Z(){return ce.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:x.a.writable})||this}return Z}(Pe),q=function(ce){f(Z,ce);function Z(){return ce.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:x.a.writable,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|20,mac:{primary:512|20},weight:100}})||this}return Z}(Pe);Object(T.g)(new u),Object(T.g)(new s),Object(T.g)(new l),Object(T.g)(new c),Object(T.g)(new p),Object(T.g)(new _),Object(T.g)(new P),Object(T.g)(new A),Object(T.g)(new Q),Object(T.g)(new K),Object(T.g)(new H),Object(T.g)(new V),Object(T.g)(new L),Object(T.g)(new I),Object(T.g)(new de),Object(T.g)(new _e),Object(T.g)(new Ve),Object(T.g)(new ke),Object(T.g)(new se),Object(T.g)(new ee),Object(T.g)(new ie),Object(T.g)(new q)},sFUC:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("iuje");function le($){return $&&typeof $.getEditorType=="function"?$.getEditorType()===T.a.ICodeEditor:!1}},sM1p:function(Lt,N,e){"use strict";e.d(N,"a",function(){return R}),e.d(N,"b",function(){return B});var T=e("S3by"),le=e("Cg/j"),$=T.a,R=Object(le.c)("notificationService"),B=function(){function z(){}return z}()},sStQ:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return e.e(319).then(e.bind(null,"QKwv"))}})},scqD:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("Cg/j"),le=Object(T.c)("themeService")},siPX:function(Lt,N,e){},snIX:function(Lt,N,e){"use strict";e.d(N,"a",function(){return z});var T=e("N0LK"),le=e("LCkn"),$=e("Ll0s"),R=e("+Fos"),B=e("aokT"),z=function(){function D(){}return D.deleteRight=function(W,x,h,y){for(var w=[],f=W!==3,v=0,C=y.length;v<C;v++){var g=y[v],u=g;if(u.isEmpty()){var s=g.getPosition(),l=R.a.right(x,h,s.lineNumber,s.column);u=new B.a(l.lineNumber,l.column,s.lineNumber,s.column)}if(u.isEmpty()){w[v]=null;continue}u.startLineNumber!==u.endLineNumber&&(f=!0),w[v]=new le.a(u,"")}return[f,w]},D._isAutoClosingPairDelete=function(W,x,h){if(W.autoClosingBrackets==="never"&&W.autoClosingQuotes==="never")return!1;for(var y=0,w=h.length;y<w;y++){var f=h[y],v=f.getPosition();if(!f.isEmpty())return!1;var C=x.getLineContent(v.lineNumber),g=C[v.column-2],u=W.autoClosingPairsOpen2.get(g);if(!u)return!1;if(Object($.g)(g)){if(W.autoClosingQuotes==="never")return!1}else if(W.autoClosingBrackets==="never")return!1;for(var s=C[v.column-1],l=!1,c=0,p=u;c<p.length;c++){var _=p[c];_.open===g&&_.close===s&&(l=!0)}if(!l)return!1}return!0},D._runAutoClosingPairDelete=function(W,x,h){for(var y=[],w=0,f=h.length;w<f;w++){var v=h[w].getPosition(),C=new B.a(v.lineNumber,v.column-1,v.lineNumber,v.column+1);y[w]=new le.a(C,"")}return[!0,y]},D.deleteLeft=function(W,x,h,y){if(this._isAutoClosingPairDelete(x,h,y))return this._runAutoClosingPairDelete(x,h,y);for(var w=[],f=W!==2,v=0,C=y.length;v<C;v++){var g=y[v],u=g;if(u.isEmpty()){var s=g.getPosition();if(x.useTabStops&&s.column>1){var l=h.getLineContent(s.lineNumber),c=T.q(l),p=c===-1?l.length+1:c+1;if(s.column<=p){var _=$.a.visibleColumnFromColumn2(x,h,s),L=$.a.prevIndentTabStop(_,x.indentSize),I=$.a.columnFromVisibleColumn2(x,h,s.lineNumber,L);u=new B.a(s.lineNumber,I,s.lineNumber,s.column)}else u=new B.a(s.lineNumber,s.column-1,s.lineNumber,s.column)}else{var P=R.a.left(x,h,s.lineNumber,s.column);u=new B.a(P.lineNumber,P.column,s.lineNumber,s.column)}}if(u.isEmpty()){w[v]=null;continue}u.startLineNumber!==u.endLineNumber&&(f=!0),w[v]=new le.a(u,"")}return[f,w]},D.cut=function(W,x,h){for(var y=[],w=0,f=h.length;w<f;w++){var v=h[w];if(v.isEmpty())if(W.emptySelectionClipboard){var C=v.getPosition(),g=void 0,u=void 0,s=void 0,l=void 0;C.lineNumber<x.getLineCount()?(g=C.lineNumber,u=1,s=C.lineNumber+1,l=1):C.lineNumber>1?(g=C.lineNumber-1,u=x.getLineMaxColumn(C.lineNumber-1),s=C.lineNumber,l=x.getLineMaxColumn(C.lineNumber)):(g=C.lineNumber,u=1,s=C.lineNumber,l=x.getLineMaxColumn(C.lineNumber));var c=new B.a(g,u,s,l);c.isEmpty()?y[w]=null:y[w]=new le.a(c,"")}else y[w]=null;else y[w]=new le.a(v,"")}return new $.e(0,y,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},D}()},sswD:function(Lt,N,e){"use strict";e.d(N,"a",function(){return C}),e.d(N,"c",function(){return g}),e.d(N,"b",function(){return u}),e.d(N,"j",function(){return s}),e.d(N,"e",function(){return l}),e.d(N,"k",function(){return c}),e.d(N,"l",function(){return p}),e.d(N,"g",function(){return _}),e.d(N,"f",function(){return L}),e.d(N,"i",function(){return I}),e.d(N,"h",function(){return P}),e.d(N,"d",function(){return A});var T=e("/cxE"),le=e("bY76"),$=e("Vxe3"),R=e("cGHE"),B=e("G2kB"),z=e("t49l"),D=e("fjLI"),W=e("nnTU"),x=e("T8No"),h=e("nrhi"),y=e("ic2d"),w=e("XXUj"),f=e("746U"),v=function(){var H=function(V,de){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,Se){_e.__proto__=Se}||function(_e,Se){for(var Ie in Se)Se.hasOwnProperty(Ie)&&(_e[Ie]=Se[Ie])},H(V,de)};return function(V,de){H(V,de);function _e(){this.constructor=V}V.prototype=de===null?Object.create(de):(_e.prototype=de.prototype,new _e)}}(),C=function(){function H(V){this.id=V.id,this.precondition=V.precondition,this._kbOpts=V.kbOpts,this._menuOpts=V.menuOpts,this._description=V.description}return H.prototype.register=function(){var V=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var de=this._kbOpts.kbExpr;this.precondition&&(de?de=x.a.and(de,this.precondition):de=this.precondition),h.a.registerCommandAndKeybindingRule({id:this.id,handler:function(_e,Se){return V.runCommand(_e,Se)},weight:this._kbOpts.weight,when:de,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else W.a.registerCommand({id:this.id,handler:function(_e,Se){return V.runCommand(_e,Se)},description:this._description})},H.prototype._registerMenuItem=function(V){D.c.appendMenuItem(V.menuId,{group:V.group,command:{id:this.id,title:V.title},when:V.when,order:V.order})},H}(),g=function(H){v(V,H);function V(){return H!==null&&H.apply(this,arguments)||this}return V.bindToContribution=function(de){return function(_e){v(Se,_e);function Se(Ie){var Pe=_e.call(this,Ie)||this;return Pe._callback=Ie.handler,Pe}return Se.prototype.runEditorCommand=function(Ie,Pe,Ve){var ke=de(Pe);ke&&this._callback(de(Pe),Ve)},Se}(V)},V.prototype.runCommand=function(de,_e){var Se=this,Ie=de.get($.a),Pe=Ie.getFocusedCodeEditor()||Ie.getActiveCodeEditor();return Pe?Pe.invokeWithinContext(function(Ve){var ke=Ve.get(x.c);return ke.contextMatchesRules(Object(f.n)(Se.precondition))?Se.runEditorCommand(Ve,Pe,_e):void 0}):void 0},V}(C),u=function(H){v(V,H);function V(de){var _e=H.call(this,V.convertOptions(de))||this;return _e.label=de.label,_e.alias=de.alias,_e}return V.convertOptions=function(de){var _e;Array.isArray(de.menuOpts)?_e=de.menuOpts:de.menuOpts?_e=[de.menuOpts]:_e=[];function Se(Ie){return Ie.menuId||(Ie.menuId=7),Ie.title||(Ie.title=de.label),Ie.when=x.a.and(de.precondition,Ie.when),Ie}return Array.isArray(de.contextMenuOpts)?_e.push.apply(_e,de.contextMenuOpts.map(Se)):de.contextMenuOpts&&_e.push(Se(de.contextMenuOpts)),de.menuOpts=_e,de},V.prototype.runEditorCommand=function(de,_e,Se){return this.reportTelemetry(de,_e),this.run(de,_e,Se||{})},V.prototype.reportTelemetry=function(de,_e){de.get(w.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},V}(g);function s(H,V){W.a.registerCommand(H,function(de,_e){return V(de,_e||{})})}function l(H,V){s(H,function(de,_e){var Se=_e.resource,Ie=_e.position;if(!(Se instanceof le.a))throw Object(T.b)("resource");if(!R.a.isIPosition(Ie))throw Object(T.b)("position");var Pe=de.get(B.a).getModel(Se);if(Pe){var Ve=R.a.lift(Ie);return V(Pe,Ve,_e)}return de.get(z.a).createModelReference(Se).then(function(ke){return new Promise(function(se,ee){try{var ie=V(ke.object.textEditorModel,R.a.lift(Ie),_e);se(ie)}catch(q){ee(q)}}).finally(function(){ke.dispose()})})})}function c(H,V){W.a.registerCommand(H,function(de){for(var _e=[],Se=1;Se<arguments.length;Se++)_e[Se-1]=arguments[Se];var Ie=_e[0],Pe=_e[1];Object(f.a)(le.a.isUri(Ie)),Object(f.a)(R.a.isIPosition(Pe));var Ve=de.get(B.a).getModel(Ie);if(Ve){var ke=R.a.lift(Pe);return V(Ve,ke,_e.slice(2))}return de.get(z.a).createModelReference(Ie).then(function(se){return new Promise(function(ee,ie){try{var q=V(se.object.textEditorModel,R.a.lift(Pe),_e.slice(2));ee(q)}catch(ce){ie(ce)}}).finally(function(){se.dispose()})})})}function p(H,V){W.a.registerCommand(H,function(de){for(var _e=[],Se=1;Se<arguments.length;Se++)_e[Se-1]=arguments[Se];var Ie=_e[0];Object(f.a)(le.a.isUri(Ie));var Pe=de.get(B.a).getModel(Ie);return Pe?V(Pe,_e.slice(1)):de.get(z.a).createModelReference(Ie).then(function(Ve){return new Promise(function(ke,se){try{var ee=V(Ve.object.textEditorModel,_e.slice(1));ke(ee)}catch(ie){se(ie)}}).finally(function(){Ve.dispose()})})})}function _(H){return K.INSTANCE.registerEditorCommand(H),H}function L(H){K.INSTANCE.registerEditorAction(new H)}function I(H){K.INSTANCE.registerEditorAction(H)}function P(H,V){K.INSTANCE.registerEditorContribution(H,V)}var A;(function(H){function V(Pe){return K.INSTANCE.getEditorCommand(Pe)}H.getEditorCommand=V;function de(){return K.INSTANCE.getEditorActions()}H.getEditorActions=de;function _e(){return K.INSTANCE.getEditorContributions()}H.getEditorContributions=_e;function Se(Pe){return K.INSTANCE.getEditorContributions().filter(function(Ve){return Pe.indexOf(Ve.id)>=0})}H.getSomeEditorContributions=Se;function Ie(){return K.INSTANCE.getDiffEditorContributions()}H.getDiffEditorContributions=Ie})(A||(A={}));var Q={EditorCommonContributions:"editor.contributions"},K=function(){function H(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return H.prototype.registerEditorContribution=function(V,de){this.editorContributions.push({id:V,ctor:de})},H.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},H.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},H.prototype.registerEditorAction=function(V){V.register(),this.editorActions.push(V)},H.prototype.getEditorActions=function(){return this.editorActions.slice(0)},H.prototype.registerEditorCommand=function(V){V.register(),this.editorCommands[V.id]=V},H.prototype.getEditorCommand=function(V){return this.editorCommands[V]||null},H.INSTANCE=new H,H}();y.a.add(Q.EditorCommonContributions,K.INSTANCE)},synD:function(Lt,N,e){},t49l:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("Cg/j"),le=Object(T.c)("textModelService")},t9D7:function(Lt,N,e){"use strict";e.d(N,"c",function(){return B}),e.d(N,"f",function(){return z}),e.d(N,"b",function(){return W}),e.d(N,"d",function(){return x}),e.d(N,"a",function(){return h}),e.d(N,"e",function(){return f});var T=e("Cg/j"),le=e("pmY6"),$=e("ic2d"),R=e("MI8n"),B=Object(T.c)("themeService");function z(v){return{id:v}}var D="dark",W="hc";function x(v){switch(v){case D:return"vs-dark";case W:return"hc-black";default:return"vs"}}var h={ThemingContribution:"base.contributions.theming"},y=function(){function v(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new R.a}return v.prototype.onThemeChange=function(C){var g=this;return this.themingParticipants.push(C),this.onThemingParticipantAddedEmitter.fire(C),Object(le.h)(function(){var u=g.themingParticipants.indexOf(C);g.themingParticipants.splice(u,1)})},v.prototype.getThemingParticipants=function(){return this.themingParticipants},v}(),w=new y;$.a.add(h.ThemingContribution,w);function f(v){return w.onThemeChange(v)}},tADe:function(Lt,N,e){"use strict";e.d(N,"c",function(){return R}),e.d(N,"a",function(){return B}),e.d(N,"b",function(){return z});var T=e("Cg/j"),le=e("3/fG"),$=e("S3by"),R;(function(D){D[D.Hint=1]="Hint",D[D.Info=2]="Info",D[D.Warning=4]="Warning",D[D.Error=8]="Error"})(R||(R={})),function(D){function W(f,v){return v-f}D.compare=W;var x=Object.create(null);x[D.Error]=Object(le.a)("sev.error","Error"),x[D.Warning]=Object(le.a)("sev.warning","Warning"),x[D.Info]=Object(le.a)("sev.info","Info");function h(f){return x[f]||""}D.toString=h;function y(f){switch(f){case $.a.Error:return D.Error;case $.a.Warning:return D.Warning;case $.a.Info:return D.Info;case $.a.Ignore:return D.Hint}}D.fromSeverity=y;function w(f){switch(f){case D.Error:return $.a.Error;case D.Warning:return $.a.Warning;case D.Info:return $.a.Info;case D.Hint:return $.a.Ignore}}D.toSeverity=w}(R||(R={}));var B;(function(D){var W="";function x(y){return h(y,!0)}D.makeKey=x;function h(y,w){var f=[W];return y.source?f.push(y.source.replace("\xA6","\xA6")):f.push(W),y.code?typeof y.code=="string"?f.push(y.code.replace("\xA6","\xA6")):f.push(y.code.value.replace("\xA6","\xA6")):f.push(W),y.severity!==void 0&&y.severity!==null?f.push(R.toString(y.severity)):f.push(W),y.message&&w?f.push(y.message.replace("\xA6","\xA6")):f.push(W),y.startLineNumber!==void 0&&y.startLineNumber!==null?f.push(y.startLineNumber.toString()):f.push(W),y.startColumn!==void 0&&y.startColumn!==null?f.push(y.startColumn.toString()):f.push(W),y.endLineNumber!==void 0&&y.endLineNumber!==null?f.push(y.endLineNumber.toString()):f.push(W),y.endColumn!==void 0&&y.endColumn!==null?f.push(y.endColumn.toString()):f.push(W),f.push(W),f.join("\xA6")}D.makeKeyOptionalMessage=h})(B||(B={}));var z=Object(T.c)("markerService")},tTk5:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("Cg/j"),le=Object(T.c)("editorProgressService")},tX9W:function(Lt,N,e){"use strict";e.d(N,"b",function(){return Cn}),e.d(N,"a",function(){return Bo});var T=e("/cxE"),le=e("MI8n"),$=e("pmY6"),R=e("N0LK"),B=e("bY76"),z=e("/UlZ"),D=e("cGHE"),W=e("aokT"),x=e("gCVg"),h=e("M1Kb"),y=function(){function be(M,j){this.beforeVersionId=M,this.beforeCursorState=j,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return be.prototype.undo=function(M){for(var j=this.editOperations.length-1;j>=0;j--)this.editOperations[j]={operations:M.applyEdits(this.editOperations[j].operations)}},be.prototype.redo=function(M){for(var j=0;j<this.editOperations.length;j++)this.editOperations[j]={operations:M.applyEdits(this.editOperations[j].operations)}},be}();function w(be){var M=be.getEOL();return M===`
`?0:1}var f=function(){function be(M,j){this.beforeVersionId=M,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=j}return be.prototype.undo=function(M){var j=w(M);M.setEOL(this.eol),this.eol=j},be.prototype.redo=function(M){var j=w(M);M.setEOL(this.eol),this.eol=j},be}(),v=function(){function be(M){this.model=M,this.currentOpenStackElement=null,this.past=[],this.future=[]}return be.prototype.pushStackElement=function(){this.currentOpenStackElement!==null&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},be.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},be.prototype.pushEOL=function(M){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var j=w(this.model),X=new f(this.model.getAlternativeVersionId(),j);this.model.setEOL(M),X.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=X,this.pushStackElement()},be.prototype.pushEditOperation=function(M,j,X){this.future=[];var Te=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof y?Te=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(Te=new y(this.model.getAlternativeVersionId(),M),this.currentOpenStackElement=Te);var Ae={operations:this.model.applyEdits(j)};return Te.editOperations.push(Ae),Te.afterCursorState=be._computeCursorState(X,Ae.operations),Te.afterVersionId=this.model.getVersionId(),Te.afterCursorState},be._computeCursorState=function(M,j){try{return M?M(j):null}catch(X){return Object(T.e)(X),null}},be.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){var M=this.past.pop();try{M.undo(this.model)}catch(j){return Object(T.e)(j),this.clear(),null}return this.future.push(M),{selections:M.beforeCursorState,recordedVersionId:M.beforeVersionId}}return null},be.prototype.canUndo=function(){return this.past.length>0||this.currentOpenStackElement!==null},be.prototype.redo=function(){if(this.future.length>0){var M=this.future.pop();try{M.redo(this.model)}catch(j){return Object(T.e)(j),this.clear(),null}return this.past.push(M),{selections:M.afterCursorState,recordedVersionId:M.afterVersionId}}return null},be.prototype.canRedo=function(){return this.future.length>0},be}(),C=function(){function be(){this.spacesDiff=0,this.looksLikeAlignment=!1}return be}();function g(be,M,j,X,Te){Te.spacesDiff=0,Te.looksLikeAlignment=!1;var Ae;for(Ae=0;Ae<M&&Ae<X;Ae++){var Ne=be.charCodeAt(Ae),lt=j.charCodeAt(Ae);if(Ne!==lt)break}for(var ft=0,At=0,Ft=Ae;Ft<M;Ft++){var Ne=be.charCodeAt(Ft);Ne===32?ft++:At++}for(var Ut=0,Vt=0,Ft=Ae;Ft<X;Ft++){var lt=j.charCodeAt(Ft);lt===32?Ut++:Vt++}if(ft>0&&At>0)return;if(Ut>0&&Vt>0)return;var oo=Math.abs(At-Vt),Zt=Math.abs(ft-Ut);if(oo===0){Te.spacesDiff=Zt,Zt>0&&0<=Ut-1&&Ut-1<be.length&&Ut<j.length&&(j.charCodeAt(Ut)!==32&&be.charCodeAt(Ut-1)===32&&(be.charCodeAt(be.length-1)===44&&(Te.looksLikeAlignment=!0)));return}if(Zt%oo===0){Te.spacesDiff=Zt/oo;return}}function u(be,M,j){for(var X=Math.min(be.getLineCount(),1e4),Te=0,Ae=0,Ne="",lt=0,ft=[2,4,6,8,3,5,7],At=8,Ft=[0,0,0,0,0,0,0,0,0],Ut=new C,Vt=1;Vt<=X;Vt++){for(var oo=be.getLineLength(Vt),Zt=be.getLineContent(Vt),mo=oo<=65536,mt=!1,He=0,De=0,ot=0,xt=0,pe=oo;xt<pe;xt++){var O=mo?Zt.charCodeAt(xt):be.getLineCharCode(Vt,xt);if(O===9)ot++;else if(O===32)De++;else{mt=!0,He=xt;break}}if(!mt)continue;if(ot>0?Te++:De>1&&Ae++,g(Ne,lt,Zt,He,Ut),Ut.looksLikeAlignment&&!(j&&M===Ut.spacesDiff))continue;var me=Ut.spacesDiff;me<=At&&Ft[me]++,Ne=Zt,lt=He}var Be=j;Te!==Ae&&(Be=Te<Ae);var Ze=M;if(Be){var at=Be?0:.1*X;ft.forEach(function(_t){var zt=Ft[_t];zt>at&&(at=zt,Ze=_t)}),Ze===4&&Ft[4]>0&&Ft[2]>0&&Ft[2]>=Ft[4]/2&&(Ze=2)}return{insertSpaces:Be,tabSize:Ze}}function s(be){return(be.metadata&1)>>>0}function l(be,M){be.metadata=be.metadata&254|M<<0}function c(be){return(be.metadata&2)>>>1===1}function p(be,M){be.metadata=be.metadata&253|(M?1:0)<<1}function _(be){return(be.metadata&4)>>>2===1}function L(be,M){be.metadata=be.metadata&251|(M?1:0)<<2}function I(be){return(be.metadata&8)>>>3===1}function P(be,M){be.metadata=be.metadata&247|(M?1:0)<<3}function A(be){return(be.metadata&48)>>>4}function Q(be,M){be.metadata=be.metadata&207|M<<4}function K(be){return(be.metadata&64)>>>6===1}function H(be,M){be.metadata=be.metadata&191|(M?1:0)<<6}var V=function(){function be(M,j,X){this.metadata=0,this.parent=this,this.left=this,this.right=this,l(this,1),this.start=j,this.end=X,this.delta=0,this.maxEnd=X,this.id=M,this.ownerId=0,this.options=null,L(this,!1),Q(this,1),P(this,!1),H(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=j,this.cachedAbsoluteEnd=X,this.range=null,p(this,!1)}return be.prototype.reset=function(M,j,X,Te){this.start=j,this.end=X,this.maxEnd=X,this.cachedVersionId=M,this.cachedAbsoluteStart=j,this.cachedAbsoluteEnd=X,this.range=Te},be.prototype.setOptions=function(M){this.options=M;var j=this.options.className;L(this,j==="squiggly-error"||j==="squiggly-warning"||j==="squiggly-info"),Q(this,this.options.stickiness),P(this,!!(this.options.overviewRuler&&this.options.overviewRuler.color)),H(this,this.options.collapseOnReplaceEdit)},be.prototype.setCachedOffsets=function(M,j,X){this.cachedVersionId!==X&&(this.range=null),this.cachedVersionId=X,this.cachedAbsoluteStart=M,this.cachedAbsoluteEnd=j},be.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},be}(),de=new V(null,0,0);de.parent=de,de.left=de,de.right=de,l(de,0);var _e=function(){function be(){this.root=de,this.requestNormalizeDelta=!1}return be.prototype.intervalSearch=function(M,j,X,Te,Ae){return this.root===de?[]:q(this,M,j,X,Te,Ae)},be.prototype.search=function(M,j,X){return this.root===de?[]:ie(this,M,j,X)},be.prototype.collectNodesFromOwner=function(M){return se(this,M)},be.prototype.collectNodesPostOrder=function(){return ee(this)},be.prototype.insert=function(M){ce(this,M),this._normalizeDeltaIfNecessary()},be.prototype.delete=function(M){ye(this,M),this._normalizeDeltaIfNecessary()},be.prototype.resolveNode=function(M,j){for(var X=M,Te=0;M!==this.root;)M===M.parent.right&&(Te+=M.parent.delta),M=M.parent;var Ae=X.start+Te,Ne=X.end+Te;X.setCachedOffsets(Ae,Ne,j)},be.prototype.acceptReplace=function(M,j,X,Te){for(var Ae=Ve(this,M,M+j),Ne=0,lt=Ae.length;Ne<lt;Ne++){var ft=Ae[Ne];ye(this,ft)}this._normalizeDeltaIfNecessary(),ke(this,M,M+j,X),this._normalizeDeltaIfNecessary();for(var Ne=0,lt=Ae.length;Ne<lt;Ne++){var ft=Ae[Ne];ft.start=ft.cachedAbsoluteStart,ft.end=ft.cachedAbsoluteEnd,Pe(ft,M,M+j,X,Te),ft.maxEnd=ft.end,ce(this,ft)}this._normalizeDeltaIfNecessary()},be.prototype._normalizeDeltaIfNecessary=function(){if(!this.requestNormalizeDelta)return;this.requestNormalizeDelta=!1,Se(this)},be}();function Se(be){for(var M=be.root,j=0;M!==de;){if(M.left!==de&&!c(M.left)){M=M.left;continue}if(M.right!==de&&!c(M.right)){j+=M.delta,M=M.right;continue}M.start=j+M.start,M.end=j+M.end,M.delta=0,xe(M),p(M,!0),p(M.left,!1),p(M.right,!1),M===M.parent.right&&(j-=M.parent.delta),M=M.parent}p(be.root,!1)}function Ie(be,M,j,X){return be<j?!0:be>j||X===1?!1:X===2?!0:M}function Pe(be,M,j,X,Te){var Ae=A(be),Ne=Ae===0||Ae===2,lt=Ae===1||Ae===2,ft=j-M,At=X,Ft=Math.min(ft,At),Ut=be.start,Vt=!1,oo=be.end,Zt=!1;M<=Ut&&oo<=j&&K(be)&&(be.start=M,Vt=!0,be.end=M,Zt=!0);{var mo=Te?1:ft>0?2:0;!Vt&&Ie(Ut,Ne,M,mo)&&(Vt=!0),!Zt&&Ie(oo,lt,M,mo)&&(Zt=!0)}if(Ft>0&&!Te){var mo=ft>At?2:0;!Vt&&Ie(Ut,Ne,M+Ft,mo)&&(Vt=!0),!Zt&&Ie(oo,lt,M+Ft,mo)&&(Zt=!0)}{var mo=Te?1:0;!Vt&&Ie(Ut,Ne,j,mo)&&(be.start=M+At,Vt=!0),!Zt&&Ie(oo,lt,j,mo)&&(be.end=M+At,Zt=!0)}var mt=At-ft;Vt||(be.start=Math.max(0,Ut+mt)),Zt||(be.end=Math.max(0,oo+mt)),be.start>be.end&&(be.end=be.start)}function Ve(be,M,j){for(var X=be.root,Te=0,Ae=0,Ne=0,lt=0,ft=[],At=0;X!==de;){if(c(X)){p(X.left,!1),p(X.right,!1),X===X.parent.right&&(Te-=X.parent.delta),X=X.parent;continue}if(!c(X.left)){if(Ae=Te+X.maxEnd,Ae<M){p(X,!0);continue}if(X.left!==de){X=X.left;continue}}if(Ne=Te+X.start,Ne>j){p(X,!0);continue}if(lt=Te+X.end,lt>=M&&(X.setCachedOffsets(Ne,lt,0),ft[At++]=X),p(X,!0),X.right!==de&&!c(X.right)){Te+=X.delta,X=X.right;continue}}return p(be.root,!1),ft}function ke(be,M,j,X){for(var Te=be.root,Ae=0,Ne=0,lt=0,ft=X-(j-M);Te!==de;){if(c(Te)){p(Te.left,!1),p(Te.right,!1),Te===Te.parent.right&&(Ae-=Te.parent.delta),xe(Te),Te=Te.parent;continue}if(!c(Te.left)){if(Ne=Ae+Te.maxEnd,Ne<M){p(Te,!0);continue}if(Te.left!==de){Te=Te.left;continue}}if(lt=Ae+Te.start,lt>j){Te.start+=ft,Te.end+=ft,Te.delta+=ft,(Te.delta<-1073741824||Te.delta>1073741824)&&(be.requestNormalizeDelta=!0),p(Te,!0);continue}if(p(Te,!0),Te.right!==de&&!c(Te.right)){Ae+=Te.delta,Te=Te.right;continue}}p(be.root,!1)}function se(be,M){for(var j=be.root,X=[],Te=0;j!==de;){if(c(j)){p(j.left,!1),p(j.right,!1),j=j.parent;continue}if(j.left!==de&&!c(j.left)){j=j.left;continue}if(j.ownerId===M&&(X[Te++]=j),p(j,!0),j.right!==de&&!c(j.right)){j=j.right;continue}}return p(be.root,!1),X}function ee(be){for(var M=be.root,j=[],X=0;M!==de;){if(c(M)){p(M.left,!1),p(M.right,!1),M=M.parent;continue}if(M.left!==de&&!c(M.left)){M=M.left;continue}if(M.right!==de&&!c(M.right)){M=M.right;continue}j[X++]=M,p(M,!0)}return p(be.root,!1),j}function ie(be,M,j,X){for(var Te=be.root,Ae=0,Ne=0,lt=0,ft=[],At=0;Te!==de;){if(c(Te)){p(Te.left,!1),p(Te.right,!1),Te===Te.parent.right&&(Ae-=Te.parent.delta),Te=Te.parent;continue}if(Te.left!==de&&!c(Te.left)){Te=Te.left;continue}Ne=Ae+Te.start,lt=Ae+Te.end,Te.setCachedOffsets(Ne,lt,X);var Ft=!0;if(M&&Te.ownerId&&Te.ownerId!==M&&(Ft=!1),j&&_(Te)&&(Ft=!1),Ft&&(ft[At++]=Te),p(Te,!0),Te.right!==de&&!c(Te.right)){Ae+=Te.delta,Te=Te.right;continue}}return p(be.root,!1),ft}function q(be,M,j,X,Te,Ae){for(var Ne=be.root,lt=0,ft=0,At=0,Ft=0,Ut=[],Vt=0;Ne!==de;){if(c(Ne)){p(Ne.left,!1),p(Ne.right,!1),Ne===Ne.parent.right&&(lt-=Ne.parent.delta),Ne=Ne.parent;continue}if(!c(Ne.left)){if(ft=lt+Ne.maxEnd,ft<M){p(Ne,!0);continue}if(Ne.left!==de){Ne=Ne.left;continue}}if(At=lt+Ne.start,At>j){p(Ne,!0);continue}if(Ft=lt+Ne.end,Ft>=M){Ne.setCachedOffsets(At,Ft,Ae);var oo=!0;X&&Ne.ownerId&&Ne.ownerId!==X&&(oo=!1),Te&&_(Ne)&&(oo=!1),oo&&(Ut[Vt++]=Ne)}if(p(Ne,!0),Ne.right!==de&&!c(Ne.right)){lt+=Ne.delta,Ne=Ne.right;continue}}return p(be.root,!1),Ut}function ce(be,M){if(be.root===de)return M.parent=de,M.left=de,M.right=de,l(M,0),be.root=M,be.root;Z(be,M),Ce(M.parent);for(var j=M;j!==be.root&&s(j.parent)===1;)if(j.parent===j.parent.parent.left){var X=j.parent.parent.right;s(X)===1?(l(j.parent,0),l(X,0),l(j.parent.parent,1),j=j.parent.parent):(j===j.parent.right&&(j=j.parent,ue(be,j)),l(j.parent,0),l(j.parent.parent,1),ve(be,j.parent.parent))}else{var X=j.parent.parent.left;s(X)===1?(l(j.parent,0),l(X,0),l(j.parent.parent,1),j=j.parent.parent):(j===j.parent.left&&(j=j.parent,ve(be,j)),l(j.parent,0),l(j.parent.parent,1),ue(be,j.parent.parent))}return l(be.root,0),M}function Z(be,M){for(var j=0,X=be.root,Te=M.start,Ae=M.end;;){var Ne=he(Te,Ae,X.start+j,X.end+j);if(Ne<0)if(X.left===de){M.start-=j,M.end-=j,M.maxEnd-=j,X.left=M;break}else X=X.left;else if(X.right===de){M.start-=j+X.delta,M.end-=j+X.delta,M.maxEnd-=j+X.delta,X.right=M;break}else j+=X.delta,X=X.right}M.parent=X,M.left=de,M.right=de,l(M,1)}function ye(be,M){var j,X;if(M.left===de?(j=M.right,X=M,j.delta+=M.delta,(j.delta<-1073741824||j.delta>1073741824)&&(be.requestNormalizeDelta=!0),j.start+=M.delta,j.end+=M.delta):M.right===de?(j=M.left,X=M):(X=je(M.right),j=X.right,j.start+=X.delta,j.end+=X.delta,j.delta+=X.delta,(j.delta<-1073741824||j.delta>1073741824)&&(be.requestNormalizeDelta=!0),X.start+=M.delta,X.end+=M.delta,X.delta=M.delta,(X.delta<-1073741824||X.delta>1073741824)&&(be.requestNormalizeDelta=!0)),X===be.root){be.root=j,l(j,0),M.detach(),Ge(),xe(j),be.root.parent=de;return}var Te=s(X)===1;if(X===X.parent.left?X.parent.left=j:X.parent.right=j,X===M?j.parent=X.parent:(X.parent===M?j.parent=X:j.parent=X.parent,X.left=M.left,X.right=M.right,X.parent=M.parent,l(X,s(M)),M===be.root?be.root=X:M===M.parent.left?M.parent.left=X:M.parent.right=X,X.left!==de&&(X.left.parent=X),X.right!==de&&(X.right.parent=X)),M.detach(),Te){Ce(j.parent),X!==M&&(Ce(X),Ce(X.parent)),Ge();return}Ce(j),Ce(j.parent),X!==M&&(Ce(X),Ce(X.parent));for(var Ae;j!==be.root&&s(j)===0;)j===j.parent.left?(Ae=j.parent.right,s(Ae)===1&&(l(Ae,0),l(j.parent,1),ue(be,j.parent),Ae=j.parent.right),s(Ae.left)===0&&s(Ae.right)===0?(l(Ae,1),j=j.parent):(s(Ae.right)===0&&(l(Ae.left,0),l(Ae,1),ve(be,Ae),Ae=j.parent.right),l(Ae,s(j.parent)),l(j.parent,0),l(Ae.right,0),ue(be,j.parent),j=be.root)):(Ae=j.parent.left,s(Ae)===1&&(l(Ae,0),l(j.parent,1),ve(be,j.parent),Ae=j.parent.left),s(Ae.left)===0&&s(Ae.right)===0?(l(Ae,1),j=j.parent):(s(Ae.left)===0&&(l(Ae.right,0),l(Ae,1),ue(be,Ae),Ae=j.parent.left),l(Ae,s(j.parent)),l(j.parent,0),l(Ae.left,0),ve(be,j.parent),j=be.root));l(j,0),Ge()}function je(be){for(;be.left!==de;)be=be.left;return be}function Ge(){de.parent=de,de.delta=0,de.start=0,de.end=0}function ue(be,M){var j=M.right;j.delta+=M.delta,(j.delta<-1073741824||j.delta>1073741824)&&(be.requestNormalizeDelta=!0),j.start+=M.delta,j.end+=M.delta,M.right=j.left,j.left!==de&&(j.left.parent=M),j.parent=M.parent,M.parent===de?be.root=j:M===M.parent.left?M.parent.left=j:M.parent.right=j,j.left=M,M.parent=j,xe(M),xe(j)}function ve(be,M){var j=M.left;M.delta-=j.delta,(M.delta<-1073741824||M.delta>1073741824)&&(be.requestNormalizeDelta=!0),M.start-=j.delta,M.end-=j.delta,M.left=j.right,j.right!==de&&(j.right.parent=M),j.parent=M.parent,M.parent===de?be.root=j:M===M.parent.right?M.parent.right=j:M.parent.left=j,j.right=M,M.parent=j,xe(M),xe(j)}function Ee(be){var M=be.end;if(be.left!==de){var j=be.left.maxEnd;j>M&&(M=j)}if(be.right!==de){var X=be.right.maxEnd+be.delta;X>M&&(M=X)}return M}function xe(be){be.maxEnd=Ee(be)}function Ce(be){for(;be!==de;){var M=Ee(be);if(be.maxEnd===M)return;be.maxEnd=M,be=be.parent}}function he(be,M,j,X){return be===j?M-X:be-j}var J=function(){function be(M,j){this.piece=M,this.color=j,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return be.prototype.next=function(){if(this.right!==b)return F(this.right);for(var M=this;M.parent!==b&&!(M.parent.left===M);)M=M.parent;return M.parent===b?b:M.parent},be.prototype.prev=function(){if(this.left!==b)return re(this.left);for(var M=this;M.parent!==b&&!(M.parent.right===M);)M=M.parent;return M.parent===b?b:M.parent},be.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},be}(),b=new J(null,0);b.parent=b,b.left=b,b.right=b,b.color=0;function F(be){for(;be.left!==b;)be=be.left;return be}function re(be){for(;be.right!==b;)be=be.right;return be}function ne(be){return be===b?0:be.size_left+be.piece.length+ne(be.right)}function fe(be){return be===b?0:be.lf_left+be.piece.lineFeedCnt+fe(be.right)}function Oe(){b.parent=b}function Me(be,M){var j=M.right;j.size_left+=M.size_left+(M.piece?M.piece.length:0),j.lf_left+=M.lf_left+(M.piece?M.piece.lineFeedCnt:0),M.right=j.left,j.left!==b&&(j.left.parent=M),j.parent=M.parent,M.parent===b?be.root=j:M.parent.left===M?M.parent.left=j:M.parent.right=j,j.left=M,M.parent=j}function Ue(be,M){var j=M.left;M.left=j.right,j.right!==b&&(j.right.parent=M),j.parent=M.parent,M.size_left-=j.size_left+(j.piece?j.piece.length:0),M.lf_left-=j.lf_left+(j.piece?j.piece.lineFeedCnt:0),M.parent===b?be.root=j:M===M.parent.right?M.parent.right=j:M.parent.left=j,j.right=M,M.parent=j}function Je(be,M){var j,X;if(M.left===b?(X=M,j=X.right):M.right===b?(X=M,j=X.left):(X=F(M.right),j=X.right),X===be.root){be.root=j,j.color=0,M.detach(),Oe(),be.root.parent=b;return}var Te=X.color===1;if(X===X.parent.left?X.parent.left=j:X.parent.right=j,X===M?(j.parent=X.parent,Rt(be,j)):(X.parent===M?j.parent=X:j.parent=X.parent,Rt(be,j),X.left=M.left,X.right=M.right,X.parent=M.parent,X.color=M.color,M===be.root?be.root=X:M===M.parent.left?M.parent.left=X:M.parent.right=X,X.left!==b&&(X.left.parent=X),X.right!==b&&(X.right.parent=X),X.size_left=M.size_left,X.lf_left=M.lf_left,Rt(be,X)),M.detach(),j.parent.left===j){var Ae=ne(j),Ne=fe(j);if(Ae!==j.parent.size_left||Ne!==j.parent.lf_left){var lt=Ae-j.parent.size_left,ft=Ne-j.parent.lf_left;j.parent.size_left=Ae,j.parent.lf_left=Ne,vt(be,j.parent,lt,ft)}}if(Rt(be,j.parent),Te){Oe();return}for(var At;j!==be.root&&j.color===0;)j===j.parent.left?(At=j.parent.right,At.color===1&&(At.color=0,j.parent.color=1,Me(be,j.parent),At=j.parent.right),At.left.color===0&&At.right.color===0?(At.color=1,j=j.parent):(At.right.color===0&&(At.left.color=0,At.color=1,Ue(be,At),At=j.parent.right),At.color=j.parent.color,j.parent.color=0,At.right.color=0,Me(be,j.parent),j=be.root)):(At=j.parent.left,At.color===1&&(At.color=0,j.parent.color=1,Ue(be,j.parent),At=j.parent.left),At.left.color===0&&At.right.color===0?(At.color=1,j=j.parent):(At.left.color===0&&(At.right.color=0,At.color=1,Me(be,At),At=j.parent.left),At.color=j.parent.color,j.parent.color=0,At.left.color=0,Ue(be,j.parent),j=be.root));j.color=0,Oe()}function nt(be,M){for(Rt(be,M);M!==be.root&&M.parent.color===1;)if(M.parent===M.parent.parent.left){var j=M.parent.parent.right;j.color===1?(M.parent.color=0,j.color=0,M.parent.parent.color=1,M=M.parent.parent):(M===M.parent.right&&(M=M.parent,Me(be,M)),M.parent.color=0,M.parent.parent.color=1,Ue(be,M.parent.parent))}else{var j=M.parent.parent.left;j.color===1?(M.parent.color=0,j.color=0,M.parent.parent.color=1,M=M.parent.parent):(M===M.parent.left&&(M=M.parent,Ue(be,M)),M.parent.color=0,M.parent.parent.color=1,Me(be,M.parent.parent))}be.root.color=0}function vt(be,M,j,X){for(;M!==be.root&&M!==b;)M.parent.left===M&&(M.parent.size_left+=j,M.parent.lf_left+=X),M=M.parent}function Rt(be,M){var j=0,X=0;if(M===be.root)return;if(j===0){for(;M!==be.root&&M===M.parent.right;)M=M.parent;if(M===be.root)return;M=M.parent,j=ne(M.left)-M.size_left,X=fe(M.left)-M.lf_left,M.size_left+=j,M.lf_left+=X}for(;M!==be.root&&(j!==0||X!==0);)M.parent.left===M&&(M.parent.size_left+=j,M.parent.lf_left+=X),M=M.parent}var Dt=e("jAJ/"),Kt=65535;function ao(be){var M;return be[be.length-1]<65536?M=new Uint16Array(be.length):M=new Uint32Array(be.length),M.set(be,0),M}var lo=function(){function be(M,j,X,Te,Ae){this.lineStarts=M,this.cr=j,this.lf=X,this.crlf=Te,this.isBasicASCII=Ae}return be}();function so(be,M){M===void 0&&(M=!0);for(var j=[0],X=1,Te=0,Ae=be.length;Te<Ae;Te++){var Ne=be.charCodeAt(Te);Ne===13?Te+1<Ae&&be.charCodeAt(Te+1)===10?(j[X++]=Te+2,Te++):j[X++]=Te+1:Ne===10&&(j[X++]=Te+1)}return M?ao(j):j}function jt(be,M){be.length=0,be[0]=0;for(var j=1,X=0,Te=0,Ae=0,Ne=!0,lt=0,ft=M.length;lt<ft;lt++){var At=M.charCodeAt(lt);At===13?lt+1<ft&&M.charCodeAt(lt+1)===10?(Ae++,be[j++]=lt+2,lt++):(X++,be[j++]=lt+1):At===10?(Te++,be[j++]=lt+1):Ne&&(At!==9&&(At<32||At>126)&&(Ne=!1))}var Ft=new lo(ao(be),X,Te,Ae,Ne);return be.length=0,Ft}var pt=function(){function be(M,j,X,Te,Ae){this.bufferIndex=M,this.start=j,this.end=X,this.lineFeedCnt=Te,this.length=Ae}return be}(),gt=function(){function be(M,j){this.buffer=M,this.lineStarts=j}return be}(),Tt=function(){function be(M){this._limit=M,this._cache=[]}return be.prototype.get=function(M){for(var j=this._cache.length-1;j>=0;j--){var X=this._cache[j];if(X.nodeStartOffset<=M&&X.nodeStartOffset+X.node.piece.length>=M)return X}return null},be.prototype.get2=function(M){for(var j=this._cache.length-1;j>=0;j--){var X=this._cache[j];if(X.nodeStartLineNumber&&X.nodeStartLineNumber<M&&X.nodeStartLineNumber+X.node.piece.lineFeedCnt>=M)return X}return null},be.prototype.set=function(M){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(M)},be.prototype.valdiate=function(M){for(var j=!1,X=this._cache,Te=0;Te<X.length;Te++){var Ae=X[Te];if(Ae.node.parent===null||Ae.nodeStartOffset>=M){X[Te]=null,j=!0;continue}}if(j){for(var Ne=[],lt=0,ft=X;lt<ft.length;lt++){var At=ft[lt];At!==null&&Ne.push(At)}this._cache=Ne}},be}(),it=function(){function be(M,j,X){this.create(M,j,X)}return be.prototype.create=function(M,j,X){this._buffers=[new gt("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=b,this._lineCnt=1,this._length=0,this._EOL=j,this._EOLLength=j.length,this._EOLNormalized=X;for(var Te=null,Ae=0,Ne=M.length;Ae<Ne;Ae++)if(M[Ae].buffer.length>0){M[Ae].lineStarts||(M[Ae].lineStarts=so(M[Ae].buffer));var lt=new pt(Ae+1,{line:0,column:0},{line:M[Ae].lineStarts.length-1,column:M[Ae].buffer.length-M[Ae].lineStarts[M[Ae].lineStarts.length-1]},M[Ae].lineStarts.length-1,M[Ae].buffer.length);this._buffers.push(M[Ae]),Te=this.rbInsertRight(Te,lt)}this._searchCache=new Tt(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},be.prototype.normalizeEOL=function(M){var j=this,X=Kt,Te=X-Math.floor(X/3),Ae=Te*2,Ne="",lt=0,ft=[];if(this.iterate(this.root,function(Ft){var Ut=j.getNodeContent(Ft),Vt=Ut.length;if(lt<=Te||lt+Vt<Ae)return Ne+=Ut,lt+=Vt,!0;var oo=Ne.replace(/\r\n|\r|\n/g,M);return ft.push(new gt(oo,so(oo))),Ne=Ut,lt=Vt,!0}),lt>0){var At=Ne.replace(/\r\n|\r|\n/g,M);ft.push(new gt(At,so(At)))}this.create(ft,M,!0)},be.prototype.getEOL=function(){return this._EOL},be.prototype.setEOL=function(M){this._EOL=M,this._EOLLength=this._EOL.length,this.normalizeEOL(M)},be.prototype.getOffsetAt=function(M,j){for(var X=0,Te=this.root;Te!==b;)if(Te.left!==b&&Te.lf_left+1>=M)Te=Te.left;else if(Te.lf_left+Te.piece.lineFeedCnt+1>=M){X+=Te.size_left;var Ae=this.getAccumulatedValue(Te,M-Te.lf_left-2);return X+=Ae+j-1}else M-=Te.lf_left+Te.piece.lineFeedCnt,X+=Te.size_left+Te.piece.length,Te=Te.right;return X},be.prototype.getPositionAt=function(M){M=Math.floor(M),M=Math.max(0,M);for(var j=this.root,X=0,Te=M;j!==b;)if(j.size_left!==0&&j.size_left>=M)j=j.left;else if(j.size_left+j.piece.length>=M){var Ae=this.getIndexOf(j,M-j.size_left);if(X+=j.lf_left+Ae.index,Ae.index===0){var Ne=this.getOffsetAt(X+1,1),lt=Te-Ne;return new D.a(X+1,lt+1)}return new D.a(X+1,Ae.remainder+1)}else if(M-=j.size_left+j.piece.length,X+=j.lf_left+j.piece.lineFeedCnt,j.right===b){var Ne=this.getOffsetAt(X+1,1),lt=Te-M-Ne;return new D.a(X+1,lt+1)}else j=j.right;return new D.a(1,1)},be.prototype.getValueInRange=function(M,j){if(M.startLineNumber===M.endLineNumber&&M.startColumn===M.endColumn)return"";var X=this.nodeAt2(M.startLineNumber,M.startColumn),Te=this.nodeAt2(M.endLineNumber,M.endColumn),Ae=this.getValueInRange2(X,Te);return j?j!==this._EOL||!this._EOLNormalized?Ae.replace(/\r\n|\r|\n/g,j):j===this.getEOL()&&this._EOLNormalized?(j===`\r
`,Ae):Ae.replace(/\r\n|\r|\n/g,j):Ae},be.prototype.getValueInRange2=function(M,j){if(M.node===j.node){var X=M.node,Te=this._buffers[X.piece.bufferIndex].buffer,Ae=this.offsetInBuffer(X.piece.bufferIndex,X.piece.start);return Te.substring(Ae+M.remainder,Ae+j.remainder)}var Ne=M.node,lt=this._buffers[Ne.piece.bufferIndex].buffer,ft=this.offsetInBuffer(Ne.piece.bufferIndex,Ne.piece.start),At=lt.substring(ft+M.remainder,ft+Ne.piece.length);for(Ne=Ne.next();Ne!==b;){var Ft=this._buffers[Ne.piece.bufferIndex].buffer,Ut=this.offsetInBuffer(Ne.piece.bufferIndex,Ne.piece.start);if(Ne===j.node){At+=Ft.substring(Ut,Ut+j.remainder);break}else At+=Ft.substr(Ut,Ne.piece.length);Ne=Ne.next()}return At},be.prototype.getLinesContent=function(){var M=this,j=[],X=0,Te="",Ae=!1;return this.iterate(this.root,function(Ne){if(Ne===b)return!0;var lt=Ne.piece,ft=lt.length;if(ft===0)return!0;var At=M._buffers[lt.bufferIndex].buffer,Ft=M._buffers[lt.bufferIndex].lineStarts,Ut=lt.start.line,Vt=lt.end.line,oo=Ft[Ut]+lt.start.column;if(Ae&&(At.charCodeAt(oo)===10&&(oo++,ft--),j[X++]=Te,Te="",Ae=!1,ft===0))return!0;if(Ut===Vt)return!M._EOLNormalized&&At.charCodeAt(oo+ft-1)===13?(Ae=!0,Te+=At.substr(oo,ft-1)):Te+=At.substr(oo,ft),!0;Te+=M._EOLNormalized?At.substring(oo,Math.max(oo,Ft[Ut+1]-M._EOLLength)):At.substring(oo,Ft[Ut+1]).replace(/(\r\n|\r|\n)$/,""),j[X++]=Te;for(var Zt=Ut+1;Zt<Vt;Zt++)Te=M._EOLNormalized?At.substring(Ft[Zt],Ft[Zt+1]-M._EOLLength):At.substring(Ft[Zt],Ft[Zt+1]).replace(/(\r\n|\r|\n)$/,""),j[X++]=Te;return!M._EOLNormalized&&At.charCodeAt(Ft[Vt]+lt.end.column-1)===13?(Ae=!0,lt.end.column===0?X--:Te=At.substr(Ft[Vt],lt.end.column-1)):Te=At.substr(Ft[Vt],lt.end.column),!0}),Ae&&(j[X++]=Te,Te=""),j[X++]=Te,j},be.prototype.getLength=function(){return this._length},be.prototype.getLineCount=function(){return this._lineCnt},be.prototype.getLineContent=function(M){return this._lastVisitedLine.lineNumber===M?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=M,M===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(M):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(M,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(M).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},be.prototype.getLineCharCode=function(M,j){var X=this.nodeAt2(M,j+1);if(X.remainder===X.node.piece.length){var Te=X.node.next();if(!Te)return 0;var Ae=this._buffers[Te.piece.bufferIndex],Ne=this.offsetInBuffer(Te.piece.bufferIndex,Te.piece.start);return Ae.buffer.charCodeAt(Ne)}else{var Ae=this._buffers[X.node.piece.bufferIndex],Ne=this.offsetInBuffer(X.node.piece.bufferIndex,X.node.piece.start),lt=Ne+X.remainder;return Ae.buffer.charCodeAt(lt)}},be.prototype.getLineLength=function(M){if(M===this.getLineCount()){var j=this.getOffsetAt(M,1);return this.getLength()-j}return this.getOffsetAt(M+1,1)-this.getOffsetAt(M,1)-this._EOLLength},be.prototype.findMatchesInNode=function(M,j,X,Te,Ae,Ne,lt,ft,At,Ft,Ut){var Vt=this._buffers[M.piece.bufferIndex],oo=this.offsetInBuffer(M.piece.bufferIndex,M.piece.start),Zt=this.offsetInBuffer(M.piece.bufferIndex,Ae),mo=this.offsetInBuffer(M.piece.bufferIndex,Ne),mt,He={line:0,column:0},De,ot;j._wordSeparators?(De=Vt.buffer.substring(Zt,mo),ot=function(me){return me+Zt},j.reset(-1)):(De=Vt.buffer,ot=function(me){return me},j.reset(Zt));do if(mt=j.next(De),mt){if(ot(mt.index)>=mo)return Ft;this.positionInBuffer(M,ot(mt.index)-oo,He);var xt=this.getLineFeedCnt(M.piece.bufferIndex,Ae,He),pe=He.line===Ae.line?He.column-Ae.column+Te:He.column+1,O=pe+mt[0].length;if(Ut[Ft++]=Object(Dt.d)(new W.a(X+xt,pe,X+xt,O),mt,ft),ot(mt.index)+mt[0].length>=mo)return Ft;if(Ft>=At)return Ft}while(mt);return Ft},be.prototype.findMatchesLineByLine=function(M,j,X,Te){var Ae=[],Ne=0,lt=new Dt.b(j.wordSeparators,j.regex),ft=this.nodeAt2(M.startLineNumber,M.startColumn);if(ft===null)return[];var At=this.nodeAt2(M.endLineNumber,M.endColumn);if(At===null)return[];var Ft=this.positionInBuffer(ft.node,ft.remainder),Ut=this.positionInBuffer(At.node,At.remainder);if(ft.node===At.node)return this.findMatchesInNode(ft.node,lt,M.startLineNumber,M.startColumn,Ft,Ut,j,X,Te,Ne,Ae),Ae;for(var Vt=M.startLineNumber,oo=ft.node;oo!==At.node;){var Zt=this.getLineFeedCnt(oo.piece.bufferIndex,Ft,oo.piece.end);if(Zt>=1){var mo=this._buffers[oo.piece.bufferIndex].lineStarts,mt=this.offsetInBuffer(oo.piece.bufferIndex,oo.piece.start),He=mo[Ft.line+Zt],De=Vt===M.startLineNumber?M.startColumn:1;if(Ne=this.findMatchesInNode(oo,lt,Vt,De,Ft,this.positionInBuffer(oo,He-mt),j,X,Te,Ne,Ae),Ne>=Te)return Ae;Vt+=Zt}var ot=Vt===M.startLineNumber?M.startColumn-1:0;if(Vt===M.endLineNumber){var xt=this.getLineContent(Vt).substring(ot,M.endColumn-1);return Ne=this._findMatchesInLine(j,lt,xt,M.endLineNumber,ot,Ne,Ae,X,Te),Ae}if(Ne=this._findMatchesInLine(j,lt,this.getLineContent(Vt).substr(ot),Vt,ot,Ne,Ae,X,Te),Ne>=Te)return Ae;Vt++,ft=this.nodeAt2(Vt,1),oo=ft.node,Ft=this.positionInBuffer(ft.node,ft.remainder)}if(Vt===M.endLineNumber){var pe=Vt===M.startLineNumber?M.startColumn-1:0,xt=this.getLineContent(Vt).substring(pe,M.endColumn-1);return Ne=this._findMatchesInLine(j,lt,xt,M.endLineNumber,pe,Ne,Ae,X,Te),Ae}var O=Vt===M.startLineNumber?M.startColumn:1;return Ne=this.findMatchesInNode(At.node,lt,Vt,O,Ft,Ut,j,X,Te,Ne,Ae),Ae},be.prototype._findMatchesInLine=function(M,j,X,Te,Ae,Ne,lt,ft,At){var Ft=M.wordSeparators;if(!ft&&M.simpleSearch){for(var Ut=M.simpleSearch,Vt=Ut.length,oo=X.length,Zt=-Vt;(Zt=X.indexOf(Ut,Zt+Vt))!==-1;)if((!Ft||Object(Dt.e)(Ft,X,oo,Zt,Vt))&&(lt[Ne++]=new h.b(new W.a(Te,Zt+1+Ae,Te,Zt+1+Vt+Ae),null),Ne>=At))return Ne;return Ne}var mo;j.reset(0);do if(mo=j.next(X),mo&&(lt[Ne++]=Object(Dt.d)(new W.a(Te,mo.index+1+Ae,Te,mo.index+1+mo[0].length+Ae),mo,ft),Ne>=At))return Ne;while(mo);return Ne},be.prototype.insert=function(M,j,X){if(X===void 0&&(X=!1),this._EOLNormalized=this._EOLNormalized&&X,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==b){var Te=this.nodeAt(M),Ae=Te.node,Ne=Te.remainder,lt=Te.nodeStartOffset,ft=Ae.piece,At=ft.bufferIndex,Ft=this.positionInBuffer(Ae,Ne);if(Ae.piece.bufferIndex===0&&ft.end.line===this._lastChangeBufferPos.line&&ft.end.column===this._lastChangeBufferPos.column&&lt+ft.length===M&&j.length<Kt){this.appendToNode(Ae,j),this.computeBufferMetadata();return}if(lt===M)this.insertContentToNodeLeft(j,Ae),this._searchCache.valdiate(M);else if(lt+Ae.piece.length>M){var Ut=[],Vt=new pt(ft.bufferIndex,Ft,ft.end,this.getLineFeedCnt(ft.bufferIndex,Ft,ft.end),this.offsetInBuffer(At,ft.end)-this.offsetInBuffer(At,Ft));if(this.shouldCheckCRLF()&&this.endWithCR(j)){var oo=this.nodeCharCodeAt(Ae,Ne);if(oo===10){var Zt={line:Vt.start.line+1,column:0};Vt=new pt(Vt.bufferIndex,Zt,Vt.end,this.getLineFeedCnt(Vt.bufferIndex,Zt,Vt.end),Vt.length-1),j+=`
`}}if(this.shouldCheckCRLF()&&this.startWithLF(j)){var mo=this.nodeCharCodeAt(Ae,Ne-1);if(mo===13){var mt=this.positionInBuffer(Ae,Ne-1);this.deleteNodeTail(Ae,mt),j="\r"+j,Ae.piece.length===0&&Ut.push(Ae)}else this.deleteNodeTail(Ae,Ft)}else this.deleteNodeTail(Ae,Ft);var He=this.createNewPieces(j);Vt.length>0&&this.rbInsertRight(Ae,Vt);for(var De=Ae,ot=0;ot<He.length;ot++)De=this.rbInsertRight(De,He[ot]);this.deleteNodes(Ut)}else this.insertContentToNodeRight(j,Ae)}else for(var xt=this.createNewPieces(j),Ae=this.rbInsertLeft(null,xt[0]),ot=1;ot<xt.length;ot++)Ae=this.rbInsertRight(Ae,xt[ot]);this.computeBufferMetadata()},be.prototype.delete=function(M,j){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",j<=0||this.root===b)return;var X=this.nodeAt(M),Te=this.nodeAt(M+j),Ae=X.node,Ne=Te.node;if(Ae===Ne){var lt=this.positionInBuffer(Ae,X.remainder),ft=this.positionInBuffer(Ae,Te.remainder);if(X.nodeStartOffset===M){if(j===Ae.piece.length){var At=Ae.next();Je(this,Ae),this.validateCRLFWithPrevNode(At),this.computeBufferMetadata();return}this.deleteNodeHead(Ae,ft),this._searchCache.valdiate(M),this.validateCRLFWithPrevNode(Ae),this.computeBufferMetadata();return}if(X.nodeStartOffset+Ae.piece.length===M+j){this.deleteNodeTail(Ae,lt),this.validateCRLFWithNextNode(Ae),this.computeBufferMetadata();return}this.shrinkNode(Ae,lt,ft),this.computeBufferMetadata();return}var Ft=[],Ut=this.positionInBuffer(Ae,X.remainder);this.deleteNodeTail(Ae,Ut),this._searchCache.valdiate(M),Ae.piece.length===0&&Ft.push(Ae);var Vt=this.positionInBuffer(Ne,Te.remainder);this.deleteNodeHead(Ne,Vt),Ne.piece.length===0&&Ft.push(Ne);for(var oo=Ae.next(),Zt=oo;Zt!==b&&Zt!==Ne;Zt=Zt.next())Ft.push(Zt);var mo=Ae.piece.length===0?Ae.prev():Ae;this.deleteNodes(Ft),this.validateCRLFWithNextNode(mo),this.computeBufferMetadata()},be.prototype.insertContentToNodeLeft=function(M,j){var X=[];if(this.shouldCheckCRLF()&&this.endWithCR(M)&&this.startWithLF(j)){var Te=j.piece,Ae={line:Te.start.line+1,column:0},Ne=new pt(Te.bufferIndex,Ae,Te.end,this.getLineFeedCnt(Te.bufferIndex,Ae,Te.end),Te.length-1);j.piece=Ne,M+=`
`,vt(this,j,-1,-1),j.piece.length===0&&X.push(j)}for(var lt=this.createNewPieces(M),ft=this.rbInsertLeft(j,lt[lt.length-1]),At=lt.length-2;At>=0;At--)ft=this.rbInsertLeft(ft,lt[At]);this.validateCRLFWithPrevNode(ft),this.deleteNodes(X)},be.prototype.insertContentToNodeRight=function(M,j){this.adjustCarriageReturnFromNext(M,j)&&(M+=`
`);for(var X=this.createNewPieces(M),Te=this.rbInsertRight(j,X[0]),Ae=Te,Ne=1;Ne<X.length;Ne++)Ae=this.rbInsertRight(Ae,X[Ne]);this.validateCRLFWithPrevNode(Te)},be.prototype.positionInBuffer=function(M,j,X){for(var Te=M.piece,Ae=M.piece.bufferIndex,Ne=this._buffers[Ae].lineStarts,lt=Ne[Te.start.line]+Te.start.column,ft=lt+j,At=Te.start.line,Ft=Te.end.line,Ut=0,Vt=0,oo=0;At<=Ft&&!(Ut=At+(Ft-At)/2|0,oo=Ne[Ut],Ut===Ft);)if(Vt=Ne[Ut+1],ft<oo)Ft=Ut-1;else if(ft>=Vt)At=Ut+1;else break;return X?(X.line=Ut,X.column=ft-oo,null):{line:Ut,column:ft-oo}},be.prototype.getLineFeedCnt=function(M,j,X){if(X.column===0)return X.line-j.line;var Te=this._buffers[M].lineStarts;if(X.line===Te.length-1)return X.line-j.line;var Ae=Te[X.line+1],Ne=Te[X.line]+X.column;if(Ae>Ne+1)return X.line-j.line;var lt=Ne-1,ft=this._buffers[M].buffer;return ft.charCodeAt(lt)===13?X.line-j.line+1:X.line-j.line},be.prototype.offsetInBuffer=function(M,j){var X=this._buffers[M].lineStarts;return X[j.line]+j.column},be.prototype.deleteNodes=function(M){for(var j=0;j<M.length;j++)Je(this,M[j])},be.prototype.createNewPieces=function(M){if(M.length>Kt){for(var j=[];M.length>Kt;){var X=M.charCodeAt(Kt-1),Te=void 0;X===13||X>=55296&&X<=56319?(Te=M.substring(0,Kt-1),M=M.substring(Kt-1)):(Te=M.substring(0,Kt),M=M.substring(Kt));var Ae=so(Te);j.push(new pt(this._buffers.length,{line:0,column:0},{line:Ae.length-1,column:Te.length-Ae[Ae.length-1]},Ae.length-1,Te.length)),this._buffers.push(new gt(Te,Ae))}var Ne=so(M);return j.push(new pt(this._buffers.length,{line:0,column:0},{line:Ne.length-1,column:M.length-Ne[Ne.length-1]},Ne.length-1,M.length)),this._buffers.push(new gt(M,Ne)),j}var lt=this._buffers[0].buffer.length,ft=so(M,!1),At=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===lt&&lt!==0&&this.startWithLF(M)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},At=this._lastChangeBufferPos;for(var Ft=0;Ft<ft.length;Ft++)ft[Ft]+=lt+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(ft.slice(1)),this._buffers[0].buffer+="_"+M,lt+=1}else{if(lt!==0)for(var Ft=0;Ft<ft.length;Ft++)ft[Ft]+=lt;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(ft.slice(1)),this._buffers[0].buffer+=M}var Ut=this._buffers[0].buffer.length,Vt=this._buffers[0].lineStarts.length-1,oo=Ut-this._buffers[0].lineStarts[Vt],Zt={line:Vt,column:oo},mo=new pt(0,At,Zt,this.getLineFeedCnt(0,At,Zt),Ut-lt);return this._lastChangeBufferPos=Zt,[mo]},be.prototype.getLineRawContent=function(M,j){j===void 0&&(j=0);var X=this.root,Te="",Ae=this._searchCache.get2(M);if(Ae){X=Ae.node;var Ne=this.getAccumulatedValue(X,M-Ae.nodeStartLineNumber-1),lt=this._buffers[X.piece.bufferIndex].buffer,ft=this.offsetInBuffer(X.piece.bufferIndex,X.piece.start);if(Ae.nodeStartLineNumber+X.piece.lineFeedCnt===M)Te=lt.substring(ft+Ne,ft+X.piece.length);else{var At=this.getAccumulatedValue(X,M-Ae.nodeStartLineNumber);return lt.substring(ft+Ne,ft+At-j)}}else for(var Ft=0,Ut=M;X!==b;)if(X.left!==b&&X.lf_left>=M-1)X=X.left;else if(X.lf_left+X.piece.lineFeedCnt>M-1){var Ne=this.getAccumulatedValue(X,M-X.lf_left-2),At=this.getAccumulatedValue(X,M-X.lf_left-1),lt=this._buffers[X.piece.bufferIndex].buffer,ft=this.offsetInBuffer(X.piece.bufferIndex,X.piece.start);return Ft+=X.size_left,this._searchCache.set({node:X,nodeStartOffset:Ft,nodeStartLineNumber:Ut-(M-1-X.lf_left)}),lt.substring(ft+Ne,ft+At-j)}else if(X.lf_left+X.piece.lineFeedCnt===M-1){var Ne=this.getAccumulatedValue(X,M-X.lf_left-2),lt=this._buffers[X.piece.bufferIndex].buffer,ft=this.offsetInBuffer(X.piece.bufferIndex,X.piece.start);Te=lt.substring(ft+Ne,ft+X.piece.length);break}else M-=X.lf_left+X.piece.lineFeedCnt,Ft+=X.size_left+X.piece.length,X=X.right;for(X=X.next();X!==b;){var lt=this._buffers[X.piece.bufferIndex].buffer;if(X.piece.lineFeedCnt>0){var At=this.getAccumulatedValue(X,0),ft=this.offsetInBuffer(X.piece.bufferIndex,X.piece.start);return Te+=lt.substring(ft,ft+At-j),Te}else{var ft=this.offsetInBuffer(X.piece.bufferIndex,X.piece.start);Te+=lt.substr(ft,X.piece.length)}X=X.next()}return Te},be.prototype.computeBufferMetadata=function(){for(var M=this.root,j=1,X=0;M!==b;)j+=M.lf_left+M.piece.lineFeedCnt,X+=M.size_left+M.piece.length,M=M.right;this._lineCnt=j,this._length=X,this._searchCache.valdiate(this._length)},be.prototype.getIndexOf=function(M,j){var X=M.piece,Te=this.positionInBuffer(M,j),Ae=Te.line-X.start.line;if(this.offsetInBuffer(X.bufferIndex,X.end)-this.offsetInBuffer(X.bufferIndex,X.start)===j){var Ne=this.getLineFeedCnt(M.piece.bufferIndex,X.start,Te);if(Ne!==Ae)return{index:Ne,remainder:0}}return{index:Ae,remainder:Te.column}},be.prototype.getAccumulatedValue=function(M,j){if(j<0)return 0;var X=M.piece,Te=this._buffers[X.bufferIndex].lineStarts,Ae=X.start.line+j+1;return Ae>X.end.line?Te[X.end.line]+X.end.column-Te[X.start.line]-X.start.column:Te[Ae]-Te[X.start.line]-X.start.column},be.prototype.deleteNodeTail=function(M,j){var X=M.piece,Te=X.lineFeedCnt,Ae=this.offsetInBuffer(X.bufferIndex,X.end),Ne=j,lt=this.offsetInBuffer(X.bufferIndex,Ne),ft=this.getLineFeedCnt(X.bufferIndex,X.start,Ne),At=ft-Te,Ft=lt-Ae,Ut=X.length+Ft;M.piece=new pt(X.bufferIndex,X.start,Ne,ft,Ut),vt(this,M,Ft,At)},be.prototype.deleteNodeHead=function(M,j){var X=M.piece,Te=X.lineFeedCnt,Ae=this.offsetInBuffer(X.bufferIndex,X.start),Ne=j,lt=this.getLineFeedCnt(X.bufferIndex,Ne,X.end),ft=this.offsetInBuffer(X.bufferIndex,Ne),At=lt-Te,Ft=Ae-ft,Ut=X.length+Ft;M.piece=new pt(X.bufferIndex,Ne,X.end,lt,Ut),vt(this,M,Ft,At)},be.prototype.shrinkNode=function(M,j,X){var Te=M.piece,Ae=Te.start,Ne=Te.end,lt=Te.length,ft=Te.lineFeedCnt,At=j,Ft=this.getLineFeedCnt(Te.bufferIndex,Te.start,At),Ut=this.offsetInBuffer(Te.bufferIndex,j)-this.offsetInBuffer(Te.bufferIndex,Ae);M.piece=new pt(Te.bufferIndex,Te.start,At,Ft,Ut),vt(this,M,Ut-lt,Ft-ft);var Vt=new pt(Te.bufferIndex,X,Ne,this.getLineFeedCnt(Te.bufferIndex,X,Ne),this.offsetInBuffer(Te.bufferIndex,Ne)-this.offsetInBuffer(Te.bufferIndex,X)),oo=this.rbInsertRight(M,Vt);this.validateCRLFWithPrevNode(oo)},be.prototype.appendToNode=function(M,j){this.adjustCarriageReturnFromNext(j,M)&&(j+=`
`);var X=this.shouldCheckCRLF()&&this.startWithLF(j)&&this.endWithCR(M),Te=this._buffers[0].buffer.length;this._buffers[0].buffer+=j;for(var Ae=so(j,!1),Ne=0;Ne<Ae.length;Ne++)Ae[Ne]+=Te;if(X){var lt=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:Te-lt}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(Ae.slice(1));var ft=this._buffers[0].lineStarts.length-1,At=this._buffers[0].buffer.length-this._buffers[0].lineStarts[ft],Ft={line:ft,column:At},Ut=M.piece.length+j.length,Vt=M.piece.lineFeedCnt,oo=this.getLineFeedCnt(0,M.piece.start,Ft),Zt=oo-Vt;M.piece=new pt(M.piece.bufferIndex,M.piece.start,Ft,oo,Ut),this._lastChangeBufferPos=Ft,vt(this,M,j.length,Zt)},be.prototype.nodeAt=function(M){var j=this.root,X=this._searchCache.get(M);if(X)return{node:X.node,nodeStartOffset:X.nodeStartOffset,remainder:M-X.nodeStartOffset};for(var Te=0;j!==b;)if(j.size_left>M)j=j.left;else if(j.size_left+j.piece.length>=M){Te+=j.size_left;var Ae={node:j,remainder:M-j.size_left,nodeStartOffset:Te};return this._searchCache.set(Ae),Ae}else M-=j.size_left+j.piece.length,Te+=j.size_left+j.piece.length,j=j.right;return null},be.prototype.nodeAt2=function(M,j){for(var X=this.root,Te=0;X!==b;)if(X.left!==b&&X.lf_left>=M-1)X=X.left;else if(X.lf_left+X.piece.lineFeedCnt>M-1){var Ae=this.getAccumulatedValue(X,M-X.lf_left-2),Ne=this.getAccumulatedValue(X,M-X.lf_left-1);return Te+=X.size_left,{node:X,remainder:Math.min(Ae+j-1,Ne),nodeStartOffset:Te}}else if(X.lf_left+X.piece.lineFeedCnt===M-1){var Ae=this.getAccumulatedValue(X,M-X.lf_left-2);if(Ae+j-1<=X.piece.length)return{node:X,remainder:Ae+j-1,nodeStartOffset:Te};j-=X.piece.length-Ae;break}else M-=X.lf_left+X.piece.lineFeedCnt,Te+=X.size_left+X.piece.length,X=X.right;for(X=X.next();X!==b;){if(X.piece.lineFeedCnt>0){var Ne=this.getAccumulatedValue(X,0),lt=this.offsetOfNode(X);return{node:X,remainder:Math.min(j-1,Ne),nodeStartOffset:lt}}else if(X.piece.length>=j-1){var ft=this.offsetOfNode(X);return{node:X,remainder:j-1,nodeStartOffset:ft}}else j-=X.piece.length;X=X.next()}return null},be.prototype.nodeCharCodeAt=function(M,j){if(M.piece.lineFeedCnt<1)return-1;var X=this._buffers[M.piece.bufferIndex],Te=this.offsetInBuffer(M.piece.bufferIndex,M.piece.start)+j;return X.buffer.charCodeAt(Te)},be.prototype.offsetOfNode=function(M){if(!M)return 0;for(var j=M.size_left;M!==this.root;)M.parent.right===M&&(j+=M.parent.size_left+M.parent.piece.length),M=M.parent;return j},be.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&this._EOL===`
`)},be.prototype.startWithLF=function(M){if(typeof M=="string")return M.charCodeAt(0)===10;if(M===b||M.piece.lineFeedCnt===0)return!1;var j=M.piece,X=this._buffers[j.bufferIndex].lineStarts,Te=j.start.line,Ae=X[Te]+j.start.column;if(Te===X.length-1)return!1;var Ne=X[Te+1];return Ne>Ae+1?!1:this._buffers[j.bufferIndex].buffer.charCodeAt(Ae)===10},be.prototype.endWithCR=function(M){return typeof M=="string"?M.charCodeAt(M.length-1)===13:M===b||M.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(M,M.piece.length-1)===13},be.prototype.validateCRLFWithPrevNode=function(M){if(this.shouldCheckCRLF()&&this.startWithLF(M)){var j=M.prev();this.endWithCR(j)&&this.fixCRLF(j,M)}},be.prototype.validateCRLFWithNextNode=function(M){if(this.shouldCheckCRLF()&&this.endWithCR(M)){var j=M.next();this.startWithLF(j)&&this.fixCRLF(M,j)}},be.prototype.fixCRLF=function(M,j){var X=[],Te=this._buffers[M.piece.bufferIndex].lineStarts,Ae;M.piece.end.column===0?Ae={line:M.piece.end.line-1,column:Te[M.piece.end.line]-Te[M.piece.end.line-1]-1}:Ae={line:M.piece.end.line,column:M.piece.end.column-1};var Ne=M.piece.length-1,lt=M.piece.lineFeedCnt-1;M.piece=new pt(M.piece.bufferIndex,M.piece.start,Ae,lt,Ne),vt(this,M,-1,-1),M.piece.length===0&&X.push(M);var ft={line:j.piece.start.line+1,column:0},At=j.piece.length-1,Ft=this.getLineFeedCnt(j.piece.bufferIndex,ft,j.piece.end);j.piece=new pt(j.piece.bufferIndex,ft,j.piece.end,Ft,At),vt(this,j,-1,-1),j.piece.length===0&&X.push(j);var Ut=this.createNewPieces(`\r
`);this.rbInsertRight(M,Ut[0]);for(var Vt=0;Vt<X.length;Vt++)Je(this,X[Vt])},be.prototype.adjustCarriageReturnFromNext=function(M,j){if(this.shouldCheckCRLF()&&this.endWithCR(M)){var X=j.next();if(this.startWithLF(X)){if(M+=`
`,X.piece.length===1)Je(this,X);else{var Te=X.piece,Ae={line:Te.start.line+1,column:0},Ne=Te.length-1,lt=this.getLineFeedCnt(Te.bufferIndex,Ae,Te.end);X.piece=new pt(Te.bufferIndex,Ae,Te.end,lt,Ne),vt(this,X,-1,-1)}return!0}}return!1},be.prototype.iterate=function(M,j){if(M===b)return j(b);var X=this.iterate(M.left,j);return X&&(j(M)&&this.iterate(M.right,j))},be.prototype.getNodeContent=function(M){if(M===b)return"";var j=this._buffers[M.piece.bufferIndex],X,Te=M.piece,Ae=this.offsetInBuffer(Te.bufferIndex,Te.start),Ne=this.offsetInBuffer(Te.bufferIndex,Te.end);return X=j.buffer.substring(Ae,Ne),X},be.prototype.rbInsertRight=function(M,j){var X=new J(j,1);X.left=b,X.right=b,X.parent=b,X.size_left=0,X.lf_left=0;var Te=this.root;if(Te===b)this.root=X,X.color=0;else if(M.right===b)M.right=X,X.parent=M;else{var Ae=F(M.right);Ae.left=X,X.parent=Ae}return nt(this,X),X},be.prototype.rbInsertLeft=function(M,j){var X=new J(j,1);if(X.left=b,X.right=b,X.parent=b,X.size_left=0,X.lf_left=0,this.root===b)this.root=X,X.color=0;else if(M.left===b)M.left=X,X.parent=M;else{var Te=re(M.left);Te.right=X,X.parent=Te}return nt(this,X),X},be}(),et=function(){function be(M,j,X,Te,Ae,Ne){this._BOM=j,this._mightContainNonBasicASCII=!Ae,this._mightContainRTL=Te,this._pieceTree=new it(M,X,Ne)}return be.prototype.mightContainRTL=function(){return this._mightContainRTL},be.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},be.prototype.getBOM=function(){return this._BOM},be.prototype.getEOL=function(){return this._pieceTree.getEOL()},be.prototype.getOffsetAt=function(M,j){return this._pieceTree.getOffsetAt(M,j)},be.prototype.getPositionAt=function(M){return this._pieceTree.getPositionAt(M)},be.prototype.getRangeAt=function(M,j){var X=M+j,Te=this.getPositionAt(M),Ae=this.getPositionAt(X);return new W.a(Te.lineNumber,Te.column,Ae.lineNumber,Ae.column)},be.prototype.getValueInRange=function(M,j){if(j===void 0&&(j=0),M.isEmpty())return"";var X=this._getEndOfLine(j);return this._pieceTree.getValueInRange(M,X)},be.prototype.getValueLengthInRange=function(M,j){if(j===void 0&&(j=0),M.isEmpty())return 0;if(M.startLineNumber===M.endLineNumber)return M.endColumn-M.startColumn;var X=this.getOffsetAt(M.startLineNumber,M.startColumn),Te=this.getOffsetAt(M.endLineNumber,M.endColumn);return Te-X},be.prototype.getCharacterCountInRange=function(M,j){if(j===void 0&&(j=0),this._mightContainNonBasicASCII){for(var X=0,Te=M.startLineNumber,Ae=M.endLineNumber,Ne=Te;Ne<=Ae;Ne++)for(var lt=this.getLineContent(Ne),ft=Ne===Te?M.startColumn-1:0,At=Ne===Ae?M.endColumn-1:lt.length,Ft=ft;Ft<At;Ft++)R.z(lt.charCodeAt(Ft))?(X=X+1,Ft=Ft+1):X=X+1;return X+=this._getEndOfLine(j).length*(Ae-Te),X}return this.getValueLengthInRange(M,j)},be.prototype.getLength=function(){return this._pieceTree.getLength()},be.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},be.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()},be.prototype.getLineContent=function(M){return this._pieceTree.getLineContent(M)},be.prototype.getLineCharCode=function(M,j){return this._pieceTree.getLineCharCode(M,j)},be.prototype.getLineLength=function(M){return this._pieceTree.getLineLength(M)},be.prototype.getLineFirstNonWhitespaceColumn=function(M){var j=R.q(this.getLineContent(M));return j===-1?0:j+1},be.prototype.getLineLastNonWhitespaceColumn=function(M){var j=R.D(this.getLineContent(M));return j===-1?0:j+2},be.prototype._getEndOfLine=function(M){switch(M){case 1:return`
`;case 2:return`\r
`;case 0:return this.getEOL()}throw new Error("Unknown EOL preference")},be.prototype.setEOL=function(M){this._pieceTree.setEOL(M)},be.prototype.applyEdits=function(M,j){for(var X=this._mightContainRTL,Te=this._mightContainNonBasicASCII,Ae=!0,Ne=[],lt=0;lt<M.length;lt++){var ft=M[lt];Ae&&ft._isTracked&&(Ae=!1);var At=ft.range;!X&&ft.text&&(X=R.i(ft.text)),!Te&&ft.text&&(Te=!R.v(ft.text)),Ne[lt]={sortIndex:lt,identifier:ft.identifier||null,range:At,rangeOffset:this.getOffsetAt(At.startLineNumber,At.startColumn),rangeLength:this.getValueLengthInRange(At),lines:ft.text?ft.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(ft.forceMoveMarkers),isAutoWhitespaceEdit:ft.isAutoWhitespaceEdit||!1}}Ne.sort(be._sortOpsAscending);for(var Ft=!1,lt=0,Ut=Ne.length-1;lt<Ut;lt++){var Vt=Ne[lt].range.getEndPosition(),oo=Ne[lt+1].range.getStartPosition();if(oo.isBeforeOrEqual(Vt)){if(oo.isBefore(Vt))throw new Error("Overlapping ranges are not allowed!");Ft=!0}}Ae&&(Ne=this._reduceOperations(Ne));for(var Zt=be._getInverseEditRanges(Ne),mo=[],lt=0;lt<Ne.length;lt++){var ft=Ne[lt],mt=Zt[lt];if(j&&ft.isAutoWhitespaceEdit&&ft.range.isEmpty())for(var He=mt.startLineNumber;He<=mt.endLineNumber;He++){var De="";if(He===mt.startLineNumber&&(De=this.getLineContent(ft.range.startLineNumber),R.q(De)!==-1))continue;mo.push({lineNumber:He,oldContent:De})}}for(var ot=[],lt=0;lt<Ne.length;lt++){var ft=Ne[lt],mt=Zt[lt];ot[lt]={sortIndex:ft.sortIndex,identifier:ft.identifier,range:mt,text:this.getValueInRange(ft.range),forceMoveMarkers:ft.forceMoveMarkers}}Ft||ot.sort(function(Ze,at){return Ze.sortIndex-at.sortIndex}),this._mightContainRTL=X,this._mightContainNonBasicASCII=Te;var xt=this._doApplyEdits(Ne),pe=null;if(j&&mo.length>0){mo.sort(function(Ze,at){return at.lineNumber-Ze.lineNumber}),pe=[];for(var lt=0,O=mo.length;lt<O;lt++){var He=mo[lt].lineNumber;if(lt>0&&mo[lt-1].lineNumber===He)continue;var me=mo[lt].oldContent,Be=this.getLineContent(He);if(Be.length===0||Be===me||R.q(Be)!==-1)continue;pe.push(He)}}return new h.a(ot,xt,pe)},be.prototype._reduceOperations=function(M){return M.length<1e3?M:[this._toSingleEditOperation(M)]},be.prototype._toSingleEditOperation=function(M){for(var j=!1,X=M[0].range,Te=M[M.length-1].range,Ae=new W.a(X.startLineNumber,X.startColumn,Te.endLineNumber,Te.endColumn),Ne=X.startLineNumber,lt=X.startColumn,ft=[],At=0,Ft=M.length;At<Ft;At++){var Ut=M[At],Vt=Ut.range;j=j||Ut.forceMoveMarkers;for(var oo=Ne;oo<Vt.startLineNumber;oo++)oo===Ne?ft.push(this.getLineContent(oo).substring(lt-1)):(ft.push(`
`),ft.push(this.getLineContent(oo)));if(Vt.startLineNumber===Ne?ft.push(this.getLineContent(Vt.startLineNumber).substring(lt-1,Vt.startColumn-1)):(ft.push(`
`),ft.push(this.getLineContent(Vt.startLineNumber).substring(0,Vt.startColumn-1))),Ut.lines)for(var Zt=0,mo=Ut.lines.length;Zt<mo;Zt++)Zt!==0&&ft.push(`
`),ft.push(Ut.lines[Zt]);Ne=Ut.range.endLineNumber,lt=Ut.range.endColumn}return{sortIndex:0,identifier:M[0].identifier,range:Ae,rangeOffset:this.getOffsetAt(Ae.startLineNumber,Ae.startColumn),rangeLength:this.getValueLengthInRange(Ae,0),lines:ft.join("").split(`
`),forceMoveMarkers:j,isAutoWhitespaceEdit:!1}},be.prototype._doApplyEdits=function(M){M.sort(be._sortOpsDescending);for(var j=[],X=0;X<M.length;X++){var Te=M[X],Ae=Te.range.startLineNumber,Ne=Te.range.startColumn,lt=Te.range.endLineNumber,ft=Te.range.endColumn;if(Ae===lt&&Ne===ft&&(!Te.lines||Te.lines.length===0))continue;var At=lt-Ae,Ft=Te.lines?Te.lines.length-1:0,Ut=Math.min(At,Ft),Vt=Te.lines?Te.lines.join(this.getEOL()):"";if(Vt?(this._pieceTree.delete(Te.rangeOffset,Te.rangeLength),this._pieceTree.insert(Te.rangeOffset,Vt,!0)):this._pieceTree.delete(Te.rangeOffset,Te.rangeLength),Ut<Ft){for(var oo=[],Zt=Ut+1;Zt<=Ft;Zt++)oo.push(Te.lines[Zt]);oo[oo.length-1]=this.getLineContent(Ae+Ft-1)}var mo=new W.a(Ae,Ne,lt,ft);j.push({range:mo,rangeLength:Te.rangeLength,text:Vt,rangeOffset:Te.rangeOffset,forceMoveMarkers:Te.forceMoveMarkers})}return j},be.prototype.findMatchesLineByLine=function(M,j,X,Te){return this._pieceTree.findMatchesLineByLine(M,j,X,Te)},be._getInverseEditRanges=function(M){for(var j=[],X=0,Te=0,Ae=null,Ne=0,lt=M.length;Ne<lt;Ne++){var ft=M[Ne],At=void 0,Ft=void 0;Ae?Ae.range.endLineNumber===ft.range.startLineNumber?(At=X,Ft=Te+(ft.range.startColumn-Ae.range.endColumn)):(At=X+(ft.range.startLineNumber-Ae.range.endLineNumber),Ft=ft.range.startColumn):(At=ft.range.startLineNumber,Ft=ft.range.startColumn);var Ut=void 0;if(ft.lines&&ft.lines.length>0){var Vt=ft.lines.length,oo=ft.lines[0],Zt=ft.lines[Vt-1];Vt===1?Ut=new W.a(At,Ft,At,Ft+oo.length):Ut=new W.a(At,Ft,At+Vt-1,Zt.length+1)}else Ut=new W.a(At,Ft,At,Ft);X=Ut.endLineNumber,Te=Ut.endColumn,j.push(Ut),Ae=ft}return j},be._sortOpsAscending=function(M,j){var X=W.a.compareRangesUsingEnds(M.range,j.range);return X===0?M.sortIndex-j.sortIndex:X},be._sortOpsDescending=function(M,j){var X=W.a.compareRangesUsingEnds(M.range,j.range);return X===0?j.sortIndex-M.sortIndex:-X},be}(),ut=function(){function be(M,j,X,Te,Ae,Ne,lt,ft){this._chunks=M,this._bom=j,this._cr=X,this._lf=Te,this._crlf=Ae,this._containsRTL=Ne,this._isBasicASCII=lt,this._normalizeEOL=ft}return be.prototype._getEOL=function(M){var j=this._cr+this._lf+this._crlf,X=this._cr+this._crlf;return j===0?M===1?`
`:`\r
`:X>j/2?`\r
`:`
`},be.prototype.create=function(M){var j=this._getEOL(M),X=this._chunks;if(this._normalizeEOL&&(j===`\r
`&&(this._cr>0||this._lf>0)||j===`
`&&(this._cr>0||this._crlf>0)))for(var Te=0,Ae=X.length;Te<Ae;Te++){var Ne=X[Te].buffer.replace(/\r\n|\r|\n/g,j),lt=so(Ne);X[Te]=new gt(Ne,lt)}return new et(X,this._bom,j,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},be}(),Ct=function(){function be(){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 be.prototype.acceptChunk=function(M){if(M.length===0)return;this.chunks.length===0&&(R.P(M)&&(this.BOM=R.a,M=M.substr(1)));var j=M.charCodeAt(M.length-1);j===13||j>=55296&&j<=56319?(this._acceptChunk1(M.substr(0,M.length-1),!1),this._hasPreviousChar=!0,this._previousChar=j):(this._acceptChunk1(M,!1),this._hasPreviousChar=!1,this._previousChar=j)},be.prototype._acceptChunk1=function(M,j){if(!j&&M.length===0)return;this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+M):this._acceptChunk2(M)},be.prototype._acceptChunk2=function(M){var j=jt(this._tmpLineStarts,M);this.chunks.push(new gt(M,j.lineStarts)),this.cr+=j.cr,this.lf+=j.lf,this.crlf+=j.crlf,this.isBasicASCII&&(this.isBasicASCII=j.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=R.i(M))},be.prototype.finish=function(M){return M===void 0&&(M=!0),this._finish(),new ut(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,M)},be.prototype._finish=function(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var M=this.chunks[this.chunks.length-1];M.buffer+=String.fromCharCode(this._previousChar);var j=so(M.buffer);M.lineStarts=j,this._previousChar===13&&this.cr++}},be}(),ht=function(){function be(){this.changeType=1}return be}(),Et=function(){function be(M,j){this.changeType=2,this.lineNumber=M,this.detail=j}return be}(),Yt=function(){function be(M,j){this.changeType=3,this.fromLineNumber=M,this.toLineNumber=j}return be}(),Nt=function(){function be(M,j,X){this.changeType=4,this.fromLineNumber=M,this.toLineNumber=j,this.detail=X}return be}(),bt=function(){function be(){this.changeType=5}return be}(),$e=function(){function be(M,j,X,Te){this.changes=M,this.versionId=j,this.isUndoing=X,this.isRedoing=Te}return be.prototype.containsEvent=function(M){for(var j=0,X=this.changes.length;j<X;j++){var Te=this.changes[j];if(Te.changeType===M)return!0}return!1},be.merge=function(M,j){var X=[].concat(M.changes).concat(j.changes),Te=j.versionId,Ae=M.isUndoing||j.isUndoing,Ne=M.isRedoing||j.isRedoing;return new be(X,Te,Ae,Ne)},be}(),Ye=function(){function be(M,j){this.rawContentChangedEvent=M,this.contentChangedEvent=j}return be.prototype.merge=function(M){var j=$e.merge(this.rawContentChangedEvent,M.rawContentChangedEvent),X=be._mergeChangeEvents(this.contentChangedEvent,M.contentChangedEvent);return new be(j,X)},be._mergeChangeEvents=function(M,j){var X=[].concat(M.changes).concat(j.changes),Te=j.eol,Ae=j.versionId,Ne=M.isUndoing||j.isUndoing,lt=M.isRedoing||j.isRedoing,ft=M.isFlush||j.isFlush;return{changes:X,eol:Te,versionId:Ae,isUndoing:Ne,isRedoing:lt,isFlush:ft}},be}(),ze=e("6OMU"),Ke=e("4bUh"),ge=e("twdY"),G=e("i/Ef"),oe=e("5Y4S"),Y=e("QRHv"),ae=e("MNsG"),Fe=function(){var be=function(M,j){return be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,Te){X.__proto__=Te}||function(X,Te){for(var Ae in Te)Te.hasOwnProperty(Ae)&&(X[Ae]=Te[Ae])},be(M,j)};return function(M,j){be(M,j);function X(){this.constructor=M}M.prototype=j===null?Object.create(j):(X.prototype=j.prototype,new X)}}(),dt=function(){function be(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}return be.prototype._reset=function(M){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,M&&this._setBeginState(0,M)},be.prototype.flush=function(M){this._reset(M)},Object.defineProperty(be.prototype,"invalidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),be.prototype._invalidateLine=function(M){M<this._len&&(this._valid[M]=!1),M<this._invalidLineStartIndex&&(this._invalidLineStartIndex=M)},be.prototype._isValid=function(M){return M<this._len?this._valid[M]:!1},be.prototype.getBeginState=function(M){return M<this._len?this._beginState[M]:null},be.prototype._ensureLine=function(M){for(;M>=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},be.prototype._deleteLines=function(M,j){if(j===0)return;M+j>this._len&&(j=this._len-M),this._beginState.splice(M,j),this._valid.splice(M,j),this._len-=j},be.prototype._insertLines=function(M,j){if(j===0)return;for(var X=[],Te=[],Ae=0;Ae<j;Ae++)X[Ae]=null,Te[Ae]=!1;this._beginState=ze.a(this._beginState,M,X),this._valid=ze.a(this._valid,M,Te),this._len+=j},be.prototype._setValid=function(M,j){this._ensureLine(M),this._valid[M]=j},be.prototype._setBeginState=function(M,j){this._ensureLine(M),this._beginState[M]=j},be.prototype.setEndState=function(M,j,X){if(this._setValid(j,!0),this._invalidLineStartIndex=j+1,j===M-1)return;var Te=this.getBeginState(j+1);if(Te===null||!X.equals(Te)){this._setBeginState(j+1,X),this._invalidateLine(j+1);return}for(var Ae=j+1;Ae<M&&this._isValid(Ae);)Ae++;this._invalidLineStartIndex=Ae},be.prototype.setFakeTokens=function(M){this._setValid(M,!1)},be.prototype.applyEdits=function(M,j){for(var X=M.endLineNumber-M.startLineNumber,Te=j,Ae=Math.min(X,Te),Ne=Ae;Ne>=0;Ne--)this._invalidateLine(M.startLineNumber+Ne-1);this._acceptDeleteRange(M),this._acceptInsertText(new D.a(M.startLineNumber,M.startColumn),j)},be.prototype._acceptDeleteRange=function(M){var j=M.startLineNumber-1;if(j>=this._len)return;this._deleteLines(M.startLineNumber,M.endLineNumber-M.startLineNumber)},be.prototype._acceptInsertText=function(M,j){var X=M.lineNumber-1;if(X>=this._len)return;this._insertLines(M.lineNumber,j)},be}(),Ot=function(be){Fe(M,be);function M(j){var X=be.call(this)||this;return X._isDisposed=!1,X._textModel=j,X._tokenizationStateStore=new dt,X._tokenizationSupport=null,X._register(ge.B.onDidChange(function(Te){var Ae=X._textModel.getLanguageIdentifier();if(Te.changedLanguages.indexOf(Ae.language)===-1)return;X._resetTokenizationState(),X._textModel.clearTokens()})),X._register(X._textModel.onDidChangeRawContentFast(function(Te){if(Te.containsEvent(1)){X._resetTokenizationState();return}})),X._register(X._textModel.onDidChangeContentFast(function(Te){for(var Ae=0,Ne=Te.changes.length;Ae<Ne;Ae++){var lt=Te.changes[Ae],ft=Object(Y.f)(lt.text)[0];X._tokenizationStateStore.applyEdits(lt.range,ft)}X._beginBackgroundTokenization()})),X._register(X._textModel.onDidChangeAttached(function(){X._beginBackgroundTokenization()})),X._register(X._textModel.onDidChangeLanguage(function(){X._resetTokenizationState(),X._textModel.clearTokens()})),X._resetTokenizationState(),X}return M.prototype.dispose=function(){this._isDisposed=!0,be.prototype.dispose.call(this)},M.prototype._resetTokenizationState=function(){var j=Qt(this._textModel),X=j[0],Te=j[1];this._tokenizationSupport=X,this._tokenizationStateStore.flush(Te),this._beginBackgroundTokenization()},M.prototype._beginBackgroundTokenization=function(){var j=this;this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&ae.i(function(){if(j._isDisposed)return;j._revalidateTokensNow()})},M.prototype._revalidateTokensNow=function(j){j===void 0&&(j=this._textModel.getLineCount());for(var X=1,Te=new Y.b,Ae=oe.a.create(!1);this._hasLinesToTokenize()&&!(Ae.elapsed()>X);){var Ne=this._tokenizeOneInvalidLine(Te);if(Ne>=j)break}this._beginBackgroundTokenization(),this._textModel.setTokens(Te.tokens)},M.prototype.tokenizeViewport=function(j,X){var Te=new Y.b;this._tokenizeViewport(Te,j,X),this._textModel.setTokens(Te.tokens)},M.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},M.prototype.forceTokenization=function(j){var X=new Y.b;this._updateTokensUntilLine(X,j),this._textModel.setTokens(X.tokens)},M.prototype.isCheapToTokenize=function(j){if(!this._tokenizationSupport)return!0;var X=this._tokenizationStateStore.invalidLineStartIndex+1;return j>X?!1:j<X?!0:this._textModel.getLineLength(j)<2048},M.prototype._hasLinesToTokenize=function(){return this._tokenizationSupport?this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount():!1},M.prototype._tokenizeOneInvalidLine=function(j){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;var X=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(j,X),X},M.prototype._updateTokensUntilLine=function(j,X){if(!this._tokenizationSupport)return;for(var Te=this._textModel.getLanguageIdentifier(),Ae=this._textModel.getLineCount(),Ne=X-1,lt=this._tokenizationStateStore.invalidLineStartIndex;lt<=Ne;lt++){var ft=this._textModel.getLineContent(lt+1),At=this._tokenizationStateStore.getBeginState(lt),Ft=to(Te,this._tokenizationSupport,ft,At);j.add(lt+1,Ft.tokens),this._tokenizationStateStore.setEndState(Ae,lt,Ft.endState),lt=this._tokenizationStateStore.invalidLineStartIndex-1}},M.prototype._tokenizeViewport=function(j,X,Te){if(!this._tokenizationSupport)return;if(Te<=this._tokenizationStateStore.invalidLineStartIndex)return;if(X<=this._tokenizationStateStore.invalidLineStartIndex){this._updateTokensUntilLine(j,Te);return}for(var Ae=this._textModel.getLineFirstNonWhitespaceColumn(X),Ne=[],lt=null,ft=X-1;Ae>0&&ft>=1;ft--){var At=this._textModel.getLineFirstNonWhitespaceColumn(ft);if(At===0)continue;if(At<Ae){if(lt=this._tokenizationStateStore.getBeginState(ft-1),lt)break;Ne.push(this._textModel.getLineContent(ft)),Ae=At}}lt||(lt=this._tokenizationSupport.getInitialState());for(var Ft=this._textModel.getLanguageIdentifier(),Ut=lt,ft=Ne.length-1;ft>=0;ft--){var Vt=to(Ft,this._tokenizationSupport,Ne[ft],Ut);Ut=Vt.endState}for(var oo=X;oo<=Te;oo++){var Zt=this._textModel.getLineContent(oo),Vt=to(Ft,this._tokenizationSupport,Zt,Ut);j.add(oo,Vt.tokens),this._tokenizationStateStore.setFakeTokens(oo-1),Ut=Vt.endState}},M}($.a);function Qt(be){var M=be.getLanguageIdentifier(),j=be.isTooLargeForTokenization()?null:ge.B.get(M.language),X=null;if(j)try{X=j.getInitialState()}catch(Te){Object(T.e)(Te),j=null}return[j,X]}function to(be,M,j,X){var Te=null;if(M)try{Te=M.tokenize2(j,X.clone(),0)}catch(Ae){Object(T.e)(Ae)}return Te||(Te=Object(G.e)(be.id,j,X,0)),Ke.a.convertToEndOffset(Te.tokens,j.length),Te}var fo=e("0JNc"),ho=e("cMvZ"),_o=e("BFtn"),Do=e("EIAu"),Ro=e("746U"),jo=e("zrhQ"),Eo=function(){var be=function(M,j){return be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,Te){X.__proto__=Te}||function(X,Te){for(var Ae in Te)Te.hasOwnProperty(Ae)&&(X[Ae]=Te[Ae])},be(M,j)};return function(M,j){be(M,j);function X(){this.constructor=M}M.prototype=j===null?Object.create(j):(X.prototype=j.prototype,new X)}}();function Wo(){return new Ct}function Ho(be){var M=Wo();return M.acceptChunk(be),M.finish()}function Fo(be,M){var j=typeof be=="string"?Ho(be):be;return j.create(M)}var Io=0,tn=999,un=1e4,Vo=function(){throw new Error("Invalid change accessor")},Cn=function(be){Eo(M,be);function M(j,X,Te,Ae){Ae===void 0&&(Ae=null);var Ne=be.call(this)||this;Ne._onWillDispose=Ne._register(new le.a),Ne.onWillDispose=Ne._onWillDispose.event,Ne._onDidChangeDecorations=Ne._register(new rt),Ne.onDidChangeDecorations=Ne._onDidChangeDecorations.event,Ne._onDidChangeLanguage=Ne._register(new le.a),Ne.onDidChangeLanguage=Ne._onDidChangeLanguage.event,Ne._onDidChangeLanguageConfiguration=Ne._register(new le.a),Ne.onDidChangeLanguageConfiguration=Ne._onDidChangeLanguageConfiguration.event,Ne._onDidChangeTokens=Ne._register(new le.a),Ne.onDidChangeTokens=Ne._onDidChangeTokens.event,Ne._onDidChangeOptions=Ne._register(new le.a),Ne.onDidChangeOptions=Ne._onDidChangeOptions.event,Ne._onDidChangeAttached=Ne._register(new le.a),Ne.onDidChangeAttached=Ne._onDidChangeAttached.event,Ne._eventEmitter=Ne._register(new Mt),Io++,Ne.id="$model"+Io,Ne.isForSimpleWidget=X.isForSimpleWidget,typeof Ae=="undefined"||Ae===null?Ne._associatedResource=B.a.parse("inmemory://model/"+Io):Ne._associatedResource=Ae,Ne._attachedEditorCount=0,Ne._buffer=Fo(j,X.defaultEOL),Ne._options=M.resolveOptions(Ne._buffer,X);var lt=Ne._buffer.getLineCount(),ft=Ne._buffer.getValueLengthInRange(new W.a(1,1,lt,Ne._buffer.getLineLength(lt)+1),0);return X.largeFileOptimizations?Ne._isTooLargeForTokenization=ft>M.LARGE_FILE_SIZE_THRESHOLD||lt>M.LARGE_FILE_LINE_COUNT_THRESHOLD:Ne._isTooLargeForTokenization=!1,Ne._isTooLargeForSyncing=ft>M.MODEL_SYNC_LIMIT,Ne._versionId=1,Ne._alternativeVersionId=1,Ne._isDisposed=!1,Ne._isDisposing=!1,Ne._languageIdentifier=Te||G.a,Ne._languageRegistryListener=ho.a.onDidChange(function(At){At.languageIdentifier.id===Ne._languageIdentifier.id&&Ne._onDidChangeLanguageConfiguration.fire({})}),Ne._instanceId=R.M(Io),Ne._lastDecorationId=0,Ne._decorations=Object.create(null),Ne._decorationsTree=new pn,Ne._commandManager=new v(Ne),Ne._isUndoing=!1,Ne._isRedoing=!1,Ne._trimAutoWhitespaceLines=null,Ne._tokens=new Y.d,Ne._tokens2=new Y.e,Ne._tokenization=new Ot(Ne),Ne}return M.createFromString=function(j,X,Te,Ae){return X===void 0&&(X=M.DEFAULT_CREATION_OPTIONS),Te===void 0&&(Te=null),Ae===void 0&&(Ae=null),new M(j,X,Te,Ae)},M.resolveOptions=function(j,X){if(X.detectIndentation){var Te=u(j,X.tabSize,X.insertSpaces);return new h.e({tabSize:Te.tabSize,indentSize:Te.tabSize,insertSpaces:Te.insertSpaces,trimAutoWhitespace:X.trimAutoWhitespace,defaultEOL:X.defaultEOL})}return new h.e({tabSize:X.tabSize,indentSize:X.indentSize,insertSpaces:X.insertSpaces,trimAutoWhitespace:X.trimAutoWhitespace,defaultEOL:X.defaultEOL})},M.prototype.onDidChangeRawContentFast=function(j){return this._eventEmitter.fastEvent(function(X){return j(X.rawContentChangedEvent)})},M.prototype.onDidChangeRawContent=function(j){return this._eventEmitter.slowEvent(function(X){return j(X.rawContentChangedEvent)})},M.prototype.onDidChangeContentFast=function(j){return this._eventEmitter.fastEvent(function(X){return j(X.contentChangedEvent)})},M.prototype.onDidChangeContent=function(j){return this._eventEmitter.slowEvent(function(X){return j(X.contentChangedEvent)})},M.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,be.prototype.dispose.call(this),this._isDisposing=!1},M.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},M.prototype._emitContentChangedEvent=function(j,X){if(this._isDisposing)return;this._eventEmitter.fire(new Ye(j,X))},M.prototype.setValue=function(j){if(this._assertNotDisposed(),j===null)return;var X=Fo(j,this._options.defaultEOL);this.setValueFromTextBuffer(X)},M.prototype._createContentChanged2=function(j,X,Te,Ae,Ne,lt,ft){return{changes:[{range:j,rangeOffset:X,rangeLength:Te,text:Ae}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:Ne,isRedoing:lt,isFlush:ft}},M.prototype.setValueFromTextBuffer=function(j){if(this._assertNotDisposed(),j===null)return;var X=this.getFullModelRange(),Te=this.getValueLengthInRange(X),Ae=this.getLineCount(),Ne=this.getLineMaxColumn(Ae);this._buffer=j,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new pn,this._commandManager=new v(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new $e([new ht],this._versionId,!1,!1),this._createContentChanged2(new W.a(1,1,Ae,Ne),0,Te,this.getValue(),!1,!1,!0))},M.prototype.setEOL=function(j){this._assertNotDisposed();var X=j===1?`\r
`:`
`;if(this._buffer.getEOL()===X)return;var Te=this.getFullModelRange(),Ae=this.getValueLengthInRange(Te),Ne=this.getLineCount(),lt=this.getLineMaxColumn(Ne);this._onBeforeEOLChange(),this._buffer.setEOL(X),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new $e([new bt],this._versionId,!1,!1),this._createContentChanged2(new W.a(1,1,Ne,lt),0,Ae,this.getValue(),!1,!1,!1))},M.prototype._onBeforeEOLChange=function(){var j=this.getVersionId(),X=this._decorationsTree.search(0,!1,!1,j);this._ensureNodesHaveRanges(X)},M.prototype._onAfterEOLChange=function(){for(var j=this.getVersionId(),X=this._decorationsTree.collectNodesPostOrder(),Te=0,Ae=X.length;Te<Ae;Te++){var Ne=X[Te],lt=Ne.cachedAbsoluteStart-Ne.start,ft=this._buffer.getOffsetAt(Ne.range.startLineNumber,Ne.range.startColumn),At=this._buffer.getOffsetAt(Ne.range.endLineNumber,Ne.range.endColumn);Ne.cachedAbsoluteStart=ft,Ne.cachedAbsoluteEnd=At,Ne.cachedVersionId=j,Ne.start=ft-lt,Ne.end=At-lt,xe(Ne)}},M.prototype.onBeforeAttached=function(){this._attachedEditorCount++,this._attachedEditorCount===1&&this._onDidChangeAttached.fire(void 0)},M.prototype.onBeforeDetached=function(){this._attachedEditorCount--,this._attachedEditorCount===0&&this._onDidChangeAttached.fire(void 0)},M.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0},M.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},M.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},M.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},M.prototype.isDisposed=function(){return this._isDisposed},M.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var j=0,X=0,Te=this._buffer.getLineCount(),Ae=1;Ae<=Te;Ae++){var Ne=this._buffer.getLineLength(Ae);Ne>=un?X+=Ne:j+=Ne}return X>j},Object.defineProperty(M.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),M.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},M.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},M.prototype.updateOptions=function(j){this._assertNotDisposed();var X=typeof j.tabSize!="undefined"?j.tabSize:this._options.tabSize,Te=typeof j.indentSize!="undefined"?j.indentSize:this._options.indentSize,Ae=typeof j.insertSpaces!="undefined"?j.insertSpaces:this._options.insertSpaces,Ne=typeof j.trimAutoWhitespace!="undefined"?j.trimAutoWhitespace:this._options.trimAutoWhitespace,lt=new h.e({tabSize:X,indentSize:Te,insertSpaces:Ae,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:Ne});if(this._options.equals(lt))return;var ft=this._options.createChangeEvent(lt);this._options=lt,this._onDidChangeOptions.fire(ft)},M.prototype.detectIndentation=function(j,X){this._assertNotDisposed();var Te=u(this._buffer,X,j);this.updateOptions({insertSpaces:Te.insertSpaces,tabSize:Te.tabSize,indentSize:Te.tabSize})},M._normalizeIndentationFromWhitespace=function(j,X,Te){for(var Ae=0,Ne=0;Ne<j.length;Ne++)j.charAt(Ne)===" "?Ae+=X:Ae++;var lt="";if(!Te){var ft=Math.floor(Ae/X);Ae=Ae%X;for(var Ne=0;Ne<ft;Ne++)lt+=" "}for(var Ne=0;Ne<Ae;Ne++)lt+=" ";return lt},M.normalizeIndentation=function(j,X,Te){var Ae=R.q(j);return Ae===-1&&(Ae=j.length),M._normalizeIndentationFromWhitespace(j.substring(0,Ae),X,Te)+j.substring(Ae)},M.prototype.normalizeIndentation=function(j){return this._assertNotDisposed(),M.normalizeIndentation(j,this._options.indentSize,this._options.insertSpaces)},M.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},M.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},M.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},M.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},M.prototype.getOffsetAt=function(j){this._assertNotDisposed();var X=this._validatePosition(j.lineNumber,j.column,0);return this._buffer.getOffsetAt(X.lineNumber,X.column)},M.prototype.getPositionAt=function(j){this._assertNotDisposed();var X=Math.min(this._buffer.getLength(),Math.max(0,j));return this._buffer.getPositionAt(X)},M.prototype._increaseVersionId=function(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId},M.prototype._overwriteAlternativeVersionId=function(j){this._alternativeVersionId=j},M.prototype.getValue=function(j,X){X===void 0&&(X=!1),this._assertNotDisposed();var Te=this.getFullModelRange(),Ae=this.getValueInRange(Te,j);return X?this._buffer.getBOM()+Ae:Ae},M.prototype.getValueLength=function(j,X){X===void 0&&(X=!1),this._assertNotDisposed();var Te=this.getFullModelRange(),Ae=this.getValueLengthInRange(Te,j);return X?this._buffer.getBOM().length+Ae:Ae},M.prototype.getValueInRange=function(j,X){return X===void 0&&(X=0),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(j),X)},M.prototype.getValueLengthInRange=function(j,X){return X===void 0&&(X=0),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(j),X)},M.prototype.getCharacterCountInRange=function(j,X){return X===void 0&&(X=0),this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(j),X)},M.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},M.prototype.getLineContent=function(j){if(this._assertNotDisposed(),j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(j)},M.prototype.getLineLength=function(j){if(this._assertNotDisposed(),j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(j)},M.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},M.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},M.prototype.getLineMinColumn=function(j){return this._assertNotDisposed(),1},M.prototype.getLineMaxColumn=function(j){if(this._assertNotDisposed(),j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(j)+1},M.prototype.getLineFirstNonWhitespaceColumn=function(j){if(this._assertNotDisposed(),j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(j)},M.prototype.getLineLastNonWhitespaceColumn=function(j){if(this._assertNotDisposed(),j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(j)},M.prototype._validateRangeRelaxedNoAllocations=function(j){var X=this._buffer.getLineCount(),Te=j.startLineNumber,Ae=j.startColumn,Ne,lt;if(Te<1)Ne=1,lt=1;else if(Te>X)Ne=X,lt=this.getLineMaxColumn(Ne);else if(Ne=Te|0,Ae<=1)lt=1;else{var ft=this.getLineMaxColumn(Ne);Ae>=ft?lt=ft:lt=Ae|0}var At=j.endLineNumber,Ft=j.endColumn,Ut,Vt;if(At<1)Ut=1,Vt=1;else if(At>X)Ut=X,Vt=this.getLineMaxColumn(Ut);else if(Ut=At|0,Ft<=1)Vt=1;else{var ft=this.getLineMaxColumn(Ut);Ft>=ft?Vt=ft:Vt=Ft|0}return Te===Ne&&Ae===lt&&At===Ut&&Ft===Vt&&j instanceof W.a&&!(j instanceof x.a)?j:new W.a(Ne,lt,Ut,Vt)},M.prototype._isValidPosition=function(j,X,Te){if(typeof j!="number"||typeof X!="number")return!1;if(isNaN(j)||isNaN(X))return!1;if(j<1||X<1)return!1;if((j|0)!==j||(X|0)!==X)return!1;var Ae=this._buffer.getLineCount();if(j>Ae)return!1;if(X===1)return!0;var Ne=this.getLineMaxColumn(j);if(X>Ne)return!1;if(Te===1){var lt=this._buffer.getLineCharCode(j,X-2);if(R.z(lt))return!1}return!0},M.prototype._validatePosition=function(j,X,Te){var Ae=Math.floor(typeof j=="number"&&!isNaN(j)?j:1),Ne=Math.floor(typeof X=="number"&&!isNaN(X)?X:1),lt=this._buffer.getLineCount();if(Ae<1)return new D.a(1,1);if(Ae>lt)return new D.a(lt,this.getLineMaxColumn(lt));if(Ne<=1)return new D.a(Ae,1);var ft=this.getLineMaxColumn(Ae);if(Ne>=ft)return new D.a(Ae,ft);if(Te===1){var At=this._buffer.getLineCharCode(Ae,Ne-2);if(R.z(At))return new D.a(Ae,Ne-1)}return new D.a(Ae,Ne)},M.prototype.validatePosition=function(j){var X=1;return this._assertNotDisposed(),j instanceof D.a&&this._isValidPosition(j.lineNumber,j.column,X)?j:this._validatePosition(j.lineNumber,j.column,X)},M.prototype._isValidRange=function(j,X){var Te=j.startLineNumber,Ae=j.startColumn,Ne=j.endLineNumber,lt=j.endColumn;if(!this._isValidPosition(Te,Ae,0))return!1;if(!this._isValidPosition(Ne,lt,0))return!1;if(X===1){var ft=Ae>1?this._buffer.getLineCharCode(Te,Ae-2):0,At=lt>1&&lt<=this._buffer.getLineLength(Ne)?this._buffer.getLineCharCode(Ne,lt-2):0,Ft=R.z(ft),Ut=R.z(At);return!Ft&&!Ut}return!0},M.prototype.validateRange=function(j){var X=1;if(this._assertNotDisposed(),j instanceof W.a&&!(j instanceof x.a)&&this._isValidRange(j,X))return j;var Te=this._validatePosition(j.startLineNumber,j.startColumn,0),Ae=this._validatePosition(j.endLineNumber,j.endColumn,0),Ne=Te.lineNumber,lt=Te.column,ft=Ae.lineNumber,At=Ae.column;if(X===1){var Ft=lt>1?this._buffer.getLineCharCode(Ne,lt-2):0,Ut=At>1&&At<=this._buffer.getLineLength(ft)?this._buffer.getLineCharCode(ft,At-2):0,Vt=R.z(Ft),oo=R.z(Ut);return!Vt&&!oo?new W.a(Ne,lt,ft,At):Ne===ft&&lt===At?new W.a(Ne,lt-1,ft,At-1):Vt&&oo?new W.a(Ne,lt-1,ft,At+1):Vt?new W.a(Ne,lt-1,ft,At):new W.a(Ne,lt,ft,At+1)}return new W.a(Ne,lt,ft,At)},M.prototype.modifyPosition=function(j,X){this._assertNotDisposed();var Te=this.getOffsetAt(j)+X;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,Te)))},M.prototype.getFullModelRange=function(){this._assertNotDisposed();var j=this.getLineCount();return new W.a(1,1,j,this.getLineMaxColumn(j))},M.prototype.findMatchesLineByLine=function(j,X,Te,Ae){return this._buffer.findMatchesLineByLine(j,X,Te,Ae)},M.prototype.findMatches=function(j,X,Te,Ae,Ne,lt,ft){ft===void 0&&(ft=tn),this._assertNotDisposed();var At;if(W.a.isIRange(X)?At=this.validateRange(X):At=this.getFullModelRange(),!Te&&j.indexOf(`
`)<0){var Ft=new Dt.a(j,Te,Ae,Ne),Ut=Ft.parseSearchRequest();return Ut?this.findMatchesLineByLine(At,Ut,lt,ft):[]}return Dt.c.findMatches(this,new Dt.a(j,Te,Ae,Ne),At,lt,ft)},M.prototype.findNextMatch=function(j,X,Te,Ae,Ne,lt){this._assertNotDisposed();var ft=this.validatePosition(X);if(!Te&&j.indexOf(`
`)<0){var At=new Dt.a(j,Te,Ae,Ne),Ft=At.parseSearchRequest();if(!Ft)return null;var Ut=this.getLineCount(),Vt=new W.a(ft.lineNumber,ft.column,Ut,this.getLineMaxColumn(Ut)),oo=this.findMatchesLineByLine(Vt,Ft,lt,1);return Dt.c.findNextMatch(this,new Dt.a(j,Te,Ae,Ne),ft,lt),oo.length>0?oo[0]:(Vt=new W.a(1,1,ft.lineNumber,this.getLineMaxColumn(ft.lineNumber)),oo=this.findMatchesLineByLine(Vt,Ft,lt,1),oo.length>0?oo[0]:null)}return Dt.c.findNextMatch(this,new Dt.a(j,Te,Ae,Ne),ft,lt)},M.prototype.findPreviousMatch=function(j,X,Te,Ae,Ne,lt){this._assertNotDisposed();var ft=this.validatePosition(X);return Dt.c.findPreviousMatch(this,new Dt.a(j,Te,Ae,Ne),ft,lt)},M.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},M.prototype.pushEOL=function(j){var X=this.getEOL()===`
`?0:1;if(X===j)return;try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(j)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype.pushEditOperations=function(j,X,Te){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(j,X,Te)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype._pushEditOperations=function(j,X,Te){var Ae=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var Ne=X.map(function(pe){return{range:Ae.validateRange(pe.range),text:pe.text}}),lt=!0,ft=0,At=j.length;ft<At;ft++){for(var Ft=j[ft],Ut=!1,Vt=0,oo=Ne.length;Vt<oo;Vt++){var Zt=Ne[Vt].range,mo=Zt.startLineNumber>Ft.endLineNumber,mt=Ft.startLineNumber>Zt.endLineNumber;if(!mo&&!mt){Ut=!0;break}}if(!Ut){lt=!1;break}}if(lt)for(var ft=0,At=this._trimAutoWhitespaceLines.length;ft<At;ft++){for(var He=this._trimAutoWhitespaceLines[ft],De=this.getLineMaxColumn(He),ot=!0,Vt=0,oo=Ne.length;Vt<oo;Vt++){var Zt=Ne[Vt].range,xt=Ne[Vt].text;if(He<Zt.startLineNumber||He>Zt.endLineNumber)continue;if(He===Zt.startLineNumber&&Zt.startColumn===De&&Zt.isEmpty()&&xt&&xt.length>0&&xt.charAt(0)===`
`)continue;if(He===Zt.startLineNumber&&Zt.startColumn===1&&Zt.isEmpty()&&xt&&xt.length>0&&xt.charAt(xt.length-1)===`
`)continue;ot=!1;break}ot&&X.push({range:new W.a(He,1,He,De),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(j,X,Te)},M.prototype.applyEdits=function(j){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(j)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype._applyEdits=function(j){for(var X=0,Te=j.length;X<Te;X++)j[X].range=this.validateRange(j[X].range);var Ae=this._buffer.getLineCount(),Ne=this._buffer.applyEdits(j,this._options.trimAutoWhitespace),lt=this._buffer.getLineCount(),ft=Ne.changes;if(this._trimAutoWhitespaceLines=Ne.trimAutoWhitespaceLineNumbers,ft.length!==0){for(var At=[],Ft=Ae,X=0,Te=ft.length;X<Te;X++){var Ut=ft[X],Vt=Object(Y.f)(Ut.text),oo=Vt[0],Zt=Vt[1],mo=Vt[2];this._tokens.acceptEdit(Ut.range,oo,Zt),this._tokens2.acceptEdit(Ut.range,oo,Zt,mo,Ut.text.length>0?Ut.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(Ut.rangeOffset,Ut.rangeLength,Ut.text.length,Ut.forceMoveMarkers);for(var mt=Ut.range.startLineNumber,He=Ut.range.endLineNumber,De=He-mt,ot=oo,xt=Math.min(De,ot),pe=ot-De,O=xt;O>=0;O--){var me=mt+O,Be=lt-Ft-pe+me;At.push(new Et(me,this.getLineContent(Be)))}if(xt<De){var Ze=mt+xt;At.push(new Yt(Ze+1,He))}if(xt<ot){for(var at=mt+xt,_t=ot-xt,zt=lt-Ft-_t+at+1,Xt=[],no=0;no<_t;no++){var uo=zt+no;Xt[uo-zt]=this.getLineContent(uo)}At.push(new Nt(at+1,mt+ot,Xt))}Ft+=pe}this._increaseVersionId(),this._emitContentChangedEvent(new $e(At,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:ft,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return Ne.reverseEdits},M.prototype._undo=function(){this._isUndoing=!0;var j=this._commandManager.undo();return this._isUndoing=!1,j?(this._overwriteAlternativeVersionId(j.recordedVersionId),j.selections):null},M.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype.canUndo=function(){return this._commandManager.canUndo()},M.prototype._redo=function(){this._isRedoing=!0;var j=this._commandManager.redo();return this._isRedoing=!1,j?(this._overwriteAlternativeVersionId(j.recordedVersionId),j.selections):null},M.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype.canRedo=function(){return this._commandManager.canRedo()},M.prototype.changeDecorations=function(j,X){X===void 0&&(X=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(X,j)}finally{this._onDidChangeDecorations.endDeferredEmit()}},M.prototype._changeDecorations=function(j,X){var Te=this,Ae={addDecoration:function(lt,ft){return Te._onDidChangeDecorations.fire(),Te._deltaDecorationsImpl(j,[],[{range:lt,options:ft}])[0]},changeDecoration:function(lt,ft){Te._onDidChangeDecorations.fire(),Te._changeDecorationImpl(lt,ft)},changeDecorationOptions:function(lt,ft){Te._onDidChangeDecorations.fire(),Te._changeDecorationOptionsImpl(lt,st(ft))},removeDecoration:function(lt){Te._onDidChangeDecorations.fire(),Te._deltaDecorationsImpl(j,[lt],[])},deltaDecorations:function(lt,ft){return lt.length===0&&ft.length===0?[]:(Te._onDidChangeDecorations.fire(),Te._deltaDecorationsImpl(j,lt,ft))}},Ne=null;try{Ne=X(Ae)}catch(lt){Object(T.e)(lt)}return Ae.addDecoration=Vo,Ae.changeDecoration=Vo,Ae.changeDecorationOptions=Vo,Ae.removeDecoration=Vo,Ae.deltaDecorations=Vo,Ne},M.prototype.deltaDecorations=function(j,X,Te){if(Te===void 0&&(Te=0),this._assertNotDisposed(),j||(j=[]),j.length===0&&X.length===0)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(Te,j,X)}finally{this._onDidChangeDecorations.endDeferredEmit()}},M.prototype._getTrackedRange=function(j){return this.getDecorationRange(j)},M.prototype._setTrackedRange=function(j,X,Te){var Ae=j?this._decorations[j]:null;if(!Ae)return X?this._deltaDecorationsImpl(0,[],[{range:X,options:St[Te]}])[0]:null;if(!X)return this._decorationsTree.delete(Ae),delete this._decorations[Ae.id],null;var Ne=this._validateRangeRelaxedNoAllocations(X),lt=this._buffer.getOffsetAt(Ne.startLineNumber,Ne.startColumn),ft=this._buffer.getOffsetAt(Ne.endLineNumber,Ne.endColumn);return this._decorationsTree.delete(Ae),Ae.reset(this.getVersionId(),lt,ft,Ne),Ae.setOptions(St[Te]),this._decorationsTree.insert(Ae),Ae.id},M.prototype.removeAllDecorationsWithOwnerId=function(j){if(this._isDisposed)return;for(var X=this._decorationsTree.collectNodesFromOwner(j),Te=0,Ae=X.length;Te<Ae;Te++){var Ne=X[Te];this._decorationsTree.delete(Ne),delete this._decorations[Ne.id]}},M.prototype.getDecorationOptions=function(j){var X=this._decorations[j];return X?X.options:null},M.prototype.getDecorationRange=function(j){var X=this._decorations[j];if(!X)return null;var Te=this.getVersionId();return X.cachedVersionId!==Te&&this._decorationsTree.resolveNode(X,Te),X.range===null&&(X.range=this._getRangeAt(X.cachedAbsoluteStart,X.cachedAbsoluteEnd)),X.range},M.prototype.getLineDecorations=function(j,X,Te){return X===void 0&&(X=0),Te===void 0&&(Te=!1),j<1||j>this.getLineCount()?[]:this.getLinesDecorations(j,j,X,Te)},M.prototype.getLinesDecorations=function(j,X,Te,Ae){Te===void 0&&(Te=0),Ae===void 0&&(Ae=!1);var Ne=this.getLineCount(),lt=Math.min(Ne,Math.max(1,j)),ft=Math.min(Ne,Math.max(1,X)),At=this.getLineMaxColumn(ft);return this._getDecorationsInRange(new W.a(lt,1,ft,At),Te,Ae)},M.prototype.getDecorationsInRange=function(j,X,Te){X===void 0&&(X=0),Te===void 0&&(Te=!1);var Ae=this.validateRange(j);return this._getDecorationsInRange(Ae,X,Te)},M.prototype.getOverviewRulerDecorations=function(j,X){j===void 0&&(j=0),X===void 0&&(X=!1);var Te=this.getVersionId(),Ae=this._decorationsTree.search(j,X,!0,Te);return this._ensureNodesHaveRanges(Ae)},M.prototype.getAllDecorations=function(j,X){j===void 0&&(j=0),X===void 0&&(X=!1);var Te=this.getVersionId(),Ae=this._decorationsTree.search(j,X,!1,Te);return this._ensureNodesHaveRanges(Ae)},M.prototype._getDecorationsInRange=function(j,X,Te){var Ae=this._buffer.getOffsetAt(j.startLineNumber,j.startColumn),Ne=this._buffer.getOffsetAt(j.endLineNumber,j.endColumn),lt=this.getVersionId(),ft=this._decorationsTree.intervalSearch(Ae,Ne,X,Te,lt);return this._ensureNodesHaveRanges(ft)},M.prototype._ensureNodesHaveRanges=function(j){for(var X=0,Te=j.length;X<Te;X++){var Ae=j[X];Ae.range===null&&(Ae.range=this._getRangeAt(Ae.cachedAbsoluteStart,Ae.cachedAbsoluteEnd))}return j},M.prototype._getRangeAt=function(j,X){return this._buffer.getRangeAt(j,X-j)},M.prototype._changeDecorationImpl=function(j,X){var Te=this._decorations[j];if(!Te)return;var Ae=this._validateRangeRelaxedNoAllocations(X),Ne=this._buffer.getOffsetAt(Ae.startLineNumber,Ae.startColumn),lt=this._buffer.getOffsetAt(Ae.endLineNumber,Ae.endColumn);this._decorationsTree.delete(Te),Te.reset(this.getVersionId(),Ne,lt,Ae),this._decorationsTree.insert(Te)},M.prototype._changeDecorationOptionsImpl=function(j,X){var Te=this._decorations[j];if(!Te)return;var Ae=!!(Te.options.overviewRuler&&Te.options.overviewRuler.color),Ne=!!(X.overviewRuler&&X.overviewRuler.color);Ae!==Ne?(this._decorationsTree.delete(Te),Te.setOptions(X),this._decorationsTree.insert(Te)):Te.setOptions(X)},M.prototype._deltaDecorationsImpl=function(j,X,Te){for(var Ae=this.getVersionId(),Ne=X.length,lt=0,ft=Te.length,At=0,Ft=new Array(ft);lt<Ne||At<ft;){var Ut=null;if(lt<Ne){do Ut=this._decorations[X[lt++]];while(!Ut&&lt<Ne);Ut&&this._decorationsTree.delete(Ut)}if(At<ft){if(!Ut){var Vt=++this._lastDecorationId,oo=this._instanceId+";"+Vt;Ut=new V(oo,0,0),this._decorations[oo]=Ut}var Zt=Te[At],mo=this._validateRangeRelaxedNoAllocations(Zt.range),mt=st(Zt.options),He=this._buffer.getOffsetAt(mo.startLineNumber,mo.startColumn),De=this._buffer.getOffsetAt(mo.endLineNumber,mo.endColumn);Ut.ownerId=j,Ut.reset(Ae,He,De,mo),Ut.setOptions(mt),this._decorationsTree.insert(Ut),Ft[At]=Ut.id,At++}else Ut&&delete this._decorations[Ut.id]}return Ft},M.prototype.setLineTokens=function(j,X){if(j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,j-1,this._buffer.getLineLength(j),X)},M.prototype.setTokens=function(j){if(j.length===0)return;for(var X=[],Te=0,Ae=j.length;Te<Ae;Te++){var Ne=j[Te];X.push({fromLineNumber:Ne.startLineNumber,toLineNumber:Ne.startLineNumber+Ne.tokens.length-1});for(var lt=0,ft=Ne.tokens.length;lt<ft;lt++)this.setLineTokens(Ne.startLineNumber+lt,Ne.tokens[lt])}this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:X})},M.prototype.setSemanticTokens=function(j){this._tokens2.set(j),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})},M.prototype.tokenizeViewport=function(j,X){j=Math.max(1,j),X=Math.min(this._buffer.getLineCount(),X),this._tokenization.tokenizeViewport(j,X)},M.prototype.clearTokens=function(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})},M.prototype._emitModelTokensChangedEvent=function(j){this._isDisposing||this._onDidChangeTokens.fire(j)},M.prototype.resetTokenization=function(){this._tokenization.reset()},M.prototype.forceTokenization=function(j){if(j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(j)},M.prototype.isCheapToTokenize=function(j){return this._tokenization.isCheapToTokenize(j)},M.prototype.tokenizeIfCheap=function(j){this.isCheapToTokenize(j)&&this.forceTokenization(j)},M.prototype.getLineTokens=function(j){if(j<1||j>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(j)},M.prototype._getLineTokens=function(j){var X=this.getLineContent(j),Te=this._tokens.getTokens(this._languageIdentifier.id,j-1,X);return this._tokens2.addSemanticTokens(j,Te)},M.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},M.prototype.getModeId=function(){return this._languageIdentifier.language},M.prototype.setMode=function(j){if(this._languageIdentifier.id===j.id)return;var X={oldLanguage:this._languageIdentifier.language,newLanguage:j.language};this._languageIdentifier=j,this._onDidChangeLanguage.fire(X),this._onDidChangeLanguageConfiguration.fire({})},M.prototype.getLanguageIdAtPosition=function(j,X){var Te=this.validatePosition(new D.a(j,X)),Ae=this.getLineTokens(Te.lineNumber);return Ae.getLanguageId(Ae.findTokenIndexAtOffset(Te.column-1))},M.prototype.getWordAtPosition=function(j){this._assertNotDisposed();var X=this.validatePosition(j),Te=this.getLineContent(X.lineNumber),Ae=this._getLineTokens(X.lineNumber),Ne=Ae.findTokenIndexAtOffset(X.column-1),lt=M._findLanguageBoundaries(Ae,Ne),ft=lt[0],At=lt[1],Ft=Object(fo.d)(X.column,ho.a.getWordDefinition(Ae.getLanguageId(Ne)),Te.substring(ft,At),ft);if(Ft&&Ft.startColumn<=j.column&&j.column<=Ft.endColumn)return Ft;if(Ne>0&&ft===X.column-1){var Ut=M._findLanguageBoundaries(Ae,Ne-1),Vt=Ut[0],oo=Ut[1],Zt=Object(fo.d)(X.column,ho.a.getWordDefinition(Ae.getLanguageId(Ne-1)),Te.substring(Vt,oo),Vt);if(Zt&&Zt.startColumn<=j.column&&j.column<=Zt.endColumn)return Zt}return null},M._findLanguageBoundaries=function(j,X){for(var Te=j.getLanguageId(X),Ae=0,Ne=X;Ne>=0&&j.getLanguageId(Ne)===Te;Ne--)Ae=j.getStartOffset(Ne);for(var lt=j.getLineContent().length,Ne=X,ft=j.getCount();Ne<ft&&j.getLanguageId(Ne)===Te;Ne++)lt=j.getEndOffset(Ne);return[Ae,lt]},M.prototype.getWordUntilPosition=function(j){var X=this.getWordAtPosition(j);return X?{word:X.word.substr(0,j.column-X.startColumn),startColumn:X.startColumn,endColumn:j.column}:{word:"",startColumn:j.column,endColumn:j.column}},M.prototype.findMatchingBracketUp=function(j,X){var Te=j.toLowerCase(),Ae=this.validatePosition(X),Ne=this._getLineTokens(Ae.lineNumber),lt=Ne.getLanguageId(Ne.findTokenIndexAtOffset(Ae.column-1)),ft=ho.a.getBracketsSupport(lt);if(!ft)return null;var At=ft.textIsBracket[Te];return At?this._findMatchingBracketUp(At,Ae):null},M.prototype.matchBracket=function(j){return this._matchBracket(this.validatePosition(j))},M.prototype._matchBracket=function(j){var X=j.lineNumber,Te=this._getLineTokens(X),Ae=Te.getCount(),Ne=this._buffer.getLineContent(X),lt=Te.findTokenIndexAtOffset(j.column-1);if(lt<0)return null;var ft=ho.a.getBracketsSupport(Te.getLanguageId(lt));if(ft&&!Object(_o.b)(Te.getStandardTokenType(lt))){for(var At=Math.max(0,j.column-1-ft.maxBracketLength),Ft=lt-1;Ft>=0;Ft--){var Ut=Te.getEndOffset(Ft);if(Ut<=At)break;Object(_o.b)(Te.getStandardTokenType(Ft))&&(At=Ut)}for(var Vt=Math.min(Ne.length,j.column-1+ft.maxBracketLength),oo=null;;){var Zt=Do.a.findNextBracketInRange(ft.forwardRegex,X,Ne,At,Vt);if(!Zt)break;if(Zt.startColumn<=j.column&&j.column<=Zt.endColumn){var mo=Ne.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),mt=this._matchFoundBracket(Zt,ft.textIsBracket[mo],ft.textIsOpenBracket[mo]);mt&&(oo=mt)}At=Zt.endColumn-1}if(oo)return oo}if(lt>0&&Te.getStartOffset(lt)===j.column-1){var He=lt-1,De=ho.a.getBracketsSupport(Te.getLanguageId(He));if(De&&!Object(_o.b)(Te.getStandardTokenType(He))){for(var At=Math.max(0,j.column-1-De.maxBracketLength),Vt=Math.min(Ne.length,j.column-1+De.maxBracketLength),Ft=He+1;Ft<Ae;Ft++){var ot=Te.getStartOffset(Ft);if(ot>=Vt)break;Object(_o.b)(Te.getStandardTokenType(Ft))&&(Vt=ot)}var Zt=Do.a.findPrevBracketInRange(De.reversedRegex,X,Ne,At,Vt);if(Zt&&Zt.startColumn<=j.column&&j.column<=Zt.endColumn){var mo=Ne.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),mt=this._matchFoundBracket(Zt,De.textIsBracket[mo],De.textIsOpenBracket[mo]);if(mt)return mt}}}return null},M.prototype._matchFoundBracket=function(j,X,Te){if(!X)return null;if(Te){var Ae=this._findMatchingBracketDown(X,j.getEndPosition());if(Ae)return[j,Ae]}else{var Ae=this._findMatchingBracketUp(X,j.getStartPosition());if(Ae)return[j,Ae]}return null},M.prototype._findMatchingBracketUp=function(j,X){for(var Te=j.languageIdentifier.id,Ae=j.reversedRegex,Ne=-1,lt=function(De,ot,xt,pe){for(;;){var O=Do.a.findPrevBracketInRange(Ae,De,ot,xt,pe);if(!O)break;var me=ot.substring(O.startColumn-1,O.endColumn-1).toLowerCase();if(j.isOpen(me)?Ne++:j.isClose(me)&&Ne--,Ne===0)return O;pe=O.startColumn-1}return null},ft=X.lineNumber;ft>=1;ft--){var At=this._getLineTokens(ft),Ft=At.getCount(),Ut=this._buffer.getLineContent(ft),Vt=Ft-1,oo=Ut.length,Zt=Ut.length;ft===X.lineNumber&&(Vt=At.findTokenIndexAtOffset(X.column-1),oo=X.column-1,Zt=X.column-1);for(var mo=!0;Vt>=0;Vt--){var mt=At.getLanguageId(Vt)===Te&&!Object(_o.b)(At.getStandardTokenType(Vt));if(mt)mo?oo=At.getStartOffset(Vt):(oo=At.getStartOffset(Vt),Zt=At.getEndOffset(Vt));else if(mo&&oo!==Zt){var He=lt(ft,Ut,oo,Zt);if(He)return He}mo=mt}if(mo&&oo!==Zt){var He=lt(ft,Ut,oo,Zt);if(He)return He}}return null},M.prototype._findMatchingBracketDown=function(j,X){for(var Te=j.languageIdentifier.id,Ae=j.forwardRegex,Ne=1,lt=function(ot,xt,pe,O){for(;;){var me=Do.a.findNextBracketInRange(Ae,ot,xt,pe,O);if(!me)break;var Be=xt.substring(me.startColumn-1,me.endColumn-1).toLowerCase();if(j.isOpen(Be)?Ne++:j.isClose(Be)&&Ne--,Ne===0)return me;pe=me.endColumn-1}return null},ft=this.getLineCount(),At=X.lineNumber;At<=ft;At++){var Ft=this._getLineTokens(At),Ut=Ft.getCount(),Vt=this._buffer.getLineContent(At),oo=0,Zt=0,mo=0;At===X.lineNumber&&(oo=Ft.findTokenIndexAtOffset(X.column-1),Zt=X.column-1,mo=X.column-1);for(var mt=!0;oo<Ut;oo++){var He=Ft.getLanguageId(oo)===Te&&!Object(_o.b)(Ft.getStandardTokenType(oo));if(He)mt||(Zt=Ft.getStartOffset(oo)),mo=Ft.getEndOffset(oo);else if(mt&&Zt!==mo){var De=lt(At,Vt,Zt,mo);if(De)return De}mt=He}if(mt&&Zt!==mo){var De=lt(At,Vt,Zt,mo);if(De)return De}}return null},M.prototype.findPrevBracket=function(j){for(var X=this.validatePosition(j),Te=-1,Ae=null,Ne=X.lineNumber;Ne>=1;Ne--){var lt=this._getLineTokens(Ne),ft=lt.getCount(),At=this._buffer.getLineContent(Ne),Ft=ft-1,Ut=At.length,Vt=At.length;if(Ne===X.lineNumber){Ft=lt.findTokenIndexAtOffset(X.column-1),Ut=X.column-1,Vt=X.column-1;var oo=lt.getLanguageId(Ft);Te!==oo&&(Te=oo,Ae=ho.a.getBracketsSupport(Te))}for(var Zt=!0;Ft>=0;Ft--){var oo=lt.getLanguageId(Ft);if(Te!==oo){if(Ae&&Zt&&Ut!==Vt){var mo=Do.a.findPrevBracketInRange(Ae.reversedRegex,Ne,At,Ut,Vt);if(mo)return this._toFoundBracket(Ae,mo);Zt=!1}Te=oo,Ae=ho.a.getBracketsSupport(Te)}var mt=!!Ae&&!Object(_o.b)(lt.getStandardTokenType(Ft));if(mt)Zt?Ut=lt.getStartOffset(Ft):(Ut=lt.getStartOffset(Ft),Vt=lt.getEndOffset(Ft));else if(Ae&&Zt&&Ut!==Vt){var mo=Do.a.findPrevBracketInRange(Ae.reversedRegex,Ne,At,Ut,Vt);if(mo)return this._toFoundBracket(Ae,mo)}Zt=mt}if(Ae&&Zt&&Ut!==Vt){var mo=Do.a.findPrevBracketInRange(Ae.reversedRegex,Ne,At,Ut,Vt);if(mo)return this._toFoundBracket(Ae,mo)}}return null},M.prototype.findNextBracket=function(j){for(var X=this.validatePosition(j),Te=this.getLineCount(),Ae=-1,Ne=null,lt=X.lineNumber;lt<=Te;lt++){var ft=this._getLineTokens(lt),At=ft.getCount(),Ft=this._buffer.getLineContent(lt),Ut=0,Vt=0,oo=0;if(lt===X.lineNumber){Ut=ft.findTokenIndexAtOffset(X.column-1),Vt=X.column-1,oo=X.column-1;var Zt=ft.getLanguageId(Ut);Ae!==Zt&&(Ae=Zt,Ne=ho.a.getBracketsSupport(Ae))}for(var mo=!0;Ut<At;Ut++){var Zt=ft.getLanguageId(Ut);if(Ae!==Zt){if(Ne&&mo&&Vt!==oo){var mt=Do.a.findNextBracketInRange(Ne.forwardRegex,lt,Ft,Vt,oo);if(mt)return this._toFoundBracket(Ne,mt);mo=!1}Ae=Zt,Ne=ho.a.getBracketsSupport(Ae)}var He=!!Ne&&!Object(_o.b)(ft.getStandardTokenType(Ut));if(He)mo||(Vt=ft.getStartOffset(Ut)),oo=ft.getEndOffset(Ut);else if(Ne&&mo&&Vt!==oo){var mt=Do.a.findNextBracketInRange(Ne.forwardRegex,lt,Ft,Vt,oo);if(mt)return this._toFoundBracket(Ne,mt)}mo=He}if(Ne&&mo&&Vt!==oo){var mt=Do.a.findNextBracketInRange(Ne.forwardRegex,lt,Ft,Vt,oo);if(mt)return this._toFoundBracket(Ne,mt)}}return null},M.prototype.findEnclosingBrackets=function(j,X){var Te=this;X===void 0&&(X=1073741824);for(var Ae=this.validatePosition(j),Ne=this.getLineCount(),lt=new Map,ft=[],At=function(at,_t){if(!lt.has(at)){for(var zt=[],Xt=0,no=_t?_t.brackets.length:0;Xt<no;Xt++)zt[Xt]=0;lt.set(at,zt)}ft=lt.get(at)},Ft=function(at,_t,zt,Xt,no){for(;;){var uo=Do.a.findNextBracketInRange(at.forwardRegex,_t,zt,Xt,no);if(!uo)break;var go=zt.substring(uo.startColumn-1,uo.endColumn-1).toLowerCase(),Ao=at.textIsBracket[go];if(Ao&&(Ao.isOpen(go)?ft[Ao.index]++:Ao.isClose(go)&&ft[Ao.index]--,ft[Ao.index]===-1))return Te._matchFoundBracket(uo,Ao,!1);Xt=uo.endColumn-1}return null},Ut=-1,Vt=null,oo=Date.now(),Zt=Ae.lineNumber;Zt<=Ne;Zt++){var mo=Date.now()-oo;if(mo>X)return null;var mt=this._getLineTokens(Zt),He=mt.getCount(),De=this._buffer.getLineContent(Zt),ot=0,xt=0,pe=0;if(Zt===Ae.lineNumber){ot=mt.findTokenIndexAtOffset(Ae.column-1),xt=Ae.column-1,pe=Ae.column-1;var O=mt.getLanguageId(ot);Ut!==O&&(Ut=O,Vt=ho.a.getBracketsSupport(Ut),At(Ut,Vt))}for(var me=!0;ot<He;ot++){var O=mt.getLanguageId(ot);if(Ut!==O){if(Vt&&me&&xt!==pe){var Be=Ft(Vt,Zt,De,xt,pe);if(Be)return Be;me=!1}Ut=O,Vt=ho.a.getBracketsSupport(Ut),At(Ut,Vt)}var Ze=!!Vt&&!Object(_o.b)(mt.getStandardTokenType(ot));if(Ze)me||(xt=mt.getStartOffset(ot)),pe=mt.getEndOffset(ot);else if(Vt&&me&&xt!==pe){var Be=Ft(Vt,Zt,De,xt,pe);if(Be)return Be}me=Ze}if(Vt&&me&&xt!==pe){var Be=Ft(Vt,Zt,De,xt,pe);if(Be)return Be}}return null},M.prototype._toFoundBracket=function(j,X){if(!X)return null;var Te=this.getValueInRange(X);Te=Te.toLowerCase();var Ae=j.textIsBracket[Te];return Ae?{range:X,open:Ae.open,close:Ae.close,isOpen:j.textIsOpenBracket[Te]}:null},M.computeIndentLevel=function(j,X){for(var Te=0,Ae=0,Ne=j.length;Ae<Ne;){var lt=j.charCodeAt(Ae);if(lt===32)Te++;else if(lt===9)Te=Te-Te%X+X;else break;Ae++}return Ae===Ne?-1:Te},M.prototype._computeIndentLevel=function(j){return M.computeIndentLevel(this._buffer.getLineContent(j+1),this._options.tabSize)},M.prototype.getActiveIndentGuide=function(j,X,Te){var Ae=this;this._assertNotDisposed();var Ne=this.getLineCount();if(j<1||j>Ne)throw new Error("Illegal value for lineNumber");for(var lt=ho.a.getFoldingRules(this._languageIdentifier.id),ft=Boolean(lt&&lt.offSide),At=-2,Ft=-1,Ut=-2,Vt=-1,oo=function(no){if(At!==-1&&(At===-2||At>no-1)){At=-1,Ft=-1;for(var uo=no-2;uo>=0;uo--){var go=Ae._computeIndentLevel(uo);if(go>=0){At=uo,Ft=go;break}}}if(Ut===-2){Ut=-1,Vt=-1;for(var uo=no;uo<Ne;uo++){var Ao=Ae._computeIndentLevel(uo);if(Ao>=0){Ut=uo,Vt=Ao;break}}}},Zt=-2,mo=-1,mt=-2,He=-1,De=function(no){if(Zt===-2){Zt=-1,mo=-1;for(var uo=no-2;uo>=0;uo--){var go=Ae._computeIndentLevel(uo);if(go>=0){Zt=uo,mo=go;break}}}if(mt!==-1&&(mt===-2||mt<no-1)){mt=-1,He=-1;for(var uo=no;uo<Ne;uo++){var Ao=Ae._computeIndentLevel(uo);if(Ao>=0){mt=uo,He=Ao;break}}}},ot=0,xt=!0,pe=0,O=!0,me=0,Be=0;xt||O;Be++){var Ze=j-Be,at=j+Be;if(Be!==0&&(Ze<1||Ze<X)&&(xt=!1),Be!==0&&(at>Ne||at>Te)&&(O=!1),Be>5e4&&(xt=!1,O=!1),xt){var _t=void 0,zt=this._computeIndentLevel(Ze-1);if(zt>=0?(Ut=Ze-1,Vt=zt,_t=Math.ceil(zt/this._options.indentSize)):(oo(Ze),_t=this._getIndentLevelForWhitespaceLine(ft,Ft,Vt)),Be===0){if(ot=Ze,pe=at,me=_t,me===0)return{startLineNumber:ot,endLineNumber:pe,indent:me};continue}_t>=me?ot=Ze:xt=!1}if(O){var Xt=void 0,zt=this._computeIndentLevel(at-1);zt>=0?(Zt=at-1,mo=zt,Xt=Math.ceil(zt/this._options.indentSize)):(De(at),Xt=this._getIndentLevelForWhitespaceLine(ft,mo,He)),Xt>=me?pe=at:O=!1}}return{startLineNumber:ot,endLineNumber:pe,indent:me}},M.prototype.getLinesIndentGuides=function(j,X){this._assertNotDisposed();var Te=this.getLineCount();if(j<1||j>Te)throw new Error("Illegal value for startLineNumber");if(X<1||X>Te)throw new Error("Illegal value for endLineNumber");for(var Ae=ho.a.getFoldingRules(this._languageIdentifier.id),Ne=Boolean(Ae&&Ae.offSide),lt=new Array(X-j+1),ft=-2,At=-1,Ft=-2,Ut=-1,Vt=j;Vt<=X;Vt++){var oo=Vt-j,Zt=this._computeIndentLevel(Vt-1);if(Zt>=0){ft=Vt-1,At=Zt,lt[oo]=Math.ceil(Zt/this._options.indentSize);continue}if(ft===-2){ft=-1,At=-1;for(var mo=Vt-2;mo>=0;mo--){var mt=this._computeIndentLevel(mo);if(mt>=0){ft=mo,At=mt;break}}}if(Ft!==-1&&(Ft===-2||Ft<Vt-1)){Ft=-1,Ut=-1;for(var mo=Vt;mo<Te;mo++){var mt=this._computeIndentLevel(mo);if(mt>=0){Ft=mo,Ut=mt;break}}}lt[oo]=this._getIndentLevelForWhitespaceLine(Ne,At,Ut)}return lt},M.prototype._getIndentLevelForWhitespaceLine=function(j,X,Te){return X===-1||Te===-1?0:X<Te?1+Math.floor(X/this._options.indentSize):X===Te?Math.ceil(Te/this._options.indentSize):j?Math.ceil(Te/this._options.indentSize):1+Math.floor(Te/this._options.indentSize)},M.MODEL_SYNC_LIMIT=50*1024*1024,M.LARGE_FILE_SIZE_THRESHOLD=20*1024*1024,M.LARGE_FILE_LINE_COUNT_THRESHOLD=300*1e3,M.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:z.c.tabSize,indentSize:z.c.indentSize,insertSpaces:z.c.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:z.c.trimAutoWhitespace,largeFileOptimizations:z.c.largeFileOptimizations},M}($.a),pn=function(){function be(){this._decorationsTree0=new _e,this._decorationsTree1=new _e}return be.prototype.intervalSearch=function(M,j,X,Te,Ae){var Ne=this._decorationsTree0.intervalSearch(M,j,X,Te,Ae),lt=this._decorationsTree1.intervalSearch(M,j,X,Te,Ae);return Ne.concat(lt)},be.prototype.search=function(M,j,X,Te){if(X)return this._decorationsTree1.search(M,j,Te);var Ae=this._decorationsTree0.search(M,j,Te),Ne=this._decorationsTree1.search(M,j,Te);return Ae.concat(Ne)},be.prototype.collectNodesFromOwner=function(M){var j=this._decorationsTree0.collectNodesFromOwner(M),X=this._decorationsTree1.collectNodesFromOwner(M);return j.concat(X)},be.prototype.collectNodesPostOrder=function(){var M=this._decorationsTree0.collectNodesPostOrder(),j=this._decorationsTree1.collectNodesPostOrder();return M.concat(j)},be.prototype.insert=function(M){I(M)?this._decorationsTree1.insert(M):this._decorationsTree0.insert(M)},be.prototype.delete=function(M){I(M)?this._decorationsTree1.delete(M):this._decorationsTree0.delete(M)},be.prototype.resolveNode=function(M,j){I(M)?this._decorationsTree1.resolveNode(M,j):this._decorationsTree0.resolveNode(M,j)},be.prototype.acceptReplace=function(M,j,X,Te){this._decorationsTree0.acceptReplace(M,j,X,Te),this._decorationsTree1.acceptReplace(M,j,X,Te)},be}();function rn(be){return be.replace(/[^a-z0-9\-_]/gi," ")}var on=function(){function be(M){this.color=M.color||"",this.darkColor=M.darkColor||""}return be}(),dn=function(be){Eo(M,be);function M(j){var X=be.call(this,j)||this;return X._resolvedColor=null,X.position=typeof j.position=="number"?j.position:h.d.Center,X}return M.prototype.getColor=function(j){return this._resolvedColor||(j.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,j):this._resolvedColor=this._resolveColor(this.color,j)),this._resolvedColor},M.prototype.invalidateCachedColor=function(){this._resolvedColor=null},M.prototype._resolveColor=function(j,X){if(typeof j=="string")return j;var Te=j?X.getColor(j.id):null;return Te?Te.toString():""},M}(on),Uo=function(be){Eo(M,be);function M(j){var X=be.call(this,j)||this;return X.position=j.position,X}return M.prototype.getColor=function(j){return this._resolvedColor||(j.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,j):this._resolvedColor=this._resolveColor(this.color,j)),this._resolvedColor},M.prototype.invalidateCachedColor=function(){this._resolvedColor=void 0},M.prototype._resolveColor=function(j,X){return typeof j=="string"?jo.a.fromHex(j):X.getColor(j.id)},M}(on),Bo=function(){function be(M){this.stickiness=M.stickiness||0,this.zIndex=M.zIndex||0,this.className=M.className?rn(M.className):null,this.hoverMessage=Object(Ro.o)(M.hoverMessage),this.glyphMarginHoverMessage=Object(Ro.o)(M.glyphMarginHoverMessage),this.isWholeLine=M.isWholeLine||!1,this.showIfCollapsed=M.showIfCollapsed||!1,this.collapseOnReplaceEdit=M.collapseOnReplaceEdit||!1,this.overviewRuler=M.overviewRuler?new dn(M.overviewRuler):null,this.minimap=M.minimap?new Uo(M.minimap):null,this.glyphMarginClassName=M.glyphMarginClassName?rn(M.glyphMarginClassName):null,this.linesDecorationsClassName=M.linesDecorationsClassName?rn(M.linesDecorationsClassName):null,this.marginClassName=M.marginClassName?rn(M.marginClassName):null,this.inlineClassName=M.inlineClassName?rn(M.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=M.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=M.beforeContentClassName?rn(M.beforeContentClassName):null,this.afterContentClassName=M.afterContentClassName?rn(M.afterContentClassName):null}return be.register=function(M){return new be(M)},be.createDynamic=function(M){return new be(M)},be}();Bo.EMPTY=Bo.register({});var St=[Bo.register({stickiness:0}),Bo.register({stickiness:1}),Bo.register({stickiness:2}),Bo.register({stickiness:3})];function st(be){return be instanceof Bo?be:Bo.createDynamic(be)}var rt=function(be){Eo(M,be);function M(){var j=be.call(this)||this;return j._actual=j._register(new le.a),j.event=j._actual.event,j._deferredCnt=0,j._shouldFire=!1,j}return M.prototype.beginDeferredEmit=function(){this._deferredCnt++},M.prototype.endDeferredEmit=function(){this._deferredCnt--,this._deferredCnt===0&&(this._shouldFire&&(this._shouldFire=!1,this._actual.fire({})))},M.prototype.fire=function(){this._shouldFire=!0},M}($.a),Mt=function(be){Eo(M,be);function M(){var j=be.call(this)||this;return j._fastEmitter=j._register(new le.a),j.fastEvent=j._fastEmitter.event,j._slowEmitter=j._register(new le.a),j.slowEvent=j._slowEmitter.event,j._deferredCnt=0,j._deferredEvent=null,j}return M.prototype.beginDeferredEmit=function(){this._deferredCnt++},M.prototype.endDeferredEmit=function(){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){var j=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(j),this._slowEmitter.fire(j)}},M.prototype.fire=function(j){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(j):this._deferredEvent=j;return}this._fastEmitter.fire(j),this._slowEmitter.fire(j)},M}($.a)},tXSY:function(Lt,N,e){"use strict";e.r(N),e.d(N,"SnippetController2",function(){return je});var T=e("pmY6"),le=e("N0LK"),$=e("sswD"),R=e("aokT"),B=e("gCVg"),z=e("wQH0"),D=e("QVNv"),W=e("T8No"),x=e("09fa"),h=e("6OMU"),y=e("dFcq"),w=e("0/Sa"),f=e("tX9W"),v=e("9XeP"),C=e("EWX2"),g=e("Cg/j"),u=e("uACm"),s=e("3/fG"),l=e("MrjW"),c=e("gslv"),p=e("cMvZ"),_=e("bY76"),L="code-workspace";function I(ue){return ue instanceof _.a}function P(ue){return ue.configuration?{configPath:ue.configuration,id:ue.id}:ue.folders.length===1?ue.folders[0].uri:void 0}var A=e("3rx1"),Q=function(){function ue(ve){this._delegates=ve}return ue.prototype.resolve=function(ve){for(var Ee=0,xe=this._delegates;Ee<xe.length;Ee++){var Ce=xe[Ee],he=Ce.resolve(ve);if(he!==void 0)return he}return},ue}(),K=function(){function ue(ve,Ee){this._model=ve,this._selection=Ee}return ue.prototype.resolve=function(ve){var Ee=ve.name;if(Ee==="SELECTION"||Ee==="TM_SELECTED_TEXT"){var xe=this._model.getValueInRange(this._selection)||void 0;if(xe&&this._selection.startLineNumber!==this._selection.endLineNumber&&ve.snippet){var Ce=this._model.getLineContent(this._selection.startLineNumber),he=Object(le.t)(Ce,0,this._selection.startColumn-1),J=he;ve.snippet.walk(function(re){return re===ve?!1:(re instanceof u.d&&(J=Object(le.t)(re.value.split(/\r\n|\r|\n/).pop())),!0)});var b=Object(le.c)(J,he);xe=xe.replace(/(\r\n|\r|\n)(.*)/g,function(re,ne,fe){return""+ne+J.substr(b)+fe})}return xe}else{if(Ee==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(Ee==="TM_CURRENT_WORD"){var F=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return F&&F.word||void 0}else{if(Ee==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(Ee==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber)}}return},ue}(),H=function(){function ue(ve,Ee){this._labelService=ve,this._model=Ee}return ue.prototype.resolve=function(ve){var Ee=ve.name;if(Ee==="TM_FILENAME")return l.basename(this._model.uri.fsPath);if(Ee==="TM_FILENAME_BASE"){var xe=l.basename(this._model.uri.fsPath),Ce=xe.lastIndexOf(".");return Ce<=0?xe:xe.slice(0,Ce)}else{if(Ee==="TM_DIRECTORY"&&this._labelService)return l.dirname(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(Object(c.d)(this._model.uri));if(Ee==="TM_FILEPATH"&&this._labelService)return this._labelService.getUriLabel(this._model.uri)}return},ue}(),V=function(){function ue(ve,Ee,xe,Ce){this._readClipboardText=ve,this._selectionIdx=Ee,this._selectionCount=xe,this._spread=Ce}return ue.prototype.resolve=function(ve){if(ve.name!=="CLIPBOARD")return;var Ee=this._readClipboardText();if(!Ee)return;if(this._spread){var xe=Ee.split(/\r\n|\n|\r/).filter(function(Ce){return!Object(le.x)(Ce)});if(xe.length===this._selectionCount)return xe[this._selectionIdx]}return Ee},ue}(),de=function(){function ue(ve){this._model=ve}return ue.prototype.resolve=function(ve){var Ee=ve.name,xe=this._model.getLanguageIdentifier(),Ce=p.a.getComments(xe.id);return Ce?Ee==="LINE_COMMENT"?Ce.lineCommentToken||void 0:Ee==="BLOCK_COMMENT_START"?Ce.blockCommentStartToken||void 0:Ee==="BLOCK_COMMENT_END"&&Ce.blockCommentEndToken||void 0:void 0},ue}(),_e=function(){function ue(){}return ue.prototype.resolve=function(ve){var Ee=ve.name;return Ee==="CURRENT_YEAR"?String(new Date().getFullYear()):Ee==="CURRENT_YEAR_SHORT"?String(new Date().getFullYear()).slice(-2):Ee==="CURRENT_MONTH"?Object(le.F)(new Date().getMonth().valueOf()+1,2):Ee==="CURRENT_DATE"?Object(le.F)(new Date().getDate().valueOf(),2):Ee==="CURRENT_HOUR"?Object(le.F)(new Date().getHours().valueOf(),2):Ee==="CURRENT_MINUTE"?Object(le.F)(new Date().getMinutes().valueOf(),2):Ee==="CURRENT_SECOND"?Object(le.F)(new Date().getSeconds().valueOf(),2):Ee==="CURRENT_DAY_NAME"?ue.dayNames[new Date().getDay()]:Ee==="CURRENT_DAY_NAME_SHORT"?ue.dayNamesShort[new Date().getDay()]:Ee==="CURRENT_MONTH_NAME"?ue.monthNames[new Date().getMonth()]:Ee==="CURRENT_MONTH_NAME_SHORT"?ue.monthNamesShort[new Date().getMonth()]:Ee==="CURRENT_SECONDS_UNIX"?String(Math.floor(Date.now()/1e3)):void 0},ue.dayNames=[s.a("Sunday","Sunday"),s.a("Monday","Monday"),s.a("Tuesday","Tuesday"),s.a("Wednesday","Wednesday"),s.a("Thursday","Thursday"),s.a("Friday","Friday"),s.a("Saturday","Saturday")],ue.dayNamesShort=[s.a("SundayShort","Sun"),s.a("MondayShort","Mon"),s.a("TuesdayShort","Tue"),s.a("WednesdayShort","Wed"),s.a("ThursdayShort","Thu"),s.a("FridayShort","Fri"),s.a("SaturdayShort","Sat")],ue.monthNames=[s.a("January","January"),s.a("February","February"),s.a("March","March"),s.a("April","April"),s.a("May","May"),s.a("June","June"),s.a("July","July"),s.a("August","August"),s.a("September","September"),s.a("October","October"),s.a("November","November"),s.a("December","December")],ue.monthNamesShort=[s.a("JanuaryShort","Jan"),s.a("FebruaryShort","Feb"),s.a("MarchShort","Mar"),s.a("AprilShort","Apr"),s.a("MayShort","May"),s.a("JuneShort","Jun"),s.a("JulyShort","Jul"),s.a("AugustShort","Aug"),s.a("SeptemberShort","Sep"),s.a("OctoberShort","Oct"),s.a("NovemberShort","Nov"),s.a("DecemberShort","Dec")],ue}(),Se=function(){function ue(ve){this._workspaceService=ve}return ue.prototype.resolve=function(ve){if(!this._workspaceService)return;var Ee=P(this._workspaceService.getWorkspace());return Ee?ve.name==="WORKSPACE_NAME"?this._resolveWorkspaceName(Ee):ve.name==="WORKSPACE_FOLDER"?this._resoveWorkspacePath(Ee):void 0:void 0},ue.prototype._resolveWorkspaceName=function(ve){if(I(ve))return l.basename(ve.path);var Ee=l.basename(ve.configPath.path);return Object(le.m)(Ee,L)&&(Ee=Ee.substr(0,Ee.length-L.length-1)),Ee},ue.prototype._resoveWorkspacePath=function(ve){if(I(ve))return Object(A.c)(ve.fsPath);var Ee=l.basename(ve.configPath.path),xe=ve.configPath.fsPath;return Object(le.m)(xe,Ee)&&(xe=xe.substr(0,xe.length-Ee.length-1)),xe?Object(A.c)(xe):"/"},ue}(),Ie=function(){function ue(){}return ue.prototype.resolve=function(ve){var Ee=ve.name;return Ee==="RANDOM"?Math.random().toString().slice(-6):Ee==="RANDOM_HEX"?Math.random().toString(16).slice(-6):void 0},ue}(),Pe=e("t9D7"),Ve=e("MD5Z"),ke=e("R8sh");Object(Pe.e)(function(ue,ve){function Ee(xe){var Ce=ue.getColor(xe);return Ce?Ce.toString():"transparent"}ve.addRule(".monaco-editor .snippet-placeholder { background-color: "+Ee(Ve.bc)+"; outline-color: "+Ee(Ve.cc)+"; }"),ve.addRule(".monaco-editor .finish-snippet-placeholder { background-color: "+Ee(Ve.Zb)+"; outline-color: "+Ee(Ve.ac)+"; }")});var se=function(){function ue(ve,Ee,xe){this._nestingLevel=1,this._editor=ve,this._snippet=Ee,this._offset=xe,this._placeholderGroups=Object(h.o)(Ee.placeholders,u.b.compareByIndex),this._placeholderGroupsIdx=-1}return ue.prototype.dispose=function(){if(this._placeholderDecorations){var ve=[];this._placeholderDecorations.forEach(function(Ee){return ve.push(Ee)}),this._editor.deltaDecorations(ve,[])}this._placeholderGroups.length=0},ue.prototype._initDecorations=function(){var ve=this;if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;var Ee=this._editor.getModel();this._editor.changeDecorations(function(xe){for(var Ce=0,he=ve._snippet.placeholders;Ce<he.length;Ce++){var J=he[Ce],b=ve._snippet.offset(J),F=ve._snippet.fullLen(J),re=R.a.fromPositions(Ee.getPositionAt(ve._offset+b),Ee.getPositionAt(ve._offset+b+F)),ne=J.isFinalTabstop?ue._decor.inactiveFinal:ue._decor.inactive,fe=xe.addDecoration(re,ne);ve._placeholderDecorations.set(J,fe)}})},ue.prototype.move=function(ve){var Ee=this;if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){for(var xe=[],Ce=0,he=this._placeholderGroups[this._placeholderGroupsIdx];Ce<he.length;Ce++){var J=he[Ce];if(J.transform){var b=this._placeholderDecorations.get(J),F=this._editor.getModel().getDecorationRange(b),re=this._editor.getModel().getValueInRange(F);xe.push(w.a.replaceMove(F,J.transform.resolve(re)))}}xe.length>0&&this._editor.executeEdits("snippet.placeholderTransform",xe)}var ne=!1;ve===!0&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,ne=!0):ve===!1&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,ne=!0);var fe=this._editor.getModel().changeDecorations(function(Oe){for(var Me=new Set,Ue=[],Je=0,nt=Ee._placeholderGroups[Ee._placeholderGroupsIdx];Je<nt.length;Je++){var vt=nt[Je],Rt=Ee._placeholderDecorations.get(vt),Dt=Ee._editor.getModel().getDecorationRange(Rt);Ue.push(new B.a(Dt.startLineNumber,Dt.startColumn,Dt.endLineNumber,Dt.endColumn)),ne=ne&&Ee._hasPlaceholderBeenCollapsed(vt),Oe.changeDecorationOptions(Rt,vt.isFinalTabstop?ue._decor.activeFinal:ue._decor.active),Me.add(vt);for(var Kt=0,ao=Ee._snippet.enclosingPlaceholders(vt);Kt<ao.length;Kt++){var lo=ao[Kt],so=Ee._placeholderDecorations.get(lo);Oe.changeDecorationOptions(so,lo.isFinalTabstop?ue._decor.activeFinal:ue._decor.active),Me.add(lo)}}return Ee._placeholderDecorations.forEach(function(jt,pt){Me.has(pt)||Oe.changeDecorationOptions(jt,pt.isFinalTabstop?ue._decor.inactiveFinal:ue._decor.inactive)}),Ue});return ne?this.move(ve):fe},ue.prototype._hasPlaceholderBeenCollapsed=function(ve){for(var Ee=ve;Ee;){if(Ee instanceof u.b){var xe=this._placeholderDecorations.get(Ee),Ce=this._editor.getModel().getDecorationRange(xe);if(Ce.isEmpty()&&Ee.toString().length>0)return!0}Ee=Ee.parent}return!1},Object.defineProperty(ue.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),ue.prototype.computePossibleSelections=function(){for(var ve=new Map,Ee=0,xe=this._placeholderGroups;Ee<xe.length;Ee++)for(var Ce=xe[Ee],he=void 0,J=0,b=Ce;J<b.length;J++){var F=b[J];if(F.isFinalTabstop)break;he||(he=[],ve.set(F.index,he));var re=this._placeholderDecorations.get(F),ne=this._editor.getModel().getDecorationRange(re);if(!ne){ve.delete(F.index);break}he.push(ne)}return ve},Object.defineProperty(ue.prototype,"choice",{get:function(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice},enumerable:!0,configurable:!0}),ue.prototype.merge=function(ve){var Ee=this,xe=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(function(Ce){for(var he=0,J=Ee._placeholderGroups[Ee._placeholderGroupsIdx];he<J.length;he++){var b=J[he],F=ve.shift();console.assert(!F._placeholderDecorations);for(var re=F._snippet.placeholderInfo.last.index,ne=0,fe=F._snippet.placeholderInfo.all;ne<fe.length;ne++){var Oe=fe[ne];Oe.isFinalTabstop?Oe.index=b.index+(re+1)/Ee._nestingLevel:Oe.index=b.index+Oe.index/Ee._nestingLevel}Ee._snippet.replace(b,F._snippet.children);var Me=Ee._placeholderDecorations.get(b);Ce.removeDecoration(Me),Ee._placeholderDecorations.delete(b);for(var Ue=0,Je=F._snippet.placeholders;Ue<Je.length;Ue++){var nt=Je[Ue],vt=F._snippet.offset(nt),Rt=F._snippet.fullLen(nt),Dt=R.a.fromPositions(xe.getPositionAt(F._offset+vt),xe.getPositionAt(F._offset+vt+Rt)),Kt=Ce.addDecoration(Dt,ue._decor.inactive);Ee._placeholderDecorations.set(nt,Kt)}}Ee._placeholderGroups=Object(h.o)(Ee._snippet.placeholders,u.b.compareByIndex)})},ue._decor={active:f.a.register({stickiness:0,className:"snippet-placeholder"}),inactive:f.a.register({stickiness:1,className:"snippet-placeholder"}),activeFinal:f.a.register({stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:f.a.register({stickiness:1,className:"finish-snippet-placeholder"})},ue}(),ee={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0},ie=function(){function ue(ve,Ee,xe){xe===void 0&&(xe=ee),this._templateMerges=[],this._snippets=[],this._editor=ve,this._template=Ee,this._options=xe}return ue.adjustWhitespace=function(ve,Ee,xe,Ce,he){var J=ve.getLineContent(Ee.lineNumber),b=Object(le.t)(J,0,Ee.column-1);xe.walk(function(F){if(F instanceof u.d&&!(F.parent instanceof u.a)){var re=F.value.split(/\r\n|\r|\n/);if(Ce)for(var ne=1;ne<re.length;ne++){var fe=Object(le.t)(re[ne]);re[ne]=ve.normalizeIndentation(b+fe)+re[ne].substr(fe.length)}if(he){var Oe=re.join(ve.getEOL());Oe!==F.value&&F.parent.replace(F,[new u.d(Oe)])}}return!0})},ue.adjustSelection=function(ve,Ee,xe,Ce){if(xe!==0||Ce!==0){var he=Ee.positionLineNumber,J=Ee.positionColumn,b=J-xe,F=J+Ce,re=ve.validateRange({startLineNumber:he,startColumn:b,endLineNumber:he,endColumn:F});Ee=B.a.createWithDirection(re.startLineNumber,re.startColumn,re.endLineNumber,re.endColumn,Ee.getDirection())}return Ee},ue.createEditsAndSnippets=function(ve,Ee,xe,Ce,he,J,b){var F=[],re=[];if(!ve.hasModel())return{edits:F,snippets:re};for(var ne=ve.getModel(),fe=ve.invokeWithinContext(function(Ct){return Ct.get(C.a,g.d)}),Oe=ve.invokeWithinContext(function(Ct){return new H(Ct.get(ke.a,g.d),ne)}),Me=ve.invokeWithinContext(function(Ct){return Ct.get(v.a,g.d)}),Ue=function(){return b||Me&&Me.readTextSync()},Je=0,nt=ne.getValueInRange(ue.adjustSelection(ne,ve.getSelection(),xe,0)),vt=ne.getValueInRange(ue.adjustSelection(ne,ve.getSelection(),0,Ce)),Rt=ne.getLineFirstNonWhitespaceColumn(ve.getSelection().positionLineNumber),Dt=ve.getSelections().map(function(Ct,ht){return{selection:Ct,idx:ht}}).sort(function(Ct,ht){return R.a.compareRangesUsingStarts(Ct.selection,ht.selection)}),Kt=0,ao=Dt;Kt<ao.length;Kt++){var lo=ao[Kt],so=lo.selection,jt=lo.idx,pt=ue.adjustSelection(ne,so,xe,0),gt=ue.adjustSelection(ne,so,0,Ce);nt!==ne.getValueInRange(pt)&&(pt=so),vt!==ne.getValueInRange(gt)&&(gt=so);var Tt=so.setStartPosition(pt.startLineNumber,pt.startColumn).setEndPosition(gt.endLineNumber,gt.endColumn),it=new u.c().parse(Ee,!0,he),et=Tt.getStartPosition();ue.adjustWhitespace(ne,et,it,J||jt>0&&Rt!==ne.getLineFirstNonWhitespaceColumn(so.positionLineNumber),!0),it.resolveVariables(new Q([Oe,new V(Ue,jt,Dt.length,ve.getOption(60)==="spread"),new K(ne,so),new de(ne),new _e,new Se(fe),new Ie]));var ut=ne.getOffsetAt(et)+Je;Je+=it.toString().length-ne.getValueLengthInRange(Tt),F[jt]=w.a.replace(Tt,it.toString()),re[jt]=new se(ve,it,ut)}return{edits:F,snippets:re}},ue.prototype.dispose=function(){Object(T.f)(this._snippets)},ue.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},ue.prototype.insert=function(){var ve=this;if(!this._editor.hasModel())return;var Ee=ue.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),xe=Ee.edits,Ce=Ee.snippets;this._snippets=Ce,this._editor.executeEdits("snippet",xe,function(he){return ve._snippets[0].hasPlaceholder?ve._move(!0):he.map(function(J){return B.a.fromPositions(J.range.getEndPosition())})}),this._editor.revealRange(this._editor.getSelections()[0])},ue.prototype.merge=function(ve,Ee){var xe=this;if(Ee===void 0&&(Ee=ee),!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,ve]);var Ce=ue.createEditsAndSnippets(this._editor,ve,Ee.overwriteBefore,Ee.overwriteAfter,!0,Ee.adjustWhitespace,Ee.clipboardText),he=Ce.edits,J=Ce.snippets;this._editor.executeEdits("snippet",he,function(b){for(var F=0,re=xe._snippets;F<re.length;F++){var ne=re[F];ne.merge(J)}return console.assert(J.length===0),xe._snippets[0].hasPlaceholder?xe._move(void 0):b.map(function(fe){return B.a.fromPositions(fe.range.getEndPosition())})})},ue.prototype.next=function(){var ve=this._move(!0);this._editor.setSelections(ve),this._editor.revealPositionInCenterIfOutsideViewport(ve[0].getPosition())},ue.prototype.prev=function(){var ve=this._move(!1);this._editor.setSelections(ve),this._editor.revealPositionInCenterIfOutsideViewport(ve[0].getPosition())},ue.prototype._move=function(ve){for(var Ee=[],xe=0,Ce=this._snippets;xe<Ce.length;xe++){var he=Ce[xe],J=he.move(ve);Ee.push.apply(Ee,J)}return Ee},Object.defineProperty(ue.prototype,"isAtFirstPlaceholder",{get:function(){return this._snippets[0].isAtFirstPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"isAtLastPlaceholder",{get:function(){return this._snippets[0].isAtLastPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"hasPlaceholder",{get:function(){return this._snippets[0].hasPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"choice",{get:function(){return this._snippets[0].choice},enumerable:!0,configurable:!0}),ue.prototype.isSelectionWithinPlaceholders=function(){if(!this.hasPlaceholder)return!1;var ve=this._editor.getSelections();if(ve.length<this._snippets.length)return!1;for(var Ee=new Map,xe=function(F){var re=F.computePossibleSelections();if(Ee.size===0&&re.forEach(function(ne,fe){ne.sort(R.a.compareRangesUsingStarts);for(var Oe=0,Me=ve;Oe<Me.length;Oe++){var Ue=Me[Oe];if(ne[0].containsRange(Ue)){Ee.set(fe,[]);break}}}),Ee.size===0)return{value:!1};Ee.forEach(function(ne,fe){ne.push.apply(ne,re.get(fe))})},Ce=0,he=this._snippets;Ce<he.length;Ce++){var J=he[Ce],b=xe(J);if(typeof b=="object")return b.value}return ve.sort(R.a.compareRangesUsingStarts),Ee.forEach(function(F,re){if(F.length!==ve.length){Ee.delete(re);return}F.sort(R.a.compareRangesUsingStarts);for(var ne=0;ne<F.length;ne++)if(!F[ne].containsRange(ve[ne])){Ee.delete(re);return}}),Ee.size>0},ue}(),q=function(){return q=Object.assign||function(ue){for(var ve,Ee=1,xe=arguments.length;Ee<xe;Ee++){ve=arguments[Ee];for(var Ce in ve)Object.prototype.hasOwnProperty.call(ve,Ce)&&(ue[Ce]=ve[Ce])}return ue},q.apply(this,arguments)},ce=function(ue,ve,Ee,xe){var Ce=arguments.length,he=Ce<3?ve:xe===null?xe=Object.getOwnPropertyDescriptor(ve,Ee):xe,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(ue,ve,Ee,xe);else for(var b=ue.length-1;b>=0;b--)(J=ue[b])&&(he=(Ce<3?J(he):Ce>3?J(ve,Ee,he):J(ve,Ee))||he);return Ce>3&&he&&Object.defineProperty(ve,Ee,he),he},Z=function(ue,ve){return function(Ee,xe){ve(Ee,xe,ue)}},ye={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},je=function(){function ue(ve,Ee,xe){this._editor=ve,this._logService=Ee,this._snippetListener=new T.b,this._modelVersionId=-1,this._inSnippet=ue.InSnippetMode.bindTo(xe),this._hasNextTabstop=ue.HasNextTabstop.bindTo(xe),this._hasPrevTabstop=ue.HasPrevTabstop.bindTo(xe)}return ue.get=function(ve){return ve.getContribution(ue.ID)},ue.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(T.f)(this._session),this._snippetListener.dispose()},ue.prototype.insert=function(ve,Ee){try{this._doInsert(ve,typeof Ee=="undefined"?ye:q(q({},ye),Ee))}catch(xe){this.cancel(),this._logService.error(xe),this._logService.error("snippet_error"),this._logService.error("insert_template=",ve),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}},ue.prototype._doInsert=function(ve,Ee){var xe=this;if(!this._editor.hasModel())return;this._snippetListener.clear(),Ee.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(ve,Ee):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new ie(this._editor,ve,Ee),this._session.insert()),Ee.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(function(Ce){return Ce.isFlush&&xe.cancel()})),this._snippetListener.add(this._editor.onDidChangeModel(function(){return xe.cancel()})),this._snippetListener.add(this._editor.onDidChangeCursorSelection(function(){return xe._updateState()}))},ue.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()},ue.prototype._handleChoice=function(){var ve=this;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}var Ee=this._session.choice;if(!Ee){this._currentChoice=void 0;return}if(this._currentChoice!==Ee){this._currentChoice=Ee,this._editor.setSelections(this._editor.getSelections().map(function(Ce){return B.a.fromPositions(Ce.getStartPosition())}));var xe=Ee.options[0];Object(D.f)(this._editor,Ee.options.map(function(Ce,he){return{kind:13,label:Ce.value,insertText:Ce.value,sortText:Object(le.J)("a",he+1),range:R.a.fromPositions(ve._editor.getPosition(),ve._editor.getPosition().delta(0,xe.value.length))}}))}},ue.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},ue.prototype.cancel=function(ve){ve===void 0&&(ve=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(T.f)(this._session),this._session=void 0,this._modelVersionId=-1,ve&&this._editor.setSelections([this._editor.getSelection()])},ue.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},ue.prototype.next=function(){this._session&&this._session.next(),this._updateState()},ue.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},ue.ID="snippetController2",ue.InSnippetMode=new W.d("inSnippetMode",!1),ue.HasNextTabstop=new W.d("hasNextTabstop",!1),ue.HasPrevTabstop=new W.d("hasPrevTabstop",!1),ue=ce([Z(1,x.a),Z(2,W.c)],ue),ue}();Object($.h)(je.ID,je);var Ge=$.c.bindToContribution(je.get);Object($.g)(new Ge({id:"jumpToNextSnippetPlaceholder",precondition:W.a.and(je.InSnippetMode,je.HasNextTabstop),handler:function(ue){return ue.next()},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:2}})),Object($.g)(new Ge({id:"jumpToPrevSnippetPlaceholder",precondition:W.a.and(je.InSnippetMode,je.HasPrevTabstop),handler:function(ue){return ue.prev()},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:1024|2}})),Object($.g)(new Ge({id:"leaveSnippet",precondition:je.InSnippetMode,handler:function(ue){return ue.cancel(!0)},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:9,secondary:[1024|9]}})),Object($.g)(new Ge({id:"acceptSnippet",precondition:je.InSnippetMode,handler:function(ue){return ue.finish()}}))},tYmi:function(Lt,N,e){"use strict";e.d(N,"b",function(){return $}),e.d(N,"a",function(){return B});var T=e("bY76"),le=e("MNsG"),$;(function(z){z.inMemory="inmemory",z.vscode="vscode",z.internal="private",z.walkThrough="walkThrough",z.walkThroughSnippet="walkThroughSnippet",z.http="http",z.https="https",z.file="file",z.mailto="mailto",z.untitled="untitled",z.data="data",z.command="command",z.vscodeRemote="vscode-remote",z.vscodeRemoteResource="vscode-remote-resource",z.userData="vscode-userdata"})($||($={}));var R=function(){function z(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}return z.prototype.setPreferredWebSchema=function(D){this._preferredWebSchema=D},z.prototype.rewrite=function(D){if(this._delegate)return this._delegate(D);var W=D.authority,x=this._hosts[W];x&&x.indexOf(":")!==-1&&(x="["+x+"]");var h=this._ports[W],y=this._connectionTokens[W],w="path="+encodeURIComponent(D.path);return typeof y=="string"&&(w+="&tkn="+encodeURIComponent(y)),T.a.from({scheme:le.g?this._preferredWebSchema:$.vscodeRemoteResource,authority:x+":"+h,path:"/vscode-remote-resource",query:w})},z}(),B=new R},twdY:function(Lt,N,e){"use strict";e.d(N,"r",function(){return f}),e.d(N,"A",function(){return v}),e.d(N,"F",function(){return C}),e.d(N,"E",function(){return g}),e.d(N,"y",function(){return u}),e.d(N,"h",function(){return s}),e.d(N,"G",function(){return l}),e.d(N,"z",function(){return c}),e.d(N,"n",function(){return p}),e.d(N,"D",function(){return L}),e.d(N,"u",function(){return I}),e.d(N,"v",function(){return P}),e.d(N,"d",function(){return A}),e.d(N,"x",function(){return Q}),e.d(N,"p",function(){return K}),e.d(N,"m",function(){return H}),e.d(N,"i",function(){return V}),e.d(N,"f",function(){return de}),e.d(N,"e",function(){return _e}),e.d(N,"q",function(){return Se}),e.d(N,"C",function(){return Ie}),e.d(N,"b",function(){return Pe}),e.d(N,"a",function(){return Ve}),e.d(N,"g",function(){return ke}),e.d(N,"j",function(){return se}),e.d(N,"t",function(){return ee}),e.d(N,"s",function(){return ie}),e.d(N,"c",function(){return q}),e.d(N,"w",function(){return ce}),e.d(N,"o",function(){return Z}),e.d(N,"l",function(){return ye}),e.d(N,"k",function(){return je}),e.d(N,"B",function(){return Ge});var T=e("746U"),le=e("bY76"),$=e("aokT"),R=e("MI8n"),B=e("pmY6"),z=e("l2gE");function D(ue,ve,Ee,xe){if(Array.isArray(ue)){for(var Ce=0,he=0,J=ue;he<J.length;he++){var b=J[he],F=D(b,ve,Ee,xe);if(F===10)return F;F>Ce&&(Ce=F)}return Ce}else{if(typeof ue=="string")return xe?ue==="*"?5:ue===Ee?10:0:0;if(ue){var re=ue.language,ne=ue.pattern,fe=ue.scheme,Oe=ue.hasAccessToAllModels;if(!xe&&!Oe)return 0;var Ce=0;if(fe)if(fe===ve.scheme)Ce=10;else if(fe==="*")Ce=5;else return 0;if(re)if(re===Ee)Ce=10;else if(re==="*")Ce=Math.max(Ce,5);else return 0;if(ne)if(ne===ve.fsPath||Object(z.a)(ne,ve.fsPath))Ce=10;else return 0;return Ce}else return 0}}var W=e("G2kB");function x(ue){return typeof ue=="string"?!1:Array.isArray(ue)?ue.every(x):!!ue.exclusive}var h=function(){function ue(){this._clock=0,this._entries=[],this._onDidChange=new R.a}return Object.defineProperty(ue.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),ue.prototype.register=function(ve,Ee){var xe=this,Ce={selector:ve,provider:Ee,_score:-1,_time:this._clock++};return this._entries.push(Ce),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(B.h)(function(){if(Ce){var he=xe._entries.indexOf(Ce);he>=0&&(xe._entries.splice(he,1),xe._lastCandidate=void 0,xe._onDidChange.fire(xe._entries.length),Ce=void 0)}})},ue.prototype.has=function(ve){return this.all(ve).length>0},ue.prototype.all=function(ve){if(!ve)return[];this._updateScores(ve);for(var Ee=[],xe=0,Ce=this._entries;xe<Ce.length;xe++){var he=Ce[xe];he._score>0&&Ee.push(he.provider)}return Ee},ue.prototype.ordered=function(ve){var Ee=[];return this._orderedForEach(ve,function(xe){return Ee.push(xe.provider)}),Ee},ue.prototype.orderedGroups=function(ve){var Ee=[],xe,Ce;return this._orderedForEach(ve,function(he){xe&&Ce===he._score?xe.push(he.provider):(Ce=he._score,xe=[he.provider],Ee.push(xe))}),Ee},ue.prototype._orderedForEach=function(ve,Ee){if(!ve)return;this._updateScores(ve);for(var xe=0,Ce=this._entries;xe<Ce.length;xe++){var he=Ce[xe];he._score>0&&Ee(he)}},ue.prototype._updateScores=function(ve){var Ee={uri:ve.uri.toString(),language:ve.getLanguageIdentifier().language};if(this._lastCandidate&&this._lastCandidate.language===Ee.language&&this._lastCandidate.uri===Ee.uri)return;this._lastCandidate=Ee;for(var xe=0,Ce=this._entries;xe<Ce.length;xe++){var he=Ce[xe];if(he._score=D(he.selector,ve.uri,ve.getLanguageIdentifier().language,Object(W.b)(ve)),x(he.selector)&&he._score>0){for(var J=0,b=this._entries;J<b.length;J++){var F=b[J];F._score=0}he._score=1e3;break}}this._entries.sort(ue._compareByScoreAndTime)},ue._compareByScoreAndTime=function(ve,Ee){return ve._score<Ee._score?1:ve._score>Ee._score?-1:ve._time<Ee._time?1:ve._time>Ee._time?-1:0},ue}(),y=e("QDVR"),w=function(){function ue(){this._map=new Map,this._promises=new Map,this._onDidChange=new R.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}return ue.prototype.fire=function(ve){this._onDidChange.fire({changedLanguages:ve,changedColorMap:!1})},ue.prototype.register=function(ve,Ee){var xe=this;return this._map.set(ve,Ee),this.fire([ve]),Object(B.h)(function(){if(xe._map.get(ve)!==Ee)return;xe._map.delete(ve),xe.fire([ve])})},ue.prototype.registerPromise=function(ve,Ee){var xe=this,Ce=null,he=!1;return this._promises.set(ve,Ee.then(function(J){if(xe._promises.delete(ve),he||!J)return;Ce=xe.register(ve,J)})),Object(B.h)(function(){he=!0,Ce&&Ce.dispose()})},ue.prototype.getPromise=function(ve){var Ee=this,xe=this.get(ve);if(xe)return Promise.resolve(xe);var Ce=this._promises.get(ve);return Ce?Ce.then(function(he){return Ee.get(ve)}):null},ue.prototype.get=function(ve){return Object(T.o)(this._map.get(ve))},ue.prototype.setColorMap=function(ve){this._colorMap=ve,this._onDidChange.fire({changedLanguages:Object(y.d)(this._map),changedColorMap:!0})},ue.prototype.getColorMap=function(){return this._colorMap},ue.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},ue}(),f=function(){function ue(ve,Ee){this.language=ve,this.id=Ee}return ue}(),v=function(){function ue(){}return ue.getLanguageId=function(ve){return(ve&255)>>>0},ue.getTokenType=function(ve){return(ve&1792)>>>8},ue.getFontStyle=function(ve){return(ve&14336)>>>11},ue.getForeground=function(ve){return(ve&8372224)>>>14},ue.getBackground=function(ve){return(ve&4286578688)>>>23},ue.getClassNameFromMetadata=function(ve){var Ee=this.getForeground(ve),xe="mtk"+Ee,Ce=this.getFontStyle(ve);return Ce&1&&(xe+=" mtki"),Ce&2&&(xe+=" mtkb"),Ce&4&&(xe+=" mtku"),xe},ue.getInlineStyleFromMetadata=function(ve,Ee){var xe=this.getForeground(ve),Ce=this.getFontStyle(ve),he="color: "+Ee[xe]+";";return Ce&1&&(he+="font-style: italic;"),Ce&2&&(he+="font-weight: bold;"),Ce&4&&(he+="text-decoration: underline;"),he},ue}(),C=function(){var ue=Object.create(null);return ue[0]="method",ue[1]="function",ue[2]="constructor",ue[3]="field",ue[4]="variable",ue[5]="class",ue[6]="struct",ue[7]="interface",ue[8]="module",ue[9]="property",ue[10]="event",ue[11]="operator",ue[12]="unit",ue[13]="value",ue[14]="constant",ue[15]="enum",ue[16]="enum-member",ue[17]="keyword",ue[25]="snippet",ue[18]="text",ue[19]="color",ue[20]="file",ue[21]="reference",ue[22]="customcolor",ue[23]="folder",ue[24]="type-parameter",function(ve){return ue[ve]||"property"}}(),g=function(){var ue=Object.create(null);return ue.method=0,ue.function=1,ue.constructor=2,ue.field=3,ue.variable=4,ue.class=5,ue.struct=6,ue.interface=7,ue.module=8,ue.property=9,ue.event=10,ue.operator=11,ue.unit=12,ue.value=13,ue.constant=14,ue.enum=15,ue["enum-member"]=16,ue.enumMember=16,ue.keyword=17,ue.snippet=25,ue.text=18,ue.color=19,ue.file=20,ue.reference=21,ue.customcolor=22,ue.folder=23,ue["type-parameter"]=24,ue.typeParameter=24,function(ve,Ee){var xe=ue[ve];return typeof xe=="undefined"&&!Ee&&(xe=9),xe}}(),u;(function(ue){ue[ue.Invoke=1]="Invoke",ue[ue.TriggerCharacter=2]="TriggerCharacter",ue[ue.ContentChange=3]="ContentChange"})(u||(u={}));var s;(function(ue){ue[ue.Text=0]="Text",ue[ue.Read=1]="Read",ue[ue.Write=2]="Write"})(s||(s={}));function l(ue){return ue&&le.a.isUri(ue.uri)&&$.a.isIRange(ue.range)&&($.a.isIRange(ue.originSelectionRange)||$.a.isIRange(ue.targetSelectionRange))}var c;(function(ue){var ve=new Map;ve.set("file",0),ve.set("module",1),ve.set("namespace",2),ve.set("package",3),ve.set("class",4),ve.set("method",5),ve.set("property",6),ve.set("field",7),ve.set("constructor",8),ve.set("enum",9),ve.set("interface",10),ve.set("function",11),ve.set("variable",12),ve.set("constant",13),ve.set("string",14),ve.set("number",15),ve.set("boolean",16),ve.set("array",17),ve.set("object",18),ve.set("key",19),ve.set("null",20),ve.set("enum-member",21),ve.set("struct",22),ve.set("event",23),ve.set("operator",24),ve.set("type-parameter",25);var Ee=new Map;Ee.set(0,"file"),Ee.set(1,"module"),Ee.set(2,"namespace"),Ee.set(3,"package"),Ee.set(4,"class"),Ee.set(5,"method"),Ee.set(6,"property"),Ee.set(7,"field"),Ee.set(8,"constructor"),Ee.set(9,"enum"),Ee.set(10,"interface"),Ee.set(11,"function"),Ee.set(12,"variable"),Ee.set(13,"constant"),Ee.set(14,"string"),Ee.set(15,"number"),Ee.set(16,"boolean"),Ee.set(17,"array"),Ee.set(18,"object"),Ee.set(19,"key"),Ee.set(20,"null"),Ee.set(21,"enum-member"),Ee.set(22,"struct"),Ee.set(23,"event"),Ee.set(24,"operator"),Ee.set(25,"type-parameter");function xe(J){return ve.get(J)}ue.fromString=xe;function Ce(J){return Ee.get(J)}ue.toString=Ce;function he(J,b){return"codicon "+(b?"inline":"block")+" codicon-symbol-"+(Ee.get(J)||"property")}ue.toCssClassName=he})(c||(c={}));var p=function(){function ue(ve){this.value=ve}return ue.Comment=new ue("comment"),ue.Imports=new ue("imports"),ue.Region=new ue("region"),ue}(),_;(function(ue){function ve(Ee){return Object(T.i)(Ee)&&(Boolean(Ee.newUri)||Boolean(Ee.oldUri))}ue.is=ve})(_||(_={}));var L;(function(ue){function ve(Ee){return Object(T.i)(Ee)&&le.a.isUri(Ee.resource)&&Object(T.i)(Ee.edit)}ue.is=ve})(L||(L={}));var I=new h,P=new h,A=new h,Q=new h,K=new h,H=new h,V=new h,de=new h,_e=new h,Se=new h,Ie=new h,Pe=new h,Ve=new h,ke=new h,se=new h,ee=new h,ie=new h,q=new h,ce=new h,Z=new h,ye=new h,je=new h,Ge=new w},uACm:function(Lt,N,e){"use strict";e.d(N,"d",function(){return z}),e.d(N,"b",function(){return W}),e.d(N,"a",function(){return x}),e.d(N,"c",function(){return C});var T=function(){var g=function(u,s){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var p in c)c.hasOwnProperty(p)&&(l[p]=c[p])},g(u,s)};return function(u,s){g(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),le=function(){for(var g=0,u=0,s=arguments.length;u<s;u++)g+=arguments[u].length;for(var l=Array(g),c=0,u=0;u<s;u++)for(var p=arguments[u],_=0,L=p.length;_<L;_++,c++)l[c]=p[_];return l},$,R=function(){function g(){this.value="",this.pos=0}return g.isDigitCharacter=function(u){return u>=48&&u<=57},g.isVariableCharacter=function(u){return u===95||u>=97&&u<=122||u>=65&&u<=90},g.prototype.text=function(u){this.value=u,this.pos=0},g.prototype.tokenText=function(u){return this.value.substr(u.pos,u.len)},g.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var u=this.pos,s=0,l=this.value.charCodeAt(u),c;if(c=g._table[l],typeof c=="number")return this.pos+=1,{type:c,pos:u,len:1};if(g.isDigitCharacter(l)){c=8;do s+=1,l=this.value.charCodeAt(u+s);while(g.isDigitCharacter(l));return this.pos+=s,{type:c,pos:u,len:s}}if(g.isVariableCharacter(l)){c=9;do l=this.value.charCodeAt(u+ ++s);while(g.isVariableCharacter(l)||g.isDigitCharacter(l));return this.pos+=s,{type:c,pos:u,len:s}}c=10;do s+=1,l=this.value.charCodeAt(u+s);while(!isNaN(l)&&typeof g._table[l]=="undefined"&&!g.isDigitCharacter(l)&&!g.isVariableCharacter(l));return this.pos+=s,{type:c,pos:u,len:s}},g._table=($={},$[36]=0,$[58]=1,$[44]=2,$[123]=3,$[125]=4,$[92]=5,$[47]=6,$[124]=7,$[43]=11,$[45]=12,$[63]=13,$),g}(),B=function(){function g(){this._children=[]}return g.prototype.appendChild=function(u){return u instanceof z&&this._children[this._children.length-1]instanceof z?this._children[this._children.length-1].value+=u.value:(u.parent=this,this._children.push(u)),this},g.prototype.replace=function(u,s){var l=u.parent,c=l.children.indexOf(u),p=l.children.slice(0);p.splice.apply(p,le([c,1],s)),l._children=p,function _(L,I){for(var P=0,A=L;P<A.length;P++){var Q=A[P];Q.parent=I,_(Q.children,Q)}}(s,l)},Object.defineProperty(g.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"snippet",{get:function(){for(var u=this;;){if(!u)return;if(u instanceof v)return u;u=u.parent}},enumerable:!0,configurable:!0}),g.prototype.toString=function(){return this.children.reduce(function(u,s){return u+s.toString()},"")},g.prototype.len=function(){return 0},g}(),z=function(g){T(u,g);function u(s){var l=g.call(this)||this;return l.value=s,l}return u.prototype.toString=function(){return this.value},u.prototype.len=function(){return this.value.length},u.prototype.clone=function(){return new u(this.value)},u}(B),D=function(g){T(u,g);function u(){return g!==null&&g.apply(this,arguments)||this}return u}(B),W=function(g){T(u,g);function u(s){var l=g.call(this)||this;return l.index=s,l}return u.compareByIndex=function(s,l){return s.index===l.index?0:s.isFinalTabstop?1:l.isFinalTabstop||s.index<l.index?-1:s.index>l.index?1:0},Object.defineProperty(u.prototype,"isFinalTabstop",{get:function(){return this.index===0},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"choice",{get:function(){return this._children.length===1&&this._children[0]instanceof x?this._children[0]:void 0},enumerable:!0,configurable:!0}),u.prototype.clone=function(){var s=new u(this.index);return this.transform&&(s.transform=this.transform.clone()),s._children=this.children.map(function(l){return l.clone()}),s},u}(D),x=function(g){T(u,g);function u(){var s=g!==null&&g.apply(this,arguments)||this;return s.options=[],s}return u.prototype.appendChild=function(s){return s instanceof z&&(s.parent=this,this.options.push(s)),this},u.prototype.toString=function(){return this.options[0].value},u.prototype.len=function(){return this.options[0].len()},u.prototype.clone=function(){var s=new u;return this.options.forEach(s.appendChild,s),s},u}(B),h=function(g){T(u,g);function u(){var s=g!==null&&g.apply(this,arguments)||this;return s.regexp=new RegExp(""),s}return u.prototype.resolve=function(s){var l=this,c=!1,p=s.replace(this.regexp,function(){return c=!0,l._replace(Array.prototype.slice.call(arguments,0,-2))});return!c&&this._children.some(function(_){return _ instanceof y&&Boolean(_.elseValue)})&&(p=this._replace([])),p},u.prototype._replace=function(s){for(var l="",c=0,p=this._children;c<p.length;c++){var _=p[c];if(_ instanceof y){var L=s[_.index]||"";L=_.resolve(L),l+=L}else l+=_.toString()}return l},u.prototype.toString=function(){return""},u.prototype.clone=function(){var s=new u;return s.regexp=new RegExp(this.regexp.source,""+(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),s._children=this.children.map(function(l){return l.clone()}),s},u}(B),y=function(g){T(u,g);function u(s,l,c,p){var _=g.call(this)||this;return _.index=s,_.shorthandName=l,_.ifValue=c,_.elseValue=p,_}return u.prototype.resolve=function(s){return this.shorthandName==="upcase"?s?s.toLocaleUpperCase():"":this.shorthandName==="downcase"?s?s.toLocaleLowerCase():"":this.shorthandName==="capitalize"?s?s[0].toLocaleUpperCase()+s.substr(1):"":this.shorthandName==="pascalcase"?s?this._toPascalCase(s):"":Boolean(s)&&typeof this.ifValue=="string"?this.ifValue:!Boolean(s)&&typeof this.elseValue=="string"?this.elseValue:s||""},u.prototype._toPascalCase=function(s){var l=s.match(/[a-z]+/gi);return l?l.map(function(c){return c.charAt(0).toUpperCase()+c.substr(1).toLowerCase()}).join(""):s},u.prototype.clone=function(){var s=new u(this.index,this.shorthandName,this.ifValue,this.elseValue);return s},u}(B),w=function(g){T(u,g);function u(s){var l=g.call(this)||this;return l.name=s,l}return u.prototype.resolve=function(s){var l=s.resolve(this);return this.transform&&(l=this.transform.resolve(l||"")),l!==void 0?(this._children=[new z(l)],!0):!1},u.prototype.clone=function(){var s=new u(this.name);return this.transform&&(s.transform=this.transform.clone()),s._children=this.children.map(function(l){return l.clone()}),s},u}(D);function f(g,u){for(var s=le(g);s.length>0;){var l=s.shift(),c=u(l);if(!c)break;s.unshift.apply(s,l.children)}}var v=function(g){T(u,g);function u(){return g!==null&&g.apply(this,arguments)||this}return Object.defineProperty(u.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var s=[],l;this.walk(function(c){return c instanceof W&&(s.push(c),l=!l||l.index<c.index?c:l),!0}),this._placeholders={all:s,last:l}}return this._placeholders},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"placeholders",{get:function(){var s=this.placeholderInfo.all;return s},enumerable:!0,configurable:!0}),u.prototype.offset=function(s){var l=0,c=!1;return this.walk(function(p){return p===s?(c=!0,!1):(l+=p.len(),!0)}),c?l:-1},u.prototype.fullLen=function(s){var l=0;return f([s],function(c){return l+=c.len(),!0}),l},u.prototype.enclosingPlaceholders=function(s){for(var l=[],c=s.parent;c;)c instanceof W&&l.push(c),c=c.parent;return l},u.prototype.resolveVariables=function(s){var l=this;return this.walk(function(c){return c instanceof w&&(c.resolve(s)&&(l._placeholders=void 0)),!0}),this},u.prototype.appendChild=function(s){return this._placeholders=void 0,g.prototype.appendChild.call(this,s)},u.prototype.replace=function(s,l){return this._placeholders=void 0,g.prototype.replace.call(this,s,l)},u.prototype.clone=function(){var s=new u;return this._children=this.children.map(function(l){return l.clone()}),s},u.prototype.walk=function(s){f(this.children,s)},u}(B),C=function(){function g(){this._scanner=new R,this._token={type:14,pos:0,len:0}}return g.escape=function(u){return u.replace(/\$|}|\\/g,"\\$&")},g.prototype.parse=function(u,s,l){this._scanner.text(u),this._token=this._scanner.next();for(var c=new v;this._parse(c););var p=new Map,_=[],L=0;c.walk(function(_e){return _e instanceof W&&(L+=1,_e.isFinalTabstop?p.set(0,void 0):!p.has(_e.index)&&_e.children.length>0?p.set(_e.index,_e.children):_.push(_e)),!0});for(var I=0,P=_;I<P.length;I++){var A=P[I],Q=p.get(A.index);if(Q){var K=new W(A.index);K.transform=A.transform;for(var H=0,V=Q;H<V.length;H++){var de=V[H];K.appendChild(de.clone())}c.replace(A,[K])}}return l||(l=L>0&&s),!p.has(0)&&l&&c.appendChild(new W(0)),c},g.prototype._accept=function(u,s){if(u===void 0||this._token.type===u){var l=s?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),l}return!1},g.prototype._backTo=function(u){return this._scanner.pos=u.pos+u.len,this._token=u,!1},g.prototype._until=function(u){for(var s=this._token;this._token.type!==u;){if(this._token.type===14)return!1;if(this._token.type===5){var l=this._scanner.next();if(l.type!==0&&l.type!==4&&l.type!==5)return!1}this._token=this._scanner.next()}var c=this._scanner.value.substring(s.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),c},g.prototype._parse=function(u){return this._parseEscaped(u)||this._parseTabstopOrVariableName(u)||this._parseComplexPlaceholder(u)||this._parseComplexVariable(u)||this._parseAnything(u)},g.prototype._parseEscaped=function(u){var s;return(s=this._accept(5,!0))?(s=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||s,u.appendChild(new z(s)),!0):!1},g.prototype._parseTabstopOrVariableName=function(u){var s,l=this._token,c=this._accept(0)&&(s=this._accept(9,!0)||this._accept(8,!0));return c?(u.appendChild(/^\d+$/.test(s)?new W(Number(s)):new w(s)),!0):this._backTo(l)},g.prototype._parseComplexPlaceholder=function(u){var s,l=this._token,c=this._accept(0)&&this._accept(3)&&(s=this._accept(8,!0));if(!c)return this._backTo(l);var p=new W(Number(s));if(this._accept(1))for(;;){if(this._accept(4))return u.appendChild(p),!0;if(this._parse(p))continue;return u.appendChild(new z("${"+s+":")),p.children.forEach(u.appendChild,u),!0}else if(p.index>0&&this._accept(7))for(var _=new x;;){if(this._parseChoiceElement(_)){if(this._accept(2))continue;if(this._accept(7)&&(p.appendChild(_),this._accept(4)))return u.appendChild(p),!0}return this._backTo(l),!1}else return this._accept(6)?this._parseTransform(p)?(u.appendChild(p),!0):(this._backTo(l),!1):this._accept(4)?(u.appendChild(p),!0):this._backTo(l)},g.prototype._parseChoiceElement=function(u){for(var s=this._token,l=[];!(this._token.type===2||this._token.type===7);){var c=void 0;if((c=this._accept(5,!0))?c=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||c:c=this._accept(void 0,!0),!c)return this._backTo(s),!1;l.push(c)}return l.length===0?(this._backTo(s),!1):(u.appendChild(new z(l.join(""))),!0)},g.prototype._parseComplexVariable=function(u){var s,l=this._token,c=this._accept(0)&&this._accept(3)&&(s=this._accept(9,!0));if(!c)return this._backTo(l);var p=new w(s);if(this._accept(1))for(;;){if(this._accept(4))return u.appendChild(p),!0;if(this._parse(p))continue;return u.appendChild(new z("${"+s+":")),p.children.forEach(u.appendChild,u),!0}else return this._accept(6)?this._parseTransform(p)?(u.appendChild(p),!0):(this._backTo(l),!1):this._accept(4)?(u.appendChild(p),!0):this._backTo(l)},g.prototype._parseTransform=function(u){for(var s=new h,l="",c="";!this._accept(6);){var p=void 0;if(p=this._accept(5,!0)){p=this._accept(6,!0)||p,l+=p;continue}if(this._token.type!==14){l+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){var p=void 0;if(p=this._accept(5,!0)){p=this._accept(5,!0)||this._accept(6,!0)||p,s.appendChild(new z(p));continue}if(this._parseFormatString(s)||this._parseAnything(s))continue;return!1}for(;!this._accept(4);){if(this._token.type!==14){c+=this._accept(void 0,!0);continue}return!1}try{s.regexp=new RegExp(l,c)}catch(_){return!1}return u.transform=s,!0},g.prototype._parseFormatString=function(u){var s=this._token;if(!this._accept(0))return!1;var l=!1;this._accept(3)&&(l=!0);var c=this._accept(8,!0);if(c)if(l){if(this._accept(4))return u.appendChild(new y(Number(c))),!0;if(!this._accept(1))return this._backTo(s),!1}else return u.appendChild(new y(Number(c))),!0;else return this._backTo(s),!1;if(this._accept(6)){var p=this._accept(9,!0);return!p||!this._accept(4)?(this._backTo(s),!1):(u.appendChild(new y(Number(c),p)),!0)}else if(this._accept(11)){var _=this._until(4);if(_)return u.appendChild(new y(Number(c),void 0,_,void 0)),!0}else if(this._accept(12)){var L=this._until(4);if(L)return u.appendChild(new y(Number(c),void 0,void 0,L)),!0}else if(this._accept(13)){var _=this._until(1);if(_){var L=this._until(4);if(L)return u.appendChild(new y(Number(c),void 0,_,L)),!0}}else{var L=this._until(4);if(L)return u.appendChild(new y(Number(c),void 0,void 0,L)),!0}return this._backTo(s),!1},g.prototype._parseAnything=function(u){return this._token.type!==14?(u.appendChild(new z(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1},g}()},uAX5:function(Lt,N,e){},uDWl:function(Lt,N,e){"use strict";e.d(N,"a",function(){return y});var T=e("D3Dy"),le=e("/kV6"),$=e("MNsG"),R=new Array(230),B=new Array(112);(function(){for(var w=0;w<B.length;w++)B[w]=-1;function f(v,C){R[v]=C,B[C]=v}f(3,7),f(8,1),f(9,2),f(13,3),f(16,4),f(17,5),f(18,6),f(19,7),f(20,8),f(27,9),f(32,10),f(33,11),f(34,12),f(35,13),f(36,14),f(37,15),f(38,16),f(39,17),f(40,18),f(45,19),f(46,20),f(48,21),f(49,22),f(50,23),f(51,24),f(52,25),f(53,26),f(54,27),f(55,28),f(56,29),f(57,30),f(65,31),f(66,32),f(67,33),f(68,34),f(69,35),f(70,36),f(71,37),f(72,38),f(73,39),f(74,40),f(75,41),f(76,42),f(77,43),f(78,44),f(79,45),f(80,46),f(81,47),f(82,48),f(83,49),f(84,50),f(85,51),f(86,52),f(87,53),f(88,54),f(89,55),f(90,56),f(93,58),f(96,93),f(97,94),f(98,95),f(99,96),f(100,97),f(101,98),f(102,99),f(103,100),f(104,101),f(105,102),f(106,103),f(107,104),f(108,105),f(109,106),f(110,107),f(111,108),f(112,59),f(113,60),f(114,61),f(115,62),f(116,63),f(117,64),f(118,65),f(119,66),f(120,67),f(121,68),f(122,69),f(123,70),f(124,71),f(125,72),f(126,73),f(127,74),f(128,75),f(129,76),f(130,77),f(144,78),f(145,79),f(186,80),f(187,81),f(188,82),f(189,83),f(190,84),f(191,85),f(192,86),f(193,110),f(194,111),f(219,87),f(220,88),f(221,89),f(222,90),f(223,91),f(226,92),f(229,109),T.i?f(91,57):T.h?(f(59,80),f(107,81),f(109,83),$.e&&f(224,57)):T.m&&(f(91,57),$.e?f(93,57):f(92,57))})();function z(w){if(w.charCode){var f=String.fromCharCode(w.charCode).toUpperCase();return le.b.fromString(f)}return R[w.keyCode]||0}var D=$.e?256:2048,W=512,x=1024,h=$.e?2048:256,y=function(){function w(f){this._standardKeyboardEventBrand=!0;var v=f;this.browserEvent=v,this.target=v.target,this.ctrlKey=v.ctrlKey,this.shiftKey=v.shiftKey,this.altKey=v.altKey,this.metaKey=v.metaKey,this.keyCode=z(v),this.code=v.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 w.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},w.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},w.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},w.prototype.equals=function(f){return this._asKeybinding===f},w.prototype._computeKeybinding=function(){var f=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(f=this.keyCode);var v=0;return this.ctrlKey&&(v|=D),this.altKey&&(v|=W),this.shiftKey&&(v|=x),this.metaKey&&(v|=h),v|=f,v},w.prototype._computeRuntimeKeybinding=function(){var f=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(f=this.keyCode),new le.e(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,f)},w}()},uWgD:function(Lt,N,e){},ufhN:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return e.e(341).then(e.bind(null,"rMIR"))}})},ujyM:function(Lt,N,e){},undH:function(Lt,N,e){},"v+CO":function(Lt,N,e){"use strict";e.r(N),e.d(N,"EditorActionCommandEntry",function(){return w}),e.d(N,"QuickCommandAction",function(){return f});var T=e("N0LK"),le=e("D3Dy"),$=e("/cxE"),R=e("fpMC"),B=e("Rpxm"),z=e("sswD"),D=e("wQH0"),W=e("rzPn"),x=e("bexQ"),h=e("A9l+"),y=function(){var v=function(C,g){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,s){u.__proto__=s}||function(u,s){for(var l in s)s.hasOwnProperty(l)&&(u[l]=s[l])},v(C,g)};return function(C,g){v(C,g);function u(){this.constructor=C}C.prototype=g===null?Object.create(g):(u.prototype=g.prototype,new u)}}(),w=function(v){y(C,v);function C(g,u,s,l,c){var p=v.call(this)||this;return p.key=g,p.keyAriaLabel=u,p.setHighlights(s),p.action=l,p.editor=c,p}return C.prototype.getLabel=function(){return this.action.label},C.prototype.getAriaLabel=function(){return this.keyAriaLabel?T.r(h.d.ariaLabelEntryWithKey,this.getLabel(),this.keyAriaLabel):T.r(h.d.ariaLabelEntry,this.getLabel())},C.prototype.getGroupLabel=function(){return this.key},C.prototype.run=function(g,u){var s=this;return g===1?(setTimeout(function(){s.editor.focus();try{var l=s.action.run()||Promise.resolve();l.then(void 0,$.e)}catch(c){Object($.e)(c)}},50),!0):!1},C}(B.b),f=function(v){y(C,v);function C(){return v.call(this,h.d.quickCommandActionInput,{id:"editor.action.quickCommand",label:h.d.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:D.a.focus,primary:le.i?512|59:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})||this}return C.prototype.run=function(g,u){var s=this,l=g.get(x.a);this._show(this.getController(u),{getModel:function(c){return new B.c(s._editorActionsToEntries(l,u,c))},getAutoFocus:function(c){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:c}}})},C.prototype._sort=function(g,u){var s=(g.getLabel()||"").toLowerCase(),l=(u.getLabel()||"").toLowerCase();return s.localeCompare(l)},C.prototype._editorActionsToEntries=function(g,u,s){for(var l=u.getSupportedActions(),c=[],p=0,_=l;p<_.length;p++){var L=_[p],I=g.lookupKeybinding(L.id);if(L.label){var P=Object(R.f)(s,L.label);P&&c.push(new w(I&&I.getLabel()||"",I&&I.getAriaLabel()||"",P,L,u))}}return c=c.sort(this._sort),c},C}(W.a);Object(z.f)(f)},vATl:function(Lt,N,e){"use strict";e.d(N,"a",function(){return v}),e.d(N,"b",function(){return C}),e.d(N,"d",function(){return g}),e.d(N,"c",function(){return u});var T=e("N0LK"),le=e("JQT/"),$=e("pmY6"),R=e("sswD"),B=e("T8No"),z=e("24hK"),D=e("Cg/j"),W=e("9fML"),x=function(){var s=function(l,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,_){p.__proto__=_}||function(p,_){for(var L in _)_.hasOwnProperty(L)&&(p[L]=_[L])},s(l,c)};return function(l,c){s(l,c);function p(){this.constructor=l}l.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)}}(),h=Object(D.c)("IEditorCancelService"),y=new B.d("cancellableOperation",!1);Object(W.b)(h,function(){function s(){this._tokens=new WeakMap}return s.prototype.add=function(l,c){var p=this._tokens.get(l);p||(p=l.invokeWithinContext(function(L){var I=y.bindTo(L.get(B.c)),P=new z.a;return{key:I,tokens:P}}),this._tokens.set(l,p));var _;return p.key.set(!0),_=p.tokens.push(c),function(){_&&(_(),p.key.set(!p.tokens.isEmpty()),_=void 0)}},s.prototype.cancel=function(l){var c=this._tokens.get(l);if(!c)return;var p=c.tokens.pop();p&&(p.cancel(),c.key.set(!c.tokens.isEmpty()))},s}(),!0);var w=function(s){x(l,s);function l(c,p){var _=s.call(this,p)||this;return _.editor=c,_._unregister=c.invokeWithinContext(function(L){return L.get(h).add(c,_)}),_}return l.prototype.dispose=function(){this._unregister(),s.prototype.dispose.call(this)},l}(le.b);Object(R.g)(new(function(s){x(l,s);function l(){return s.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:y})||this}return l.prototype.runEditorCommand=function(c,p){c.get(h).cancel(p)},l}(R.c)));var f=function(){var s=function(l,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,_){p.__proto__=_}||function(p,_){for(var L in _)_.hasOwnProperty(L)&&(p[L]=_[L])},s(l,c)};return function(l,c){s(l,c);function p(){this.constructor=l}l.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)}}(),v=function(){function s(l,c){if(this.flags=c,(this.flags&1)!==0){var p=l.getModel();this.modelVersionId=p?T.r("{0}#{1}",p.uri.toString(),p.getVersionId()):null}else this.modelVersionId=null;(this.flags&4)!==0?this.position=l.getPosition():this.position=null,(this.flags&2)!==0?this.selection=l.getSelection():this.selection=null,(this.flags&8)!==0?(this.scrollLeft=l.getScrollLeft(),this.scrollTop=l.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}return s.prototype._equals=function(l){if(!(l instanceof s))return!1;var c=l;return this.modelVersionId!==c.modelVersionId||(this.scrollLeft!==c.scrollLeft||this.scrollTop!==c.scrollTop||(!this.position&&c.position||this.position&&!c.position||this.position&&c.position&&!this.position.equals(c.position)))?!1:!(!this.selection&&c.selection||this.selection&&!c.selection||this.selection&&c.selection&&!this.selection.equalsRange(c.selection))},s.prototype.validate=function(l){return this._equals(new s(l,this.flags))},s}(),C=function(s){f(l,s);function l(c,p,_){var L=s.call(this,c,_)||this;return L.editor=c,L._listener=new $.b,p&4&&L._listener.add(c.onDidChangeCursorPosition(function(I){return L.cancel()})),p&2&&L._listener.add(c.onDidChangeCursorSelection(function(I){return L.cancel()})),p&8&&L._listener.add(c.onDidScrollChange(function(I){return L.cancel()})),p&1&&(L._listener.add(c.onDidChangeModel(function(I){return L.cancel()})),L._listener.add(c.onDidChangeModelContent(function(I){return L.cancel()}))),L}return l.prototype.dispose=function(){this._listener.dispose(),s.prototype.dispose.call(this)},l}(w),g=function(s){f(l,s);function l(c,p){var _=s.call(this,p)||this;return _._listener=c.onDidChangeContent(function(){return _.cancel()}),_}return l.prototype.dispose=function(){this._listener.dispose(),s.prototype.dispose.call(this)},l}(le.b),u=function(){function s(l,c){this._visiblePosition=l,this._visiblePositionScrollDelta=c}return s.capture=function(l){var c=null,p=0;if(l.getScrollTop()!==0){var _=l.getVisibleRanges();if(_.length>0){c=_[0].getStartPosition();var L=l.getTopForPosition(c.lineNumber,c.column);p=l.getScrollTop()-L}}return new s(c,p)},s.prototype.restore=function(l){if(this._visiblePosition){var c=l.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);l.setScrollTop(c+this._visiblePositionScrollDelta)}},s}()},vMFT:function(Lt,N,e){},vRMv:function(Lt,N,e){"use strict";e.d(N,"b",function(){return x}),e.d(N,"a",function(){return h}),e.d(N,"c",function(){return y}),e.d(N,"e",function(){return w}),e.d(N,"d",function(){return f});var T=e("6OMU"),le=e("JQT/"),$=e("/cxE"),R=e("sswD"),B=e("twdY"),z=function(v,C,g,u){function s(l){return l instanceof g?l:new g(function(c){c(l)})}return new(g||(g=Promise))(function(l,c){function p(I){try{L(u.next(I))}catch(P){c(P)}}function _(I){try{L(u.throw(I))}catch(P){c(P)}}function L(I){I.done?l(I.value):s(I.value).then(p,_)}L((u=u.apply(v,C||[])).next())})},D=function(v,C){var g={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},u,s,l,c;return c={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function p(L){return function(I){return _([L,I])}}function _(L){if(u)throw new TypeError("Generator is already executing.");for(;g;)try{if(u=1,s&&(l=L[0]&2?s.return:L[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,L[1])).done)return l;(s=0,l)&&(L=[L[0]&2,l.value]);switch(L[0]){case 0:case 1:l=L;break;case 4:return g.label++,{value:L[1],done:!1};case 5:g.label++,s=L[1],L=[0];continue;case 7:L=g.ops.pop(),g.trys.pop();continue;default:if(!(l=g.trys,l=l.length>0&&l[l.length-1])&&(L[0]===6||L[0]===2)){g=0;continue}if(L[0]===3&&(!l||L[1]>l[0]&&L[1]<l[3])){g.label=L[1];break}if(L[0]===6&&g.label<l[1]){g.label=l[1],l=L;break}if(l&&g.label<l[2]){g.label=l[2],g.ops.push(L);break}l[2]&&g.ops.pop(),g.trys.pop();continue}L=C.call(v,g)}catch(I){L=[6,I],s=0}finally{u=l=0}if(L[0]&5)throw L[1];return{value:L[0]?L[1]:void 0,done:!0}}};function W(v,C,g,u){var s=g.ordered(v),l=s.map(function(c){return Promise.resolve(u(c,v,C)).then(void 0,function(p){Object($.f)(p);return})});return Promise.all(l).then(T.m).then(T.d)}function x(v,C,g){return W(v,C,B.f,function(u,s,l){return u.provideDefinition(s,l,g)})}function h(v,C,g){return W(v,C,B.e,function(u,s,l){return u.provideDeclaration(s,l,g)})}function y(v,C,g){return W(v,C,B.q,function(u,s,l){return u.provideImplementation(s,l,g)})}function w(v,C,g){return W(v,C,B.C,function(u,s,l){return u.provideTypeDefinition(s,l,g)})}function f(v,C,g,u){var s=this;return W(v,C,B.u,function(l,c,p){return z(s,void 0,void 0,function(){var _,L;return D(this,function(I){switch(I.label){case 0:return[4,l.provideReferences(c,p,{includeDeclaration:!0},u)];case 1:return _=I.sent(),!g||!_||_.length!==2?[2,_]:[4,l.provideReferences(c,p,{includeDeclaration:!1},u)];case 2:return L=I.sent(),L&&L.length===1?[2,L]:[2,_]}})})})}Object(R.k)("_executeDefinitionProvider",function(v,C){return x(v,C,le.a.None)}),Object(R.k)("_executeDeclarationProvider",function(v,C){return h(v,C,le.a.None)}),Object(R.k)("_executeImplementationProvider",function(v,C){return y(v,C,le.a.None)}),Object(R.k)("_executeTypeDefinitionProvider",function(v,C){return w(v,C,le.a.None)}),Object(R.k)("_executeReferenceProvider",function(v,C){return f(v,C,!1,le.a.None)})},vVA1:function(Lt,N,e){"use strict";e.r(N);var T=e("sswD"),le=e("scqD"),$=e("A9l+"),R=function(){var z=function(D,W){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,h){x.__proto__=h}||function(x,h){for(var y in h)h.hasOwnProperty(y)&&(x[y]=h[y])},z(D,W)};return function(D,W){z(D,W);function x(){this.constructor=D}D.prototype=W===null?Object.create(W):(x.prototype=W.prototype,new x)}}(),B=function(z){R(D,z);function D(){var W=z.call(this,{id:"editor.action.toggleHighContrast",label:$.h.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0})||this;return W._originalThemeName=null,W}return D.prototype.run=function(W,x){var h=W.get(le.a);this._originalThemeName?(h.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=h.getTheme().themeName,h.setTheme("hc-black"))},D}(T.b);Object(T.f)(B)},vl9R:function(Lt,N,e){"use strict";e.d(N,"d",function(){return le}),e.d(N,"b",function(){return $}),e.d(N,"c",function(){return R}),e.d(N,"a",function(){return B});var T=Object.prototype.hasOwnProperty;function le(z){var D=[];for(var W in z)T.call(z,W)&&D.push(z[W]);return D}function $(z){for(var D in z)if(T.call(z,D))return z[D];return}function R(z,D){var W=function(y){if(T.call(z,y)){var w=D({key:y,value:z[y]},function(){delete z[y]});if(w===!1)return{value:void 0}}};for(var x in z){var h=W(x);if(typeof h=="object")return h.value}}var B=function(){function z(){this.map=new Map}return z.prototype.add=function(D,W){var x=this.map.get(D);x||(x=new Set,this.map.set(D,x)),x.add(W)},z.prototype.delete=function(D,W){var x=this.map.get(D);if(!x)return;x.delete(W),x.size===0&&this.map.delete(D)},z.prototype.forEach=function(D,W){var x=this.map.get(D);if(!x)return;x.forEach(W)},z}()},"w29/":function(Lt,N,e){"use strict";e.r(N);var T=e("5DEy"),le=e.n(T),$=e("3/fG"),R=e("D3Dy"),B=e("MNsG"),z=e("5TxY"),D=e("sswD"),W=e("Vxe3"),x=e("wQH0"),h=function(){var p=function(_,L){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,P){I.__proto__=P}||function(I,P){for(var A in P)P.hasOwnProperty(A)&&(I[A]=P[A])},p(_,L)};return function(_,L){p(_,L);function I(){this.constructor=_}_.prototype=L===null?Object.create(L):(I.prototype=L.prototype,new I)}}(),y="9_cutcopypaste",w=B.f||document.queryCommandSupported("cut"),f=B.f||document.queryCommandSupported("copy"),v=f&&!R.f,C=B.f||!R.d&&document.queryCommandSupported("paste"),g=function(p){h(_,p);function _(L,I){var P=p.call(this,I)||this;return P.browserCommand=L,P}return _.prototype.runCommand=function(L,I){var P=L.get(W.a).getFocusedCodeEditor();if(P&&P.hasTextFocus()){P.trigger("keyboard",this.id,I);return}document.execCommand(this.browserCommand)},_.prototype.run=function(L,I){I.focus(),document.execCommand(this.browserCommand)},_}(D.b),u=function(p){h(_,p);function _(){var L=this,I={kbExpr:x.a.textInputFocus,primary:2048|54,win:{primary:2048|54,secondary:[1024|20]},weight:100};return B.f||(I=void 0),L=p.call(this,"cut",{id:"editor.action.clipboardCutAction",label:$.a("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:x.a.writable,kbOpts:I,contextMenuOpts:{group:y,order:1},menuOpts:{menuId:17,group:"2_ccp",title:$.a({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this,L}return _.prototype.run=function(L,I){if(!I.hasModel())return;var P=I.getOption(25);if(!P&&I.getSelection().isEmpty())return;p.prototype.run.call(this,L,I)},_}(g),s=function(p){h(_,p);function _(){var L=this,I={kbExpr:x.a.textInputFocus,primary:2048|33,win:{primary:2048|33,secondary:[2048|19]},weight:100};return B.f||(I=void 0),L=p.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:$.a("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:void 0,kbOpts:I,contextMenuOpts:{group:y,order:2},menuOpts:{menuId:17,group:"2_ccp",title:$.a({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this,L}return _.prototype.run=function(L,I){if(!I.hasModel())return;var P=I.getOption(25);if(!P&&I.getSelection().isEmpty())return;p.prototype.run.call(this,L,I)},_}(g),l=function(p){h(_,p);function _(){var L=this,I={kbExpr:x.a.textInputFocus,primary:2048|52,win:{primary:2048|52,secondary:[1024|19]},weight:100};return B.f||(I=void 0),L=p.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:$.a("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:x.a.writable,kbOpts:I,contextMenuOpts:{group:y,order:3},menuOpts:{menuId:17,group:"2_ccp",title:$.a({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this,L}return _}(g),c=function(p){h(_,p);function _(){return p.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:$.a("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:0,weight:100}})||this}return _.prototype.run=function(L,I){if(!I.hasModel())return;var P=I.getOption(25);if(!P&&I.getSelection().isEmpty())return;z.a.forceCopyWithSyntaxHighlighting=!0,p.prototype.run.call(this,L,I),z.a.forceCopyWithSyntaxHighlighting=!1},_}(g);w&&Object(D.f)(u),f&&Object(D.f)(s),C&&Object(D.f)(l),v&&Object(D.f)(c)},w9QG:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return e.e(340).then(e.bind(null,"Czvm"))}})},wQH0:function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("T8No"),le;(function($){$.editorSimpleInput=new T.d("editorSimpleInput",!1),$.editorTextFocus=new T.d("editorTextFocus",!1),$.focus=new T.d("editorFocus",!1),$.textInputFocus=new T.d("textInputFocus",!1),$.readOnly=new T.d("editorReadonly",!1),$.writable=$.readOnly.toNegated(),$.hasNonEmptySelection=new T.d("editorHasSelection",!1),$.hasOnlyEmptySelection=$.hasNonEmptySelection.toNegated(),$.hasMultipleSelections=new T.d("editorHasMultipleSelections",!1),$.hasSingleSelection=$.hasMultipleSelections.toNegated(),$.tabMovesFocus=new T.d("editorTabMovesFocus",!1),$.tabDoesNotMoveFocus=$.tabMovesFocus.toNegated(),$.isInEmbeddedEditor=new T.d("isInEmbeddedEditor",!1),$.canUndo=new T.d("canUndo",!1),$.canRedo=new T.d("canRedo",!1),$.languageId=new T.d("editorLangId",""),$.hasCompletionItemProvider=new T.d("editorHasCompletionItemProvider",!1),$.hasCodeActionsProvider=new T.d("editorHasCodeActionsProvider",!1),$.hasCodeLensProvider=new T.d("editorHasCodeLensProvider",!1),$.hasDefinitionProvider=new T.d("editorHasDefinitionProvider",!1),$.hasDeclarationProvider=new T.d("editorHasDeclarationProvider",!1),$.hasImplementationProvider=new T.d("editorHasImplementationProvider",!1),$.hasTypeDefinitionProvider=new T.d("editorHasTypeDefinitionProvider",!1),$.hasHoverProvider=new T.d("editorHasHoverProvider",!1),$.hasDocumentHighlightProvider=new T.d("editorHasDocumentHighlightProvider",!1),$.hasDocumentSymbolProvider=new T.d("editorHasDocumentSymbolProvider",!1),$.hasReferenceProvider=new T.d("editorHasReferenceProvider",!1),$.hasRenameProvider=new T.d("editorHasRenameProvider",!1),$.hasSignatureHelpProvider=new T.d("editorHasSignatureHelpProvider",!1),$.hasDocumentFormattingProvider=new T.d("editorHasDocumentFormattingProvider",!1),$.hasDocumentSelectionFormattingProvider=new T.d("editorHasDocumentSelectionFormattingProvider",!1),$.hasMultipleDocumentFormattingProvider=new T.d("editorHasMultipleDocumentFormattingProvider",!1),$.hasMultipleDocumentSelectionFormattingProvider=new T.d("editorHasMultipleDocumentSelectionFormattingProvider",!1)})(le||(le={}))},woZy:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return e.e(325).then(e.bind(null,"I+Au"))}})},wxcJ:function(Lt,N,e){"use strict";(function(T){e.d(N,"a",function(){return R}),e.d(N,"b",function(){return B}),e.d(N,"c",function(){return z});var le=e("MNsG"),$=typeof T=="undefined"?{cwd:function(){return"/"},env:Object.create(null),get platform(){return le.h?"win32":le.e?"darwin":"linux"},nextTick:function(D){return Object(le.i)(D)}}:T,R=$.cwd,B=$.env,z=$.platform}).call(this,e("Q2Ig"))},"x/UI":function(Lt,N,e){"use strict";e.d(N,"a",function(){return le});var T=e("Cg/j"),le=Object(T.c)("IWorkspaceEditService")},xONI:function(Lt,N,e){"use strict";e.d(N,"a",function(){return h});var T=e("KgQ1"),le=e.n(T),$=e("EffR"),R=e("7lZ/"),B=e("pmY6"),z=e("nuFA"),D=e("qj0h"),W=function(){var v=function(C,g){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,s){u.__proto__=s}||function(u,s){for(var l in s)s.hasOwnProperty(l)&&(u[l]=s[l])},v(C,g)};return function(C,g){v(C,g);function u(){this.constructor=C}C.prototype=g===null?Object.create(g):(u.prototype=g.prototype,new u)}}(),x=function(){function v(C){this._element=C}return Object.defineProperty(v.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"textContent",{set:function(C){if(this.disposed||C===this._textContent)return;this._textContent=C,this._element.textContent=C},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"className",{set:function(C){if(this.disposed||C===this._className)return;this._className=C,this._element.className=C},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"title",{set:function(C){if(this.disposed||C===this._title)return;this._title=C,this._title?this._element.title=C:this._element.removeAttribute("title")},enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"empty",{set:function(C){if(this.disposed||C===this._empty)return;this._empty=C,this._element.style.marginLeft=C?"0":""},enumerable:!0,configurable:!0}),v.prototype.dispose=function(){this.disposed=!0},v}(),h=function(v){W(C,v);function C(g,u){var s=v.call(this)||this;s.domNode=s._register(new x($.q(g,$.a(".monaco-icon-label"))));var l=$.q(s.domNode.element,$.a(".monaco-icon-label-container")),c=$.q(l,$.a("span.monaco-icon-name-container"));return s.descriptionContainer=s._register(new x($.q(l,$.a("span.monaco-icon-description-container")))),(u==null?void 0:u.supportHighlights)?s.nameNode=new f(c,!!u.supportCodicons):s.nameNode=new y(c),(u==null?void 0:u.supportDescriptionHighlights)?s.descriptionNodeFactory=function(){return new R.a($.q(s.descriptionContainer.element,$.a("span.label-description")),!!u.supportCodicons)}:s.descriptionNodeFactory=function(){return s._register(new x($.q(s.descriptionContainer.element,$.a("span.label-description"))))},s}return C.prototype.setLabel=function(g,u,s){var l=["monaco-icon-label"];s&&(s.extraClasses&&l.push.apply(l,s.extraClasses),s.italic&&l.push("italic")),this.domNode.className=l.join(" "),this.domNode.title=(s==null?void 0:s.title)||"",this.nameNode.setLabel(g,s),(u||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof R.a?(this.descriptionNode.set(u||"",s?s.descriptionMatches:void 0),(s==null?void 0:s.descriptionTitle)?this.descriptionNode.element.title=s.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=u||"",this.descriptionNode.title=(s==null?void 0:s.descriptionTitle)||"",this.descriptionNode.empty=!u))},C}(B.a),y=function(){function v(C){this.container=C,this.label=void 0,this.singleLabel=void 0}return v.prototype.setLabel=function(C,g){if(this.label===C&&Object(D.e)(this.options,g))return;if(this.label=C,this.options=g,typeof C=="string")this.singleLabel||(this.container.innerHTML="",$.P(this.container,"multiple"),this.singleLabel=$.q(this.container,$.a("a.label-name",{id:g==null?void 0:g.domId}))),this.singleLabel.textContent=C;else{this.container.innerHTML="",$.f(this.container,"multiple"),this.singleLabel=void 0;for(var u=0;u<C.length;u++){var s=C[u],l=(g==null?void 0:g.domId)&&(g==null?void 0:g.domId)+"_"+u;$.q(this.container,$.a("a.label-name",{id:l,"data-icon-label-count":C.length,"data-icon-label-index":u},s)),u<C.length-1&&$.q(this.container,$.a("span.label-separator",void 0,(g==null?void 0:g.separator)||"/"))}}},v}();function w(v,C,g){if(!g)return;var u=0;return v.map(function(s){var l={start:u,end:u+s.length},c=g.map(function(p){return z.a.intersect(l,p)}).filter(function(p){return!z.a.isEmpty(p)}).map(function(p){var _=p.start,L=p.end;return{start:_-u,end:L-u}});return u=l.end+C.length,c})}var f=function(){function v(C,g){this.container=C,this.supportCodicons=g,this.label=void 0,this.singleLabel=void 0}return v.prototype.setLabel=function(C,g){if(this.label===C&&Object(D.e)(this.options,g))return;if(this.label=C,this.options=g,typeof C=="string")this.singleLabel||(this.container.innerHTML="",$.P(this.container,"multiple"),this.singleLabel=new R.a($.q(this.container,$.a("a.label-name",{id:g==null?void 0:g.domId})),this.supportCodicons)),this.singleLabel.set(C,g==null?void 0:g.matches,g==null?void 0:g.title,g==null?void 0:g.labelEscapeNewLines);else{this.container.innerHTML="",$.f(this.container,"multiple"),this.singleLabel=void 0;for(var u=(g==null?void 0:g.separator)||"/",s=w(C,u,g==null?void 0:g.matches),l=0;l<C.length;l++){var c=C[l],p=s?s[l]:void 0,_=(g==null?void 0:g.domId)&&(g==null?void 0:g.domId)+"_"+l,L=$.a("a.label-name",{id:_,"data-icon-label-count":C.length,"data-icon-label-index":l}),I=new R.a($.q(this.container,L),this.supportCodicons);I.set(c,p,g==null?void 0:g.title,g==null?void 0:g.labelEscapeNewLines),l<C.length-1&&$.q(L,$.a("span.label-separator",void 0,u))}}},v}()},xYNL:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return e.e(315).then(e.bind(null,"tGOS"))}})},xmOD:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return e.e(335).then(e.bind(null,"fB/Z"))}})},y3CF:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return e.e(322).then(e.bind(null,"YdqL"))}})},yEoX:function(Lt,N,e){},yI7H:function(Lt,N,e){},yKqg:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return e.e(331).then(e.bind(null,"LdT9"))}})},yqFB:function(Lt,N,e){},yrU1:function(Lt,N,e){},z3hU:function(Lt,N,e){"use strict";e.r(N),e.d(N,"LanguageServiceDefaultsImpl",function(){return R});var T=e("M/lh"),le="3.7.5";"use strict";var $=monaco.Emitter,R=function(){function g(u,s){this._onDidChange=new $,this._onDidExtraLibsChange=new $,this._extraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(u),this.setDiagnosticsOptions(s),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(g.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!0,configurable:!0}),g.prototype.getExtraLibs=function(){return this._extraLibs},g.prototype.addExtraLib=function(u,s){var l=this,c;if(typeof s=="undefined"?c="ts:extralib-"+Math.random().toString(36).substring(2,15):c=s,this._extraLibs[c]&&this._extraLibs[c].content===u)return{dispose:function(){}};var p=1;return this._extraLibs[c]&&(p=this._extraLibs[c].version+1),this._extraLibs[c]={content:u,version:p},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var _=l._extraLibs[c];if(!_)return;if(_.version!==p)return;delete l._extraLibs[c],l._fireOnDidExtraLibsChangeSoon()}}},g.prototype.setExtraLibs=function(u){if(this._extraLibs=Object.create(null),u&&u.length>0)for(var s=0,l=u;s<l.length;s++){var c=l[s],p=c.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),_=c.content;this._extraLibs[p]={content:_,version:1}}this._fireOnDidExtraLibsChangeSoon()},g.prototype._fireOnDidExtraLibsChangeSoon=function(){var u=this;if(this._onDidExtraLibsChangeTimeout!==-1)return;this._onDidExtraLibsChangeTimeout=setTimeout(function(){u._onDidExtraLibsChangeTimeout=-1,u._onDidExtraLibsChange.fire(void 0)},0)},g.prototype.getCompilerOptions=function(){return this._compilerOptions},g.prototype.setCompilerOptions=function(u){this._compilerOptions=u||Object.create(null),this._onDidChange.fire(void 0)},g.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},g.prototype.setDiagnosticsOptions=function(u){this._diagnosticsOptions=u||Object.create(null),this._onDidChange.fire(void 0)},g.prototype.setMaximumWorkerIdleTime=function(u){},g.prototype.setEagerModelSync=function(u){this._eagerModelSync=u},g.prototype.getEagerModelSync=function(){return this._eagerModelSync},g}(),B;(function(g){g[g.None=0]="None",g[g.CommonJS=1]="CommonJS",g[g.AMD=2]="AMD",g[g.UMD=3]="UMD",g[g.System=4]="System",g[g.ES2015=5]="ES2015",g[g.ESNext=99]="ESNext"})(B||(B={}));var z;(function(g){g[g.None=0]="None",g[g.Preserve=1]="Preserve",g[g.React=2]="React",g[g.ReactNative=3]="ReactNative"})(z||(z={}));var D;(function(g){g[g.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",g[g.LineFeed=1]="LineFeed"})(D||(D={}));var W;(function(g){g[g.ES3=0]="ES3",g[g.ES5=1]="ES5",g[g.ES2015=2]="ES2015",g[g.ES2016=3]="ES2016",g[g.ES2017=4]="ES2017",g[g.ES2018=5]="ES2018",g[g.ES2019=6]="ES2019",g[g.ES2020=7]="ES2020",g[g.ESNext=99]="ESNext",g[g.JSON=100]="JSON",g[g.Latest=99]="Latest"})(W||(W={}));var x;(function(g){g[g.Classic=1]="Classic",g[g.NodeJs=2]="NodeJs"})(x||(x={}));var h=new R({allowNonTsExtensions:!0,target:W.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),y=new R({allowNonTsExtensions:!0,allowJs:!0,target:W.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function w(){return C().then(function(g){return g.getTypeScriptWorker()})}function f(){return C().then(function(g){return g.getJavaScriptWorker()})}function v(){return{ModuleKind:B,JsxEmit:z,NewLineKind:D,ScriptTarget:W,ModuleResolutionKind:x,typescriptVersion:le,typescriptDefaults:h,javascriptDefaults:y,getTypeScriptWorker:w,getJavaScriptWorker:f}}monaco.languages.typescript=v();function C(){return e.e(349).then(e.bind(null,"4yiN"))}monaco.languages.onLanguage("typescript",function(){return C().then(function(g){return g.setupTypeScript(h)})}),monaco.languages.onLanguage("javascript",function(){return C().then(function(g){return g.setupJavaScript(y)})})},zN7H:function(Lt,N,e){"use strict";e.d(N,"a",function(){return W});var T=e("N0LK"),le=e("Ll0s"),$=e("aokT"),R=e("gCVg"),B=e("cMvZ"),z=Object.create(null);function D(x,h){z[x]||(z[x]=["",x]);for(var y=z[x],w=y.length;w<=h;w++)y[w]=y[w-1]+x;return y[h]}var W=function(){function x(h,y){this._opts=y,this._selection=h,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return x.unshiftIndent=function(h,y,w,f,v){var C=le.a.visibleColumnFromColumn(h,y,w);if(v){var g=D(" ",f),u=le.a.prevIndentTabStop(C,f),s=u/f;return D(g,s)}else{var g=" ",u=le.a.prevRenderTabStop(C,w),s=u/w;return D(g,s)}},x.shiftIndent=function(h,y,w,f,v){var C=le.a.visibleColumnFromColumn(h,y,w);if(v){var g=D(" ",f),u=le.a.nextIndentTabStop(C,f),s=u/f;return D(g,s)}else{var g=" ",u=le.a.nextRenderTabStop(C,w),s=u/w;return D(g,s)}},x.prototype._addEditOperation=function(h,y,w){this._useLastEditRangeForCursorEndPosition?h.addTrackedEditOperation(y,w):h.addEditOperation(y,w)},x.prototype.getEditOperations=function(h,y){var w=this._selection.startLineNumber,f=this._selection.endLineNumber;this._selection.endColumn===1&&w!==f&&(f=f-1);var v=this._opts,C=v.tabSize,g=v.indentSize,u=v.insertSpaces,s=w===f;if(this._selection.isEmpty()&&(/^\s*$/.test(h.getLineContent(w))&&(this._useLastEditRangeForCursorEndPosition=!0)),this._opts.useTabStops)for(var l=0,c=0,p=w;p<=f;p++,l=c){c=0;var _=h.getLineContent(p),L=T.q(_);if(this._opts.isUnshift&&(_.length===0||L===0))continue;if(!s&&!this._opts.isUnshift&&_.length===0)continue;if(L===-1&&(L=_.length),p>1){var I=le.a.visibleColumnFromColumn(_,L+1,C);if(I%g!==0&&h.isCheapToTokenize(p-1)){var P=B.a.getEnterAction(this._opts.autoIndent,h,new $.a(p-1,h.getLineMaxColumn(p-1),p-1,h.getLineMaxColumn(p-1)));if(P){if(c=l,P.appendText)for(var A=0,Q=P.appendText.length;A<Q&&c<g&&P.appendText.charCodeAt(A)===32;A++)c++;P.removeText&&(c=Math.max(0,c-P.removeText));for(var A=0;A<c&&!(L===0||_.charCodeAt(L-1)!==32);A++)L--}}}if(this._opts.isUnshift&&L===0)continue;var K=void 0;this._opts.isUnshift?K=x.unshiftIndent(_,L+1,C,g,u):K=x.shiftIndent(_,L+1,C,g,u),this._addEditOperation(y,new $.a(p,1,p,L+1),K),p===w&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=L+1)}else for(var H=u?D(" ",g):" ",p=w;p<=f;p++){var _=h.getLineContent(p),L=T.q(_);if(this._opts.isUnshift&&(_.length===0||L===0))continue;if(!s&&!this._opts.isUnshift&&_.length===0)continue;if(L===-1&&(L=_.length),this._opts.isUnshift&&L===0)continue;if(this._opts.isUnshift){L=Math.min(L,g);for(var V=0;V<L;V++){var de=_.charCodeAt(V);if(de===9){L=V+1;break}}this._addEditOperation(y,new $.a(p,1,p,L+1),"")}else this._addEditOperation(y,new $.a(p,1,p,1),H),p===w&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn===1)}this._selectionId=y.trackSelection(this._selection)},x.prototype.computeCursorState=function(h,y){if(this._useLastEditRangeForCursorEndPosition){var w=y.getInverseEditOperations()[0];return new R.a(w.range.endLineNumber,w.range.endColumn,w.range.endLineNumber,w.range.endColumn)}var f=y.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var v=this._selection.startColumn,C=f.startColumn;return C<=v?f:f.getDirection()===0?new R.a(f.startLineNumber,v,f.endLineNumber,f.endColumn):new R.a(f.endLineNumber,f.endColumn,f.startLineNumber,v)}return f},x}()},zQEy:function(Lt,N,e){"use strict";e.r(N);var T=e("+hIS");Object(T.a)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return e.e(307).then(e.bind(null,"On+f"))}})},zrhQ:function(Lt,N,e){"use strict";e.d(N,"c",function(){return le}),e.d(N,"b",function(){return R}),e.d(N,"a",function(){return B});function T(z,D){var W=Math.pow(10,D);return Math.round(z*W)/W}var le=function(){function z(D,W,x,h){h===void 0&&(h=1),this.r=Math.min(255,Math.max(0,D))|0,this.g=Math.min(255,Math.max(0,W))|0,this.b=Math.min(255,Math.max(0,x))|0,this.a=T(Math.max(Math.min(1,h),0),3)}return z.equals=function(D,W){return D.r===W.r&&D.g===W.g&&D.b===W.b&&D.a===W.a},z}(),$=function(){function z(D,W,x,h){this.h=Math.max(Math.min(360,D),0)|0,this.s=T(Math.max(Math.min(1,W),0),3),this.l=T(Math.max(Math.min(1,x),0),3),this.a=T(Math.max(Math.min(1,h),0),3)}return z.equals=function(D,W){return D.h===W.h&&D.s===W.s&&D.l===W.l&&D.a===W.a},z.fromRGBA=function(D){var W=D.r/255,x=D.g/255,h=D.b/255,y=D.a,w=Math.max(W,x,h),f=Math.min(W,x,h),v=0,C=0,g=(f+w)/2,u=w-f;if(u>0){C=Math.min(g<=.5?u/(2*g):u/(2-2*g),1);switch(w){case W:v=(x-h)/u+(x<h?6:0);break;case x:v=(h-W)/u+2;break;case h:v=(W-x)/u+4;break}v*=60,v=Math.round(v)}return new z(v,C,g,y)},z._hue2rgb=function(D,W,x){return x<0&&(x+=1),x>1&&(x-=1),x<1/6?D+(W-D)*6*x:x<1/2?W:x<2/3?D+(W-D)*(2/3-x)*6:D},z.toRGBA=function(D){var W=D.h/360,x=D.s,h=D.l,y=D.a,w,f,v;if(x===0)w=f=v=h;else{var C=h<.5?h*(1+x):h+x-h*x,g=2*h-C;w=z._hue2rgb(g,C,W+1/3),f=z._hue2rgb(g,C,W),v=z._hue2rgb(g,C,W-1/3)}return new le(Math.round(w*255),Math.round(f*255),Math.round(v*255),y)},z}(),R=function(){function z(D,W,x,h){this.h=Math.max(Math.min(360,D),0)|0,this.s=T(Math.max(Math.min(1,W),0),3),this.v=T(Math.max(Math.min(1,x),0),3),this.a=T(Math.max(Math.min(1,h),0),3)}return z.equals=function(D,W){return D.h===W.h&&D.s===W.s&&D.v===W.v&&D.a===W.a},z.fromRGBA=function(D){var W=D.r/255,x=D.g/255,h=D.b/255,y=Math.max(W,x,h),w=Math.min(W,x,h),f=y-w,v=y===0?0:f/y,C;return f===0?C=0:y===W?C=((x-h)/f%6+6)%6:y===x?C=(h-W)/f+2:C=(W-x)/f+4,new z(Math.round(C*60),v,y,D.a)},z.toRGBA=function(D){var W=D.h,x=D.s,h=D.v,y=D.a,w=h*x,f=w*(1-Math.abs(W/60%2-1)),v=h-w,C=[0,0,0],g=C[0],u=C[1],s=C[2];return W<60?(g=w,u=f):W<120?(g=f,u=w):W<180?(u=w,s=f):W<240?(u=f,s=w):W<300?(g=f,s=w):W<360&&(g=w,s=f),g=Math.round((g+v)*255),u=Math.round((u+v)*255),s=Math.round((s+v)*255),new le(g,u,s,y)},z}(),B=function(){function z(D){if(D)if(D instanceof le)this.rgba=D;else if(D instanceof $)this._hsla=D,this.rgba=$.toRGBA(D);else if(D instanceof R)this._hsva=D,this.rgba=R.toRGBA(D);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}return z.fromHex=function(D){return z.Format.CSS.parseHex(D)||z.red},Object.defineProperty(z.prototype,"hsla",{get:function(){return this._hsla?this._hsla:$.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"hsva",{get:function(){return this._hsva?this._hsva:R.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),z.prototype.equals=function(D){return!!D&&le.equals(this.rgba,D.rgba)&&$.equals(this.hsla,D.hsla)&&R.equals(this.hsva,D.hsva)},z.prototype.getRelativeLuminance=function(){var D=z._relativeLuminanceForComponent(this.rgba.r),W=z._relativeLuminanceForComponent(this.rgba.g),x=z._relativeLuminanceForComponent(this.rgba.b),h=.2126*D+.7152*W+.0722*x;return T(h,4)},z._relativeLuminanceForComponent=function(D){var W=D/255;return W<=.03928?W/12.92:Math.pow((W+.055)/1.055,2.4)},z.prototype.isLighter=function(){var D=(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3;return D>=128},z.prototype.isLighterThan=function(D){var W=this.getRelativeLuminance(),x=D.getRelativeLuminance();return W>x},z.prototype.isDarkerThan=function(D){var W=this.getRelativeLuminance(),x=D.getRelativeLuminance();return W<x},z.prototype.lighten=function(D){return new z(new $(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*D,this.hsla.a))},z.prototype.darken=function(D){return new z(new $(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*D,this.hsla.a))},z.prototype.transparent=function(D){var W=this.rgba,x=W.r,h=W.g,y=W.b,w=W.a;return new z(new le(x,h,y,w*D))},z.prototype.isTransparent=function(){return this.rgba.a===0},z.prototype.isOpaque=function(){return this.rgba.a===1},z.prototype.opposite=function(){return new z(new le(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))},z.prototype.toString=function(){return""+z.Format.CSS.format(this)},z.getLighterColor=function(D,W,x){if(D.isLighterThan(W))return D;x=x||.5;var h=D.getRelativeLuminance(),y=W.getRelativeLuminance();return x=x*(y-h)/y,D.lighten(x)},z.getDarkerColor=function(D,W,x){if(D.isDarkerThan(W))return D;x=x||.5;var h=D.getRelativeLuminance(),y=W.getRelativeLuminance();return x=x*(h-y)/h,D.darken(x)},z.white=new z(new le(255,255,255,1)),z.black=new z(new le(0,0,0,1)),z.red=new z(new le(255,0,0,1)),z.blue=new z(new le(0,0,255,1)),z.cyan=new z(new le(0,255,255,1)),z.lightgrey=new z(new le(211,211,211,1)),z.transparent=new z(new le(0,0,0,0)),z}();(function(z){var D;(function(W){var x;(function(h){function y(p){return p.rgba.a===1?"rgb("+p.rgba.r+", "+p.rgba.g+", "+p.rgba.b+")":z.Format.CSS.formatRGBA(p)}h.formatRGB=y;function w(p){return"rgba("+p.rgba.r+", "+p.rgba.g+", "+p.rgba.b+", "+ +p.rgba.a.toFixed(2)+")"}h.formatRGBA=w;function f(p){return p.hsla.a===1?"hsl("+p.hsla.h+", "+(p.hsla.s*100).toFixed(2)+"%, "+(p.hsla.l*100).toFixed(2)+"%)":z.Format.CSS.formatHSLA(p)}h.formatHSL=f;function v(p){return"hsla("+p.hsla.h+", "+(p.hsla.s*100).toFixed(2)+"%, "+(p.hsla.l*100).toFixed(2)+"%, "+p.hsla.a.toFixed(2)+")"}h.formatHSLA=v;function C(p){var _=p.toString(16);return _.length!==2?"0"+_:_}function g(p){return"#"+C(p.rgba.r)+C(p.rgba.g)+C(p.rgba.b)}h.formatHex=g;function u(p,_){return _===void 0&&(_=!1),_&&p.rgba.a===1?z.Format.CSS.formatHex(p):"#"+C(p.rgba.r)+C(p.rgba.g)+C(p.rgba.b)+C(Math.round(p.rgba.a*255))}h.formatHexA=u;function s(p){return p.isOpaque()?z.Format.CSS.formatHex(p):z.Format.CSS.formatRGBA(p)}h.format=s;function l(p){var _=p.length;if(_===0)return null;if(p.charCodeAt(0)!==35)return null;if(_===7){var L=16*c(p.charCodeAt(1))+c(p.charCodeAt(2)),I=16*c(p.charCodeAt(3))+c(p.charCodeAt(4)),P=16*c(p.charCodeAt(5))+c(p.charCodeAt(6));return new z(new le(L,I,P,1))}if(_===9){var L=16*c(p.charCodeAt(1))+c(p.charCodeAt(2)),I=16*c(p.charCodeAt(3))+c(p.charCodeAt(4)),P=16*c(p.charCodeAt(5))+c(p.charCodeAt(6)),A=16*c(p.charCodeAt(7))+c(p.charCodeAt(8));return new z(new le(L,I,P,A/255))}if(_===4){var L=c(p.charCodeAt(1)),I=c(p.charCodeAt(2)),P=c(p.charCodeAt(3));return new z(new le(16*L+L,16*I+I,16*P+P))}if(_===5){var L=c(p.charCodeAt(1)),I=c(p.charCodeAt(2)),P=c(p.charCodeAt(3)),A=c(p.charCodeAt(4));return new z(new le(16*L+L,16*I+I,16*P+P,(16*A+A)/255))}return null}h.parseHex=l;function c(p){switch(p){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}})(x=W.CSS||(W.CSS={}))})(D=z.Format||(z.Format={}))})(B||(B={}))}}]);