~ K A L I ~
UNAME : Linux web63.extendcp.co.uk 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64SERVER IP : 10.0.187.63 -________-
CLIENT IP : 216.73.216.230 MINI SHELL D ZAB '
Current File : //usr/share/maxscale/gui/js/npm.monaco-editor~a03ee73f.dabc304d.js |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["npm.monaco-editor~a03ee73f"],{"0494":function(e,t,i){"use strict";i.r(t),i.d(t,"CoreEditorCommand",(function(){return w})),i.d(t,"EditorScroll_",(function(){return b})),i.d(t,"RevealLine_",(function(){return S})),i.d(t,"CoreNavigationCommands",(function(){return x})),i.d(t,"CoreEditingCommands",(function(){return O}));var o=i("dff7"),n=i("0f70"),s=i("ef8e"),r=i("3813"),a=i("b2cc"),l=i("5717"),c=i("3a72"),u=i("2cbb"),h=i("8ed5"),d=i("b157"),p=i("1c72"),m=i("7061"),g=i("6a89"),_=i("c101"),f=i("4fc3"),C=i("9eb8");const v=0;class w extends a["c"]{runEditorCommand(e,t,i){const o=t._getViewModel();o&&this.runCoreEditorCommand(o,i||{})}}var b,S,x;(function(e){const t=function(e){if(!s["l"](e))return!1;const t=e;return!!s["m"](t.to)&&(!(!s["n"](t.by)&&!s["m"](t.by))&&(!(!s["n"](t.value)&&!s["k"](t.value))&&!(!s["n"](t.revealCursor)&&!s["g"](t.revealCursor))))};function i(t){let i,o;switch(t.to){case e.RawDirection.Up:i=1;break;case e.RawDirection.Down:i=2;break;default:return null}switch(t.by){case e.RawUnit.Line:o=1;break;case e.RawUnit.WrappedLine:o=2;break;case e.RawUnit.Page:o=3;break;case e.RawUnit.HalfPage:o=4;break;default:o=2}const n=Math.floor(t.value||1),s=!!t.revealCursor;return{direction:i,unit:o,value:n,revealCursor:s,select:!!t.select}}e.description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:t,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Down:"down"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},e.parse=i})(b||(b={})),function(e){const t=function(e){if(!s["l"](e))return!1;const t=e;return!(!s["k"](t.lineNumber)&&!s["m"](t.lineNumber))&&!(!s["n"](t.at)&&!s["m"](t.at))};e.description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:t,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(S||(S={}));class y{constructor(e){e.addImplementation(1e4,"code-editor",(e,t)=>{const i=e.get(l["a"]).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)}),e.addImplementation(1e3,"generic-dom-input-textarea",(e,t)=>{const i=document.activeElement;return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(),!0)}),e.addImplementation(0,"generic-dom",(e,t)=>{const i=e.get(l["a"]).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))})}_runEditorCommand(e,t,i){const o=this.runEditorCommand(e,t,i);return o||!0}}(function(e){class t extends w{constructor(e){super(e),this._minimalReveal=e.minimalReveal,this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement();const i=e.setCursorStates(t.source,3,[d["b"].moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]);i&&e.revealPrimaryCursor(t.source,!0,this._minimalReveal)}}e.MoveTo=Object(a["k"])(new t({id:"_moveTo",minimalReveal:!0,inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=Object(a["k"])(new t({id:"_moveToSelect",minimalReveal:!1,inSelectionMode:!0,precondition:void 0}));class i extends w{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);e.setCursorStates(t.source,3,i.viewStates.map(e=>u["b"].fromViewState(e))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source)}}e.ColumnSelect=Object(a["k"])(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,o){const n=e.model.validatePosition(o.position),s=e.coordinatesConverter.validateViewPosition(new m["a"](o.viewPosition.lineNumber,o.viewPosition.column),n),r=o.doColumnSelect?i.fromViewLineNumber:s.lineNumber,a=o.doColumnSelect?i.fromViewVisualColumn:o.mouseColumn-1;return c["a"].columnSelect(e.cursorConfig,e,r,a,s.lineNumber,o.mouseColumn-1)}}),e.CursorColumnSelectLeft=Object(a["k"])(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,o){return c["a"].columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=Object(a["k"])(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,o){return c["a"].columnSelectRight(e.cursorConfig,e,i)}});class s extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,o){return c["a"].columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=Object(a["k"])(new s({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Object(a["k"])(new s({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:3595,linux:{primary:0}}}));class l extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,o){return c["a"].columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=Object(a["k"])(new l({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Object(a["k"])(new l({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:3596,linux:{primary:0}}}));class h extends w{constructor(){super({id:"cursorMove",precondition:void 0,description:d["a"].description})}runCoreEditorCommand(e,t){const i=d["a"].parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,h._move(e,e.getCursorStates(),i)),e.revealPrimaryCursor(t,!0)}static _move(e,t,i){const o=i.select,n=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return d["b"].simpleMove(e,t,i.direction,o,n,i.unit);case 11:case 13:case 12:case 14:return d["b"].viewportMove(e,t,i.direction,o,n);default:return null}}}e.CursorMoveImpl=h,e.CursorMove=Object(a["k"])(new h);class p extends w{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,d["b"].simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealPrimaryCursor(t.source,!0)}}e.CursorLeft=Object(a["k"])(new p({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=Object(a["k"])(new p({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:1039}})),e.CursorRight=Object(a["k"])(new p({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=Object(a["k"])(new p({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:1041}})),e.CursorUp=Object(a["k"])(new p({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=Object(a["k"])(new p({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=Object(a["k"])(new p({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:11}})),e.CursorPageUpSelect=Object(a["k"])(new p({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:1035}})),e.CursorDown=Object(a["k"])(new p({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=Object(a["k"])(new p({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=Object(a["k"])(new p({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:12}})),e.CursorPageDownSelect=Object(a["k"])(new p({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:1036}})),e.CreateCursor=Object(a["k"])(new class extends w{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){let i;i=t.wholeLine?d["b"].line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):d["b"].moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const o=e.getCursorStates();if(o.length>1){const n=i.modelState?i.modelState.position:null,s=i.viewState?i.viewState.position:null;for(let i=0,r=o.length;i<r;i++){const r=o[i];if((!n||r.modelState.selection.containsPosition(n))&&(!s||r.viewState.selection.containsPosition(s)))return o.splice(i,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,o)}}o.push(i),e.model.pushStackElement(),e.setCursorStates(t.source,3,o)}}),e.LastCursorMoveToSelect=Object(a["k"])(new class extends w{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){const i=e.getLastAddedCursorIndex(),o=e.getCursorStates(),n=o.slice(0);n[i]=d["b"].moveTo(e,o[i],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class f extends w{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,d["b"].moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorHome=Object(a["k"])(new f({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=Object(a["k"])(new f({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class C extends w{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}_exec(e){const t=[];for(let i=0,o=e.length;i<o;i++){const o=e[i],n=o.modelState.position.lineNumber;t[i]=u["b"].fromModelState(o.modelState.move(this._inSelectionMode,n,1,0))}return t}}e.CursorLineStart=Object(a["k"])(new C({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=Object(a["k"])(new C({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:0,mac:{primary:1311}}}));class x extends w{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,d["b"].moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealPrimaryCursor(t.source,!0)}}e.CursorEnd=Object(a["k"])(new x({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:v,kbExpr:_["a"].textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},description:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:o["a"]("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=Object(a["k"])(new x({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:v,kbExpr:_["a"].textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},description:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:o["a"]("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class T extends w{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}_exec(e,t){const i=[];for(let o=0,n=t.length;o<n;o++){const n=t[o],s=n.modelState.position.lineNumber,r=e.model.getLineMaxColumn(s);i[o]=u["b"].fromModelState(n.modelState.move(this._inSelectionMode,s,r,0))}return i}}e.CursorLineEnd=Object(a["k"])(new T({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=Object(a["k"])(new T({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:0,mac:{primary:1315}}}));class E extends w{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,d["b"].moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorTop=Object(a["k"])(new E({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=Object(a["k"])(new E({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:3086,mac:{primary:3088}}}));class M extends w{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,d["b"].moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorBottom=Object(a["k"])(new M({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=Object(a["k"])(new M({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:3085,mac:{primary:3090}}}));class O extends w{constructor(){super({id:"editorScroll",precondition:void 0,description:b.description})}runCoreEditorCommand(e,t){const i=b.parse(t);i&&this._runEditorScroll(e,t.source,i)}_runEditorScroll(e,t,i){const o=this._computeDesiredScrollTop(e,i);if(i.revealCursor){const n=e.getCompletelyVisibleViewRangeAtScrollTop(o);e.setCursorStates(t,3,[d["b"].findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),n,i.select)])}e.viewLayout.setScrollPosition({scrollTop:o},0)}_computeDesiredScrollTop(e,t){if(1===t.unit){const i=e.getCompletelyVisibleViewRange(),o=e.coordinatesConverter.convertViewRangeToModelRange(i);let n;n=1===t.direction?Math.max(1,o.startLineNumber-t.value):Math.min(e.model.getLineCount(),o.startLineNumber+t.value);const s=e.coordinatesConverter.convertModelPositionToViewPosition(new m["a"](n,1));return e.viewLayout.getVerticalOffsetForLineNumber(s.lineNumber)}let i;i=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;const o=(1===t.direction?-1:1)*i;return e.viewLayout.getCurrentScrollTop()+o*e.cursorConfig.lineHeight}}e.EditorScrollImpl=O,e.EditorScroll=Object(a["k"])(new O),e.ScrollLineUp=Object(a["k"])(new class extends w{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,i){e.EditorScroll._runEditorScroll(t,i.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})}}),e.ScrollPageUp=Object(a["k"])(new class extends w{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,i){e.EditorScroll._runEditorScroll(t,i.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})}}),e.ScrollLineDown=Object(a["k"])(new class extends w{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,i){e.EditorScroll._runEditorScroll(t,i.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})}}),e.ScrollPageDown=Object(a["k"])(new class extends w{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,i){e.EditorScroll._runEditorScroll(t,i.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})}});class A extends w{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[d["b"].word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),e.revealPrimaryCursor(t.source,!0)}}e.WordSelect=Object(a["k"])(new A({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=Object(a["k"])(new A({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=Object(a["k"])(new class extends w{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){const i=e.getLastAddedCursorIndex(),o=e.getCursorStates(),n=o.slice(0),s=o[i];n[i]=d["b"].word(e,s,s.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}});class L extends w{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[d["b"].line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!1)}}e.LineSelect=Object(a["k"])(new L({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=Object(a["k"])(new L({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class P extends w{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){const i=e.getLastAddedCursorIndex(),o=e.getCursorStates(),n=o.slice(0);n[i]=d["b"].line(e,o[i],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}}e.LastCursorLineSelect=Object(a["k"])(new P({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=Object(a["k"])(new P({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.CancelSelection=Object(a["k"])(new class extends w{constructor(){super({id:"cancelSelection",precondition:_["a"].hasNonEmptySelection,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[d["b"].cancelSelection(e,e.getPrimaryCursorState())]),e.revealPrimaryCursor(t.source,!0)}}),e.RemoveSecondaryCursors=Object(a["k"])(new class extends w{constructor(){super({id:"removeSecondaryCursors",precondition:_["a"].hasMultipleSelections,kbOpts:{weight:v+1,kbExpr:_["a"].textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealPrimaryCursor(t.source,!0),Object(r["c"])(o["a"]("removedCursor","Removed secondary cursors"))}}),e.RevealLine=Object(a["k"])(new class extends w{constructor(){super({id:"revealLine",precondition:void 0,description:S.description})}runCoreEditorCommand(e,t){const i=t,o=i.lineNumber||0;let n="number"===typeof o?o+1:parseInt(o)+1;n<1&&(n=1);const s=e.model.getLineCount();n>s&&(n=s);const r=new g["a"](n,1,n,e.model.getLineMaxColumn(n));let a=0;if(i.at)switch(i.at){case S.RawAtArgument.Top:a=3;break;case S.RawAtArgument.Center:a=1;break;case S.RawAtArgument.Bottom:a=4;break;default:break}const l=e.coordinatesConverter.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends y{constructor(){super(a["h"])}runDOMCommand(){n["isFirefox"]&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(e,t,i){const o=t._getViewModel();o&&this.runCoreEditorCommand(o,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[d["b"].selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=Object(a["k"])(new class extends w{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[u["b"].fromModelSelection(t.selection)])}})})(x||(x={}));const T=f["a"].and(_["a"].textInputFocus,_["a"].columnSelection);function E(e,t){C["a"].registerKeybindingRule({id:e,primary:t,when:T,weight:v+1})}function M(e){return e.register(),e}var O;E(x.CursorColumnSelectLeft.id,1039),E(x.CursorColumnSelectRight.id,1041),E(x.CursorColumnSelectUp.id,1040),E(x.CursorColumnSelectPageUp.id,1035),E(x.CursorColumnSelectDown.id,1042),E(x.CursorColumnSelectPageDown.id,1036),function(e){class t extends a["c"]{runEditorCommand(e,t,i){const o=t._getViewModel();o&&this.runCoreEditingCommand(t,o,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=Object(a["k"])(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:_["a"].writable,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,p["a"].lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection)))}}),e.Outdent=Object(a["k"])(new class extends t{constructor(){super({id:"outdent",precondition:_["a"].writable,kbOpts:{weight:v,kbExpr:f["a"].and(_["a"].editorTextFocus,_["a"].tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,p["a"].outdent(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.Tab=Object(a["k"])(new class extends t{constructor(){super({id:"tab",precondition:_["a"].writable,kbOpts:{weight:v,kbExpr:f["a"].and(_["a"].editorTextFocus,_["a"].tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,p["a"].tab(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.DeleteLeft=Object(a["k"])(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[o,n]=h["a"].deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection),t.getCursorAutoClosedCharacters());o&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(2)}}),e.DeleteRight=Object(a["k"])(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:v,kbExpr:_["a"].textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[o,n]=h["a"].deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection));o&&e.pushUndoStop(),e.executeCommands(this.id,n),t.setPrevEditOperationType(3)}}),e.Undo=new class extends y{constructor(){super(a["i"])}runDOMCommand(){document.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(81))return t.getModel().undo()}},e.Redo=new class extends y{constructor(){super(a["g"])}runDOMCommand(){document.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(81))return t.getModel().redo()}}}(O||(O={}));class A extends a["a"]{constructor(e,t,i){super({id:e,precondition:void 0,description:i}),this._handlerId=t}runCommand(e,t){const i=e.get(l["a"]).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function L(e,t){M(new A("default:"+e,e)),M(new A(e,e,t))}L("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),L("replacePreviousChar"),L("compositionType"),L("compositionStart"),L("compositionEnd"),L("paste"),L("cut")},"0a89":function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return l}));var o=i("3742"),n=i("7061"),s=i("6a89");const r=!1;class a{constructor(e,t,i,o,n){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selectionStartPosition=o,this.selectionEndPosition=n}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e){return new a(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)}collapseSelection(){return new a(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(e,t,i){r&&console.log(`writeToTextArea ${e}: ${this.toString()}`),t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}const t=this.value.substring(this.selectionStart,e);if(-1===t.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,t,1);const i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)}_finishDeduceEditorPosition(e,t,i){let o=0,n=-1;while(-1!==(n=t.indexOf("\n",n+1)))o++;return[e,i*t.length,o]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};r&&(console.log("------------------------deduceInput"),console.log("PREVIOUS STATE: "+e.toString()),console.log("CURRENT STATE: "+t.toString()));const n=Math.min(o["f"](e.value,t.value),e.selectionStart,t.selectionStart),s=Math.min(o["g"](e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd),a=e.value.substring(n,e.value.length-s),l=t.value.substring(n,t.value.length-s),c=e.selectionStart-n,u=e.selectionEnd-n,h=t.selectionStart-n,d=t.selectionEnd-n;if(r&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${c}, selectionEnd: ${u}`),console.log(`AFTER DIFFING CURRENT STATE: <${l}>, selectionStart: ${h}, selectionEnd: ${d}`)),h===d){const t=e.selectionStart-n;return r&&console.log(`REMOVE PREVIOUS: ${t} chars`),{text:l,replacePrevCharCnt:t,replaceNextCharCnt:0,positionDelta:0}}const p=u-c;return{text:l,replacePrevCharCnt:p,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(r&&(console.log("------------------------deduceAndroidCompositionInput"),console.log("PREVIOUS STATE: "+e.toString()),console.log("CURRENT STATE: "+t.toString())),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(o["f"](e.value,t.value),e.selectionEnd),n=Math.min(o["g"](e.value,t.value),e.value.length-e.selectionEnd),s=e.value.substring(i,e.value.length-n),a=t.value.substring(i,t.value.length-n),l=e.selectionStart-i,c=e.selectionEnd-i,u=t.selectionStart-i,h=t.selectionEnd-i;return r&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${s}>, selectionStart: ${l}, selectionEnd: ${c}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${u}, selectionEnd: ${h}`)),{text:a,replacePrevCharCnt:c,replaceNextCharCnt:s.length-c,positionDelta:h-a.length}}}a.EMPTY=new a("",0,0,null,null);class l{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,o=i+1,n=i+t;return new s["a"](o,1,n+1,1)}static fromEditorSelection(e,t,i,o,r){const c=l._getPageOfLine(i.startLineNumber,o),u=l._getRangeForPage(c,o),h=l._getPageOfLine(i.endLineNumber,o),d=l._getRangeForPage(h,o),p=u.intersectRanges(new s["a"](1,1,i.startLineNumber,i.startColumn));let m=t.getValueInRange(p,1);const g=t.getLineCount(),_=t.getLineMaxColumn(g),f=d.intersectRanges(new s["a"](i.endLineNumber,i.endColumn,g,_));let C,v=t.getValueInRange(f,1);if(c===h||c+1===h)C=t.getValueInRange(i,1);else{const e=u.intersectRanges(i),o=d.intersectRanges(i);C=t.getValueInRange(e,1)+String.fromCharCode(8230)+t.getValueInRange(o,1)}if(r){const e=500;m.length>e&&(m=m.substring(m.length-e,m.length)),v.length>e&&(v=v.substring(0,e)),C.length>2*e&&(C=C.substring(0,e)+String.fromCharCode(8230)+C.substring(C.length-e,C.length))}return new a(m+C+v,m.length,m.length+C.length,new n["a"](i.startLineNumber,i.startColumn),new n["a"](i.endLineNumber,i.endColumn))}}},"0cc2":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var o=i("0f70"),n=i("6653"),s=i("fd49");function r(e,t){e instanceof n["a"]?(e.setFontFamily(t.getMassagedFontFamily(o["isSafari"]?s["d"].fontFamily:null)),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(o["isSafari"]?s["d"].fontFamily:null),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}},"56f3":function(e,t,i){},"68aa":function(e,t,i){"use strict";i.d(t,"a",(function(){return m}));var o=i("0f70"),n=i("308f"),s=i("a666"),r=i("0cc2");class a{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class l{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");Object(r["a"])(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");Object(r["a"])(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const o=document.createElement("div");Object(r["a"])(o,this._bareFontInfo),o.style.fontStyle="italic",e.appendChild(o);const n=[];for(const s of this._requests){let e;0===s.type&&(e=t),2===s.type&&(e=i),1===s.type&&(e=o),e.appendChild(document.createElement("br"));const r=document.createElement("span");l._render(r,s),e.appendChild(r),n.push(r)}this._container=e,this._testElements=n}static _render(e,t){if(" "===t.chr){let t=" ";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){const t=this._requests[e],i=this._testElements[e];t.fulfill(i.offsetWidth/256)}}}function c(e,t){const i=new l(e,t);i.read()}var u=i("fd49"),h=i("fb71");class d extends s["a"]{constructor(){super(),this._onDidChange=this._register(new n["b"]),this.onDidChange=this._onDidChange.event,this._cache=new p,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(window.clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache=new p,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=window.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(const i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new h["b"]({pixelRatio:o["PixelRatio"].value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,i,o){const n=new a(e,t);return i.push(n),o&&o.push(n),n}_actualReadFontInfo(e){const t=[],i=[],n=this._createRequest("n",0,t,i),s=this._createRequest("m",0,t,null),r=this._createRequest(" ",0,t,i),a=this._createRequest("0",0,t,i),l=this._createRequest("1",0,t,i),d=this._createRequest("2",0,t,i),p=this._createRequest("3",0,t,i),m=this._createRequest("4",0,t,i),g=this._createRequest("5",0,t,i),_=this._createRequest("6",0,t,i),f=this._createRequest("7",0,t,i),C=this._createRequest("8",0,t,i),v=this._createRequest("9",0,t,i),w=this._createRequest("→",0,t,i),b=this._createRequest("→",0,t,null),S=this._createRequest("·",0,t,i),x=this._createRequest(String.fromCharCode(11825),0,t,null),y="|/-_ilm%";for(let o=0,c=y.length;o<c;o++)this._createRequest(y.charAt(o),0,t,i),this._createRequest(y.charAt(o),1,t,i),this._createRequest(y.charAt(o),2,t,i);c(e,t);const T=Math.max(a.width,l.width,d.width,p.width,m.width,g.width,_.width,f.width,C.width,v.width);let E=e.fontFeatureSettings===u["e"].OFF;const M=i[0].width;for(let o=1,c=i.length;E&&o<c;o++){const e=M-i[o].width;if(e<-.001||e>.001){E=!1;break}}let O=!0;return E&&b.width!==M&&(O=!1),b.width>w.width&&(O=!1),new h["b"]({pixelRatio:o["PixelRatio"].value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:E,typicalHalfwidthCharacterWidth:n.width,typicalFullwidthCharacterWidth:s.width,canUseHalfwidthRightwardsArrow:O,spaceWidth:r.width,middotWidth:S.width,wsmiddotWidth:x.width,maxDigitWidth:T},!0)}}class p{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const m=new d},9904:function(e,t,i){"use strict";i.d(t,"a",(function(){return x}));var o=i("11f7"),n=i("30db"),s=i("a60f"),r=i("a666"),a=i("5d28"),l=i("5fe7"),c=i("bae1"),u=i("411b"),h=i("62bd"),d=i("7061"),p=i("8025"),m=i("f642");function g(e){return function(t,i){let o=!1;return e&&(o=e.mouseTargetIsWidget(i)),o||i.preventDefault(),i}}class _ extends m["a"]{constructor(e,t,i){super(),this._context=e,this.viewController=t,this.viewHelper=i,this.mouseTargetFactory=new c["c"](this._context,i),this._mouseDownOperation=this._register(new f(this._context,this.viewController,this.viewHelper,(e,t)=>this._createMouseTarget(e,t),e=>this._getMouseColumn(e))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(131).height;const s=new u["d"](this.viewHelper.viewDomNode);this._register(s.onContextMenu(this.viewHelper.viewDomNode,e=>this._onContextMenu(e,!0))),this._register(s.onMouseMoveThrottled(this.viewHelper.viewDomNode,e=>this._onMouseMove(e),g(this.mouseTargetFactory),_.MOUSE_MOVE_MINIMUM_TIME)),this._register(s.onMouseUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(s.onMouseLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(s.onMouseDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e)));const r=e=>{if(this.viewController.emitMouseWheel(e),!this._context.configuration.options.get(68))return;const t=new a["b"](e),i=n["i"]?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey;if(i){const e=h["a"].getZoomLevel(),i=t.deltaY>0?1:-1;h["a"].setZoomLevel(e+i),t.preventDefault(),t.stopPropagation()}};this._register(o["i"](this.viewHelper.viewDomNode,o["d"].MOUSE_WHEEL,r,{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(131)){const e=this._context.configuration.options.get(131).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){const i=new u["a"](e,t),o=i.toPageCoordinates(),n=Object(u["i"])(this.viewHelper.viewDomNode);if(o.y<n.y||o.y>n.y+n.height||o.x<n.x||o.x>n.x+n.width)return null;const s=Object(u["h"])(this.viewHelper.viewDomNode,n,o);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),n,o,s,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=o["G"](this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find(e=>this.viewHelper.viewDomNode.contains(e)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(this._mouseDownOperation.isActive())return;const t=e.timestamp;t<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e){const t=this._createMouseTarget(e,!0),i=6===t.type||7===t.type,o=2===t.type||3===t.type||4===t.type,s=3===t.type,r=this._context.configuration.options.get(98),a=8===t.type||5===t.type,l=9===t.type;let c=e.leftButton||e.middleButton;n["i"]&&e.leftButton&&e.ctrlKey&&(c=!1);const u=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(c&&(i||s&&r))u(),this._mouseDownOperation.start(t.type,e);else if(o)e.preventDefault();else if(a){const i=t.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(i.viewZoneId)&&(u(),this._mouseDownOperation.start(t.type,e),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(t.detail)&&(u(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:t})}}_.MOUSE_MOVE_MINIMUM_TIME=100;class f extends r["a"]{constructor(e,t,i,o,n){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._createMouseTarget=o,this._getMouseColumn=n,this._mouseMoveMonitor=this._register(new u["f"](this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new l["j"]),this._mouseState=new C,this._currentSelection=new p["a"](1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const i=this._findMousePosition(t,!0);if(!i||!i.position)return;this._mouseState.trySetCount(t.detail,i.position),t.detail=this._mouseState.count;const o=this._context.configuration.options;if(!o.get(81)&&o.get(31)&&!o.get(18)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===i.type&&i.position&&this._currentSelection.containsPosition(i.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,g(null),e=>this._onMouseDownThenMove(e),e=>{const t=this._findMousePosition(this._lastMouseEvent,!0);e&&e instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});this._mouseState.isDragAndDrop=!1,this._dispatchMouse(i,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,g(null),e=>this._onMouseDownThenMove(e),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;const e=this._findMousePosition(this._lastMouseEvent,!1);e&&(this._mouseState.isDragAndDrop||this._dispatchMouse(e,!0))},10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,o=this._context.viewLayout,n=this._getMouseColumn(e);if(e.posy<t.y){const i=Math.max(o.getCurrentScrollTop()-(t.y-e.posy),0),s=c["a"].getZoneAtCoord(this._context,i);if(s){const e=this._helpPositionJumpOverViewZone(s);if(e)return c["b"].createOutsideEditor(n,e)}const r=o.getLineNumberAtVerticalOffset(i);return c["b"].createOutsideEditor(n,new d["a"](r,1))}if(e.posy>t.y+t.height){const t=o.getCurrentScrollTop()+e.relativePos.y,s=c["a"].getZoneAtCoord(this._context,t);if(s){const e=this._helpPositionJumpOverViewZone(s);if(e)return c["b"].createOutsideEditor(n,e)}const r=o.getLineNumberAtVerticalOffset(t);return c["b"].createOutsideEditor(n,new d["a"](r,i.getLineMaxColumn(r)))}const s=o.getLineNumberAtVerticalOffset(o.getCurrentScrollTop()+e.relativePos.y);return e.posx<t.x?c["b"].createOutsideEditor(n,new d["a"](s,1)):e.posx>t.x+t.width?c["b"].createOutsideEditor(n,new d["a"](s,i.getLineMaxColumn(s))):null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const o=this._createMouseTarget(e,t),n=o.position;if(!n)return null;if(8===o.type||5===o.type){const e=this._helpPositionJumpOverViewZone(o.detail);if(e)return c["b"].createViewZone(o.type,o.element,o.mouseColumn,e,o.detail)}return o}_helpPositionJumpOverViewZone(e){const t=new d["a"](this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,o=e.positionAfter;return i&&o?i.isBefore(t)?i:o:null}_dispatchMouse(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,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,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class C{constructor(){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}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>C.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}C.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var v=i("0a31"),w=i("e53c");class b extends _{constructor(e,t,i){super(e,t,i),this._register(s["b"].addTarget(this.viewHelper.linesContentDomNode)),this._register(o["i"](this.viewHelper.linesContentDomNode,s["a"].Tap,e=>this.onTap(e))),this._register(o["i"](this.viewHelper.linesContentDomNode,s["a"].Change,e=>this.onChange(e))),this._register(o["i"](this.viewHelper.linesContentDomNode,s["a"].Contextmenu,e=>this._onContextMenu(new u["c"](e,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(o["i"](this.viewHelper.linesContentDomNode,"pointerdown",e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"}));const n=new u["e"](this.viewHelper.viewDomNode);this._register(n.onPointerMoveThrottled(this.viewHelper.viewDomNode,e=>this._onMouseMove(e),g(this.mouseTargetFactory),_.MOUSE_MOVE_MINIMUM_TIME)),this._register(n.onPointerUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(n.onPointerLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(n.onPointerDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e)))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new u["c"](e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===t.type&&null!==t.detail.injectedText})}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e)}}class S extends _{constructor(e,t,i){super(e,t,i),this._register(s["b"].addTarget(this.viewHelper.linesContentDomNode)),this._register(o["i"](this.viewHelper.linesContentDomNode,s["a"].Tap,e=>this.onTap(e))),this._register(o["i"](this.viewHelper.linesContentDomNode,s["a"].Change,e=>this.onChange(e))),this._register(o["i"](this.viewHelper.linesContentDomNode,s["a"].Contextmenu,e=>this._onContextMenu(new u["c"](e,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new u["c"](e,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(w["d"].Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class x extends r["a"]{constructor(e,t,i){super(),n["f"]&&v["a"].pointerEvents?this.handler=this._register(new b(e,t,i)):window.TouchEvent?this.handler=this._register(new S(e,t,i)):this.handler=this._register(new _(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}},a37f:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var o=i("a666"),n=i("308f");class s extends o["a"]{constructor(e,t){super(),this._onDidChange=this._register(new n["b"]),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){!this._resizeObserver&&this._referenceDomElement&&(this._resizeObserver=new ResizeObserver(e=>{e&&e[0]&&e[0].contentRect?this.observe({width:e[0].contentRect.width,height:e[0].contentRect.height}):this.observe()}),this._resizeObserver.observe(this._referenceDomElement))}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,o=0;t?(i=t.width,o=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,o=this._referenceDomElement.clientHeight),i=Math.max(5,i),o=Math.max(5,o),this._width===i&&this._height===o||(this._width=i,this._height=o,e&&this._onDidChange.fire())}}},a7e6:function(e,t,i){"use strict";i.d(t,"a",(function(){return s}));var o=i("308f");class n{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new o["b"],this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}}const s=new n},bae1:function(e,t,i){"use strict";i.d(t,"d",(function(){return m})),i.d(t,"b",(function(){return g})),i.d(t,"a",(function(){return f})),i.d(t,"c",(function(){return S}));var o,n=i("411b"),s=i("4247"),r=i("6ec9"),a=i("7061"),l=i("6a89"),c=i("24b7"),u=i("11f7"),h=i("6506");class d{constructor(e=null){this.hitTarget=e,this.type=0}}class p{constructor(e,t,i){this.position=e,this.spanNode=t,this.injectedText=i,this.type=1}}(function(e){function t(e,t,i){const o=e.getPositionFromDOMInfo(t,i);return o?new p(o,t,null):new d(t)}e.createFromDOMInfo=t})(o||(o={}));class m{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class g{static _deduceRage(e,t=null){return!t&&e?new l["a"](e.lineNumber,e.column,e.lineNumber,e.column):null!==t&&void 0!==t?t:null}static createUnknown(e,t,i){return{type:0,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createTextarea(e,t){return{type:1,element:e,mouseColumn:t,position:null,range:null}}static createMargin(e,t,i,o,n,s){return{type:e,element:t,mouseColumn:i,position:o,range:n,detail:s}}static createViewZone(e,t,i,o,n){return{type:e,element:t,mouseColumn:i,position:o,range:this._deduceRage(o),detail:n}}static createContentText(e,t,i,o,n){return{type:6,element:e,mouseColumn:t,position:i,range:this._deduceRage(i,o),detail:n}}static createContentEmpty(e,t,i,o){return{type:7,element:e,mouseColumn:t,position:i,range:this._deduceRage(i),detail:o}}static createContentWidget(e,t,i){return{type:9,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createScrollbar(e,t,i){return{type:11,element:e,mouseColumn:t,position:i,range:this._deduceRage(i)}}static createOverlayWidget(e,t,i){return{type:12,element:e,mouseColumn:t,position:null,range:null,detail:i}}static createOutsideEditor(e,t){return{type:13,element:null,mouseColumn:e,position:t,range:this._deduceRage(t)}}static _typeToString(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+JSON.stringify(e.detail)}}class _{static isTextArea(e){return 2===e.length&&3===e[0]&&6===e[1]}static isChildOfViewLines(e){return e.length>=4&&3===e[0]&&7===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&7===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&5===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&8===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}}class f{constructor(e,t,i){this.viewModel=e.viewModel;const o=e.configuration.options;this.layoutInfo=o.get(131),this.viewDomNode=t.viewDomNode,this.lineHeight=o.get(59),this.stickyTabStops=o.get(104),this.typicalHalfwidthCharacterWidth=o.get(44).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return f.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const o=i.verticalOffset+i.height/2,n=e.viewModel.getLineCount();let s,r=null,l=null;return i.afterLineNumber!==n&&(l=new a["a"](i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new a["a"](i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),s=null===l?r:null===r?l:t<o?r:l,{viewZoneId:i.id,afterLineNumber:i.afterLineNumber,positionBefore:r,positionAfter:l,position:s}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const e=this._context.viewModel.getLineCount(),t=this._context.viewModel.getLineMaxColumn(e);return{range:new l["a"](e,t,e,t),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),i=this._context.viewModel.getLineMaxColumn(t);return{range:new l["a"](t,1,t,i),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}isInTopPadding(e){return this._context.viewLayout.isInTopPadding(e)}isInBottomPadding(e){return this._context.viewLayout.isInBottomPadding(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return f._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,i){while(e&&e!==document.body){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===i)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class C{constructor(e,t,i,o){this.editorPos=t,this.pos=i,this.relativePos=o,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+this.relativePos.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+this.relativePos.x-e.layoutInfo.contentLeft,this.isInMarginArea=this.relativePos.x<e.layoutInfo.contentLeft&&this.relativePos.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,S._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class v extends C{constructor(e,t,i,o,n){super(e,t,i,o),this._ctx=e,n?(this.target=n,this.targetPath=s["a"].collect(n,e.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}_getMouseColumn(e=null){return e&&e.column<this._ctx.viewModel.getLineMaxColumn(e.lineNumber)?c["a"].visibleColumnFromColumn(this._ctx.viewModel.getLineContent(e.lineNumber),e.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(e=null){return g.createUnknown(this.target,this._getMouseColumn(e),e)}fulfillTextarea(){return g.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(e,t,i,o){return g.createMargin(e,this.target,this._getMouseColumn(t),t,i,o)}fulfillViewZone(e,t,i){return g.createViewZone(e,this.target,this._getMouseColumn(t),t,i)}fulfillContentText(e,t,i){return g.createContentText(this.target,this._getMouseColumn(e),e,t,i)}fulfillContentEmpty(e,t){return g.createContentEmpty(this.target,this._getMouseColumn(e),e,t)}fulfillContentWidget(e){return g.createContentWidget(this.target,this._getMouseColumn(),e)}fulfillScrollbar(e){return g.createScrollbar(this.target,this._getMouseColumn(e),e)}fulfillOverlayWidget(e){return g.createOverlayWidget(this.target,this._getMouseColumn(),e)}withTarget(e){return new v(this._ctx,this.editorPos,this.pos,this.relativePos,e)}}const w={isAfterLines:!0};function b(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class S{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){const t=e.target,i=s["a"].collect(t,this._viewHelper.viewDomNode);return!(!_.isChildOfContentWidgets(i)&&!_.isChildOfOverflowingContentWidgets(i))||!!_.isChildOfOverlayWidgets(i)}createMouseTarget(e,t,i,o,n){const s=new f(this._context,this._viewHelper,e),r=new v(s,t,i,o,n);try{const e=S._createMouseTarget(s,r,!1);return e}catch(a){return r.fulfillUnknown()}}static _createMouseTarget(e,t,i){if(null===t.target){if(i)return t.fulfillUnknown();const o=S._doHitTest(e,t);return 1===o.type?S.createMouseTargetFromHitTestPosition(e,t,o.spanNode,o.position,o.injectedText):this._createMouseTarget(e,t.withTarget(o.hitTarget),!0)}const o=t;let n=null;return n=n||S._hitTestContentWidget(e,o),n=n||S._hitTestOverlayWidget(e,o),n=n||S._hitTestMinimap(e,o),n=n||S._hitTestScrollbarSlider(e,o),n=n||S._hitTestViewZone(e,o),n=n||S._hitTestMargin(e,o),n=n||S._hitTestViewCursor(e,o),n=n||S._hitTestTextArea(e,o),n=n||S._hitTestViewLines(e,o,i),n=n||S._hitTestScrollbar(e,o),n||t.fulfillUnknown()}static _hitTestContentWidget(e,t){if(_.isChildOfContentWidgets(t.targetPath)||_.isChildOfOverflowingContentWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillContentWidget(i):t.fulfillUnknown()}return null}static _hitTestOverlayWidget(e,t){if(_.isChildOfOverlayWidgets(t.targetPath)){const i=e.findAttribute(t.target,"widgetId");return i?t.fulfillOverlayWidget(i):t.fulfillUnknown()}return null}static _hitTestViewCursor(e,t){if(t.target){const i=e.lastRenderData.lastViewCursorsRenderData;for(const e of i)if(t.target===e.domNode)return t.fulfillContentText(e.position,null,{mightBeForeignElement:!1,injectedText:null})}if(t.isInContentArea){const i=e.lastRenderData.lastViewCursorsRenderData,o=t.mouseContentHorizontalOffset,n=t.mouseVerticalOffset;for(const s of i){if(o<s.contentLeft)continue;if(o>s.contentLeft+s.width)continue;const i=e.getVerticalOffsetForLineNumber(s.position.lineNumber);if(i<=n&&n<=i+s.height)return t.fulfillContentText(s.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfillViewZone(e,i.position,i)}return null}static _hitTestTextArea(e,t){return _.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),o=i.range.getStartPosition();let n=Math.abs(t.relativePos.x);const s={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:n};return n-=e.layoutInfo.glyphMarginLeft,n<=e.layoutInfo.glyphMarginWidth?t.fulfillMargin(2,o,i.range,s):(n-=e.layoutInfo.glyphMarginWidth,n<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,o,i.range,s):(n-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,o,i.range,s)))}return null}static _hitTestViewLines(e,t,i){if(!_.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new a["a"](1,1),w);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.viewModel.getLineCount(),o=e.viewModel.getLineMaxColumn(i);return t.fulfillContentEmpty(new a["a"](i,o),w)}if(i){if(_.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.viewModel.getLineLength(i)){const o=e.getLineWidth(i),n=b(t.mouseContentHorizontalOffset-o);return t.fulfillContentEmpty(new a["a"](i,1),n)}const o=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=o){const n=b(t.mouseContentHorizontalOffset-o),s=new a["a"](i,e.viewModel.getLineMaxColumn(i));return t.fulfillContentEmpty(s,n)}}return t.fulfillUnknown()}const o=S._doHitTest(e,t);return 1===o.type?S.createMouseTargetFromHitTestPosition(e,t,o.spanNode,o.position,o.injectedText):this._createMouseTarget(e,t.withTarget(o.hitTarget),!0)}static _hitTestMinimap(e,t){if(_.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new a["a"](i,o))}return null}static _hitTestScrollbarSlider(e,t){if(_.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new a["a"](i,o))}}return null}static _hitTestScrollbar(e,t){if(_.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new a["a"](i,o))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(131),o=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return S._getMouseColumn(o,t.get(44).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){if(e<0)return 1;const i=Math.round(e/t);return i+1}static createMouseTargetFromHitTestPosition(e,t,i,o,n){const s=o.lineNumber,r=o.column,a=e.getLineWidth(s);if(t.mouseContentHorizontalOffset>a){const e=b(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(o,e)}const c=e.visibleRangeForPosition(s,r);if(!c)return t.fulfillUnknown(o);const u=c.left;if(t.mouseContentHorizontalOffset===u)return t.fulfillContentText(o,null,{mightBeForeignElement:!!n,injectedText:n});const h=[];if(h.push({offset:c.left,column:r}),r>1){const t=e.visibleRangeForPosition(s,r-1);t&&h.push({offset:t.left,column:r-1})}const d=e.viewModel.getLineMaxColumn(s);if(r<d){const t=e.visibleRangeForPosition(s,r+1);t&&h.push({offset:t.left,column:r+1})}h.sort((e,t)=>e.offset-t.offset);const p=t.pos.toClientCoordinates(),m=i.getBoundingClientRect(),g=m.left<=p.clientX&&p.clientX<=m.right;for(let _=1;_<h.length;_++){const e=h[_-1],i=h[_];if(e.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=i.offset){const r=new l["a"](s,e.column,s,i.column);return t.fulfillContentText(o,r,{mightBeForeignElement:!g||!!n,injectedText:n})}}return t.fulfillContentText(o,null,{mightBeForeignElement:!g||!!n,injectedText:n})}static _doHitTestWithCaretRangeFromPoint(e,t){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.getVerticalOffsetForLineNumber(i),s=o+Math.floor(e.lineHeight/2);let r=t.pos.y+(s-t.mouseVerticalOffset);r<=t.editorPos.y&&(r=t.editorPos.y+1),r>=t.editorPos.y+t.editorPos.height&&(r=t.editorPos.y+t.editorPos.height-1);const a=new n["g"](t.pos.x,r),l=this._actualDoHitTestWithCaretRangeFromPoint(e,a.toClientCoordinates());return 1===l.type?l:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=u["G"](e.viewDomNode);let n;if(n=i?"undefined"===typeof i.caretRangeFromPoint?x(i,t.clientX,t.clientY):i.caretRangeFromPoint(t.clientX,t.clientY):document.caretRangeFromPoint(t.clientX,t.clientY),!n||!n.startContainer)return new d;const s=n.startContainer;if(s.nodeType===s.TEXT_NODE){const t=s.parentNode,i=t?t.parentNode:null,a=i?i.parentNode:null,l=a&&a.nodeType===a.ELEMENT_NODE?a.className:null;return l===r["b"].CLASS_NAME?o.createFromDOMInfo(e,t,n.startOffset):new d(s.parentNode)}if(s.nodeType===s.ELEMENT_NODE){const t=s.parentNode,i=t?t.parentNode:null,n=i&&i.nodeType===i.ELEMENT_NODE?i.className:null;return n===r["b"].CLASS_NAME?o.createFromDOMInfo(e,s,s.textContent.length):new d(s)}return new d}static _doHitTestWithCaretPositionFromPoint(e,t){const i=document.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){const t=i.offsetNode.parentNode,n=t?t.parentNode:null,s=n?n.parentNode:null,a=s&&s.nodeType===s.ELEMENT_NODE?s.className:null;return a===r["b"].CLASS_NAME?o.createFromDOMInfo(e,i.offsetNode.parentNode,i.offset):new d(i.offsetNode.parentNode)}if(i.offsetNode.nodeType===i.offsetNode.ELEMENT_NODE){const t=i.offsetNode.parentNode,n=t&&t.nodeType===t.ELEMENT_NODE?t.className:null,s=t?t.parentNode:null,a=s&&s.nodeType===s.ELEMENT_NODE?s.className:null;if(n===r["b"].CLASS_NAME){const t=i.offsetNode.childNodes[Math.min(i.offset,i.offsetNode.childNodes.length-1)];if(t)return o.createFromDOMInfo(e,t,0)}else if(a===r["b"].CLASS_NAME)return o.createFromDOMInfo(e,i.offsetNode,0)}return new d(i.offsetNode)}static _snapToSoftTabBoundary(e,t){const i=t.getLineContent(e.lineNumber),{tabSize:o}=t.model.getOptions(),n=h["a"].atomicPosition(i,e.column-1,o,2);return-1!==n?new a["a"](e.lineNumber,n+1):e}static _doHitTest(e,t){let i=new d;if("function"===typeof document.caretRangeFromPoint?i=this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint&&(i=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates())),1===i.type){const t=e.viewModel.getInjectedTextAt(i.position),o=e.viewModel.normalizePosition(i.position,2);!t&&o.equals(i.position)||(i=new p(o,i.spanNode,t))}return 1===i.type&&e.stickyTabStops&&(i=new p(this._snapToSoftTabBoundary(i.position,e.viewModel),i.spanNode,i.injectedText)),i}}function x(e,t,i){const o=document.createRange();let n=e.elementFromPoint(t,i);if(null!==n){while(n&&n.firstChild&&n.firstChild.nodeType!==n.firstChild.TEXT_NODE&&n.lastChild&&n.lastChild.firstChild)n=n.lastChild;const e=n.getBoundingClientRect(),i=window.getComputedStyle(n,null).getPropertyValue("font"),s=n.innerText;let r,a=e.left,l=0;if(t>e.left+e.width)l=s.length;else{const e=y.getInstance();for(let o=0;o<s.length+1;o++){if(r=e.getCharWidth(s.charAt(o),i)/2,a+=r,t<a){l=o;break}a+=r}}o.setStart(n.firstChild,l),o.setEnd(n.firstChild,l)}return o}class y{constructor(){this._cache={},this._canvas=document.createElement("canvas")}static getInstance(){return y._INSTANCE||(y._INSTANCE=new y),y._INSTANCE}getCharWidth(e,t){const i=e+t;if(this._cache[i])return this._cache[i];const o=this._canvas.getContext("2d");o.font=t;const n=o.measureText(e),s=n.width;return this._cache[i]=s,s}}y._INSTANCE=null},e393:function(e,t,i){"use strict";i.d(t,"a",(function(){return y}));i("56f3");var o=i("dff7"),n=i("0f70"),s=i("6653"),r=i("30db"),a=i("3742"),l=i("0cc2"),c=i("e53c"),u=i("0a89"),h=i("4247"),d=i("b160"),p=i("3d43"),m=i("fd49"),g=i("564e"),_=i("7061"),f=i("6a89"),C=i("8025"),v=i("e75b"),w=i("2e5a"),b=i("ceb8");class S{constructor(e,t,i,o,n){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=o,this.distanceToModelLineEnd=n,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new _["a"](this.modelLineNumber,this.distanceToModelLineStart+1),i=new _["a"](this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const x=n["isFirefox"];class y extends h["b"]{constructor(e,t,i){super(e),this._primaryCursorPosition=new _["a"](1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const a=this._context.configuration.options,l=a.get(131);this._setAccessibilityOptions(a),this._contentLeft=l.contentLeft,this._contentWidth=l.contentWidth,this._contentHeight=l.height,this._fontInfo=a.get(44),this._lineHeight=a.get(59),this._emptySelectionClipboard=a.get(32),this._copyWithSyntaxHighlighting=a.get(21),this._visibleTextArea=null,this._selections=[new C["a"](1,1,1,1)],this._modelSelections=[new C["a"](1,1,1,1)],this._lastRenderPosition=null,this.textArea=Object(s["b"])(document.createElement("textarea")),h["a"].write(this.textArea,6),this.textArea.setClassName("inputarea "+v["a"]),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(a)),this.textArea.setAttribute("tabindex",String(a.get(112))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",o["a"]("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),a.get(30)&&a.get(81)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=Object(s["b"])(document.createElement("div")),this.textAreaCover.setPosition("absolute");const d={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:e=>this._context.viewModel.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.viewModel.getValueInRange(e,t)},p={getDataToCopy:()=>{const e=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,r["n"]),t=this._context.viewModel.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),o=Array.isArray(e)?e:null,n=Array.isArray(e)?e.join(t):e;let s=void 0,a=null;if(c["a"].forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&n.length<65536){const e=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(s=e.html,a=e.mode)}return{isFromEmptySelection:i,multicursorText:o,text:n,html:s,mode:a}},getScreenReaderContent:e=>{if(1===this._accessibilitySupport){if(r["i"]){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new u["b"](i,i.length,i.length,t,t)}}return u["b"].EMPTY}if(n["isAndroid"]){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition(),[i,o]=this._getAndroidWordAtPosition(t);if(i.length>0)return new u["b"](i,o,o,t,t)}return u["b"].EMPTY}return u["a"].fromEditorSelection(e,d,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,i)},m=this._register(new c["e"](this.textArea.domNode));this._textAreaInput=this._register(new c["c"](p,m,r["a"],n)),this._register(this._textAreaInput.onKeyDown(e=>{this._viewController.emitKeyDown(e)})),this._register(this._textAreaInput.onKeyUp(e=>{this._viewController.emitKeyUp(e)})),this._register(this._textAreaInput.onPaste(e=>{let t=!1,i=null,o=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,o=e.metadata.mode),this._viewController.paste(e.text,t,i,o)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(u["c"]&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(u["c"]&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))})),this._register(this._textAreaInput.onSelectionChangeRequest(e=>{this._viewController.setSelection(e)})),this._register(this._textAreaInput.onCompositionStart(e=>{const t=this.textArea.domNode,i=this._modelSelections[0],{distanceToModelLineStart:o,widthOfHiddenTextBefore:n}=(()=>{const e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),o=e.lastIndexOf("\n"),n=e.substring(o+1),s=n.lastIndexOf("\t"),r=n.length-s-1,a=i.getStartPosition(),l=Math.min(a.column-1,r),c=a.column-1-l,u=n.substring(0,n.length-l),h=T(u,this._fontInfo);return{distanceToModelLineStart:c,widthOfHiddenTextBefore:h}})(),{distanceToModelLineEnd:s}=(()=>{const e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),o=e.indexOf("\n"),n=-1===o?e:e.substring(0,o),s=n.indexOf("\t"),r=-1===s?n.length:n.length-s-1,a=i.getEndPosition(),l=Math.min(this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column,r),c=this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column-l;return{distanceToModelLineEnd:c}})();this._context.viewModel.revealRange("keyboard",!0,f["a"].fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new S(this._context,i.startLineNumber,o,n,s),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${v["a"]} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(e=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName("inputarea "+v["a"]),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.viewModel.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.viewModel.setHasFocus(!1)}))}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',i=this._context.viewModel.getLineContent(e.lineNumber),o=Object(g["a"])(t);let n=!0,s=e.column,r=!0,a=e.column,l=0;while(l<50&&(n||r)){if(n&&s<=1&&(n=!1),n){const e=i.charCodeAt(s-2),t=o.get(e);0!==t?n=!1:s--}if(r&&a>i.length&&(r=!1),r){const e=i.charCodeAt(a-1),t=o.get(e);0!==t?r=!1:a++}l++}return[i.substring(s-1,a-1),e.column-s]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=Object(g["a"])(this._context.configuration.options.get(117));let o=e.column,n=0;while(o>1){const s=t.charCodeAt(o-2),r=i.get(s);if(0!==r||n>50)return t.substring(o-1,e.column-1);n++,o--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.viewModel.getLineContent(e.lineNumber),i=t.charAt(e.column-2);if(!a["E"](i.charCodeAt(0)))return i}return""}_getAriaLabel(e){const t=e.get(2);return 1===t?o["a"]("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",r["g"]?"Shift+Alt+F1":"Alt+F1"):e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===m["g"].accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(131);return this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(44),this._lineHeight=t.get(59),this._emptySelectionClipboard=t.get(32),this._copyWithSyntaxHighlighting=t.get(21),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("tabindex",String(t.get(112))),(e.hasChanged(30)||e.hasChanged(81))&&(t.get(30)&&t.get(81)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}prepareRender(e){this._primaryCursorPosition=new _["a"](this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),this._visibleTextArea&&this._visibleTextArea.prepareRender(e)}render(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){if(this._visibleTextArea){const e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,i=this._visibleTextArea.startPosition,o=this._visibleTextArea.endPosition;if(i&&o&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){const n=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,s=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let r=this._visibleTextArea.widthOfHiddenLineTextBefore,a=this._contentLeft+e.left-this._scrollLeft,l=t.left-e.left+1;if(a<this._contentLeft){const e=this._contentLeft-a;a+=e,r+=e,l-=e}l>this._contentWidth&&(l=this._contentWidth);const c=this._context.viewModel.getViewLineData(i.lineNumber),u=c.tokens.findTokenIndexAtOffset(i.column-1),h=c.tokens.findTokenIndexAtOffset(o.column-1),d=u===h,p=this._visibleTextArea.definePresentation(d?c.tokens.getPresentation(u):null);this.textArea.domNode.scrollTop=s*this._lineHeight,this.textArea.domNode.scrollLeft=r,this._doRender({lastRenderPosition:null,top:n,left:a,width:l,height:this._lineHeight,useCover:!1,color:(w["l"].getColorMap()||[])[p.foreground],italic:p.italic,bold:p.bold,underline:p.underline,strikethrough:p.strikethrough})}return}if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(t<0||t>this._contentHeight)this._renderAtTopLeft();else if(r["i"]){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:e,width:x?0:1,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const i=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=i*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:t,left:e,width:x?0:1,height:x?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;do{if(i=e.indexOf("\n",i+1),-1===i)break;t++}while(1);return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:x?0:1,height:x?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;Object(l["a"])(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?b["a"].Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const o=this._context.configuration.options;o.get(50)?i.setClassName("monaco-editor-background textAreaCover "+p["a"].OUTER_CLASS_NAME):0!==o.get(60).renderType?i.setClassName("monaco-editor-background textAreaCover "+d["a"].CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}}function T(e,t){if(0===e.length)return 0;const i=document.createElement("div");i.style.position="absolute",i.style.top="-50000px",i.style.width="50000px";const o=document.createElement("span");Object(l["a"])(o,t),o.style.whiteSpace="pre",o.append(e),i.appendChild(o),document.body.appendChild(i);const n=o.offsetWidth;return document.body.removeChild(i),n}},e53c:function(e,t,i){"use strict";i.d(t,"d",(function(){return o})),i.d(t,"a",(function(){return m})),i.d(t,"b",(function(){return g})),i.d(t,"c",(function(){return f})),i.d(t,"e",(function(){return v}));var o,n=i("0f70"),s=i("11f7"),r=i("b835"),a=i("5fe7"),l=i("308f"),c=i("a666"),u=i("b9b4"),h=i("3742"),d=i("0a89"),p=i("8025");(function(e){e.Tap="-monaco-textarea-synthetic-tap"})(o||(o={}));const m={forceCopyWithSyntaxHighlighting:!1};class g{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}g.INSTANCE=new g;class _{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){e=e||"";const t={text:e,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}class f extends c["a"]{constructor(e,t,i,o){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=o,this._onFocus=this._register(new l["b"]),this.onFocus=this._onFocus.event,this._onBlur=this._register(new l["b"]),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new l["b"]),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new l["b"]),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new l["b"]),this.onCut=this._onCut.event,this._onPaste=this._register(new l["b"]),this.onPaste=this._onPaste.event,this._onType=this._register(new l["b"]),this.onType=this._onType.event,this._onCompositionStart=this._register(new l["b"]),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new l["b"]),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new l["b"]),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new l["b"]),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncTriggerCut=this._register(new a["h"](()=>this._onCut.fire(),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new a["h"](()=>this.writeScreenReaderContent("asyncFocusGain"),0)),this._textAreaState=d["b"].EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._currentComposition=null;let n=null;this._register(this._textArea.onKeyDown(e=>{const t=new r["a"](e);(109===t.keyCode||this._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),n=t,this._onKeyDown.fire(t)})),this._register(this._textArea.onKeyUp(e=>{const t=new r["a"](e);this._onKeyUp.fire(t)})),this._register(this._textArea.onCompositionStart(e=>{d["c"]&&console.log("[compositionstart]",e);const t=new _;if(this._currentComposition)this._currentComposition=t;else{if(this._currentComposition=t,2===this._OS&&n&&n.equals(109)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===n.code||"ArrowLeft"===n.code))return d["c"]&&console.log("[compositionstart] Handling long press case on macOS + arrow key",e),t.handleCompositionUpdate("x"),void this._onCompositionStart.fire({data:e.data});this._browser.isAndroid,this._onCompositionStart.fire({data:e.data})}})),this._register(this._textArea.onCompositionUpdate(e=>{d["c"]&&console.log("[compositionupdate]",e);const t=this._currentComposition;if(!t)return;if(this._browser.isAndroid){const t=d["b"].readFromTextArea(this._textArea),i=d["b"].deduceAndroidCompositionInput(this._textAreaState,t);return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const i=t.handleCompositionUpdate(e.data);this._textAreaState=d["b"].readFromTextArea(this._textArea),this._onType.fire(i),this._onCompositionUpdate.fire(e)})),this._register(this._textArea.onCompositionEnd(e=>{d["c"]&&console.log("[compositionend]",e);const t=this._currentComposition;if(!t)return;if(this._currentComposition=null,this._browser.isAndroid){const e=d["b"].readFromTextArea(this._textArea),t=d["b"].deduceAndroidCompositionInput(this._textAreaState,e);return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const i=t.handleCompositionUpdate(e.data);this._textAreaState=d["b"].readFromTextArea(this._textArea),this._onType.fire(i),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(e=>{if(d["c"]&&console.log("[input]",e),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const t=d["b"].readFromTextArea(this._textArea),i=d["b"].deduceInput(this._textAreaState,t,2===this._OS);0===i.replacePrevCharCnt&&1===i.text.length&&h["E"](i.text.charCodeAt(0))||(this._textAreaState=t,""===i.text&&0===i.replacePrevCharCnt&&0===i.replaceNextCharCnt&&0===i.positionDelta||this._onType.fire(i))})),this._register(this._textArea.onCut(e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(e=>{this._ensureClipboardGetsEditorSelection(e)})),this._register(this._textArea.onPaste(e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),!e.clipboardData)return;let[t,i]=C.getTextData(e.clipboardData);t&&(i=i||g.INSTANCE.get(t),this._onPaste.fire({text:t,metadata:i}))})),this._register(this._textArea.onFocus(()=>{const e=this._hasFocus;this._setHasFocus(!0),this._browser.isSafari&&!e&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let e=0;return s["i"](document,"selectionchange",t=>{if(!this._hasFocus)return;if(this._currentComposition)return;if(!this._browser.isChrome)return;const i=Date.now(),o=i-e;if(e=i,o<5)return;const n=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),n<100)return;if(!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const s=this._textArea.getValue();if(this._textAreaState.value!==s)return;const r=this._textArea.getSelectionStart(),a=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===r&&this._textAreaState.selectionEnd===a)return;const l=this._textAreaState.deduceEditorPosition(r),c=this._host.deduceModelPosition(l[0],l[1],l[2]),u=this._textAreaState.deduceEditorPosition(a),h=this._host.deduceModelPosition(u[0],u[1],u[2]),d=new p["a"](c.lineNumber,c.column,h.lineNumber,h.column);this._onSelectionChangeRequest.fire(d)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeScreenReaderContent(e){this._currentComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};g.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,i),e.preventDefault(),e.clipboardData&&C.setTextData(e.clipboardData,t.text,t.html,i)}}class C{static getTextData(e){const t=e.getData(u["a"].text);let i=null;const o=e.getData("vscode-editor-data");if("string"===typeof o)try{i=JSON.parse(o),1!==i.version&&(i=null)}catch(n){}return[t,i]}static setTextData(e,t,i,o){e.setData(u["a"].text,t),"string"===typeof i&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(o))}}class v extends c["a"]{constructor(e){super(),this._actual=e,this.onKeyDown=this._register(s["w"](this._actual,"keydown")).event,this.onKeyUp=this._register(s["w"](this._actual,"keyup")).event,this.onCompositionStart=this._register(s["w"](this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(s["w"](this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(s["w"](this._actual,"compositionend")).event,this.onInput=this._register(s["w"](this._actual,"input")).event,this.onCut=this._register(s["w"](this._actual,"cut")).event,this.onCopy=this._register(s["w"](this._actual,"copy")).event,this.onPaste=this._register(s["w"](this._actual,"paste")).event,this.onFocus=this._register(s["w"](this._actual,"focus")).event,this.onBlur=this._register(s["w"](this._actual,"blur")).event,this._onSyntheticTap=this._register(new l["b"]),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(s["i"](this._actual,o.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){const e=s["G"](this._actual);return e?e.activeElement===this._actual:!!s["O"](this._actual)&&document.activeElement===this._actual}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const o=this._actual;let r=null;const a=s["G"](o);r=a?a.activeElement:document.activeElement;const l=r===o,c=o.selectionStart,u=o.selectionEnd;if(l&&c===t&&u===i)n["isFirefox"]&&window.parent!==window&&o.focus();else{if(l)return this.setIgnoreSelectionChangeTime("setSelectionRange"),o.setSelectionRange(t,i),void(n["isFirefox"]&&window.parent!==window&&o.focus());try{const e=s["V"](o);this.setIgnoreSelectionChangeTime("setSelectionRange"),o.focus(),o.setSelectionRange(t,i),s["T"](o,e)}catch(h){}}}}},fc77:function(e,t,i){"use strict";i.d(t,"a",(function(){return w}));var o=i("0f70"),n=i("e8e3"),s=i("308f"),r=i("a666"),a=i("aa3d"),l=i("30db"),c=i("a37f"),u=i("68aa"),h=i("be5f");function d(e){const t=e.wordWrap;!0===t?e.wordWrap="on":!1===t&&(e.wordWrap="off");const i=e.lineNumbers;!0===i?e.lineNumbers="on":!1===i&&(e.lineNumbers="off");const o=e.autoClosingBrackets;!1===o&&(e.autoClosingBrackets="never",e.autoClosingQuotes="never",e.autoSurround="never");const n=e.cursorBlinking;"visible"===n&&(e.cursorBlinking="solid");const s=e.renderWhitespace;!0===s?e.renderWhitespace="boundary":!1===s&&(e.renderWhitespace="none");const r=e.renderLineHighlight;!0===r?e.renderLineHighlight="line":!1===r&&(e.renderLineHighlight="none");const a=e.acceptSuggestionOnEnter;!0===a?e.acceptSuggestionOnEnter="on":!1===a&&(e.acceptSuggestionOnEnter="off");const l=e.tabCompletion;!1===l?e.tabCompletion="off":!0===l&&(e.tabCompletion="onlySnippets");const c=e.suggest;if(c&&"object"===typeof c.filteredTypes&&c.filteredTypes){const e={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};Object(h["b"])(e,e=>{const t=c.filteredTypes[e.key];!1===t&&(c[e.value]=t)})}const u=e.hover;!0===u?e.hover={enabled:!0}:!1===u&&(e.hover={enabled:!1});const d=e.parameterHints;!0===d?e.parameterHints={enabled:!0}:!1===d&&(e.parameterHints={enabled:!1});const p=e.autoIndent;!0===p?e.autoIndent="full":!1===p&&(e.autoIndent="advanced");const m=e.matchBrackets;!0===m?e.matchBrackets="always":!1===m&&(e.matchBrackets="never");const{renderIndentGuides:g,highlightActiveIndentGuide:_}=e;e.guides||(e.guides={}),void 0!==g&&(e.guides.indentation=!!g),void 0!==_&&(e.guides.highlightActiveIndentation=!!_)}var p=i("a7e6"),m=i("fd49"),g=i("62bd"),_=i("fb71"),f=i("4779"),C=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},v=function(e,t){return function(i,o){t(i,o,e)}};let w=class extends r["a"]{constructor(e,t,i,n){super(),this._accessibilityService=n,this._onDidChange=this._register(new s["b"]),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new s["b"]),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._computeOptionsMemory=new m["b"],this.isSimpleWidget=e,this._containerObserver=this._register(new c["a"](i,t.dimension)),this._rawOptions=E(t),this._validatedOptions=T.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(10)&&this._containerObserver.startObserving(),this._register(g["a"].onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(p["a"].onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(u["a"].onDidChange(()=>this._recomputeOptions())),this._register(o["PixelRatio"].onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){const e=this._computeOptions(),t=T.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=_["a"].createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),o={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:p["a"].getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return T.computeOptions(this._validatedOptions,o)}_readEnvConfiguration(){return{extraEditorClassName:S(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:o["isWebKit"]||o["isFirefox"],pixelRatio:o["PixelRatio"].value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return u["a"].readFontInfo(e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=E(e),i=T.applyUpdate(this._rawOptions,t);i&&(this._validatedOptions=T.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=b(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}};function b(e){let t=0;while(e)e=Math.floor(e/10),t++;return t||1}function S(){let e="";return o["isSafari"]||o["isWebkitWebView"]||(e+="no-user-select "),o["isSafari"]&&(e+="no-minimap-shadow "),l["i"]&&(e+="mac "),e}w=C([v(3,f["b"])],w);class x{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class y{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class T{static validateOptions(e){const t=new x;for(const i of m["l"]){const o="_never_"===i.name?void 0:e[i.name];t._write(i.id,i.validate(o))}return t}static computeOptions(e,t){const i=new y;for(const o of m["l"])i._write(o.id,o.compute(t,i,e._read(o.id)));return i}static _deepEquals(e,t){if("object"!==typeof e||"object"!==typeof t||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&n["h"](e,t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!T._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let o=!1;for(const n of m["l"]){const s=!T._deepEquals(e._read(n.id),t._read(n.id));i[n.id]=s,s&&(o=!0)}return o?new m["c"](i):null}static applyUpdate(e,t){let i=!1;for(const o of m["l"])if(t.hasOwnProperty(o.name)){const n=o.applyUpdate(e[o.name],t[o.name]);e[o.name]=n.newValue,i=i||n.didChange}return i}}function E(e){const t=a["b"](e);return d(t),t}}}]);
Coded by KALI :v Greetz to DR HARD ../ kali.zbi@hotmail.com