@deephaven/code-studio 0.29.1-beta.0 → 0.29.1-relative-base-url.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/{index.962cedc6.js → index.80806d3b.js} +4 -4
- package/build/assets/index.80806d3b.js.map +1 -0
- package/build/assets/{index.6d40befa.css → index.ce6ce2f2.css} +1 -1
- package/build/assets/monaco.614a47c6.css +1 -0
- package/build/assets/{monaco.1292e04e.js → monaco.f95ee3d0.js} +8 -8
- package/build/assets/{monaco.1292e04e.js.map → monaco.f95ee3d0.js.map} +1 -1
- package/build/assets/vendor.c53844f2.css +1 -0
- package/build/index.html +13 -13
- package/package.json +26 -26
- package/build/assets/index.962cedc6.js.map +0 -1
- package/build/assets/monaco.8607667d.css +0 -1
- package/build/assets/vendor.2939dda5.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const FB="modulepreload",BB=function(s){return"/ide/"+s},BN={},pe=function(e,t,i){return!t||t.length===0?e():Promise.all(t.map(n=>{if(n=BB(n),n in BN)return;BN[n]=!0;const o=n.endsWith(".css"),r=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${r}`))return;const a=document.createElement("link");if(a.rel=o?"stylesheet":FB,o||(a.as="script",a.crossOrigin=""),a.href=n,document.head.appendChild(a),o)return new Promise((l,d)=>{a.addEventListener("load",l),a.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>e())};function WB(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,function(i,n){const o=n[0];return typeof e[o]<"u"?e[o]:i}),t}function f(s,e,...t){return WB(e,t)}var rS;const l1="en";let G1=!1,Z1=!1,d1=!1,E4=!1,D4=!1,FD=!1,Gf,c1=l1,VB,Cl;const Ft=typeof self=="object"?self:typeof global=="object"?global:{};let qi;typeof Ft.vscode<"u"&&typeof Ft.vscode.process<"u"?qi=Ft.vscode.process:typeof process<"u"&&(qi=process);const HB=typeof((rS=qi==null?void 0:qi.versions)===null||rS===void 0?void 0:rS.electron)=="string",$B=HB&&(qi==null?void 0:qi.type)==="renderer";if(typeof navigator=="object"&&!$B)Cl=navigator.userAgent,G1=Cl.indexOf("Windows")>=0,Z1=Cl.indexOf("Macintosh")>=0,FD=(Cl.indexOf("Macintosh")>=0||Cl.indexOf("iPad")>=0||Cl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,d1=Cl.indexOf("Linux")>=0,D4=!0,Gf=navigator.language,c1=Gf;else if(typeof qi=="object"){G1=qi.platform==="win32",Z1=qi.platform==="darwin",d1=qi.platform==="linux",d1&&!!qi.env.SNAP&&qi.env.SNAP_REVISION,Gf=l1,c1=l1;const s=qi.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];Gf=e.locale,c1=t||l1,VB=e._translationsConfigFile}catch{}E4=!0}else console.error("Unable to resolve platform.");const Pi=G1,He=Z1,kn=d1,zo=E4,Ld=D4,Go=FD,zB=Cl,UB=c1,jB=Gf,T4=(()=>{if(typeof Ft.postMessage=="function"&&!Ft.importScripts){let s=[];Ft.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=s.length;i<n;i++){const o=s[i];if(o.id===t.data.vscodeScheduleAsyncWork){s.splice(i,1),o.callback();return}}});let e=0;return t=>{const i=++e;s.push({id:i,callback:t}),Ft.postMessage({vscodeScheduleAsyncWork:i},"*")}}return s=>setTimeout(s)})(),qB=function(){if(Ft.setImmediate)return Ft.setImmediate.bind(Ft);if(typeof Ft.postMessage=="function"&&!Ft.importScripts)return T4;if(typeof(qi==null?void 0:qi.nextTick)=="function")return qi.nextTick.bind(qi);const e=Promise.resolve();return t=>e.then(t)}(),Rs=Z1||FD?2:G1?1:3;let WN=!0,VN=!1;function I4(){if(!VN){VN=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,WN=new Uint16Array(s.buffer)[0]===(2<<8)+1}return WN}const N4="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function KB(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of N4)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const A4=KB();function Y1(s){let e=A4;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const GB={maxLen:1e3,windowSize:15,timeBudget:150};function X1(s,e,t,i,n=GB){if(t.length>n.maxLen){let d=s-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,s+n.maxLen/2),X1(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-o>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const u=ZB(e,t,r,a);if(!u&&l||(l=u,c<=0))break;a=c}if(l){let d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function ZB(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}function Ts(s,e=0){return s[s.length-(1+e)]}function YB(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function Vs(s,e,t=(i,n)=>i===n){if(s===e)return!0;if(!s||!e||s.length!==e.length)return!1;for(let i=0,n=s.length;i<n;i++)if(!t(s[i],e[i]))return!1;return!0}function BD(s,e,t){let i=0,n=s.length-1;for(;i<=n;){const o=(i+n)/2|0,r=t(s[o],e);if(r<0)i=o+1;else if(r>0)n=o-1;else return o}return-(i+1)}function R4(s,e){let t=0,i=s.length;if(i===0)return 0;for(;t<i;){const n=Math.floor((t+i)/2);e(s[n])?i=n:t=n+1}return t}function px(s,e,t){if(s=s|0,s>=e.length)throw new TypeError("invalid index");let i=e[Math.floor(e.length*Math.random())],n=[],o=[],r=[];for(let a of e){const l=t(a,i);l<0?n.push(a):l>0?o.push(a):r.push(a)}return s<n.length?px(s,n,t):s<n.length+r.length?r[0]:px(s-(n.length+r.length),o,t)}function HN(s,e){const t=[];let i;for(const n of s.slice(0).sort(e))!i||e(i[0],n)!==0?(i=[n],t.push(i)):i.push(n);return t}function Yg(s){return s.filter(e=>!!e)}function O4(s){return!Array.isArray(s)||s.length===0}function Jn(s){return Array.isArray(s)&&s.length>0}function Fc(s,e=t=>t){const t=new Set;return s.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function XB(s,e){const t=QB(s,e);if(t!==-1)return s[t]}function QB(s,e){for(let t=s.length-1;t>=0;t--){const i=s[t];if(e(i))return t}return-1}function mx(s,e){return s.length>0?s[0]:e}function M4(s){return[].concat(...s)}function bn(s,e){let t=typeof e=="number"?s:0;typeof e=="number"?t=s:(t=0,e=s);const i=[];if(t<=e)for(let n=t;n<e;n++)i.push(n);else for(let n=t;n>e;n--)i.push(n);return i}function Hp(s,e,t){const i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function aS(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function nb(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function WD(s){return Array.isArray(s)?s:[s]}function JB(s,e,t){const i=P4(s,e),n=s.length,o=t.length;s.length=n+o;for(let r=n-1;r>=i;r--)s[r+o]=s[r];for(let r=0;r<o;r++)s[r+i]=t[r]}function $N(s,e,t,i){const n=P4(s,e),o=s.splice(n,t);return JB(s,n,i),o}function P4(s,e){return e<0?Math.max(e+s.length,0):Math.min(e,s.length)}class Wh{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}function F4(s){return Array.isArray(s)}function js(s){return typeof s=="string"}function Wn(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function Bc(s){return typeof s=="number"&&!isNaN(s)}function B4(s){return s===!0||s===!1}function Yn(s){return typeof s>"u"}function eW(s){return!ps(s)}function ps(s){return Yn(s)||s===null}function wt(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function sb(s){if(ps(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function Q1(s){return typeof s=="function"}function tW(s,e){const t=Math.min(s.length,e.length);for(let i=0;i<t;i++)iW(s[i],e[i])}function iW(s,e){if(js(e)){if(typeof s!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(Q1(e)){try{if(s instanceof e)return}catch{}if(!ps(s)&&s.constructor===e||e.length===1&&e.call(void 0,s)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function nW(s){let e=[],t=Object.getPrototypeOf(s);for(;Object.prototype!==t;)e=e.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t);return e}function VD(s){const e=[];for(const t of nW(s))typeof s[t]=="function"&&e.push(t);return e}function sW(s,e){const t=n=>function(){const o=Array.prototype.slice.call(arguments,0);return e(n,o)};let i={};for(const n of s)i[n]=t(n);return i}function Xn(s){return s===null?void 0:s}function W4(s,e="Unreachable"){throw new Error(e)}function Da(s){if(!s||typeof s!="object"||s instanceof RegExp)return s;const e=Array.isArray(s)?[]:{};return Object.keys(s).forEach(t=>{s[t]&&typeof s[t]=="object"?e[t]=Da(s[t]):e[t]=s[t]}),e}function oW(s){if(!s||typeof s!="object")return s;const e=[s];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(V4.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&e.push(n)}}return s}const V4=Object.prototype.hasOwnProperty;function rW(s,e){return _x(s,e,new Set)}function _x(s,e,t){if(ps(s))return s;const i=e(s);if(typeof i<"u")return i;if(F4(s)){const n=[];for(const o of s)n.push(_x(o,e,t));return n}if(Wn(s)){if(t.has(s))throw new Error("Cannot clone recursive data-structure");t.add(s);const n={};for(let o in s)V4.call(s,o)&&(n[o]=_x(s[o],e,t));return t.delete(s),n}return s}function sa(s,e,t=!0){return Wn(s)?(Wn(e)&&Object.keys(e).forEach(i=>{i in s?t&&(Wn(s[i])&&Wn(e[i])?sa(s[i],e[i],t):s[i]=e[i]):s[i]=e[i]}),s):e}function vo(s,e){if(s===e)return!0;if(s==null||e===null||e===void 0||typeof s!=typeof e||typeof s!="object"||Array.isArray(s)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(s)){if(s.length!==e.length)return!1;for(t=0;t<s.length;t++)if(!vo(s[t],e[t]))return!1}else{const n=[];for(i in s)n.push(i);n.sort();const o=[];for(i in e)o.push(i);if(o.sort(),!vo(n,o))return!1;for(t=0;t<n.length;t++)if(!vo(s[n[t]],e[n[t]]))return!1}return!0}function dr(s,e,t){const i=e(s);return typeof i>"u"?t:i}const wl=8;class H4{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class aW{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class $4{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class _i{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return aC(e,t)}compute(e,t,i){return i}}class ap{constructor(e,t){this.newValue=e,this.didChange=t}}function aC(s,e){if(typeof s!="object"||typeof e!="object"||!s||!e)return new ap(e,s!==e);if(Array.isArray(s)||Array.isArray(e)){const i=Array.isArray(s)&&Array.isArray(e)&&Vs(s,e);return new ap(e,i)}let t=!1;for(let i in e)if(e.hasOwnProperty(i)){const n=aC(s[i],e[i]);n.didChange&&(s[i]=n.newValue,t=!0)}return new ap(s,t)}class Xg{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}applyUpdate(e,t){return aC(e,t)}validate(e){return this.defaultValue}}class Su{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return aC(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function ve(s,e){return typeof s>"u"?e:s==="false"?!1:Boolean(s)}class Ge extends Su{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return ve(e,this.defaultValue)}}function bx(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Mt extends Su{constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){return bx(e,t,i,n)}validate(e){return Mt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Br extends Su{constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(Br.float(e,this.defaultValue))}}class Gn extends Su{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Gn.string(e,this.defaultValue)}}function Rn(s,e,t){return typeof s!="string"||t.indexOf(s)===-1?e:s}class hi extends Su{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return Rn(e,this.defaultValue,this._allowedValues)}}class Df extends _i{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function lW(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class dW extends _i{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[f("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),f("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),f("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:f("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class cW extends _i{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:f("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:f("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:ve(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:ve(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function uW(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Mi;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(Mi||(Mi={}));function hW(s){switch(s){case"line":return Mi.Line;case"block":return Mi.Block;case"underline":return Mi.Underline;case"line-thin":return Mi.LineThin;case"block-outline":return Mi.BlockOutline;case"underline-thin":return Mi.UnderlineThin}}class gW extends Xg{constructor(){super(127,[65,33])}compute(e,t,i){const n=["monaco-editor"];return t.get(33)&&n.push(t.get(33)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(65)==="default"?n.push("mouse-default"):t.get(65)==="copy"&&n.push("mouse-copy"),t.get(99)&&n.push("showUnused"),t.get(125)&&n.push("showDeprecated"),n.join(" ")}}class fW extends Ge{constructor(){super(32,"emptySelectionClipboard",!0,{description:f("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class pW extends _i{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:f("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[f("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),f("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),f("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:f("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[f("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),f("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),f("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:f("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:f("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:He},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:f("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:f("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:ve(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Rn(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Rn(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:ve(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:ve(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:ve(t.loop,this.defaultValue.loop)}}}class ms extends _i{constructor(){super(44,"fontLigatures",ms.OFF,{anyOf:[{type:"boolean",description:f("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:f("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:f("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?ms.OFF:e==="true"?ms.ON:e:Boolean(e)?ms.ON:ms.OFF}}ms.OFF='"liga" off, "calt" off';ms.ON='"liga" on, "calt" on';class mW extends Xg{constructor(){super(43)}compute(e,t,i){return e.fontInfo}}class _W extends Su{constructor(){super(45,"fontSize",on.fontSize,{type:"number",minimum:6,maximum:100,default:on.fontSize,description:f("fontSize","Controls the font size in pixels.")})}validate(e){let t=Br.float(e,this.defaultValue);return t===0?on.fontSize:Br.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ar extends _i{constructor(){super(46,"fontWeight",on.fontWeight,{anyOf:[{type:"number",minimum:Ar.MINIMUM_VALUE,maximum:Ar.MAXIMUM_VALUE,errorMessage:f("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ar.SUGGESTION_VALUES}],default:on.fontWeight,description:f("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Mt.clampedInt(e,on.fontWeight,Ar.MINIMUM_VALUE,Ar.MAXIMUM_VALUE))}}Ar.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Ar.MINIMUM_VALUE=1;Ar.MAXIMUM_VALUE=1e3;class bW extends _i{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[f("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),f("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),f("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(50,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:f("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:f("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:f("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:f("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:f("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:f("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:f("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:f("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:f("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Rn(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Rn(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Rn(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Rn(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:Rn(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Rn(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Gn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Gn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Gn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Gn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Gn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class vW extends _i{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(52,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:f("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:f("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:f("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:f("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),delay:Mt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:ve(t.sticky,this.defaultValue.sticky),above:ve(t.above,this.defaultValue.above)}}}class Vh extends Xg{constructor(){super(130,[49,57,37,64,91,59,60,93,117,120,121,122,2])}compute(e,t,i){return Vh.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,C=e.isViewportWrapping,w=u?2:3;let S=Math.floor(o*n);const E=S/o;let y=!1,k=!1,N=w*h,V=h/o,P=1;if(p==="fill"||p==="fit"){const{typicalViewportLineCount:ke,extraLinesBeyondLastLine:Le,desiredRatio:qt,minimapLineCount:Ot}=Vh.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:c,height:n,lineHeight:l,pixelRatio:o});if(v/Ot>1)y=!0,k=!0,h=1,N=1,V=h/o;else{let Zt=!1,vt=h+1;if(p==="fit"){const zn=Math.ceil((v+Le)*N);C&&a&&b<=t.stableFitRemainingWidth?(Zt=!0,vt=t.stableFitMaxMinimapScale):Zt=zn>S}if(p==="fill"||Zt){y=!0;const zn=h;N=Math.min(l*o,Math.max(1,Math.floor(1/qt))),C&&a&&b<=t.stableFitRemainingWidth&&(vt=t.stableFitMaxMinimapScale),h=Math.min(vt,Math.max(1,Math.floor(N/w))),h>zn&&(P=Math.min(2,h/zn)),V=h/o/P,S=Math.ceil(Math.max(ke,v+Le)*N),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const j=Math.floor(g*V),K=Math.min(j,Math.max(0,Math.floor((b-_-2)*V/(d+V)))+wl);let ge=Math.floor(o*K);const fe=ge/o;ge=Math.floor(ge*P);const we=u?1:2,Ae=m==="left"?0:i-K-_;return{renderMinimap:we,minimapLeft:Ae,minimapWidth:K,minimapHeightIsEditorHeight:y,minimapIsSampling:k,minimapScale:h,minimapLineHeight:N,minimapCanvasInnerWidth:ge,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:fe,minimapCanvasOuterHeight:E}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,c=t.viewLineCount,u=e.get(122),h=u==="inherit"?e.get(121):u,g=h==="inherit"?e.get(117):h,p=e.get(120),m=e.get(2),_=t.isDominatedByLongLines,v=e.get(49),b=e.get(59).renderType!==0,C=e.get(60),w=e.get(93),S=e.get(64),E=e.get(91),y=E.verticalScrollbarSize,k=E.verticalHasArrows,N=E.arrowSize,V=E.horizontalScrollbarSize,P=e.get(57),j=e.get(37);let K;if(typeof P=="string"&&/^\d+(\.\d+)?ch$/.test(P)){const ko=parseFloat(P.substr(0,P.length-2));K=Mt.clampedInt(ko*a,0,0,1e3)}else K=Mt.clampedInt(P,0,0,1e3);j&&(K+=16);let ge=0;if(b){const ko=Math.max(r,C);ge=Math.round(ko*l)}let fe=0;v&&(fe=o);let we=0,Ae=we+fe,ke=Ae+ge,Le=ke+K;const qt=i-fe-ge-K;let Ot=!1,Wt=!1,Zt=-1;m!==2&&(h==="inherit"&&_?(Ot=!0,Wt=!0):g==="on"||g==="bounded"?Wt=!0:g==="wordWrapColumn"&&(Zt=p));const vt=Vh._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:w,minimap:S,verticalScrollbarWidth:y,viewLineCount:c,remainingWidth:qt,isViewportWrapping:Wt},t.memory||new $4);vt.renderMinimap!==0&&vt.minimapLeft===0&&(we+=vt.minimapWidth,Ae+=vt.minimapWidth,ke+=vt.minimapWidth,Le+=vt.minimapWidth);const zn=qt-vt.minimapWidth,rr=Math.max(1,Math.floor((zn-y-2)/a)),ha=k?N:0;return Wt&&(Zt=Math.max(1,rr),g==="bounded"&&(Zt=Math.min(Zt,p))),{width:i,height:n,glyphMarginLeft:we,glyphMarginWidth:fe,lineNumbersLeft:Ae,lineNumbersWidth:ge,decorationsLeft:ke,decorationsWidth:K,contentLeft:Le,contentWidth:zn,minimap:vt,viewportColumn:rr,isWordWrapMinified:Ot,isViewportWrapping:Wt,wrappingColumn:Zt,verticalScrollbarWidth:y,horizontalScrollbarHeight:V,overviewRuler:{top:ha,width:y,height:n-2*ha,right:0}}}}class CW extends _i{constructor(){const e={enabled:!0};super(56,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:f("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:ve(e.enabled,this.defaultValue.enabled)}}}class wW extends _i{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(126,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:f("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:f("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:f("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),fontSize:Mt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Gn.string(t.fontFamily,this.defaultValue.fontFamily)}}}class SW extends Br{constructor(){super(58,"lineHeight",on.lineHeight,e=>Br.clamp(e,0,150),{markdownDescription:f("lineHeight",`Controls the line height.
|
|
1
|
+
const FB="modulepreload",BB=function(s,e){return new URL(s,e).href},BN={},pe=function(e,t,i){return!t||t.length===0?e():Promise.all(t.map(n=>{if(n=BB(n,i),n in BN)return;BN[n]=!0;const o=n.endsWith(".css"),r=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${r}`))return;const a=document.createElement("link");if(a.rel=o?"stylesheet":FB,o||(a.as="script",a.crossOrigin=""),a.href=n,document.head.appendChild(a),o)return new Promise((l,d)=>{a.addEventListener("load",l),a.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>e())};function WB(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,function(i,n){const o=n[0];return typeof e[o]<"u"?e[o]:i}),t}function f(s,e,...t){return WB(e,t)}var rS;const l1="en";let G1=!1,Z1=!1,d1=!1,E4=!1,D4=!1,FD=!1,Gf,c1=l1,VB,Cl;const Ft=typeof self=="object"?self:typeof global=="object"?global:{};let qi;typeof Ft.vscode<"u"&&typeof Ft.vscode.process<"u"?qi=Ft.vscode.process:typeof process<"u"&&(qi=process);const HB=typeof((rS=qi==null?void 0:qi.versions)===null||rS===void 0?void 0:rS.electron)=="string",$B=HB&&(qi==null?void 0:qi.type)==="renderer";if(typeof navigator=="object"&&!$B)Cl=navigator.userAgent,G1=Cl.indexOf("Windows")>=0,Z1=Cl.indexOf("Macintosh")>=0,FD=(Cl.indexOf("Macintosh")>=0||Cl.indexOf("iPad")>=0||Cl.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,d1=Cl.indexOf("Linux")>=0,D4=!0,Gf=navigator.language,c1=Gf;else if(typeof qi=="object"){G1=qi.platform==="win32",Z1=qi.platform==="darwin",d1=qi.platform==="linux",d1&&!!qi.env.SNAP&&qi.env.SNAP_REVISION,Gf=l1,c1=l1;const s=qi.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];Gf=e.locale,c1=t||l1,VB=e._translationsConfigFile}catch{}E4=!0}else console.error("Unable to resolve platform.");const Pi=G1,He=Z1,kn=d1,zo=E4,Ld=D4,Go=FD,zB=Cl,UB=c1,jB=Gf,T4=(()=>{if(typeof Ft.postMessage=="function"&&!Ft.importScripts){let s=[];Ft.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=s.length;i<n;i++){const o=s[i];if(o.id===t.data.vscodeScheduleAsyncWork){s.splice(i,1),o.callback();return}}});let e=0;return t=>{const i=++e;s.push({id:i,callback:t}),Ft.postMessage({vscodeScheduleAsyncWork:i},"*")}}return s=>setTimeout(s)})(),qB=function(){if(Ft.setImmediate)return Ft.setImmediate.bind(Ft);if(typeof Ft.postMessage=="function"&&!Ft.importScripts)return T4;if(typeof(qi==null?void 0:qi.nextTick)=="function")return qi.nextTick.bind(qi);const e=Promise.resolve();return t=>e.then(t)}(),Rs=Z1||FD?2:G1?1:3;let WN=!0,VN=!1;function I4(){if(!VN){VN=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,WN=new Uint16Array(s.buffer)[0]===(2<<8)+1}return WN}const N4="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function KB(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of N4)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const A4=KB();function Y1(s){let e=A4;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const GB={maxLen:1e3,windowSize:15,timeBudget:150};function X1(s,e,t,i,n=GB){if(t.length>n.maxLen){let d=s-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,s+n.maxLen/2),X1(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-o>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const u=ZB(e,t,r,a);if(!u&&l||(l=u,c<=0))break;a=c}if(l){let d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function ZB(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}function Ts(s,e=0){return s[s.length-(1+e)]}function YB(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function Vs(s,e,t=(i,n)=>i===n){if(s===e)return!0;if(!s||!e||s.length!==e.length)return!1;for(let i=0,n=s.length;i<n;i++)if(!t(s[i],e[i]))return!1;return!0}function BD(s,e,t){let i=0,n=s.length-1;for(;i<=n;){const o=(i+n)/2|0,r=t(s[o],e);if(r<0)i=o+1;else if(r>0)n=o-1;else return o}return-(i+1)}function R4(s,e){let t=0,i=s.length;if(i===0)return 0;for(;t<i;){const n=Math.floor((t+i)/2);e(s[n])?i=n:t=n+1}return t}function px(s,e,t){if(s=s|0,s>=e.length)throw new TypeError("invalid index");let i=e[Math.floor(e.length*Math.random())],n=[],o=[],r=[];for(let a of e){const l=t(a,i);l<0?n.push(a):l>0?o.push(a):r.push(a)}return s<n.length?px(s,n,t):s<n.length+r.length?r[0]:px(s-(n.length+r.length),o,t)}function HN(s,e){const t=[];let i;for(const n of s.slice(0).sort(e))!i||e(i[0],n)!==0?(i=[n],t.push(i)):i.push(n);return t}function Yg(s){return s.filter(e=>!!e)}function O4(s){return!Array.isArray(s)||s.length===0}function Jn(s){return Array.isArray(s)&&s.length>0}function Fc(s,e=t=>t){const t=new Set;return s.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function XB(s,e){const t=QB(s,e);if(t!==-1)return s[t]}function QB(s,e){for(let t=s.length-1;t>=0;t--){const i=s[t];if(e(i))return t}return-1}function mx(s,e){return s.length>0?s[0]:e}function M4(s){return[].concat(...s)}function bn(s,e){let t=typeof e=="number"?s:0;typeof e=="number"?t=s:(t=0,e=s);const i=[];if(t<=e)for(let n=t;n<e;n++)i.push(n);else for(let n=t;n>e;n--)i.push(n);return i}function Hp(s,e,t){const i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function aS(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function nb(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function WD(s){return Array.isArray(s)?s:[s]}function JB(s,e,t){const i=P4(s,e),n=s.length,o=t.length;s.length=n+o;for(let r=n-1;r>=i;r--)s[r+o]=s[r];for(let r=0;r<o;r++)s[r+i]=t[r]}function $N(s,e,t,i){const n=P4(s,e),o=s.splice(n,t);return JB(s,n,i),o}function P4(s,e){return e<0?Math.max(e+s.length,0):Math.min(e,s.length)}class Wh{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}function F4(s){return Array.isArray(s)}function js(s){return typeof s=="string"}function Wn(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function Bc(s){return typeof s=="number"&&!isNaN(s)}function B4(s){return s===!0||s===!1}function Yn(s){return typeof s>"u"}function eW(s){return!ps(s)}function ps(s){return Yn(s)||s===null}function wt(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function sb(s){if(ps(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function Q1(s){return typeof s=="function"}function tW(s,e){const t=Math.min(s.length,e.length);for(let i=0;i<t;i++)iW(s[i],e[i])}function iW(s,e){if(js(e)){if(typeof s!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(Q1(e)){try{if(s instanceof e)return}catch{}if(!ps(s)&&s.constructor===e||e.length===1&&e.call(void 0,s)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function nW(s){let e=[],t=Object.getPrototypeOf(s);for(;Object.prototype!==t;)e=e.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t);return e}function VD(s){const e=[];for(const t of nW(s))typeof s[t]=="function"&&e.push(t);return e}function sW(s,e){const t=n=>function(){const o=Array.prototype.slice.call(arguments,0);return e(n,o)};let i={};for(const n of s)i[n]=t(n);return i}function Xn(s){return s===null?void 0:s}function W4(s,e="Unreachable"){throw new Error(e)}function Da(s){if(!s||typeof s!="object"||s instanceof RegExp)return s;const e=Array.isArray(s)?[]:{};return Object.keys(s).forEach(t=>{s[t]&&typeof s[t]=="object"?e[t]=Da(s[t]):e[t]=s[t]}),e}function oW(s){if(!s||typeof s!="object")return s;const e=[s];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(V4.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&e.push(n)}}return s}const V4=Object.prototype.hasOwnProperty;function rW(s,e){return _x(s,e,new Set)}function _x(s,e,t){if(ps(s))return s;const i=e(s);if(typeof i<"u")return i;if(F4(s)){const n=[];for(const o of s)n.push(_x(o,e,t));return n}if(Wn(s)){if(t.has(s))throw new Error("Cannot clone recursive data-structure");t.add(s);const n={};for(let o in s)V4.call(s,o)&&(n[o]=_x(s[o],e,t));return t.delete(s),n}return s}function sa(s,e,t=!0){return Wn(s)?(Wn(e)&&Object.keys(e).forEach(i=>{i in s?t&&(Wn(s[i])&&Wn(e[i])?sa(s[i],e[i],t):s[i]=e[i]):s[i]=e[i]}),s):e}function vo(s,e){if(s===e)return!0;if(s==null||e===null||e===void 0||typeof s!=typeof e||typeof s!="object"||Array.isArray(s)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(s)){if(s.length!==e.length)return!1;for(t=0;t<s.length;t++)if(!vo(s[t],e[t]))return!1}else{const n=[];for(i in s)n.push(i);n.sort();const o=[];for(i in e)o.push(i);if(o.sort(),!vo(n,o))return!1;for(t=0;t<n.length;t++)if(!vo(s[n[t]],e[n[t]]))return!1}return!0}function dr(s,e,t){const i=e(s);return typeof i>"u"?t:i}const wl=8;class H4{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class aW{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class $4{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class _i{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return aC(e,t)}compute(e,t,i){return i}}class ap{constructor(e,t){this.newValue=e,this.didChange=t}}function aC(s,e){if(typeof s!="object"||typeof e!="object"||!s||!e)return new ap(e,s!==e);if(Array.isArray(s)||Array.isArray(e)){const i=Array.isArray(s)&&Array.isArray(e)&&Vs(s,e);return new ap(e,i)}let t=!1;for(let i in e)if(e.hasOwnProperty(i)){const n=aC(s[i],e[i]);n.didChange&&(s[i]=n.newValue,t=!0)}return new ap(s,t)}class Xg{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}applyUpdate(e,t){return aC(e,t)}validate(e){return this.defaultValue}}class Su{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return aC(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function ve(s,e){return typeof s>"u"?e:s==="false"?!1:Boolean(s)}class Ge extends Su{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return ve(e,this.defaultValue)}}function bx(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class Mt extends Su{constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}static clampedInt(e,t,i,n){return bx(e,t,i,n)}validate(e){return Mt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Br extends Su{constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}validate(e){return this.validationFn(Br.float(e,this.defaultValue))}}class Gn extends Su{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Gn.string(e,this.defaultValue)}}function Rn(s,e,t){return typeof s!="string"||t.indexOf(s)===-1?e:s}class hi extends Su{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return Rn(e,this.defaultValue,this._allowedValues)}}class Df extends _i{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function lW(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class dW extends _i{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[f("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),f("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader. Word wrapping will be disabled."),f("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:f("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class cW extends _i{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:f("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:f("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:ve(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:ve(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function uW(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Mi;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(Mi||(Mi={}));function hW(s){switch(s){case"line":return Mi.Line;case"block":return Mi.Block;case"underline":return Mi.Underline;case"line-thin":return Mi.LineThin;case"block-outline":return Mi.BlockOutline;case"underline-thin":return Mi.UnderlineThin}}class gW extends Xg{constructor(){super(127,[65,33])}compute(e,t,i){const n=["monaco-editor"];return t.get(33)&&n.push(t.get(33)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(65)==="default"?n.push("mouse-default"):t.get(65)==="copy"&&n.push("mouse-copy"),t.get(99)&&n.push("showUnused"),t.get(125)&&n.push("showDeprecated"),n.join(" ")}}class fW extends Ge{constructor(){super(32,"emptySelectionClipboard",!0,{description:f("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class pW extends _i{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:f("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[f("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),f("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),f("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:f("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[f("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),f("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),f("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:f("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:f("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:He},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:f("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:f("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:ve(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Rn(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Rn(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:ve(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:ve(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:ve(t.loop,this.defaultValue.loop)}}}class ms extends _i{constructor(){super(44,"fontLigatures",ms.OFF,{anyOf:[{type:"boolean",description:f("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:f("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:f("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?ms.OFF:e==="true"?ms.ON:e:Boolean(e)?ms.ON:ms.OFF}}ms.OFF='"liga" off, "calt" off';ms.ON='"liga" on, "calt" on';class mW extends Xg{constructor(){super(43)}compute(e,t,i){return e.fontInfo}}class _W extends Su{constructor(){super(45,"fontSize",on.fontSize,{type:"number",minimum:6,maximum:100,default:on.fontSize,description:f("fontSize","Controls the font size in pixels.")})}validate(e){let t=Br.float(e,this.defaultValue);return t===0?on.fontSize:Br.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Ar extends _i{constructor(){super(46,"fontWeight",on.fontWeight,{anyOf:[{type:"number",minimum:Ar.MINIMUM_VALUE,maximum:Ar.MAXIMUM_VALUE,errorMessage:f("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Ar.SUGGESTION_VALUES}],default:on.fontWeight,description:f("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Mt.clampedInt(e,on.fontWeight,Ar.MINIMUM_VALUE,Ar.MAXIMUM_VALUE))}}Ar.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Ar.MINIMUM_VALUE=1;Ar.MAXIMUM_VALUE=1e3;class bW extends _i{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[f("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),f("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),f("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(50,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:f("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:f("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:f("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:f("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:f("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:f("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:f("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:f("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:f("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:f("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Rn(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Rn(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Rn(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:Rn(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:Rn(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Rn(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Gn.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Gn.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Gn.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Gn.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Gn.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class vW extends _i{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(52,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:f("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:f("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:f("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:f("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),delay:Mt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:ve(t.sticky,this.defaultValue.sticky),above:ve(t.above,this.defaultValue.above)}}}class Vh extends Xg{constructor(){super(130,[49,57,37,64,91,59,60,93,117,120,121,122,2])}compute(e,t,i){return Vh.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=e.scrollBeyondLastLine?t-1:0,n=(e.viewLineCount+i)/(e.pixelRatio*e.height),o=Math.floor(e.viewLineCount/n);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:i,desiredRatio:n,minimapLineCount:o}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,C=e.isViewportWrapping,w=u?2:3;let S=Math.floor(o*n);const E=S/o;let y=!1,k=!1,N=w*h,V=h/o,P=1;if(p==="fill"||p==="fit"){const{typicalViewportLineCount:ke,extraLinesBeyondLastLine:Le,desiredRatio:qt,minimapLineCount:Ot}=Vh.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:c,height:n,lineHeight:l,pixelRatio:o});if(v/Ot>1)y=!0,k=!0,h=1,N=1,V=h/o;else{let Zt=!1,vt=h+1;if(p==="fit"){const zn=Math.ceil((v+Le)*N);C&&a&&b<=t.stableFitRemainingWidth?(Zt=!0,vt=t.stableFitMaxMinimapScale):Zt=zn>S}if(p==="fill"||Zt){y=!0;const zn=h;N=Math.min(l*o,Math.max(1,Math.floor(1/qt))),C&&a&&b<=t.stableFitRemainingWidth&&(vt=t.stableFitMaxMinimapScale),h=Math.min(vt,Math.max(1,Math.floor(N/w))),h>zn&&(P=Math.min(2,h/zn)),V=h/o/P,S=Math.ceil(Math.max(ke,v+Le)*N),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const j=Math.floor(g*V),K=Math.min(j,Math.max(0,Math.floor((b-_-2)*V/(d+V)))+wl);let ge=Math.floor(o*K);const fe=ge/o;ge=Math.floor(ge*P);const we=u?1:2,Ae=m==="left"?0:i-K-_;return{renderMinimap:we,minimapLeft:Ae,minimapWidth:K,minimapHeightIsEditorHeight:y,minimapIsSampling:k,minimapScale:h,minimapLineHeight:N,minimapCanvasInnerWidth:ge,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:fe,minimapCanvasOuterHeight:E}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,c=t.viewLineCount,u=e.get(122),h=u==="inherit"?e.get(121):u,g=h==="inherit"?e.get(117):h,p=e.get(120),m=e.get(2),_=t.isDominatedByLongLines,v=e.get(49),b=e.get(59).renderType!==0,C=e.get(60),w=e.get(93),S=e.get(64),E=e.get(91),y=E.verticalScrollbarSize,k=E.verticalHasArrows,N=E.arrowSize,V=E.horizontalScrollbarSize,P=e.get(57),j=e.get(37);let K;if(typeof P=="string"&&/^\d+(\.\d+)?ch$/.test(P)){const ko=parseFloat(P.substr(0,P.length-2));K=Mt.clampedInt(ko*a,0,0,1e3)}else K=Mt.clampedInt(P,0,0,1e3);j&&(K+=16);let ge=0;if(b){const ko=Math.max(r,C);ge=Math.round(ko*l)}let fe=0;v&&(fe=o);let we=0,Ae=we+fe,ke=Ae+ge,Le=ke+K;const qt=i-fe-ge-K;let Ot=!1,Wt=!1,Zt=-1;m!==2&&(h==="inherit"&&_?(Ot=!0,Wt=!0):g==="on"||g==="bounded"?Wt=!0:g==="wordWrapColumn"&&(Zt=p));const vt=Vh._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:w,minimap:S,verticalScrollbarWidth:y,viewLineCount:c,remainingWidth:qt,isViewportWrapping:Wt},t.memory||new $4);vt.renderMinimap!==0&&vt.minimapLeft===0&&(we+=vt.minimapWidth,Ae+=vt.minimapWidth,ke+=vt.minimapWidth,Le+=vt.minimapWidth);const zn=qt-vt.minimapWidth,rr=Math.max(1,Math.floor((zn-y-2)/a)),ha=k?N:0;return Wt&&(Zt=Math.max(1,rr),g==="bounded"&&(Zt=Math.min(Zt,p))),{width:i,height:n,glyphMarginLeft:we,glyphMarginWidth:fe,lineNumbersLeft:Ae,lineNumbersWidth:ge,decorationsLeft:ke,decorationsWidth:K,contentLeft:Le,contentWidth:zn,minimap:vt,viewportColumn:rr,isWordWrapMinified:Ot,isViewportWrapping:Wt,wrappingColumn:Zt,verticalScrollbarWidth:y,horizontalScrollbarHeight:V,overviewRuler:{top:ha,width:y,height:n-2*ha,right:0}}}}class CW extends _i{constructor(){const e={enabled:!0};super(56,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:f("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:ve(e.enabled,this.defaultValue.enabled)}}}class wW extends _i{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(126,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:f("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:f("inlayHints.fontSize","Controls font size of inlay hints in the editor. A default of 90% of `#editor.fontSize#` is used when the configured value is less than `5` or greater than the editor font size.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:f("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),fontSize:Mt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Gn.string(t.fontFamily,this.defaultValue.fontFamily)}}}class SW extends Br{constructor(){super(58,"lineHeight",on.lineHeight,e=>Br.clamp(e,0,150),{markdownDescription:f("lineHeight",`Controls the line height.
|
|
2
2
|
- Use 0 to automatically compute the line height from the font size.
|
|
3
3
|
- Values between 0 and 8 will be used as a multiplier with the font size.
|
|
4
4
|
- Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class yW extends _i{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(64,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:f("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[f("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),f("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),f("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:f("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:f("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:f("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:f("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:f("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:f("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),size:Rn(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Rn(t.side,this.defaultValue.side,["right","left"]),showSlider:Rn(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:ve(t.renderCharacters,this.defaultValue.renderCharacters),scale:Mt.clampedInt(t.scale,1,1,3),maxColumn:Mt.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function xW(s){return s==="ctrlCmd"?He?"metaKey":"ctrlKey":"altKey"}class kW extends _i{constructor(){super(74,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:f("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:f("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Mt.clampedInt(t.top,0,0,1e3),bottom:Mt.clampedInt(t.bottom,0,0,1e3)}}}class LW extends _i{constructor(){const e={enabled:!0,cycle:!1};super(75,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:f("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:f("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),cycle:ve(t.cycle,this.defaultValue.cycle)}}}class EW extends Xg{constructor(){super(128)}compute(e,t,i){return e.pixelRatio}}class DW extends _i{constructor(){const e={other:!0,comments:!1,strings:!1};super(78,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:f("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:e.comments,description:f("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:e.other,description:f("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:e,description:f("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=e}validate(e){if(typeof e=="boolean")return e;if(e&&typeof e=="object"){const t=e,i={other:ve(t.other,this.defaultValue.other),comments:ve(t.comments,this.defaultValue.comments),strings:ve(t.strings,this.defaultValue.strings)};return i.other&&i.comments&&i.strings?!0:!i.other&&!i.comments&&!i.strings?!1:i}return this.defaultValue}}class TW extends _i{constructor(){super(59,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[f("lineNumbers.off","Line numbers are not rendered."),f("lineNumbers.on","Line numbers are rendered as absolute number."),f("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),f("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:f("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function HD(s){const e=s.get(86);return e==="editable"?s.get(80):e!=="on"}class IW extends _i{constructor(){const e=[],t={type:"number",description:f("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(90,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:f("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:f("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){let t=[];for(let i of e)if(typeof i=="number")t.push({column:Mt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:Mt.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}function zN(s,e){if(typeof s!="string")return e;switch(s){case"hidden":return 2;case"visible":return 3;default:return 1}}class NW extends _i{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(91,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),f("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),f("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:f("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[f("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),f("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),f("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:f("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:f("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:f("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:f("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=Mt.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=Mt.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Mt.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:zN(t.vertical,this.defaultValue.vertical),horizontal:zN(t.horizontal,this.defaultValue.horizontal),useShadows:ve(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:ve(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:ve(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:ve(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:ve(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:Mt.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:Mt.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:ve(t.scrollByPage,this.defaultValue.scrollByPage)}}}const br="inUntrustedWorkspace",Rr={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments"};class AW extends _i{constructor(){const e={nonBasicASCII:br,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:br,allowedCharacters:{}};super(112,"unicodeHighlight",e,{[Rr.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,br],default:e.nonBasicASCII,description:f("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Rr.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:f("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Rr.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:f("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Rr.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,br],default:e.includeComments,description:f("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to unicode highlighting.")},[Rr.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:f("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&(vo(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0));const n=super.applyUpdate(e,t);return i?new ap(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:J1(t.nonBasicASCII,br,[!0,!1,br]),invisibleCharacters:ve(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:ve(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:J1(t.includeComments,br,[!0,!1,br]),allowedCharacters:this.validateAllowedCharacters(e.allowedCharacters,this.defaultValue.allowedCharacters)}}validateAllowedCharacters(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,o]of Object.entries(e))o===!0&&(i[n]=!0);return i}}class RW extends _i{constructor(){const e={enabled:!0,mode:"subwordSmart"};super(54,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:f("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ve(t.enabled,this.defaultValue.enabled),mode:Rn(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}class OW extends _i{constructor(){const e={enabled:un.bracketPairColorizationOptions.enabled};super(12,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,description:f("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use 'workbench.colorCustomizations' to override the bracket highlight colors.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:ve(e.enabled,this.defaultValue.enabled)}}}class MW extends _i{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f("editor.guides.bracketPairs.true","Enables bracket pair guides."),f("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),f("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:f("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[f("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),f("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),f("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:f("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:f("editor.guides.highlightActiveBracketPair","Controls whether bracket pair guides are enabled or not.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:f("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:"boolean",default:e.highlightActiveIndentation,description:f("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:J1(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:J1(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:ve(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:ve(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:ve(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation)}}}function J1(s,e,t){const i=t.indexOf(s);return i===-1?e:t[i]}class PW extends _i{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(105,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[f("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),f("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:f("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:f("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:f("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:f("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:f("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:f("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:f("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:f("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:f("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:f("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:f("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:f("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Rn(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:ve(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:ve(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:ve(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:ve(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:ve(t.showIcons,this.defaultValue.showIcons),showStatusBar:ve(t.showStatusBar,this.defaultValue.showStatusBar),preview:ve(t.preview,this.defaultValue.preview),previewMode:Rn(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:ve(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:ve(t.showMethods,this.defaultValue.showMethods),showFunctions:ve(t.showFunctions,this.defaultValue.showFunctions),showConstructors:ve(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:ve(t.showDeprecated,this.defaultValue.showDeprecated),showFields:ve(t.showFields,this.defaultValue.showFields),showVariables:ve(t.showVariables,this.defaultValue.showVariables),showClasses:ve(t.showClasses,this.defaultValue.showClasses),showStructs:ve(t.showStructs,this.defaultValue.showStructs),showInterfaces:ve(t.showInterfaces,this.defaultValue.showInterfaces),showModules:ve(t.showModules,this.defaultValue.showModules),showProperties:ve(t.showProperties,this.defaultValue.showProperties),showEvents:ve(t.showEvents,this.defaultValue.showEvents),showOperators:ve(t.showOperators,this.defaultValue.showOperators),showUnits:ve(t.showUnits,this.defaultValue.showUnits),showValues:ve(t.showValues,this.defaultValue.showValues),showConstants:ve(t.showConstants,this.defaultValue.showConstants),showEnums:ve(t.showEnums,this.defaultValue.showEnums),showEnumMembers:ve(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:ve(t.showKeywords,this.defaultValue.showKeywords),showWords:ve(t.showWords,this.defaultValue.showWords),showColors:ve(t.showColors,this.defaultValue.showColors),showFiles:ve(t.showFiles,this.defaultValue.showFiles),showReferences:ve(t.showReferences,this.defaultValue.showReferences),showFolders:ve(t.showFolders,this.defaultValue.showFolders),showTypeParameters:ve(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:ve(t.showSnippets,this.defaultValue.showSnippets),showUsers:ve(t.showUsers,this.defaultValue.showUsers),showIssues:ve(t.showIssues,this.defaultValue.showIssues)}}}class FW extends _i{constructor(){super(101,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:f("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:ve(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class BW extends Xg{constructor(){super(129,[80])}compute(e,t,i){return t.get(80)?!0:e.tabFocusMode}}function WW(s){switch(s){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class VW extends Xg{constructor(){super(131,[130])}compute(e,t,i){const n=t.get(130);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}const HW="Consolas, 'Courier New', monospace",$W="Menlo, Monaco, 'Courier New', monospace",zW="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",on={fontFamily:He?$W:kn?zW:HW,fontWeight:"normal",fontSize:He?12:14,lineHeight:0,letterSpacing:0},un={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!1}},Qd=[];function J(s){return Qd[s.id]=s,s}const er={acceptSuggestionOnCommitCharacter:J(new Ge(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:f("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:J(new hi(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",f("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:f("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:J(new dW),accessibilityPageSize:J(new Mt(3,"accessibilityPageSize",10,1,1073741824,{description:f("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:J(new Gn(4,"ariaLabel",f("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:J(new hi(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),f("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:f("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:J(new hi(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",f("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:f("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:J(new hi(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",f("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:f("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:J(new hi(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",f("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),f("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:f("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:J(new Df(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],lW,{enumDescriptions:[f("editor.autoIndent.none","The editor will not insert indentation automatically."),f("editor.autoIndent.keep","The editor will keep the current line's indentation."),f("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),f("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),f("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:f("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:J(new Ge(10,"automaticLayout",!1)),autoSurround:J(new hi(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[f("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),f("editor.autoSurround.quotes","Surround with quotes but not brackets."),f("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:f("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:J(new OW),bracketPairGuides:J(new MW),stickyTabStops:J(new Ge(103,"stickyTabStops",!1,{description:f("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:J(new Ge(14,"codeLens",!0,{description:f("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:J(new Gn(15,"codeLensFontFamily","",{description:f("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:J(new Mt(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:f("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, 90% of `#editor.fontSize#` is used.")})),colorDecorators:J(new Ge(17,"colorDecorators",!0,{description:f("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:J(new Ge(18,"columnSelection",!1,{description:f("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:J(new cW),contextmenu:J(new Ge(20,"contextmenu",!0)),copyWithSyntaxHighlighting:J(new Ge(21,"copyWithSyntaxHighlighting",!0,{description:f("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:J(new Df(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],uW,{description:f("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:J(new Ge(23,"cursorSmoothCaretAnimation",!1,{description:f("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:J(new Df(24,"cursorStyle",Mi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],hW,{description:f("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:J(new Mt(25,"cursorSurroundingLines",0,0,1073741824,{description:f("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:J(new hi(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[f("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),f("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:f("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:J(new Mt(27,"cursorWidth",0,0,1073741824,{markdownDescription:f("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:J(new Ge(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:J(new Ge(29,"disableMonospaceOptimizations",!1)),domReadOnly:J(new Ge(30,"domReadOnly",!1)),dragAndDrop:J(new Ge(31,"dragAndDrop",!0,{description:f("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:J(new fW),extraEditorClassName:J(new Gn(33,"extraEditorClassName","")),fastScrollSensitivity:J(new Br(34,"fastScrollSensitivity",5,s=>s<=0?5:s,{markdownDescription:f("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:J(new pW),fixedOverflowWidgets:J(new Ge(36,"fixedOverflowWidgets",!1)),folding:J(new Ge(37,"folding",!0,{description:f("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:J(new hi(38,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[f("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),f("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:f("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:J(new Ge(39,"foldingHighlight",!0,{description:f("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:J(new Ge(40,"foldingImportsByDefault",!1,{description:f("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),unfoldOnClickAfterEndOfLine:J(new Ge(41,"unfoldOnClickAfterEndOfLine",!1,{description:f("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:J(new Gn(42,"fontFamily",on.fontFamily,{description:f("fontFamily","Controls the font family.")})),fontInfo:J(new mW),fontLigatures2:J(new ms),fontSize:J(new _W),fontWeight:J(new Ar),formatOnPaste:J(new Ge(47,"formatOnPaste",!1,{description:f("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:J(new Ge(48,"formatOnType",!1,{description:f("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:J(new Ge(49,"glyphMargin",!0,{description:f("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:J(new bW),hideCursorInOverviewRuler:J(new Ge(51,"hideCursorInOverviewRuler",!1,{description:f("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:J(new vW),inDiffEditor:J(new Ge(53,"inDiffEditor",!1)),letterSpacing:J(new Br(55,"letterSpacing",on.letterSpacing,s=>Br.clamp(s,-5,20),{description:f("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:J(new CW),lineDecorationsWidth:J(new Su(57,"lineDecorationsWidth",10)),lineHeight:J(new SW),lineNumbers:J(new TW),lineNumbersMinChars:J(new Mt(60,"lineNumbersMinChars",5,1,300)),linkedEditing:J(new Ge(61,"linkedEditing",!1,{description:f("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:J(new Ge(62,"links",!0,{description:f("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:J(new hi(63,"matchBrackets","always",["always","near","never"],{description:f("matchBrackets","Highlight matching brackets.")})),minimap:J(new yW),mouseStyle:J(new hi(65,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:J(new Br(66,"mouseWheelScrollSensitivity",1,s=>s===0?1:s,{markdownDescription:f("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:J(new Ge(67,"mouseWheelZoom",!1,{markdownDescription:f("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:J(new Ge(68,"multiCursorMergeOverlapping",!0,{description:f("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:J(new Df(69,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],xW,{markdownEnumDescriptions:[f("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),f("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:f({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:J(new hi(70,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[f("multiCursorPaste.spread","Each cursor pastes a single line of the text."),f("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:f("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:J(new Ge(71,"occurrencesHighlight",!0,{description:f("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:J(new Ge(72,"overviewRulerBorder",!0,{description:f("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:J(new Mt(73,"overviewRulerLanes",3,0,3)),padding:J(new kW),parameterHints:J(new LW),peekWidgetDefaultFocus:J(new hi(76,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[f("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),f("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:f("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:J(new Ge(77,"definitionLinkOpensInPeek",!1,{description:f("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:J(new DW),quickSuggestionsDelay:J(new Mt(79,"quickSuggestionsDelay",10,0,1073741824,{description:f("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:J(new Ge(80,"readOnly",!1)),renameOnType:J(new Ge(81,"renameOnType",!1,{description:f("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:f("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:J(new Ge(82,"renderControlCharacters",!0,{description:f("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:J(new Ge(83,"renderFinalNewline",!0,{description:f("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:J(new hi(84,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",f("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:f("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:J(new Ge(85,"renderLineHighlightOnlyWhenFocus",!1,{description:f("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:J(new hi(86,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:J(new hi(87,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",f("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),f("renderWhitespace.selection","Render whitespace characters only on selected text."),f("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:f("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:J(new Mt(88,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:J(new Ge(89,"roundedSelection",!0,{description:f("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:J(new IW),scrollbar:J(new NW),scrollBeyondLastColumn:J(new Mt(92,"scrollBeyondLastColumn",5,0,1073741824,{description:f("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:J(new Ge(93,"scrollBeyondLastLine",!0,{description:f("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:J(new Ge(94,"scrollPredominantAxis",!0,{description:f("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:J(new Ge(95,"selectionClipboard",!0,{description:f("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:kn})),selectionHighlight:J(new Ge(96,"selectionHighlight",!0,{description:f("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:J(new Ge(97,"selectOnLineNumbers",!0)),showFoldingControls:J(new hi(98,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[f("showFoldingControls.always","Always show the folding controls."),f("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:f("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:J(new Ge(99,"showUnused",!0,{description:f("showUnused","Controls fading out of unused code.")})),showDeprecated:J(new Ge(125,"showDeprecated",!0,{description:f("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:J(new wW),snippetSuggestions:J(new hi(100,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[f("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),f("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),f("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),f("snippetSuggestions.none","Do not show snippet suggestions.")],description:f("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:J(new FW),smoothScrolling:J(new Ge(102,"smoothScrolling",!1,{description:f("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:J(new Mt(104,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:J(new PW),inlineSuggest:J(new RW),suggestFontSize:J(new Mt(106,"suggestFontSize",0,0,1e3,{markdownDescription:f("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:J(new Mt(107,"suggestLineHeight",0,0,1e3,{markdownDescription:f("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used. The minimum value is 8.")})),suggestOnTriggerCharacters:J(new Ge(108,"suggestOnTriggerCharacters",!0,{description:f("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:J(new hi(109,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[f("suggestSelection.first","Always select the first suggestion."),f("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),f("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:f("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:J(new hi(110,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[f("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),f("tabCompletion.off","Disable tab completions."),f("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:f("tabCompletion","Enables tab completions.")})),tabIndex:J(new Mt(111,"tabIndex",0,-1,1073741824)),unicodeHighlight:J(new AW),unusualLineTerminators:J(new hi(113,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[f("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),f("unusualLineTerminators.off","Unusual line terminators are ignored."),f("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:f("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:J(new Ge(114,"useShadowDOM",!0)),useTabStops:J(new Ge(115,"useTabStops",!0,{description:f("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:J(new Gn(116,"wordSeparators",N4,{description:f("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:J(new hi(117,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[f("wordWrap.off","Lines will never wrap."),f("wordWrap.on","Lines will wrap at the viewport width."),f({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),f({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:f({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:J(new Gn(118,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:J(new Gn(119,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:J(new Mt(120,"wordWrapColumn",80,1,1073741824,{markdownDescription:f({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:J(new hi(121,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:J(new hi(122,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:J(new Df(123,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],WW,{enumDescriptions:[f("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),f("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),f("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),f("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:f("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:J(new hi(124,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[f("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),f("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:f("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:J(new gW),pixelRatio:J(new EW),tabFocusMode:J(new BW),layoutInfo:J(new Vh),wrappingInfo:J(new VW)};class UW{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?new Error(e.message+`
|
|
@@ -598,27 +598,27 @@ ${e.toString()}`}}class pv{constructor(e=new vm,t=!1,i){this._activeInstantiatio
|
|
|
598
598
|
* Version: 0.31.1(337587859b1c171314b40503171188b6cea6a32a)
|
|
599
599
|
* Released under the MIT license
|
|
600
600
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
601
|
-
*-----------------------------------------------------------------------------*/var J3=Object.defineProperty,Aie=Object.getOwnPropertyDescriptor,Rie=Object.getOwnPropertyNames,Oie=Object.prototype.hasOwnProperty,Mie=s=>J3(s,"__esModule",{value:!0}),Pie=(s,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Rie(e))!Oie.call(s,i)&&i!=="default"&&J3(s,i,{get:()=>e[i],enumerable:!(t=Aie(e,i))||t.enumerable});return s},Fie="4.4.4",su={};Mie(su);Pie(su,Hn);var GL;(function(s){s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext"})(GL||(GL={}));var ZL;(function(s){s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev"})(ZL||(ZL={}));var YL;(function(s){s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed"})(YL||(YL={}));var XL;(function(s){s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest"})(XL||(XL={}));var QL;(function(s){s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs"})(QL||(QL={}));var e9=class{constructor(s,e,t,i){this._onDidChange=new su.Emitter,this._onDidExtraLibsChange=new su.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(s),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(s,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===s)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:s,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];!n||n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(s){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),s&&s.length>0)for(const e of s){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(s){this._compilerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(s){this._diagnosticsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(s){this._workerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(s){this._inlayHintsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(s){}setEagerModelSync(s){this._eagerModelSync=s}getEagerModelSync(){return this._eagerModelSync}},Bie=Fie,t9=new e9({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),i9=new e9({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Wie=()=>bw().then(s=>s.getTypeScriptWorker()),Vie=()=>bw().then(s=>s.getJavaScriptWorker());su.languages.typescript={ModuleKind:GL,JsxEmit:ZL,NewLineKind:YL,ScriptTarget:XL,ModuleResolutionKind:QL,typescriptVersion:Bie,typescriptDefaults:t9,javascriptDefaults:i9,getTypeScriptWorker:Wie,getJavaScriptWorker:Vie};function bw(){return pe(()=>Promise.resolve().then(()=>oB),void 0)}su.languages.onLanguage("typescript",()=>bw().then(s=>s.setupTypeScript(t9)));su.languages.onLanguage("javascript",()=>bw().then(s=>s.setupJavaScript(i9)));/*!-----------------------------------------------------------------------------
|
|
601
|
+
*-----------------------------------------------------------------------------*/var J3=Object.defineProperty,Aie=Object.getOwnPropertyDescriptor,Rie=Object.getOwnPropertyNames,Oie=Object.prototype.hasOwnProperty,Mie=s=>J3(s,"__esModule",{value:!0}),Pie=(s,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Rie(e))!Oie.call(s,i)&&i!=="default"&&J3(s,i,{get:()=>e[i],enumerable:!(t=Aie(e,i))||t.enumerable});return s},Fie="4.4.4",su={};Mie(su);Pie(su,Hn);var GL;(function(s){s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext"})(GL||(GL={}));var ZL;(function(s){s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev"})(ZL||(ZL={}));var YL;(function(s){s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed"})(YL||(YL={}));var XL;(function(s){s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest"})(XL||(XL={}));var QL;(function(s){s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs"})(QL||(QL={}));var e9=class{constructor(s,e,t,i){this._onDidChange=new su.Emitter,this._onDidExtraLibsChange=new su.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(s),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(s,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===s)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:s,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];!n||n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(s){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),s&&s.length>0)for(const e of s){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(s){this._compilerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(s){this._diagnosticsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(s){this._workerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(s){this._inlayHintsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(s){}setEagerModelSync(s){this._eagerModelSync=s}getEagerModelSync(){return this._eagerModelSync}},Bie=Fie,t9=new e9({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),i9=new e9({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),Wie=()=>bw().then(s=>s.getTypeScriptWorker()),Vie=()=>bw().then(s=>s.getJavaScriptWorker());su.languages.typescript={ModuleKind:GL,JsxEmit:ZL,NewLineKind:YL,ScriptTarget:XL,ModuleResolutionKind:QL,typescriptVersion:Bie,typescriptDefaults:t9,javascriptDefaults:i9,getTypeScriptWorker:Wie,getJavaScriptWorker:Vie};function bw(){return pe(()=>Promise.resolve().then(()=>oB),void 0,import.meta.url)}su.languages.onLanguage("typescript",()=>bw().then(s=>s.setupTypeScript(t9)));su.languages.onLanguage("javascript",()=>bw().then(s=>s.setupJavaScript(i9)));/*!-----------------------------------------------------------------------------
|
|
602
602
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
603
603
|
* Version: 0.31.1(337587859b1c171314b40503171188b6cea6a32a)
|
|
604
604
|
* Released under the MIT license
|
|
605
605
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
606
|
-
*-----------------------------------------------------------------------------*/var n9=Object.defineProperty,Hie=Object.getOwnPropertyDescriptor,$ie=Object.getOwnPropertyNames,zie=Object.prototype.hasOwnProperty,Uie=s=>n9(s,"__esModule",{value:!0}),jie=(s,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of $ie(e))!zie.call(s,i)&&i!=="default"&&n9(s,i,{get:()=>e[i],enumerable:!(t=Hie(e,i))||t.enumerable});return s},Fu={};Uie(Fu);jie(Fu,Hn);var GI=class{constructor(s,e,t){this._onDidChange=new Fu.Emitter,this._languageId=s,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(s){this._options=s||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(s){this.setOptions(s)}setModeConfiguration(s){this._modeConfiguration=s||Object.create(null),this._onDidChange.fire(this)}},ZI={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0}},YI={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},s9=new GI("css",ZI,YI),o9=new GI("scss",ZI,YI),r9=new GI("less",ZI,YI);Fu.languages.css={cssDefaults:s9,lessDefaults:r9,scssDefaults:o9};function XI(){return pe(()=>Promise.resolve().then(()=>ofe),void 0)}Fu.languages.onLanguage("less",()=>{XI().then(s=>s.setupMode(r9))});Fu.languages.onLanguage("scss",()=>{XI().then(s=>s.setupMode(o9))});Fu.languages.onLanguage("css",()=>{XI().then(s=>s.setupMode(s9))});/*!-----------------------------------------------------------------------------
|
|
606
|
+
*-----------------------------------------------------------------------------*/var n9=Object.defineProperty,Hie=Object.getOwnPropertyDescriptor,$ie=Object.getOwnPropertyNames,zie=Object.prototype.hasOwnProperty,Uie=s=>n9(s,"__esModule",{value:!0}),jie=(s,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of $ie(e))!zie.call(s,i)&&i!=="default"&&n9(s,i,{get:()=>e[i],enumerable:!(t=Hie(e,i))||t.enumerable});return s},Fu={};Uie(Fu);jie(Fu,Hn);var GI=class{constructor(s,e,t){this._onDidChange=new Fu.Emitter,this._languageId=s,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(s){this._options=s||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(s){this.setOptions(s)}setModeConfiguration(s){this._modeConfiguration=s||Object.create(null),this._onDidChange.fire(this)}},ZI={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0}},YI={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},s9=new GI("css",ZI,YI),o9=new GI("scss",ZI,YI),r9=new GI("less",ZI,YI);Fu.languages.css={cssDefaults:s9,lessDefaults:r9,scssDefaults:o9};function XI(){return pe(()=>Promise.resolve().then(()=>ofe),void 0,import.meta.url)}Fu.languages.onLanguage("less",()=>{XI().then(s=>s.setupMode(r9))});Fu.languages.onLanguage("scss",()=>{XI().then(s=>s.setupMode(o9))});Fu.languages.onLanguage("css",()=>{XI().then(s=>s.setupMode(s9))});/*!-----------------------------------------------------------------------------
|
|
607
607
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
608
608
|
* Version: 0.31.1(337587859b1c171314b40503171188b6cea6a32a)
|
|
609
609
|
* Released under the MIT license
|
|
610
610
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
611
|
-
*-----------------------------------------------------------------------------*/var a9=Object.defineProperty,qie=Object.getOwnPropertyDescriptor,Kie=Object.getOwnPropertyNames,Gie=Object.prototype.hasOwnProperty,Zie=s=>a9(s,"__esModule",{value:!0}),Yie=(s,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Kie(e))!Gie.call(s,i)&&i!=="default"&&a9(s,i,{get:()=>e[i],enumerable:!(t=qie(e,i))||t.enumerable});return s},lf={};Zie(lf);Yie(lf,Hn);var Xie=class{constructor(s,e,t){this._onDidChange=new lf.Emitter,this._languageId=s,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(s){this._diagnosticsOptions=s||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(s){this._modeConfiguration=s||Object.create(null),this._onDidChange.fire(this)}},Qie={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Jie={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},l9=new Xie("json",Qie,Jie);lf.languages.json={jsonDefaults:l9};function ene(){return pe(()=>Promise.resolve().then(()=>Gfe),void 0)}lf.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});lf.languages.onLanguage("json",()=>{ene().then(s=>s.setupMode(l9))});/*!-----------------------------------------------------------------------------
|
|
611
|
+
*-----------------------------------------------------------------------------*/var a9=Object.defineProperty,qie=Object.getOwnPropertyDescriptor,Kie=Object.getOwnPropertyNames,Gie=Object.prototype.hasOwnProperty,Zie=s=>a9(s,"__esModule",{value:!0}),Yie=(s,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Kie(e))!Gie.call(s,i)&&i!=="default"&&a9(s,i,{get:()=>e[i],enumerable:!(t=qie(e,i))||t.enumerable});return s},lf={};Zie(lf);Yie(lf,Hn);var Xie=class{constructor(s,e,t){this._onDidChange=new lf.Emitter,this._languageId=s,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(s){this._diagnosticsOptions=s||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(s){this._modeConfiguration=s||Object.create(null),this._onDidChange.fire(this)}},Qie={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},Jie={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},l9=new Xie("json",Qie,Jie);lf.languages.json={jsonDefaults:l9};function ene(){return pe(()=>Promise.resolve().then(()=>Gfe),void 0,import.meta.url)}lf.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});lf.languages.onLanguage("json",()=>{ene().then(s=>s.setupMode(l9))});/*!-----------------------------------------------------------------------------
|
|
612
612
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
613
613
|
* Version: 0.31.1(337587859b1c171314b40503171188b6cea6a32a)
|
|
614
614
|
* Released under the MIT license
|
|
615
615
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
616
|
-
*-----------------------------------------------------------------------------*/var d9=Object.defineProperty,tne=Object.getOwnPropertyDescriptor,ine=Object.getOwnPropertyNames,nne=Object.prototype.hasOwnProperty,sne=s=>d9(s,"__esModule",{value:!0}),one=(s,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ine(e))!nne.call(s,i)&&i!=="default"&&d9(s,i,{get:()=>e[i],enumerable:!(t=tne(e,i))||t.enumerable});return s},W_={};sne(W_);one(W_,Hn);var rne=class{constructor(s,e,t){this._onDidChange=new W_.Emitter,this._languageId=s,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(s){this._options=s||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(s){this._modeConfiguration=s||Object.create(null),this._onDidChange.fire(this)}},ane={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},vw={format:ane,suggest:{},data:{useDefaultDataProvider:!0}};function Cw(s){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:s===Np,documentFormattingEdits:s===Np,documentRangeFormattingEdits:s===Np}}var Np="html",XR="handlebars",QR="razor",c9=ww(Np,vw,Cw(Np)),lne=c9.defaults,u9=ww(XR,vw,Cw(XR)),dne=u9.defaults,h9=ww(QR,vw,Cw(QR)),cne=h9.defaults;W_.languages.html={htmlDefaults:lne,razorDefaults:cne,handlebarDefaults:dne,htmlLanguageService:c9,handlebarLanguageService:u9,razorLanguageService:h9,registerHTMLLanguageService:ww};function une(){return pe(()=>Promise.resolve().then(()=>ppe),void 0)}function ww(s,e=vw,t=Cw(s)){const i=new rne(s,e,t);let n;const o=W_.languages.onLanguage(s,async()=>{n=(await une()).setupMode(i)});return{defaults:i,dispose(){o.dispose(),n==null||n.dispose(),n=void 0}}}/*!-----------------------------------------------------------------------------
|
|
616
|
+
*-----------------------------------------------------------------------------*/var d9=Object.defineProperty,tne=Object.getOwnPropertyDescriptor,ine=Object.getOwnPropertyNames,nne=Object.prototype.hasOwnProperty,sne=s=>d9(s,"__esModule",{value:!0}),one=(s,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ine(e))!nne.call(s,i)&&i!=="default"&&d9(s,i,{get:()=>e[i],enumerable:!(t=tne(e,i))||t.enumerable});return s},W_={};sne(W_);one(W_,Hn);var rne=class{constructor(s,e,t){this._onDidChange=new W_.Emitter,this._languageId=s,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(s){this._options=s||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(s){this._modeConfiguration=s||Object.create(null),this._onDidChange.fire(this)}},ane={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},vw={format:ane,suggest:{},data:{useDefaultDataProvider:!0}};function Cw(s){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:s===Np,documentFormattingEdits:s===Np,documentRangeFormattingEdits:s===Np}}var Np="html",XR="handlebars",QR="razor",c9=ww(Np,vw,Cw(Np)),lne=c9.defaults,u9=ww(XR,vw,Cw(XR)),dne=u9.defaults,h9=ww(QR,vw,Cw(QR)),cne=h9.defaults;W_.languages.html={htmlDefaults:lne,razorDefaults:cne,handlebarDefaults:dne,htmlLanguageService:c9,handlebarLanguageService:u9,razorLanguageService:h9,registerHTMLLanguageService:ww};function une(){return pe(()=>Promise.resolve().then(()=>ppe),void 0,import.meta.url)}function ww(s,e=vw,t=Cw(s)){const i=new rne(s,e,t);let n;const o=W_.languages.onLanguage(s,async()=>{n=(await une()).setupMode(i)});return{defaults:i,dispose(){o.dispose(),n==null||n.dispose(),n=void 0}}}/*!-----------------------------------------------------------------------------
|
|
617
617
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
618
618
|
* Version: 0.31.1(337587859b1c171314b40503171188b6cea6a32a)
|
|
619
619
|
* Released under the MIT license
|
|
620
620
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
621
|
-
*-----------------------------------------------------------------------------*/var g9=Object.defineProperty,hne=Object.getOwnPropertyDescriptor,gne=Object.getOwnPropertyNames,fne=Object.prototype.hasOwnProperty,pne=s=>g9(s,"__esModule",{value:!0}),mne=(s,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of gne(e))!fne.call(s,i)&&i!=="default"&&g9(s,i,{get:()=>e[i],enumerable:!(t=hne(e,i))||t.enumerable});return s},Ah={};pne(Ah);mne(Ah,Hn);var f9={},Ty={},p9=class{static getOrCreate(s){return Ty[s]||(Ty[s]=new p9(s)),Ty[s]}constructor(s){this._languageId=s,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}whenLoaded(){return this._lazyLoadPromise}load(){return this._loadingTriggered||(this._loadingTriggered=!0,f9[this._languageId].loader().then(s=>this._lazyLoadPromiseResolve(s),s=>this._lazyLoadPromiseReject(s))),this._lazyLoadPromise}};function be(s){const e=s.id;f9[e]=s,Ah.languages.register(s);const t=p9.getOrCreate(e);Ah.languages.setMonarchTokensProvider(e,t.whenLoaded().then(i=>i.language)),Ah.languages.onLanguage(e,()=>{t.load().then(i=>{Ah.languages.setLanguageConfiguration(e,i.conf)})})}be({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>pe(()=>Promise.resolve().then(()=>bpe),void 0)});be({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>pe(()=>Promise.resolve().then(()=>ype),void 0)});be({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>pe(()=>Promise.resolve().then(()=>Lpe),void 0)});be({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>pe(()=>Promise.resolve().then(()=>Tpe),void 0)});be({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>pe(()=>Promise.resolve().then(()=>Vpe),void 0)});be({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>pe(()=>Promise.resolve().then(()=>zpe),void 0)});be({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>pe(()=>Promise.resolve().then(()=>qpe),void 0)});be({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>pe(()=>Promise.resolve().then(()=>Zpe),void 0)});be({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>pe(()=>Promise.resolve().then(()=>EB),void 0)});be({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>pe(()=>Promise.resolve().then(()=>EB),void 0)});be({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>pe(()=>Promise.resolve().then(()=>eme),void 0)});be({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>pe(()=>Promise.resolve().then(()=>nme),void 0)});be({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>pe(()=>Promise.resolve().then(()=>rme),void 0)});be({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>pe(()=>Promise.resolve().then(()=>dme),void 0)});be({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>pe(()=>Promise.resolve().then(()=>hme),void 0)});be({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>pe(()=>Promise.resolve().then(()=>pme),void 0)});be({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>pe(()=>Promise.resolve().then(()=>bme),void 0)});be({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>pe(()=>Promise.resolve().then(()=>wme),void 0)});be({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>pe(()=>Promise.resolve().then(()=>xme),void 0)});be({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>pe(()=>Promise.resolve().then(()=>Eme),void 0)});be({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>pe(()=>Promise.resolve().then(()=>Ime),void 0)});be({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>pe(()=>Promise.resolve().then(()=>Bme),void 0)});be({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>pe(()=>Promise.resolve().then(()=>Hme),void 0)});be({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>pe(()=>Promise.resolve().then(()=>Zme),void 0)});be({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>pe(()=>Promise.resolve().then(()=>Qme),void 0)});be({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>pe(()=>Promise.resolve().then(()=>t_e),void 0)});be({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>pe(()=>Promise.resolve().then(()=>c_e),void 0)});be({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>pe(()=>Promise.resolve().then(()=>g_e),void 0)});be({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>pe(()=>Promise.resolve().then(()=>m_e),void 0)});be({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>pe(()=>Promise.resolve().then(()=>v_e),void 0)});be({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>pe(()=>Promise.resolve().then(()=>S_e),void 0)});be({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>pe(()=>Promise.resolve().then(()=>k_e),void 0)});be({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>pe(()=>Promise.resolve().then(()=>R_e),void 0)});be({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>pe(()=>Promise.resolve().then(()=>P_e),void 0)});be({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>pe(()=>Promise.resolve().then(()=>W_e),void 0)});be({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>pe(()=>Promise.resolve().then(()=>$_e),void 0)});be({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>pe(()=>Promise.resolve().then(()=>j_e),void 0)});be({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>pe(()=>Promise.resolve().then(()=>G_e),void 0)});be({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>pe(()=>Promise.resolve().then(()=>X_e),void 0)});be({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>pe(()=>Promise.resolve().then(()=>ebe),void 0)});be({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>pe(()=>Promise.resolve().then(()=>nbe),void 0)});be({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>pe(()=>Promise.resolve().then(()=>rbe),void 0)});be({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>pe(()=>Promise.resolve().then(()=>dbe),void 0)});be({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>pe(()=>Promise.resolve().then(()=>hbe),void 0)});be({id:"pla",extensions:[".pla"],loader:()=>pe(()=>Promise.resolve().then(()=>pbe),void 0)});be({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>pe(()=>Promise.resolve().then(()=>bbe),void 0)});be({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>pe(()=>Promise.resolve().then(()=>wbe),void 0)});be({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>pe(()=>Promise.resolve().then(()=>xbe),void 0)});be({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>pe(()=>Promise.resolve().then(()=>Dbe),void 0)});be({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>pe(()=>Promise.resolve().then(()=>Nbe),void 0)});be({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>pe(()=>Promise.resolve().then(()=>Wbe),void 0)});be({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>pe(()=>Promise.resolve().then(()=>$be),void 0)});be({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>pe(()=>Promise.resolve().then(()=>jbe),void 0)});be({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>pe(()=>Promise.resolve().then(()=>Jbe),void 0)});be({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>pe(()=>Promise.resolve().then(()=>i1e),void 0)});be({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>pe(()=>Promise.resolve().then(()=>o1e),void 0)});be({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>pe(()=>Promise.resolve().then(()=>l1e),void 0)});be({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>pe(()=>Promise.resolve().then(()=>u1e),void 0)});be({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>pe(()=>Promise.resolve().then(()=>f1e),void 0)});be({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>pe(()=>Promise.resolve().then(()=>_1e),void 0)});be({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>pe(()=>Promise.resolve().then(()=>C1e),void 0)});be({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>pe(()=>Promise.resolve().then(()=>y1e),void 0)});be({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>pe(()=>Promise.resolve().then(()=>L1e),void 0)});be({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>pe(()=>Promise.resolve().then(()=>T1e),void 0)});be({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>pe(()=>Promise.resolve().then(()=>A1e),void 0)});be({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>pe(()=>Promise.resolve().then(()=>M1e),void 0)});be({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>pe(()=>Promise.resolve().then(()=>B1e),void 0)});be({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>pe(()=>Promise.resolve().then(()=>H1e),void 0)});be({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>pe(()=>Promise.resolve().then(()=>U1e),void 0)});be({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>pe(()=>Promise.resolve().then(()=>K1e),void 0)});be({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>pe(()=>Promise.resolve().then(()=>MB),void 0)});be({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>pe(()=>Promise.resolve().then(()=>MB),void 0)});be({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>pe(()=>Promise.resolve().then(()=>Q1e),void 0)});be({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>pe(()=>Promise.resolve().then(()=>t0e),void 0)});be({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>pe(()=>Promise.resolve().then(()=>a_e),void 0)});be({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>pe(()=>Promise.resolve().then(()=>s0e),void 0)});be({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>pe(()=>Promise.resolve().then(()=>h0e),void 0)});be({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>pe(()=>Promise.resolve().then(()=>p0e),void 0)});var _ne=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},bne=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Sw=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const yw=new le("selectionAnchorSet",!1);let nl=class m9{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=yw.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(m9.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],i=this.editor.deltaDecorations(t,[{range:oe.fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:new il().appendText(f("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=i[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Ki(f("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(oe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};nl.ID="editor.contrib.selectionAnchorController";nl=_ne([bne(1,De)],nl);class vne extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:f("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:Ii(2089,2080),weight:100}})}run(e,t){return Sw(this,void 0,void 0,function*(){nl.get(t).setSelectionAnchor()})}}class Cne extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:f("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:yw})}run(e,t){return Sw(this,void 0,void 0,function*(){nl.get(t).goToSelectionAnchor()})}}class wne extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:f("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:yw,kbOpts:{kbExpr:T.editorTextFocus,primary:Ii(2089,2089),weight:100}})}run(e,t){return Sw(this,void 0,void 0,function*(){nl.get(t).selectFromAnchorToCursor()})}}class Sne extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:f("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:yw,kbOpts:{kbExpr:T.editorTextFocus,primary:9,weight:100}})}run(e,t){return Sw(this,void 0,void 0,function*(){nl.get(t).cancelSelectionAnchor()})}}dt(nl.ID,nl);se(vne);se(Cne);se(wne);se(Sne);const yne=I("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},f("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class xne extends de{constructor(){super({id:"editor.action.jumpToBracket",label:f("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:3160,weight:100}})}run(e,t){let i=qo.get(t);!i||i.jumpToBracket()}}class kne extends de{constructor(){super({id:"editor.action.selectToBracket",label:f("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){const n=qo.get(t);if(!n)return;let o=!0;i&&i.selectBrackets===!1&&(o=!1),n.selectToBracket(o)}}class Lne{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class qo extends ${constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new xt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(63),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._decorations=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(63)&&(this._matchBrackets=this._editor.getOption(63),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(qo.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.bracketPairs.matchBracket(n);let r=null;if(o)o[0].containsPosition(n)?r=o[1].getStartPosition():o[1].containsPosition(n)&&(r=o[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[0].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new oe(r.lineNumber,r.column,r.lineNumber,r.column):new oe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let r=t.bracketPairs.matchBracket(o);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(o),!r)){const d=t.bracketPairs.findNextBracket(o);d&&d.range&&(r=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(x.compareRangesUsingStarts);const[d,c]=r;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(o)){const u=a;a=l,l=u}}a&&l&&i.push(new oe(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();let e=[],t=0;for(const i of this._lastBracketsData){let n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);let o=[],r=0;for(let u=0,h=e.length;u<h;u++){let g=e[u];g.isEmpty()&&(o[r++]=g.getStartPosition())}o.length>1&&o.sort(B.compare);let a=[],l=0,d=0,c=n.length;for(let u=0,h=o.length;u<h;u++){let g=o[u];for(;d<c&&n[d].position.isBefore(g);)d++;if(d<c&&n[d].position.equals(g))a[l++]=n[d];else{let p=t.bracketPairs.matchBracket(g),m=qo._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!p&&this._matchBrackets==="always"&&(p=t.bracketPairs.findEnclosingBrackets(g,20),m=qo._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new Lne(g,p,m)}}this._lastBracketsData=a,this._lastVersionId=i}}qo.ID="editor.contrib.bracketMatchingController";qo._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Fe.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Vt(yne),position:ns.Center}});qo._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Fe.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});dt(qo.ID,qo);se(kne);se(xne);Rt((s,e)=>{const t=s.getColor(UK);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=s.getColor(b8);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});$s.appendMenuItem(he.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:f({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class Ene{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new x(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new x(i,o,i,o),a)}else{const r=new x(i,o,i,o+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new x(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new oe(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new oe(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class _9 extends de{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let i=[],n=t.getSelections();for(const o of n)i.push(new Ene(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class Dne extends _9{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:f("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:T.writable})}}class Tne extends _9{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:f("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:T.writable})}}se(Dne);se(Tne);class Ine extends de{constructor(){super({id:"editor.action.transposeLetters",label:f("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:T.writable,kbOpts:{kbExpr:T.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=[],o=t.getSelections();for(let r of o){if(!r.isEmpty())continue;let a=r.startLineNumber,l=r.startColumn,d=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&d===2))continue;let c=l===d?r.getPosition():st.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),u=st.leftPosition(i,c),h=st.leftPosition(i,u),g=i.getValueInRange(x.fromPositions(h,u)),p=i.getValueInRange(x.fromPositions(u,c)),m=x.fromPositions(h,c);n.push(new Ui(m,p+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}se(Ine);var Nne=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const ou="9_cutcopypaste",Ane=zo||document.queryCommandSupported("cut"),b9=zo||document.queryCommandSupported("copy"),Rne=typeof navigator.clipboard>"u"||is?document.queryCommandSupported("paste"):!0;function QI(s){return s.register(),s}const One=Ane?QI(new Jg({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:zo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:he.MenubarEditMenu,group:"2_ccp",title:f({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:he.EditorContext,group:ou,title:f("actions.clipboard.cutLabel","Cut"),when:T.writable,order:1},{menuId:he.CommandPalette,group:"",title:f("actions.clipboard.cutLabel","Cut"),order:1},{menuId:he.SimpleEditorContext,group:ou,title:f("actions.clipboard.cutLabel","Cut"),when:T.writable,order:1}]})):void 0,Mne=b9?QI(new Jg({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:zo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:he.MenubarEditMenu,group:"2_ccp",title:f({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:he.EditorContext,group:ou,title:f("actions.clipboard.copyLabel","Copy"),order:2},{menuId:he.CommandPalette,group:"",title:f("actions.clipboard.copyLabel","Copy"),order:1},{menuId:he.SimpleEditorContext,group:ou,title:f("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;$s.appendMenuItem(he.MenubarEditMenu,{submenu:he.MenubarCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});$s.appendMenuItem(he.EditorContext,{submenu:he.EditorContextCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:ou,order:3});const Iy=Rne?QI(new Jg({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:zo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:he.MenubarEditMenu,group:"2_ccp",title:f({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:he.EditorContext,group:ou,title:f("actions.clipboard.pasteLabel","Paste"),when:T.writable,order:4},{menuId:he.CommandPalette,group:"",title:f("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:he.SimpleEditorContext,group:ou,title:f("actions.clipboard.pasteLabel","Paste"),when:T.writable,order:4}]})):void 0;class Pne extends de{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:f("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:T.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(32)&&t.getSelection().isEmpty()||(Qk.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),Qk.forceCopyWithSyntaxHighlighting=!1)}}function v9(s,e){!s||(s.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ft).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const o=n.getOption(32),r=n.getSelection();return r&&r.isEmpty()&&!o||document.execCommand(e),!0}return!1}),s.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}v9(One,"cut");v9(Mne,"copy");Iy&&(Iy.addImplementation(1e4,"code-editor",(s,e)=>{const t=s.get(ft),i=s.get(Nd),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Ld?(()=>Nne(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=cm.INSTANCE.get(r);let l=!1,d=null,c=null;a&&(l=n.getOption(32)&&!!a.isFromEmptySelection,d=typeof a.multicursorText<"u"?a.multicursorText:null,c=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:d,mode:c})}}))():!0:!1}),Iy.addImplementation(0,"generic-dom",(s,e)=>(document.execCommand("paste"),!0)));b9&&se(Pne);class kv{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}class je{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+je.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new je(this.value+je.sep+e)}}je.sep=".";je.None=new je("@@none@@");je.Empty=new je("");je.QuickFix=new je("quickfix");je.Refactor=new je("refactor");je.Source=new je("source");je.SourceOrganizeImports=je.Source.append("organizeImports");je.SourceFixAll=je.Source.append("fixAll");function Fne(s,e){return!(s.include&&!s.include.intersects(e)||s.excludes&&s.excludes.some(t=>C9(e,t,s.include))||!s.includeSourceActions&&je.Source.contains(e))}function Bne(s,e){const t=e.kind?new je(e.kind):void 0;return!(s.include&&(!t||!s.include.contains(t))||s.excludes&&t&&s.excludes.some(i=>C9(t,i,s.include))||!s.includeSourceActions&&t&&je.Source.contains(t)||s.onlyIncludePreferredActions&&!e.isPreferred)}function C9(s,e,t){return!(!e.contains(s)||t&&e.contains(t))}class Fr{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Fr(t.kind,t.apply,!1):new Fr(Fr.getKindFromUser(e,t.kind),Fr.getApplyFromUser(e,t.apply),Fr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new je(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var JI=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const w9="editor.action.codeAction",S9="editor.action.refactor",y9="editor.action.sourceAction",eN="editor.action.organizeImports",tN="editor.action.fixAll";class x9{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return JI(this,void 0,void 0,function*(){if(((t=this.provider)===null||t===void 0?void 0:t.resolveCodeAction)&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Xi(n)}i&&(this.action.edit=i.edit)}return this})}}class iN extends ${constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(iN.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:Jn(e.diagnostics)?Jn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Jn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&je.QuickFix.contains(new je(e.kind))&&!!e.isPreferred)}}const JR={actions:[],documentation:void 0};function nN(s,e,t,i,n){var o;const r=t.filter||{},a={only:(o=r.include)===null||o===void 0?void 0:o.value,trigger:t.type},l=new mI(s,n),d=Wne(s,r),c=new Q,u=d.map(g=>JI(this,void 0,void 0,function*(){try{i.report(g);const p=yield g.provideCodeActions(s,e,a,l.token);if(p&&c.add(p),l.token.isCancellationRequested)return JR;const m=((p==null?void 0:p.actions)||[]).filter(v=>v&&Bne(r,v)),_=Vne(g,m,r.include);return{actions:m.map(v=>new x9(v,g)),documentation:_}}catch(p){if(oa(p))throw p;return Xi(p),JR}})),h=jr.onDidChange(()=>{const g=jr.all(s);Vs(g,d)||l.cancel()});return Promise.all(u).then(g=>{const p=M4(g.map(_=>_.actions)),m=Yg(g.map(_=>_.documentation));return new iN(p,m,c)}).finally(()=>{h.dispose(),l.dispose()})}function Wne(s,e){return jr.all(s).filter(t=>t.providedCodeActionKinds?t.providedCodeActionKinds.some(i=>Fne(e,new je(i))):!0)}function Vne(s,e,t){if(!s.documentation)return;const i=s.documentation.map(n=>({kind:new je(n.kind),command:n.command}));if(t){let n;for(const o of i)o.kind.contains(t)&&(n?n.kind.contains(o.kind)&&(n=o):n=o);if(n)return n==null?void 0:n.command}for(const n of e)if(!!n.kind){for(const o of i)if(o.kind.contains(new je(n.kind)))return o.command}}Qe.registerCommand("_executeCodeActionProvider",function(s,e,t,i,n){return JI(this,void 0,void 0,function*(){if(!(e instanceof Ce))throw Uo();const o=s.get(bi).getModel(e);if(!o)throw Uo();const r=oe.isISelection(t)?oe.liftSelection(t):x.isIRange(t)?o.validateRange(t):void 0;if(!r)throw Uo();const a=typeof i=="string"?new je(i):void 0,l=yield nN(o,r,{type:1,filter:{includeSourceActions:!0,include:a}},Nu.None,$e.None),d=[],c=Math.min(l.validActions.length,typeof n=="number"?n:0);for(let u=0;u<c;u++)d.push(l.validActions[u].resolve($e.None));try{return yield Promise.all(d),l.validActions.map(u=>u.action)}finally{setTimeout(()=>l.dispose(),100)}})});var Hne=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},$ne=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let Ls=class JL{constructor(e,t){this._messageWidget=new Ln,this._messageListeners=new Q,this._editor=e,this._visible=JL.MESSAGE_VISIBLE.bindTo(t),this._editorListener=this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit())}static get(e){return e.getContribution(JL.ID)}dispose(){this._editorListener.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Ki(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new eO(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new En(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{!n.target.position||(i?i.containsPosition(n.target.position)||this.closeMessage():i=new x(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(eO.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(f("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};Ls.ID="editor.contrib.messageController";Ls.MESSAGE_VISIBLE=new le("messageVisible",!1,f("messageVisible","Whether the editor is currently showing an inline message"));Ls=Hne([$ne(1,De)],Ls);const zne=Qi.bindToContribution(Ls.get);ne(new zne({id:"leaveEditorMessage",precondition:Ls.MESSAGE_VISIBLE,handler:s=>s.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class eO{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t;const i=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",i)};return t=setTimeout(i,110),e.getDomNode().addEventListener("animationend",i),e.getDomNode().classList.add("fadeOut"),{dispose:i}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}afterRender(e){this._domNode.classList.toggle("below",e===2)}}dt(Ls.ID,Ls);var Une=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},tO=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},jne=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};class iO extends Hs{constructor(e,t){super(e.command?e.command.id:e.title,qne(e.title),void 0,!e.disabled,t),this.action=e}}function qne(s){return s.replace(/\r\n|\r|\n/g," ")}let eE=class extends ${constructor(e,t,i,n){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._visible=!1,this._showingActions=this._register(new Ln),this._keybindingResolver=new xw({getKeybindings:()=>n.getKeybindings()})}get isVisible(){return this._visible}show(e,t,i,n){return jne(this,void 0,void 0,function*(){const o=n.includeDisabledActions?t.allActions:t.validActions;if(!o.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,yu();this._visible=!0,this._showingActions.value=t;const r=this.getMenuActions(e,o,t.documentation),a=B.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},l=this._keybindingResolver.getResolver(),d=this._editor.getOption(114);this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>a,getActions:()=>r,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:c=>c instanceof iO?l(c.action):void 0})})}getMenuActions(e,t,i){var n,o;const r=c=>new iO(c.action,()=>this._delegate.onSelectCodeAction(c)),a=t.map(r),l=[...i],d=this._editor.getModel();if(d&&a.length)for(const c of jr.all(d))c._getAdditionalMenuItems&&l.push(...c._getAdditionalMenuItems({trigger:e.type,only:(o=(n=e.filter)===null||n===void 0?void 0:n.include)===null||o===void 0?void 0:o.value},t.map(u=>u.action)));return l.length&&a.push(new Co,...l.map(c=>r(new x9({title:c.title,command:c},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=sn(this._editor.getDomNode()),n=i.left+t.left,o=i.top+t.top+t.height;return{x:n,y:o}}};eE=Une([tO(2,Id),tO(3,jt)],eE);class xw{constructor(e){this._keybindingProvider=e}getResolver(){const e=new kv(()=>this._keybindingProvider.getKeybindings().filter(t=>xw.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===eN?i={kind:je.SourceOrganizeImports.value}:t.command===tN&&(i={kind:je.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Fr.fromUser(i,{kind:je.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new je(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,o)=>n?n.kind.contains(o.kind)?o:n:o,void 0)}}xw.codeActionCommands=[S9,w9,y9,eN,tN];var Kne=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Gne=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Ap;(function(s){s.Hidden={type:0};class e{constructor(i,n,o,r){this.actions=i,this.trigger=n,this.editorPosition=o,this.widgetPosition=r,this.type=1}}s.Showing=e})(Ap||(Ap={}));let Lv=class k9 extends ${constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new M),this.onClick=this._onClick.event,this._state=Ap.Hidden,this._domNode=document.createElement("div"),this._domNode.className=O.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(o=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),gt.ignoreTarget(this._domNode),this._register(RV(this._domNode,o=>{if(this.state.type!==1)return;this._editor.focus(),o.preventDefault();const{top:r,height:a}=sn(this._domNode),l=this._editor.getOption(58);let d=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(d+=l),this._onClick.fire({x:o.posx,y:r+a+d,actions:this.state.actions,trigger:this.state.trigger})})),this._register(Y(this._domNode,"mouseenter",o=>{if((o.buttons&1)!==1)return;this.hide();const r=new Tu;r.startMonitoring(o.target,o.buttons,ef,()=>{},()=>{r.dispose()})})),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(56)&&!this._editor.getOption(56).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(56).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:r,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,d=n.get(43),c=o.getLineContent(r),u=ss.computeIndentLevel(c,l),h=d.spaceWidth*u>22,g=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let p=r;if(!h){if(r>1&&!g(r-1))p-=1;else if(!g(r+1))p+=1;else if(a*d.spaceWidth<22)return this.hide()}this.state=new Ap.Showing(e,t,i,{position:{lineNumber:p,column:1},preference:k9._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Ap.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...O.lightBulb.classNamesArray),this._domNode.classList.add(...O.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=f("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...O.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...O.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=f("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=f("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};Lv._posPref=[0];Lv=Kne([Gne(3,jt)],Lv);Rt((s,e)=>{var t;const i=(t=s.getColor(Vn))===null||t===void 0?void 0:t.transparent(.7),n=s.getColor(kj);n&&e.addRule(`
|
|
621
|
+
*-----------------------------------------------------------------------------*/var g9=Object.defineProperty,hne=Object.getOwnPropertyDescriptor,gne=Object.getOwnPropertyNames,fne=Object.prototype.hasOwnProperty,pne=s=>g9(s,"__esModule",{value:!0}),mne=(s,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of gne(e))!fne.call(s,i)&&i!=="default"&&g9(s,i,{get:()=>e[i],enumerable:!(t=hne(e,i))||t.enumerable});return s},Ah={};pne(Ah);mne(Ah,Hn);var f9={},Ty={},p9=class{static getOrCreate(s){return Ty[s]||(Ty[s]=new p9(s)),Ty[s]}constructor(s){this._languageId=s,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}whenLoaded(){return this._lazyLoadPromise}load(){return this._loadingTriggered||(this._loadingTriggered=!0,f9[this._languageId].loader().then(s=>this._lazyLoadPromiseResolve(s),s=>this._lazyLoadPromiseReject(s))),this._lazyLoadPromise}};function be(s){const e=s.id;f9[e]=s,Ah.languages.register(s);const t=p9.getOrCreate(e);Ah.languages.setMonarchTokensProvider(e,t.whenLoaded().then(i=>i.language)),Ah.languages.onLanguage(e,()=>{t.load().then(i=>{Ah.languages.setLanguageConfiguration(e,i.conf)})})}be({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>pe(()=>Promise.resolve().then(()=>bpe),void 0,import.meta.url)});be({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>pe(()=>Promise.resolve().then(()=>ype),void 0,import.meta.url)});be({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>pe(()=>Promise.resolve().then(()=>Lpe),void 0,import.meta.url)});be({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>pe(()=>Promise.resolve().then(()=>Tpe),void 0,import.meta.url)});be({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>pe(()=>Promise.resolve().then(()=>Vpe),void 0,import.meta.url)});be({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>pe(()=>Promise.resolve().then(()=>zpe),void 0,import.meta.url)});be({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>pe(()=>Promise.resolve().then(()=>qpe),void 0,import.meta.url)});be({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>pe(()=>Promise.resolve().then(()=>Zpe),void 0,import.meta.url)});be({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>pe(()=>Promise.resolve().then(()=>EB),void 0,import.meta.url)});be({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>pe(()=>Promise.resolve().then(()=>EB),void 0,import.meta.url)});be({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>pe(()=>Promise.resolve().then(()=>eme),void 0,import.meta.url)});be({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>pe(()=>Promise.resolve().then(()=>nme),void 0,import.meta.url)});be({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>pe(()=>Promise.resolve().then(()=>rme),void 0,import.meta.url)});be({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>pe(()=>Promise.resolve().then(()=>dme),void 0,import.meta.url)});be({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>pe(()=>Promise.resolve().then(()=>hme),void 0,import.meta.url)});be({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>pe(()=>Promise.resolve().then(()=>pme),void 0,import.meta.url)});be({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>pe(()=>Promise.resolve().then(()=>bme),void 0,import.meta.url)});be({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>pe(()=>Promise.resolve().then(()=>wme),void 0,import.meta.url)});be({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>pe(()=>Promise.resolve().then(()=>xme),void 0,import.meta.url)});be({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>pe(()=>Promise.resolve().then(()=>Eme),void 0,import.meta.url)});be({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>pe(()=>Promise.resolve().then(()=>Ime),void 0,import.meta.url)});be({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>pe(()=>Promise.resolve().then(()=>Bme),void 0,import.meta.url)});be({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>pe(()=>Promise.resolve().then(()=>Hme),void 0,import.meta.url)});be({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>pe(()=>Promise.resolve().then(()=>Zme),void 0,import.meta.url)});be({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>pe(()=>Promise.resolve().then(()=>Qme),void 0,import.meta.url)});be({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>pe(()=>Promise.resolve().then(()=>t_e),void 0,import.meta.url)});be({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>pe(()=>Promise.resolve().then(()=>c_e),void 0,import.meta.url)});be({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>pe(()=>Promise.resolve().then(()=>g_e),void 0,import.meta.url)});be({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>pe(()=>Promise.resolve().then(()=>m_e),void 0,import.meta.url)});be({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>pe(()=>Promise.resolve().then(()=>v_e),void 0,import.meta.url)});be({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>pe(()=>Promise.resolve().then(()=>S_e),void 0,import.meta.url)});be({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>pe(()=>Promise.resolve().then(()=>k_e),void 0,import.meta.url)});be({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>pe(()=>Promise.resolve().then(()=>R_e),void 0,import.meta.url)});be({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>pe(()=>Promise.resolve().then(()=>P_e),void 0,import.meta.url)});be({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>pe(()=>Promise.resolve().then(()=>W_e),void 0,import.meta.url)});be({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>pe(()=>Promise.resolve().then(()=>$_e),void 0,import.meta.url)});be({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>pe(()=>Promise.resolve().then(()=>j_e),void 0,import.meta.url)});be({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>pe(()=>Promise.resolve().then(()=>G_e),void 0,import.meta.url)});be({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>pe(()=>Promise.resolve().then(()=>X_e),void 0,import.meta.url)});be({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>pe(()=>Promise.resolve().then(()=>ebe),void 0,import.meta.url)});be({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>pe(()=>Promise.resolve().then(()=>nbe),void 0,import.meta.url)});be({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:()=>pe(()=>Promise.resolve().then(()=>rbe),void 0,import.meta.url)});be({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>pe(()=>Promise.resolve().then(()=>dbe),void 0,import.meta.url)});be({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>pe(()=>Promise.resolve().then(()=>hbe),void 0,import.meta.url)});be({id:"pla",extensions:[".pla"],loader:()=>pe(()=>Promise.resolve().then(()=>pbe),void 0,import.meta.url)});be({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>pe(()=>Promise.resolve().then(()=>bbe),void 0,import.meta.url)});be({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>pe(()=>Promise.resolve().then(()=>wbe),void 0,import.meta.url)});be({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>pe(()=>Promise.resolve().then(()=>xbe),void 0,import.meta.url)});be({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>pe(()=>Promise.resolve().then(()=>Dbe),void 0,import.meta.url)});be({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>pe(()=>Promise.resolve().then(()=>Nbe),void 0,import.meta.url)});be({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>pe(()=>Promise.resolve().then(()=>Wbe),void 0,import.meta.url)});be({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>pe(()=>Promise.resolve().then(()=>$be),void 0,import.meta.url)});be({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>pe(()=>Promise.resolve().then(()=>jbe),void 0,import.meta.url)});be({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>pe(()=>Promise.resolve().then(()=>Jbe),void 0,import.meta.url)});be({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>pe(()=>Promise.resolve().then(()=>i1e),void 0,import.meta.url)});be({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>pe(()=>Promise.resolve().then(()=>o1e),void 0,import.meta.url)});be({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>pe(()=>Promise.resolve().then(()=>l1e),void 0,import.meta.url)});be({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>pe(()=>Promise.resolve().then(()=>u1e),void 0,import.meta.url)});be({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>pe(()=>Promise.resolve().then(()=>f1e),void 0,import.meta.url)});be({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>pe(()=>Promise.resolve().then(()=>_1e),void 0,import.meta.url)});be({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>pe(()=>Promise.resolve().then(()=>C1e),void 0,import.meta.url)});be({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>pe(()=>Promise.resolve().then(()=>y1e),void 0,import.meta.url)});be({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>pe(()=>Promise.resolve().then(()=>L1e),void 0,import.meta.url)});be({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>pe(()=>Promise.resolve().then(()=>T1e),void 0,import.meta.url)});be({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>pe(()=>Promise.resolve().then(()=>A1e),void 0,import.meta.url)});be({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>pe(()=>Promise.resolve().then(()=>M1e),void 0,import.meta.url)});be({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>pe(()=>Promise.resolve().then(()=>B1e),void 0,import.meta.url)});be({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>pe(()=>Promise.resolve().then(()=>H1e),void 0,import.meta.url)});be({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>pe(()=>Promise.resolve().then(()=>U1e),void 0,import.meta.url)});be({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>pe(()=>Promise.resolve().then(()=>K1e),void 0,import.meta.url)});be({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>pe(()=>Promise.resolve().then(()=>MB),void 0,import.meta.url)});be({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>pe(()=>Promise.resolve().then(()=>MB),void 0,import.meta.url)});be({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>pe(()=>Promise.resolve().then(()=>Q1e),void 0,import.meta.url)});be({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>pe(()=>Promise.resolve().then(()=>t0e),void 0,import.meta.url)});be({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>pe(()=>Promise.resolve().then(()=>a_e),void 0,import.meta.url)});be({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>pe(()=>Promise.resolve().then(()=>s0e),void 0,import.meta.url)});be({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",aliases:["XML","xml"],mimetypes:["text/xml","application/xml","application/xaml+xml","application/xml-dtd"],loader:()=>pe(()=>Promise.resolve().then(()=>h0e),void 0,import.meta.url)});be({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>pe(()=>Promise.resolve().then(()=>p0e),void 0,import.meta.url)});var _ne=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},bne=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Sw=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const yw=new le("selectionAnchorSet",!1);let nl=class m9{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=yw.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(e){return e.getContribution(m9.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],i=this.editor.deltaDecorations(t,[{range:oe.fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:new il().appendText(f("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=i[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Ki(f("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(oe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};nl.ID="editor.contrib.selectionAnchorController";nl=_ne([bne(1,De)],nl);class vne extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:f("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:Ii(2089,2080),weight:100}})}run(e,t){return Sw(this,void 0,void 0,function*(){nl.get(t).setSelectionAnchor()})}}class Cne extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:f("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:yw})}run(e,t){return Sw(this,void 0,void 0,function*(){nl.get(t).goToSelectionAnchor()})}}class wne extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:f("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:yw,kbOpts:{kbExpr:T.editorTextFocus,primary:Ii(2089,2089),weight:100}})}run(e,t){return Sw(this,void 0,void 0,function*(){nl.get(t).selectFromAnchorToCursor()})}}class Sne extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:f("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:yw,kbOpts:{kbExpr:T.editorTextFocus,primary:9,weight:100}})}run(e,t){return Sw(this,void 0,void 0,function*(){nl.get(t).cancelSelectionAnchor()})}}dt(nl.ID,nl);se(vne);se(Cne);se(wne);se(Sne);const yne=I("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},f("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class xne extends de{constructor(){super({id:"editor.action.jumpToBracket",label:f("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:T.editorTextFocus,primary:3160,weight:100}})}run(e,t){let i=qo.get(t);!i||i.jumpToBracket()}}class kne extends de{constructor(){super({id:"editor.action.selectToBracket",label:f("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){const n=qo.get(t);if(!n)return;let o=!0;i&&i.selectBrackets===!1&&(o=!1),n.selectToBracket(o)}}class Lne{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class qo extends ${constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new xt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(63),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._decorations=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(63)&&(this._matchBrackets=this._editor.getOption(63),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}static get(e){return e.getContribution(qo.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.bracketPairs.matchBracket(n);let r=null;if(o)o[0].containsPosition(n)?r=o[1].getStartPosition():o[1].containsPosition(n)&&(r=o[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[0].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new oe(r.lineNumber,r.column,r.lineNumber,r.column):new oe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let r=t.bracketPairs.matchBracket(o);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(o),!r)){const d=t.bracketPairs.findNextBracket(o);d&&d.range&&(r=t.bracketPairs.matchBracket(d.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(x.compareRangesUsingStarts);const[d,c]=r;if(a=e?d.getStartPosition():d.getEndPosition(),l=e?c.getEndPosition():c.getStartPosition(),c.containsPosition(o)){const u=a;a=l,l=u}}a&&l&&i.push(new oe(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();let e=[],t=0;for(const i of this._lastBracketsData){let n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);let o=[],r=0;for(let u=0,h=e.length;u<h;u++){let g=e[u];g.isEmpty()&&(o[r++]=g.getStartPosition())}o.length>1&&o.sort(B.compare);let a=[],l=0,d=0,c=n.length;for(let u=0,h=o.length;u<h;u++){let g=o[u];for(;d<c&&n[d].position.isBefore(g);)d++;if(d<c&&n[d].position.equals(g))a[l++]=n[d];else{let p=t.bracketPairs.matchBracket(g),m=qo._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!p&&this._matchBrackets==="always"&&(p=t.bracketPairs.findEnclosingBrackets(g,20),m=qo._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),a[l++]=new Lne(g,p,m)}}this._lastBracketsData=a,this._lastVersionId=i}}qo.ID="editor.contrib.bracketMatchingController";qo._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=Fe.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Vt(yne),position:ns.Center}});qo._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=Fe.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"});dt(qo.ID,qo);se(kne);se(xne);Rt((s,e)=>{const t=s.getColor(UK);t&&e.addRule(`.monaco-editor .bracket-match { background-color: ${t}; }`);const i=s.getColor(b8);i&&e.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)});$s.appendMenuItem(he.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:f({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2});class Ene{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new x(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new x(i,o,i,o),a)}else{const r=new x(i,o,i,o+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new x(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new oe(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new oe(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class _9 extends de{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let i=[],n=t.getSelections();for(const o of n)i.push(new Ene(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class Dne extends _9{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:f("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:T.writable})}}class Tne extends _9{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:f("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:T.writable})}}se(Dne);se(Tne);class Ine extends de{constructor(){super({id:"editor.action.transposeLetters",label:f("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:T.writable,kbOpts:{kbExpr:T.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let i=t.getModel(),n=[],o=t.getSelections();for(let r of o){if(!r.isEmpty())continue;let a=r.startLineNumber,l=r.startColumn,d=i.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&d===2))continue;let c=l===d?r.getPosition():st.rightPosition(i,r.getPosition().lineNumber,r.getPosition().column),u=st.leftPosition(i,c),h=st.leftPosition(i,u),g=i.getValueInRange(x.fromPositions(h,u)),p=i.getValueInRange(x.fromPositions(u,c)),m=x.fromPositions(h,c);n.push(new Ui(m,p+g))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}se(Ine);var Nne=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const ou="9_cutcopypaste",Ane=zo||document.queryCommandSupported("cut"),b9=zo||document.queryCommandSupported("copy"),Rne=typeof navigator.clipboard>"u"||is?document.queryCommandSupported("paste"):!0;function QI(s){return s.register(),s}const One=Ane?QI(new Jg({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:zo?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:he.MenubarEditMenu,group:"2_ccp",title:f({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:he.EditorContext,group:ou,title:f("actions.clipboard.cutLabel","Cut"),when:T.writable,order:1},{menuId:he.CommandPalette,group:"",title:f("actions.clipboard.cutLabel","Cut"),order:1},{menuId:he.SimpleEditorContext,group:ou,title:f("actions.clipboard.cutLabel","Cut"),when:T.writable,order:1}]})):void 0,Mne=b9?QI(new Jg({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:zo?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:he.MenubarEditMenu,group:"2_ccp",title:f({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:he.EditorContext,group:ou,title:f("actions.clipboard.copyLabel","Copy"),order:2},{menuId:he.CommandPalette,group:"",title:f("actions.clipboard.copyLabel","Copy"),order:1},{menuId:he.SimpleEditorContext,group:ou,title:f("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;$s.appendMenuItem(he.MenubarEditMenu,{submenu:he.MenubarCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});$s.appendMenuItem(he.EditorContext,{submenu:he.EditorContextCopy,title:{value:f("copy as","Copy As"),original:"Copy As"},group:ou,order:3});const Iy=Rne?QI(new Jg({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:zo?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:he.MenubarEditMenu,group:"2_ccp",title:f({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:he.EditorContext,group:ou,title:f("actions.clipboard.pasteLabel","Paste"),when:T.writable,order:4},{menuId:he.CommandPalette,group:"",title:f("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:he.SimpleEditorContext,group:ou,title:f("actions.clipboard.pasteLabel","Paste"),when:T.writable,order:4}]})):void 0;class Pne extends de{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:f("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:T.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(32)&&t.getSelection().isEmpty()||(Qk.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),Qk.forceCopyWithSyntaxHighlighting=!1)}}function v9(s,e){!s||(s.addImplementation(1e4,"code-editor",(t,i)=>{const n=t.get(ft).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const o=n.getOption(32),r=n.getSelection();return r&&r.isEmpty()&&!o||document.execCommand(e),!0}return!1}),s.addImplementation(0,"generic-dom",(t,i)=>(document.execCommand(e),!0)))}v9(One,"cut");v9(Mne,"copy");Iy&&(Iy.addImplementation(1e4,"code-editor",(s,e)=>{const t=s.get(ft),i=s.get(Nd),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Ld?(()=>Nne(void 0,void 0,void 0,function*(){const r=yield i.readText();if(r!==""){const a=cm.INSTANCE.get(r);let l=!1,d=null,c=null;a&&(l=n.getOption(32)&&!!a.isFromEmptySelection,d=typeof a.multicursorText<"u"?a.multicursorText:null,c=a.mode),n.trigger("keyboard","paste",{text:r,pasteOnNewLine:l,multicursorText:d,mode:c})}}))():!0:!1}),Iy.addImplementation(0,"generic-dom",(s,e)=>(document.execCommand("paste"),!0)));b9&&se(Pne);class kv{constructor(e){this.executor=e,this._didRun=!1}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}class je{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+je.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new je(this.value+je.sep+e)}}je.sep=".";je.None=new je("@@none@@");je.Empty=new je("");je.QuickFix=new je("quickfix");je.Refactor=new je("refactor");je.Source=new je("source");je.SourceOrganizeImports=je.Source.append("organizeImports");je.SourceFixAll=je.Source.append("fixAll");function Fne(s,e){return!(s.include&&!s.include.intersects(e)||s.excludes&&s.excludes.some(t=>C9(e,t,s.include))||!s.includeSourceActions&&je.Source.contains(e))}function Bne(s,e){const t=e.kind?new je(e.kind):void 0;return!(s.include&&(!t||!s.include.contains(t))||s.excludes&&t&&s.excludes.some(i=>C9(t,i,s.include))||!s.includeSourceActions&&t&&je.Source.contains(t)||s.onlyIncludePreferredActions&&!e.isPreferred)}function C9(s,e,t){return!(!e.contains(s)||t&&e.contains(t))}class Fr{constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}static fromUser(e,t){return!e||typeof e!="object"?new Fr(t.kind,t.apply,!1):new Fr(Fr.getKindFromUser(e,t.kind),Fr.getApplyFromUser(e,t.apply),Fr.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new je(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}}var JI=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};const w9="editor.action.codeAction",S9="editor.action.refactor",y9="editor.action.sourceAction",eN="editor.action.organizeImports",tN="editor.action.fixAll";class x9{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return JI(this,void 0,void 0,function*(){if(((t=this.provider)===null||t===void 0?void 0:t.resolveCodeAction)&&!this.action.edit){let i;try{i=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Xi(n)}i&&(this.action.edit=i.edit)}return this})}}class iN extends ${constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(iN.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:Jn(e.diagnostics)?Jn(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Jn(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&je.QuickFix.contains(new je(e.kind))&&!!e.isPreferred)}}const JR={actions:[],documentation:void 0};function nN(s,e,t,i,n){var o;const r=t.filter||{},a={only:(o=r.include)===null||o===void 0?void 0:o.value,trigger:t.type},l=new mI(s,n),d=Wne(s,r),c=new Q,u=d.map(g=>JI(this,void 0,void 0,function*(){try{i.report(g);const p=yield g.provideCodeActions(s,e,a,l.token);if(p&&c.add(p),l.token.isCancellationRequested)return JR;const m=((p==null?void 0:p.actions)||[]).filter(v=>v&&Bne(r,v)),_=Vne(g,m,r.include);return{actions:m.map(v=>new x9(v,g)),documentation:_}}catch(p){if(oa(p))throw p;return Xi(p),JR}})),h=jr.onDidChange(()=>{const g=jr.all(s);Vs(g,d)||l.cancel()});return Promise.all(u).then(g=>{const p=M4(g.map(_=>_.actions)),m=Yg(g.map(_=>_.documentation));return new iN(p,m,c)}).finally(()=>{h.dispose(),l.dispose()})}function Wne(s,e){return jr.all(s).filter(t=>t.providedCodeActionKinds?t.providedCodeActionKinds.some(i=>Fne(e,new je(i))):!0)}function Vne(s,e,t){if(!s.documentation)return;const i=s.documentation.map(n=>({kind:new je(n.kind),command:n.command}));if(t){let n;for(const o of i)o.kind.contains(t)&&(n?n.kind.contains(o.kind)&&(n=o):n=o);if(n)return n==null?void 0:n.command}for(const n of e)if(!!n.kind){for(const o of i)if(o.kind.contains(new je(n.kind)))return o.command}}Qe.registerCommand("_executeCodeActionProvider",function(s,e,t,i,n){return JI(this,void 0,void 0,function*(){if(!(e instanceof Ce))throw Uo();const o=s.get(bi).getModel(e);if(!o)throw Uo();const r=oe.isISelection(t)?oe.liftSelection(t):x.isIRange(t)?o.validateRange(t):void 0;if(!r)throw Uo();const a=typeof i=="string"?new je(i):void 0,l=yield nN(o,r,{type:1,filter:{includeSourceActions:!0,include:a}},Nu.None,$e.None),d=[],c=Math.min(l.validActions.length,typeof n=="number"?n:0);for(let u=0;u<c;u++)d.push(l.validActions[u].resolve($e.None));try{return yield Promise.all(d),l.validActions.map(u=>u.action)}finally{setTimeout(()=>l.dispose(),100)}})});var Hne=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},$ne=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let Ls=class JL{constructor(e,t){this._messageWidget=new Ln,this._messageListeners=new Q,this._editor=e,this._visible=JL.MESSAGE_VISIBLE.bindTo(t),this._editorListener=this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit())}static get(e){return e.getContribution(JL.ID)}dispose(){this._editorListener.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Ki(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new eO(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new En(()=>this.closeMessage(),3e3));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{!n.target.position||(i?i.containsPosition(n.target.position)||this.closeMessage():i=new x(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(eO.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(f("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};Ls.ID="editor.contrib.messageController";Ls.MESSAGE_VISIBLE=new le("messageVisible",!1,f("messageVisible","Whether the editor is currently showing an inline message"));Ls=Hne([$ne(1,De)],Ls);const zne=Qi.bindToContribution(Ls.get);ne(new zne({id:"leaveEditorMessage",precondition:Ls.MESSAGE_VISIBLE,handler:s=>s.closeMessage(),kbOpts:{weight:100+30,primary:9}}));class eO{constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const r=document.createElement("div");r.classList.add("message"),r.textContent=n,this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t;const i=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",i)};return t=setTimeout(i,110),e.getDomNode().addEventListener("animationend",i),e.getDomNode().classList.add("fadeOut"),{dispose:i}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}afterRender(e){this._domNode.classList.toggle("below",e===2)}}dt(Ls.ID,Ls);var Une=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},tO=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},jne=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};class iO extends Hs{constructor(e,t){super(e.command?e.command.id:e.title,qne(e.title),void 0,!e.disabled,t),this.action=e}}function qne(s){return s.replace(/\r\n|\r|\n/g," ")}let eE=class extends ${constructor(e,t,i,n){super(),this._editor=e,this._delegate=t,this._contextMenuService=i,this._visible=!1,this._showingActions=this._register(new Ln),this._keybindingResolver=new xw({getKeybindings:()=>n.getKeybindings()})}get isVisible(){return this._visible}show(e,t,i,n){return jne(this,void 0,void 0,function*(){const o=n.includeDisabledActions?t.allActions:t.validActions;if(!o.length){this._visible=!1;return}if(!this._editor.getDomNode())throw this._visible=!1,yu();this._visible=!0,this._showingActions.value=t;const r=this.getMenuActions(e,o,t.documentation),a=B.isIPosition(i)?this._toCoords(i):i||{x:0,y:0},l=this._keybindingResolver.getResolver(),d=this._editor.getOption(114);this._contextMenuService.showContextMenu({domForShadowRoot:d?this._editor.getDomNode():void 0,getAnchor:()=>a,getActions:()=>r,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:c=>c instanceof iO?l(c.action):void 0})})}getMenuActions(e,t,i){var n,o;const r=c=>new iO(c.action,()=>this._delegate.onSelectCodeAction(c)),a=t.map(r),l=[...i],d=this._editor.getModel();if(d&&a.length)for(const c of jr.all(d))c._getAdditionalMenuItems&&l.push(...c._getAdditionalMenuItems({trigger:e.type,only:(o=(n=e.filter)===null||n===void 0?void 0:n.include)===null||o===void 0?void 0:o.value},t.map(u=>u.action)));return l.length&&a.push(new Co,...l.map(c=>r(new x9({title:c.title,command:c},void 0)))),a}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=sn(this._editor.getDomNode()),n=i.left+t.left,o=i.top+t.top+t.height;return{x:n,y:o}}};eE=Une([tO(2,Id),tO(3,jt)],eE);class xw{constructor(e){this._keybindingProvider=e}getResolver(){const e=new kv(()=>this._keybindingProvider.getKeybindings().filter(t=>xw.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let i=t.commandArgs;return t.command===eN?i={kind:je.SourceOrganizeImports.value}:t.command===tN&&(i={kind:je.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Fr.fromUser(i,{kind:je.None,apply:"never"}))}));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.getValue());return i==null?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new je(e.kind);return t.filter(n=>n.kind.contains(i)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,o)=>n?n.kind.contains(o.kind)?o:n:o,void 0)}}xw.codeActionCommands=[S9,w9,y9,eN,tN];var Kne=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Gne=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Ap;(function(s){s.Hidden={type:0};class e{constructor(i,n,o,r){this.actions=i,this.trigger=n,this.editorPosition=o,this.widgetPosition=r,this.type=1}}s.Showing=e})(Ap||(Ap={}));let Lv=class k9 extends ${constructor(e,t,i,n){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=i,this._keybindingService=n,this._onClick=this._register(new M),this.onClick=this._onClick.event,this._state=Ap.Hidden,this._domNode=document.createElement("div"),this._domNode.className=O.lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(o=>{const r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),gt.ignoreTarget(this._domNode),this._register(RV(this._domNode,o=>{if(this.state.type!==1)return;this._editor.focus(),o.preventDefault();const{top:r,height:a}=sn(this._domNode),l=this._editor.getOption(58);let d=Math.floor(l/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(d+=l),this._onClick.fire({x:o.posx,y:r+a+d,actions:this.state.actions,trigger:this.state.trigger})})),this._register(Y(this._domNode,"mouseenter",o=>{if((o.buttons&1)!==1)return;this.hide();const r=new Tu;r.startMonitoring(o.target,o.buttons,ef,()=>{},()=>{r.dispose()})})),this._register(this._editor.onDidChangeConfiguration(o=>{o.hasChanged(56)&&!this._editor.getOption(56).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();const n=this._editor.getOptions();if(!n.get(56).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:r,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,d=n.get(43),c=o.getLineContent(r),u=ss.computeIndentLevel(c,l),h=d.spaceWidth*u>22,g=m=>m>2&&this._editor.getTopForLineNumber(m)===this._editor.getTopForLineNumber(m-1);let p=r;if(!h){if(r>1&&!g(r-1))p-=1;else if(!g(r+1))p+=1;else if(a*d.spaceWidth<22)return this.hide()}this.state=new Ap.Showing(e,t,i,{position:{lineNumber:p,column:1},preference:k9._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=Ap.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...O.lightBulb.classNamesArray),this._domNode.classList.add(...O.lightbulbAutofix.classNamesArray);const t=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(t){this.title=f("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",t.getLabel());return}}this._domNode.classList.remove(...O.lightbulbAutofix.classNamesArray),this._domNode.classList.add(...O.lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);e?this.title=f("codeActionWithKb","Show Code Actions ({0})",e.getLabel()):this.title=f("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};Lv._posPref=[0];Lv=Kne([Gne(3,jt)],Lv);Rt((s,e)=>{var t;const i=(t=s.getColor(Vn))===null||t===void 0?void 0:t.transparent(.7),n=s.getColor(kj);n&&e.addRule(`
|
|
622
622
|
.monaco-editor .contentWidgets ${O.lightBulb.cssSelector} {
|
|
623
623
|
color: ${n};
|
|
624
624
|
background-color: ${i};
|
|
@@ -780,7 +780,7 @@ The flag will not be saved for the future.
|
|
|
780
780
|
- `+r,n+=`
|
|
781
781
|
|
|
782
782
|
`+ci.outroMsg,this._contentDomNode.domNode.appendChild(V3(n)),this._contentDomNode.domNode.setAttribute("aria-label",n)}hide(){!this._isVisible||(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,mi(this._contentDomNode.domNode),this._editor.focus())}_layout(){let e=this._editor.getLayoutInfo(),t=Math.max(5,Math.min(z1.WIDTH,e.width-40)),i=Math.max(5,Math.min(z1.HEIGHT,e.height-40));this._domNode.setWidth(t),this._domNode.setHeight(i);let n=Math.round((e.height-i)/2);this._domNode.setTop(n);let o=Math.round((e.width-t)/2);this._domNode.setLeft(o)}};Kg.ID="editor.contrib.accessibilityHelpWidget";Kg.WIDTH=500;Kg.HEIGHT=300;Kg=z7([$1(1,De),$1(2,jt),$1(3,Zs)],Kg);class Nhe extends de{constructor(){super({id:"editor.action.showAccessibilityHelp",label:ci.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){let i=Cu.get(t);i&&i.show()}}dt(Cu.ID,Cu);se(Nhe);const Ahe=Qi.bindToContribution(Cu.get);ne(new Ahe({id:"closeAccessibilityHelp",precondition:U7,handler:s=>s.hide(),kbOpts:{weight:100+100,kbExpr:T.focus,primary:9,secondary:[1033]}}));Rt((s,e)=>{const t=s.getColor(wn);t&&e.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${t}; }`);const i=s.getColor(ja);i&&e.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${i}; }`);const n=s.getColor(hd);n&&e.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${n}; }`);const o=s.getColor(Ht);o&&e.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${o}; }`)});class rD extends ${constructor(e){super(),this.editor=e,this.widget=null,Go&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const e=!this.editor.getOption(80);!this.widget&&e?this.widget=new eS(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}rD.ID="editor.contrib.iPadShowKeyboard";class eS extends ${constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(Y(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(Y(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return eS.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}eS.ID="editor.contrib.ShowKeyboardWidget";dt(rD.ID,rD);var Rhe=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},pM=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let Gg=class q7 extends ${constructor(e,t,i){super(),this._editor=e,this._modeService=i,this._widget=null,this._register(this._editor.onDidChangeModel(n=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(n=>this.stop())),this._register(Gt.onDidChange(n=>this.stop())),this._register(this._editor.onKeyUp(n=>n.keyCode===9&&this.stop()))}static get(e){return e.getContribution(q7.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||!this._editor.hasModel()||(this._widget=new tS(this._editor,this._modeService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};Gg.ID="editor.contrib.inspectTokens";Gg=Rhe([pM(1,Au),pM(2,ln)],Gg);class Ohe extends de{constructor(){super({id:"editor.action.inspectTokens",label:Rk.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){let i=Gg.get(t);i&&i.launch()}}function Mhe(s){let e="";for(let t=0,i=s.length;t<i;t++){let n=s.charCodeAt(t);switch(n){case 9:e+="\u2192";break;case 32:e+="\xB7";break;default:e+=String.fromCharCode(n)}}return e}function Phe(s,e){const t=Gt.get(e);if(t)return t;const i=s.encodeLanguageId(e);return{getInitialState:()=>y_,tokenize:(n,o,r,a)=>WF(e,n,r,a),tokenize2:(n,o,r,a)=>pT(i,n,r,a)}}class tS extends ${constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._modeService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=Phe(this._modeService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(i=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return tS._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),i=0;for(let l=t.tokens1.length-1;l>=0;l--){let d=t.tokens1[l];if(e.column-1>=d.offset){i=l;break}}let n=0;for(let l=t.tokens2.length>>>1;l>=0;l--)if(e.column-1>=t.tokens2[l<<1]){n=l;break}let o=this._model.getLineContent(e.lineNumber),r="";if(i<t.tokens1.length){let l=t.tokens1[i].offset,d=i+1<t.tokens1.length?t.tokens1[i+1].offset:o.length;r=o.substring(l,d)}ad(this._domNode,G("h2.tm-token",void 0,Mhe(r),G("span.tm-token-length",void 0,`${r.length} ${r.length===1?"char":"chars"}`))),U(this._domNode,G("hr.tokens-inspect-separator",{style:"clear:both"}));const a=(n<<1)+1<t.tokens2.length?this._decodeMetadata(t.tokens2[(n<<1)+1]):null;U(this._domNode,G("table.tm-metadata-table",void 0,G("tbody",void 0,G("tr",void 0,G("td.tm-metadata-key",void 0,"language"),G("td.tm-metadata-value",void 0,`${a?a.languageId:"-?-"}`)),G("tr",void 0,G("td.tm-metadata-key",void 0,"token type"),G("td.tm-metadata-value",void 0,`${a?this._tokenTypeToString(a.tokenType):"-?-"}`)),G("tr",void 0,G("td.tm-metadata-key",void 0,"font style"),G("td.tm-metadata-value",void 0,`${a?this._fontStyleToString(a.fontStyle):"-?-"}`)),G("tr",void 0,G("td.tm-metadata-key",void 0,"foreground"),G("td.tm-metadata-value",void 0,`${a?W.Format.CSS.formatHex(a.foreground):"-?-"}`)),G("tr",void 0,G("td.tm-metadata-key",void 0,"background"),G("td.tm-metadata-value",void 0,`${a?W.Format.CSS.formatHex(a.background):"-?-"}`))))),U(this._domNode,G("hr.tokens-inspect-separator")),i<t.tokens1.length&&U(this._domNode,G("span.tm-token-type",void 0,t.tokens1[i].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){let t=Gt.getColorMap(),i=gn.getLanguageId(e),n=gn.getTokenType(e),o=gn.getFontStyle(e),r=gn.getForeground(e),a=gn.getBackground(e);return{languageId:this._modeService.languageIdCodec.decodeLanguageId(i),tokenType:n,fontStyle:o,foreground:t[r],background:t[a]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return e&1&&(t+="italic "),e&2&&(t+="bold "),e&4&&(t+="underline "),t.length===0&&(t="---"),t}_getTokensAtLine(e){let t=this._getStateBeforeLine(e),i=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t,0),n=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),!0,t,0);return{startState:t,tokens1:i.tokens,tokens2:n.tokens,endState:i.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let i=1;i<e;i++)t=this._tokenizationSupport.tokenize(this._model.getLineContent(i),!0,t,0).endState;return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}tS._ID="editor.contrib.inspectTokensWidget";dt(Gg.ID,Gg);se(Ohe);Rt((s,e)=>{const t=s.getColor($T);if(t){let o=s.type===wo.HIGH_CONTRAST?2:1;e.addRule(`.monaco-editor .tokens-inspect-widget { border: ${o}px solid ${t}; }`),e.addRule(`.monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ${t}; }`)}const i=s.getColor(Kc);i&&e.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${i}; }`);const n=s.getColor(HT);n&&e.addRule(`.monaco-editor .tokens-inspect-widget { color: ${n}; }`)});var Fhe=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Bhe=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let Wv=class U1{constructor(e){this.quickInputService=e,this.registry=li.as(Pu.Quickaccess)}provide(e){const t=new Q;t.add(e.onDidAccept(()=>{const[o]=e.selectedItems;o&&this.quickInputService.quickAccess.show(o.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(o=>{const r=this.registry.getQuickAccessProvider(o.substr(U1.PREFIX.length));r&&r.prefix&&r.prefix!==U1.PREFIX&&this.quickInputService.quickAccess.show(r.prefix,{preserveValue:!0})}));const{editorProviders:i,globalProviders:n}=this.getQuickAccessProviders();return e.items=i.length===0||n.length===0?[...i.length===0?n:i]:[{label:f("globalCommands","global commands"),type:"separator"},...n,{label:f("editorCommands","editor commands"),type:"separator"},...i],t}getQuickAccessProviders(){const e=[],t=[];for(const i of this.registry.getQuickAccessProviders().sort((n,o)=>n.prefix.localeCompare(o.prefix)))if(i.prefix!==U1.PREFIX)for(const n of i.helpEntries){const o=n.prefix||i.prefix,r=o||"\u2026";(n.needsEditor?t:e).push({prefix:o,label:r,ariaLabel:f("helpPickAriaLabel","{0}, {1}",r,n.description),description:n.description})}return{editorProviders:t,globalProviders:e}}};Wv.PREFIX="?";Wv=Fhe([Bhe(0,ll)],Wv);li.as(Pu.Quickaccess).registerQuickAccessProvider({ctor:Wv,prefix:"",helpEntries:[{description:Ok.helpQuickAccessActionLabel,needsEditor:!0}]});class K7{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i;const n=new Q;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const o=n.add(new Ln);return o.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange(()=>{o.value=void 0,o.value=this.doProvide(e,t)})),n}doProvide(e,t){const i=new Q,n=this.activeTextEditorControl;if(n&&this.canProvideWithTextEditor(n)){const o={editor:n},r=d5(n);if(r){let a=Xn(n.saveViewState());i.add(r.onDidChangeCursorPosition(()=>{a=Xn(n.saveViewState())})),o.restoreViewState=()=>{a&&n===this.activeTextEditorControl&&n.restoreViewState(a)},i.add(Qa(t.onCancellationRequested)(()=>{var l;return(l=o.restoreViewState)===null||l===void 0?void 0:l.call(o)}))}i.add(qe(()=>this.clearDecorations(n))),i.add(this.provideWithTextEditor(o,e,t))}else i.add(this.provideWithoutTextEditor(e,t));return i}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus()}getModel(e){var t;return l5(e)?(t=e.getModel())===null||t===void 0?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(i=>{const n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const o=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Vt(JK),position:ns.Full}}}],[r,a]=i.deltaDecorations(n,o);this.rangeHighlightDecorationId={rangeHighlightId:r,overviewRulerDecorationId:a}})}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(i=>{i.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}class iS extends K7{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=f("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,$.None}provideWithTextEditor(e,t,i){const n=e.editor,o=new Q;o.add(t.onDidAccept(l=>{const[d]=t.selectedItems;if(d){if(!this.isValidLineNumber(n,d.lineNumber))return;this.gotoLocation(e,{range:this.toRange(d.lineNumber,d.column),keyMods:t.keyMods,preserveFocus:l.inBackground}),l.inBackground||t.hide()}}));const r=()=>{const l=this.parsePosition(n,t.value.trim().substr(iS.PREFIX.length)),d=this.getPickLabel(n,l.lineNumber,l.column);if(t.items=[{lineNumber:l.lineNumber,column:l.column,label:d}],t.ariaLabel=d,!this.isValidLineNumber(n,l.lineNumber)){this.clearDecorations(n);return}const c=this.toRange(l.lineNumber,l.column);n.revealRangeInCenter(c,0),this.addDecorations(n,c)};r(),o.add(t.onDidChangeValue(()=>r()));const a=d5(n);return a&&a.getOptions().get(59).renderType===2&&(a.updateOptions({lineNumbers:"on"}),o.add(qe(()=>a.updateOptions({lineNumbers:"relative"})))),o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map(o=>parseInt(o,10)).filter(o=>!isNaN(o)),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?f("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):f("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?f("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,o):f("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!t||typeof t!="number"?!1:t>0&&t<=this.lineCount(e)}isValidColumn(e,t,i){if(!i||typeof i!="number")return!1;const n=this.getModel(e);if(!n)return!1;const o={lineNumber:t,column:i};return n.validatePosition(o).equals(o)}lineCount(e){var t,i;return(i=(t=this.getModel(e))===null||t===void 0?void 0:t.getLineCount())!==null&&i!==void 0?i:0}}iS.PREFIX=":";var Whe=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vhe=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let e_=class extends iS{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=ue.None}get activeTextEditorControl(){return Xn(this.editorService.getFocusedCodeEditor())}};e_=Whe([Vhe(0,ft)],e_);li.as(Pu.Quickaccess).registerQuickAccessProvider({ctor:e_,prefix:e_.PREFIX,helpEntries:[{description:O0.gotoLineActionLabel,needsEditor:!0}]});class Hhe extends de{constructor(){super({id:"editor.action.gotoLine",label:O0.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(ll).quickAccess.show(e_.PREFIX)}}se(Hhe);const G7=[void 0,[]];function dx(s,e,t=0,i=0){const n=e;return n.values&&n.values.length>1?$he(s,n.values,t,i):Z7(s,e,t,i)}function $he(s,e,t,i){let n=0;const o=[];for(const r of e){const[a,l]=Z7(s,r,t,i);if(typeof a!="number")return G7;n+=a,o.push(...l)}return[n,zhe(o)]}function Z7(s,e,t,i){const n=Ng(e.original,e.originalLowercase,t,s,s.toLowerCase(),i,!0);return n?[n[0],ow(n)]:G7}Object.freeze({score:0});function zhe(s){const e=s.sort((n,o)=>n.start-o.start),t=[];let i;for(const n of e)!i||!Uhe(i,n)?(i=n,t.push(n)):(i.start=Math.min(i.start,n.start),i.end=Math.max(i.end,n.end));return t}function Uhe(s,e){return!(s.end<e.start||e.end<s.start)}function mM(s){return s.startsWith('"')&&s.endsWith('"')}const Y7=" ";function aD(s){typeof s!="string"&&(s="");const e=s.toLowerCase(),{pathNormalized:t,normalized:i,normalizedLowercase:n}=_M(s),o=t.indexOf(Hr)>=0,r=mM(s);let a;const l=s.split(Y7);if(l.length>1)for(const d of l){const c=mM(d),{pathNormalized:u,normalized:h,normalizedLowercase:g}=_M(d);h&&(a||(a=[]),a.push({original:d,originalLowercase:d.toLowerCase(),pathNormalized:u,normalized:h,normalizedLowercase:g,expectContiguousMatch:c}))}return{original:s,originalLowercase:e,pathNormalized:t,normalized:i,normalizedLowercase:n,values:a,containsPathSeparator:o,expectContiguousMatch:r}}function _M(s){let e;Pi?e=s.replace(/\//g,Hr):e=s.replace(/\\/g,Hr);const t=QV(e).replace(/\s|"/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function bM(s){return Array.isArray(s)?aD(s.map(e=>e.original).join(Y7)):aD(s.original)}var qf=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};class Us extends K7{constructor(e=Object.create(null)){super(e),this.options=e,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,f("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),$.None}provideWithTextEditor(e,t,i){const n=e.editor,o=this.getModel(n);return o?_o.has(o)?this.doProvideWithEditorSymbols(e,o,t,i):this.doProvideWithoutEditorSymbols(e,o,t,i):$.None}doProvideWithoutEditorSymbols(e,t,i,n){const o=new Q;return this.provideLabelPick(i,f("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),qf(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(t,o))||n.isCancellationRequested||o.add(this.doProvideWithEditorSymbols(e,t,i,n))}),o}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return qf(this,void 0,void 0,function*(){if(_o.has(e))return!0;const i=new oF,n=t.add(_o.onDidChange(()=>{_o.has(e)&&(n.dispose(),i.complete(!0))}));return t.add(qe(()=>i.complete(!1))),i.p})}doProvideWithEditorSymbols(e,t,i,n){const o=e.editor,r=new Q;r.add(i.onDidAccept(u=>{const[h]=i.selectedItems;h&&h.range&&(this.gotoLocation(e,{range:h.range.selection,keyMods:i.keyMods,preserveFocus:u.inBackground}),u.inBackground||i.hide())})),r.add(i.onDidTriggerItemButton(({item:u})=>{u&&u.range&&(this.gotoLocation(e,{range:u.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())}));const a=this.getDocumentSymbols(t,n);let l;const d=()=>qf(this,void 0,void 0,function*(){l==null||l.dispose(!0),i.busy=!1,l=new fn(n),i.busy=!0;try{const u=aD(i.value.substr(Us.PREFIX.length).trim()),h=yield this.doGetSymbolPicks(a,u,void 0,l.token);if(n.isCancellationRequested)return;h.length>0?i.items=h:u.original.length>0?this.provideLabelPick(i,f("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,f("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(i.busy=!1)}});r.add(i.onDidChangeValue(()=>d())),d();let c=!0;return r.add(i.onDidChangeActive(()=>{const[u]=i.activeItems;if(u&&u.range){if(c){c=!1;return}o.revealRangeInCenter(u.range.selection,0),this.addDecorations(o,u.range.decoration)}})),r}doGetSymbolPicks(e,t,i,n){return qf(this,void 0,void 0,function*(){const o=yield e;if(n.isCancellationRequested)return[];const r=t.original.indexOf(Us.SCOPE_PREFIX)===0,a=r?1:0;let l,d;t.values&&t.values.length>1?(l=bM(t.values[0]),d=bM(t.values.slice(1))):l=t;const c=[];for(let g=0;g<o.length;g++){const p=o[g],m=YV(p.name),_=`$(symbol-${wk.toString(p.kind)||"property"}) ${m}`,v=_.length-m.length;let b=p.containerName;i!=null&&i.extraContainerLabel&&(b?b=`${i.extraContainerLabel} \u2022 ${b}`:b=i.extraContainerLabel);let C,w,S,E;if(t.original.length>a){let k=!1;if(l!==t&&([C,w]=dx(_,Object.assign(Object.assign({},t),{values:void 0}),a,v),typeof C=="number"&&(k=!0)),typeof C!="number"&&([C,w]=dx(_,l,a,v),typeof C!="number"))continue;if(!k&&d){if(b&&d.original.length>0&&([S,E]=dx(b,d)),typeof S!="number")continue;typeof C=="number"&&(C+=S)}}const y=p.tags&&p.tags.indexOf(1)>=0;c.push({index:g,kind:p.kind,score:C,label:_,ariaLabel:m,description:b,highlights:y?void 0:{label:w,description:E},range:{selection:x.collapseToStart(p.selectionRange),decoration:p.range},strikethrough:y,buttons:(()=>{var k,N;const V=!((k=this.options)===null||k===void 0)&&k.openSideBySideDirection?(N=this.options)===null||N===void 0?void 0:N.openSideBySideDirection():void 0;if(!!V)return[{iconClass:V==="right"?O.splitHorizontal.classNames:O.splitVertical.classNames,tooltip:V==="right"?f("openToSide","Open to the Side"):f("openToBottom","Open to the Bottom")}]})()})}const u=c.sort((g,p)=>r?this.compareByKindAndScore(g,p):this.compareByScore(g,p));let h=[];if(r){let _=function(){p&&typeof g=="number"&&m>0&&(p.label=Bs(ux[g]||cx,m))},g,p,m=0;for(const v of u)g!==v.kind?(_(),g=v.kind,m=1,p={type:"separator"},h.push(p)):m++,h.push(v);_()}else u.length>0&&(h=[{label:f("symbols","symbols ({0})",c.length),type:"separator"},...u]);return h})}compareByScore(e,t){if(typeof e.score!="number"&&typeof t.score=="number")return 1;if(typeof e.score=="number"&&typeof t.score!="number")return-1;if(typeof e.score=="number"&&typeof t.score=="number"){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){const i=ux[e.kind]||cx,n=ux[t.kind]||cx,o=i.localeCompare(n);return o===0?this.compareByScore(e,t):o}getDocumentSymbols(e,t){return qf(this,void 0,void 0,function*(){const i=yield vn.create(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()})}}Us.PREFIX="@";Us.SCOPE_PREFIX=":";Us.PREFIX_BY_CATEGORY=`${Us.PREFIX}${Us.SCOPE_PREFIX}`;const cx=f("property","properties ({0})"),ux={[5]:f("method","methods ({0})"),[11]:f("function","functions ({0})"),[8]:f("_constructor","constructors ({0})"),[12]:f("variable","variables ({0})"),[4]:f("class","classes ({0})"),[22]:f("struct","structs ({0})"),[23]:f("event","events ({0})"),[24]:f("operator","operators ({0})"),[10]:f("interface","interfaces ({0})"),[2]:f("namespace","namespaces ({0})"),[3]:f("package","packages ({0})"),[25]:f("typeParameter","type parameters ({0})"),[1]:f("modules","modules ({0})"),[6]:f("property","properties ({0})"),[9]:f("enum","enumerations ({0})"),[21]:f("enumMember","enumeration members ({0})"),[14]:f("string","strings ({0})"),[0]:f("file","files ({0})"),[17]:f("array","arrays ({0})"),[15]:f("number","numbers ({0})"),[16]:f("boolean","booleans ({0})"),[18]:f("object","objects ({0})"),[19]:f("key","keys ({0})"),[7]:f("field","fields ({0})"),[13]:f("constant","constants ({0})")};var jhe=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},qhe=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let lD=class extends Us{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=ue.None}get activeTextEditorControl(){return Xn(this.editorService.getFocusedCodeEditor())}};lD=jhe([qhe(0,ft)],lD);li.as(Pu.Quickaccess).registerQuickAccessProvider({ctor:lD,prefix:Us.PREFIX,helpEntries:[{description:nm.quickOutlineActionLabel,prefix:Us.PREFIX,needsEditor:!0},{description:nm.quickOutlineByCategoryActionLabel,prefix:Us.PREFIX_BY_CATEGORY,needsEditor:!0}]});class Khe extends de{constructor(){super({id:"editor.action.quickOutline",label:nm.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:T.hasDocumentSymbolProvider,kbOpts:{kbExpr:T.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(ll).quickAccess.show(Us.PREFIX)}}se(Khe);function hx(s,e){return e&&(s.stack||s.stacktrace)?f("stackTrace.format","{0}: {1}",CM(s),vM(s.stack)||vM(s.stacktrace)):CM(s)}function vM(s){return Array.isArray(s)?s.join(`
|
|
783
|
-
`):s}function CM(s){return typeof s.code=="string"&&typeof s.errno=="number"&&typeof s.syscall=="string"?f("nodeExceptionMessage","A system error occurred ({0})",s.message):s.message||f("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function X7(s=null,e=!1){if(!s)return f("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(s)){const t=Yg(s),i=X7(t[0],e);return t.length>1?f("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(js(s))return s;if(s.detail){const t=s.detail;if(t.error)return hx(t.error,e);if(t.exception)return hx(t.exception,e)}return s.stack?hx(s,e):s.message?s.message:f("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var s1=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})},Oh;(function(s){s[s.NO_ACTION=0]="NO_ACTION",s[s.CLOSE_PICKER=1]="CLOSE_PICKER",s[s.REFRESH_PICKER=2]="REFRESH_PICKER",s[s.REMOVE_ITEM=3]="REMOVE_ITEM"})(Oh||(Oh={}));function gx(s){const e=s;return Array.isArray(e.items)}function Ghe(s){const e=s;return!!e.picks&&e.additionalPicks instanceof Promise}class nS extends ${constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var i;const n=new Q;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let o;const r=n.add(new Ln),a=()=>s1(this,void 0,void 0,function*(){const l=r.value=new Q;o==null||o.dispose(!0),e.busy=!1,o=new fn(t);const d=o.token,c=e.value.substr(this.prefix.length).trim(),u=this._getPicks(c,l,d),h=(g,p)=>{var m;let _,v;if(gx(g)?(_=g.items,v=g.active):_=g,_.length===0){if(p)return!1;c.length>0&&((m=this.options)===null||m===void 0?void 0:m.noResultsPick)&&(_=[this.options.noResultsPick])}return e.items=_,v&&(e.activeItems=[v]),!0};if(u!==null)if(Ghe(u)){let g=!1,p=!1;yield Promise.all([(()=>s1(this,void 0,void 0,function*(){yield od(nS.FAST_PICKS_RACE_DELAY),!d.isCancellationRequested&&(p||(g=h(u.picks,!0)))}))(),(()=>s1(this,void 0,void 0,function*(){e.busy=!0;try{const m=yield u.additionalPicks;if(d.isCancellationRequested)return;let _,v;gx(u.picks)?(_=u.picks.items,v=u.picks.active):_=u.picks;let b,C;if(gx(m)?(b=m.items,C=m.active):b=m,b.length>0||!g){let w;if(!v&&!C){const S=e.activeItems[0];S&&_.indexOf(S)!==-1&&(w=S)}h({items:[..._,...b],active:v||C||w})}}finally{d.isCancellationRequested||(e.busy=!1),p=!0}}))()])}else if(!(u instanceof Promise))h(u);else{e.busy=!0;try{const g=yield u;if(d.isCancellationRequested)return;h(g)}finally{d.isCancellationRequested||(e.busy=!1)}}});return n.add(e.onDidChangeValue(()=>a())),a(),n.add(e.onDidAccept(l=>{const[d]=e.selectedItems;typeof(d==null?void 0:d.accept)=="function"&&(l.inBackground||e.hide(),d.accept(e.keyMods,l))})),n.add(e.onDidTriggerItemButton(({button:l,item:d})=>s1(this,void 0,void 0,function*(){var c,u;if(typeof d.trigger=="function"){const h=(u=(c=d.buttons)===null||c===void 0?void 0:c.indexOf(l))!==null&&u!==void 0?u:-1;if(h>=0){const g=d.trigger(h,e.keyMods),p=typeof g=="number"?g:yield g;if(t.isCancellationRequested)return;switch(p){case Oh.NO_ACTION:break;case Oh.CLOSE_PICKER:e.hide();break;case Oh.REFRESH_PICKER:a();break;case Oh.REMOVE_ITEM:const m=e.items.indexOf(d);if(m!==-1){const _=e.items.slice(),v=_.splice(m,1),b=e.activeItems.filter(w=>w!==v[0]),C=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=_,b&&(e.activeItems=b),e.keepScrollPosition=C}break}}}}))),n}}nS.FAST_PICKS_RACE_DELAY=200;var Q7=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cc=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},wM=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};let t_=class j1 extends nS{constructor(e,t,i,n,o,r){super(j1.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=o,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(wu)),this.options=e}_getPicks(e,t,i){return wM(this,void 0,void 0,function*(){const n=yield this.getCommandPicks(t,i);if(i.isCancellationRequested)return[];const o=[];for(const d of n){const c=Xn(j1.WORD_FILTER(e,d.label)),u=d.commandAlias?Xn(j1.WORD_FILTER(e,d.commandAlias)):void 0;c||u?(d.highlights={label:c,detail:this.options.showAlias?u:void 0},o.push(d)):e===d.commandId&&o.push(d)}const r=new Map;for(const d of o){const c=r.get(d.label);c?(d.description=d.commandId,c.description=c.commandId):r.set(d.label,d)}o.sort((d,c)=>{const u=this.commandsHistory.peek(d.commandId),h=this.commandsHistory.peek(c.commandId);return u&&h?u>h?-1:1:u?-1:h?1:d.label.localeCompare(c.label)});const a=[];let l=!1;for(let d=0;d<o.length;d++){const c=o[d],u=this.keybindingService.lookupKeybinding(c.commandId),h=u?f("commandPickAriaLabelWithKeybinding","{0}, {1}",c.label,u.getAriaLabel()):c.label;d===0&&this.commandsHistory.peek(c.commandId)&&(a.push({type:"separator",label:f("recentlyUsed","recently used")}),l=!0),d!==0&&l&&!this.commandsHistory.peek(c.commandId)&&(a.push({type:"separator",label:f("morecCommands","other commands")}),l=!1),a.push(Object.assign(Object.assign({},c),{ariaLabel:h,detail:this.options.showAlias&&c.commandAlias!==c.label?c.commandAlias:void 0,keybinding:u,accept:()=>wM(this,void 0,void 0,function*(){this.commandsHistory.push(c.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"quick open"});try{yield this.commandService.executeCommand(c.commandId)}catch(g){oa(g)||this.dialogService.show(Jt.Error,f("canNotRun","Command '{0}' resulted in an error ({1})",c.label,X7(g)))}})}))}return a})}};t_.PREFIX=">";t_.WORD_FILTER=yI(nw,yQ,r3);t_=Q7([cc(1,Ye),cc(2,jt),cc(3,ai),cc(4,rl),cc(5,A_)],t_);let wu=class Ci extends ${constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=Ci.getConfiguredCommandHistoryLength(this.configurationService),Ci.cache&&Ci.cache.limit!==this.configuredCommandsHistoryLength&&(Ci.cache.limit=this.configuredCommandsHistoryLength,Ci.saveState(this.storageService))}load(){const e=this.storageService.get(Ci.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch{}const i=Ci.cache=new Ed(this.configuredCommandsHistoryLength,1);if(t){let n;t.usesLRU?n=t.entries:n=t.entries.sort((o,r)=>o.value-r.value),n.forEach(o=>i.set(o.key,o.value))}Ci.counter=this.storageService.getNumber(Ci.PREF_KEY_COUNTER,0,Ci.counter)}push(e){!Ci.cache||(Ci.cache.set(e,Ci.counter++),Ci.saveState(this.storageService))}peek(e){var t;return(t=Ci.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!Ci.cache)return;const t={usesLRU:!0,entries:[]};Ci.cache.forEach((i,n)=>t.entries.push({key:n,value:i})),e.store(Ci.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(Ci.PREF_KEY_COUNTER,Ci.counter,0,0)}static getConfiguredCommandHistoryLength(e){var t,i;const o=(i=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||i===void 0?void 0:i.history;return typeof o=="number"?o:Ci.DEFAULT_COMMANDS_HISTORY_LENGTH}};wu.DEFAULT_COMMANDS_HISTORY_LENGTH=50;wu.PREF_KEY_CACHE="commandPalette.mru.cache";wu.PREF_KEY_COUNTER="commandPalette.mru.counter";wu.counter=1;wu=Q7([cc(0,ca),cc(1,At)],wu);class Zhe extends t_{constructor(e,t,i,n,o,r){super(e,t,i,n,o,r)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:p3(i.label)||i.id});return t}}var Yhe=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},hh=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Xhe=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};let i_=class extends Zhe{constructor(e,t,i,n,o,r){super({showAlias:!1},e,i,n,o,r),this.codeEditorService=t}get activeTextEditorControl(){return Xn(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return Xhe(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}};i_=Yhe([hh(0,Ye),hh(1,ft),hh(2,jt),hh(3,ai),hh(4,rl),hh(5,A_)],i_);li.as(Pu.Quickaccess).registerQuickAccessProvider({ctor:i_,prefix:i_.PREFIX,helpEntries:[{description:M0.quickCommandHelp,needsEditor:!0}]});class Qhe extends de{constructor(){super({id:"editor.action.quickCommand",label:M0.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(ll).quickAccess.show(i_.PREFIX)}}se(Qhe);var Jhe=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},gh=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let dD=class extends Cd{constructor(e,t,i,n,o,r,a){super(!0,e,t,i,n,o,r,a)}};dD=Jhe([gh(1,De),gh(2,ft),gh(3,gi),gh(4,Ye),gh(5,ca),gh(6,At)],dD);dt(Cd.ID,dD);class ege extends de{constructor(){super({id:"editor.action.toggleHighContrast",label:Mk.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(Au);this._originalThemeName?(i.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=i.getColorTheme().themeName,i.setTheme("hc-black"))}}se(ege);function Yve(){return new Worker("/ide/assets/editor.worker.eb2f580b.js")}var J7=Object.defineProperty,tge=Object.getOwnPropertyDescriptor,ige=Object.getOwnPropertyNames,nge=Object.prototype.hasOwnProperty,sge=s=>J7(s,"__esModule",{value:!0}),oge=(s,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ige(e))!nge.call(s,i)&&i!=="default"&&J7(s,i,{get:()=>e[i],enumerable:!(t=tge(e,i))||t.enumerable});return s},_e={};sge(_e);oge(_e,Hn);var rge=class{constructor(s,e){this._modeId=s,this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}async _updateExtraLibs(){if(!this._worker)return;const s=++this._updateExtraLibsToken,e=await this._worker.getProxy();this._updateExtraLibsToken===s&&e.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){if(!this._client){this._worker=_e.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}});let s=this._worker.getProxy();this._defaults.getEagerModelSync()&&(s=s.then(e=>this._worker?this._worker.withSyncedResources(_e.editor.getModels().filter(t=>t.getLanguageId()===this._modeId).map(t=>t.uri)):e)),this._client=s}return this._client}getLanguageServiceWorker(...s){let e;return this._getClient().then(t=>{e=t}).then(t=>{if(this._worker)return this._worker.withSyncedResources(s)}).then(t=>e)}},age="4.4.4",cD;(function(s){s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext"})(cD||(cD={}));var uD;(function(s){s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev"})(uD||(uD={}));var hD;(function(s){s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed"})(hD||(hD={}));var gD;(function(s){s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest"})(gD||(gD={}));var fD;(function(s){s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs"})(fD||(fD={}));var eB=class{constructor(s,e,t,i){this._onDidChange=new _e.Emitter,this._onDidExtraLibsChange=new _e.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(s),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(s,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===s)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:s,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];!n||n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(s){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),s&&s.length>0)for(const e of s){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(s){this._compilerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(s){this._diagnosticsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(s){this._workerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(s){this._inlayHintsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(s){}setEagerModelSync(s){this._eagerModelSync=s}getEagerModelSync(){return this._eagerModelSync}},lge=age,NN=new eB({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),tB=new eB({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),dge=()=>sS().then(s=>s.getTypeScriptWorker()),cge=()=>sS().then(s=>s.getJavaScriptWorker());_e.languages.typescript={ModuleKind:cD,JsxEmit:uD,NewLineKind:hD,ScriptTarget:gD,ModuleResolutionKind:fD,typescriptVersion:lge,typescriptDefaults:NN,javascriptDefaults:tB,getTypeScriptWorker:dge,getJavaScriptWorker:cge};function sS(){return pe(()=>Promise.resolve().then(()=>oB),void 0)}_e.languages.onLanguage("typescript",()=>sS().then(s=>s.setupTypeScript(NN)));_e.languages.onLanguage("javascript",()=>sS().then(s=>s.setupJavaScript(tB)));var Ne={};Ne["lib.d.ts"]=!0;Ne["lib.dom.d.ts"]=!0;Ne["lib.dom.iterable.d.ts"]=!0;Ne["lib.es2015.collection.d.ts"]=!0;Ne["lib.es2015.core.d.ts"]=!0;Ne["lib.es2015.d.ts"]=!0;Ne["lib.es2015.generator.d.ts"]=!0;Ne["lib.es2015.iterable.d.ts"]=!0;Ne["lib.es2015.promise.d.ts"]=!0;Ne["lib.es2015.proxy.d.ts"]=!0;Ne["lib.es2015.reflect.d.ts"]=!0;Ne["lib.es2015.symbol.d.ts"]=!0;Ne["lib.es2015.symbol.wellknown.d.ts"]=!0;Ne["lib.es2016.array.include.d.ts"]=!0;Ne["lib.es2016.d.ts"]=!0;Ne["lib.es2016.full.d.ts"]=!0;Ne["lib.es2017.d.ts"]=!0;Ne["lib.es2017.full.d.ts"]=!0;Ne["lib.es2017.intl.d.ts"]=!0;Ne["lib.es2017.object.d.ts"]=!0;Ne["lib.es2017.sharedmemory.d.ts"]=!0;Ne["lib.es2017.string.d.ts"]=!0;Ne["lib.es2017.typedarrays.d.ts"]=!0;Ne["lib.es2018.asyncgenerator.d.ts"]=!0;Ne["lib.es2018.asynciterable.d.ts"]=!0;Ne["lib.es2018.d.ts"]=!0;Ne["lib.es2018.full.d.ts"]=!0;Ne["lib.es2018.intl.d.ts"]=!0;Ne["lib.es2018.promise.d.ts"]=!0;Ne["lib.es2018.regexp.d.ts"]=!0;Ne["lib.es2019.array.d.ts"]=!0;Ne["lib.es2019.d.ts"]=!0;Ne["lib.es2019.full.d.ts"]=!0;Ne["lib.es2019.object.d.ts"]=!0;Ne["lib.es2019.string.d.ts"]=!0;Ne["lib.es2019.symbol.d.ts"]=!0;Ne["lib.es2020.bigint.d.ts"]=!0;Ne["lib.es2020.d.ts"]=!0;Ne["lib.es2020.full.d.ts"]=!0;Ne["lib.es2020.intl.d.ts"]=!0;Ne["lib.es2020.promise.d.ts"]=!0;Ne["lib.es2020.sharedmemory.d.ts"]=!0;Ne["lib.es2020.string.d.ts"]=!0;Ne["lib.es2020.symbol.wellknown.d.ts"]=!0;Ne["lib.es2021.d.ts"]=!0;Ne["lib.es2021.full.d.ts"]=!0;Ne["lib.es2021.promise.d.ts"]=!0;Ne["lib.es2021.string.d.ts"]=!0;Ne["lib.es2021.weakref.d.ts"]=!0;Ne["lib.es5.d.ts"]=!0;Ne["lib.es6.d.ts"]=!0;Ne["lib.esnext.d.ts"]=!0;Ne["lib.esnext.full.d.ts"]=!0;Ne["lib.esnext.intl.d.ts"]=!0;Ne["lib.esnext.promise.d.ts"]=!0;Ne["lib.esnext.string.d.ts"]=!0;Ne["lib.esnext.weakref.d.ts"]=!0;Ne["lib.scripthost.d.ts"]=!0;Ne["lib.webworker.d.ts"]=!0;Ne["lib.webworker.importscripts.d.ts"]=!0;Ne["lib.webworker.iterable.d.ts"]=!0;var SM;(function(s){s[s.None=0]="None",s[s.Block=1]="Block",s[s.Smart=2]="Smart"})(SM||(SM={}));function pD(s,e,t=0){if(typeof s=="string")return s;if(s===void 0)return"";let i="";if(t){i+=e;for(let n=0;n<t;n++)i+=" "}if(i+=s.messageText,t++,s.next)for(const n of s.next)i+=pD(n,e,t);return i}function Dr(s){return s?s.map(e=>e.text).join(""):""}var or=class{constructor(s){this._worker=s}_textSpanToRange(s,e){let t=s.getPositionAt(e.start),i=s.getPositionAt(e.start+e.length),{lineNumber:n,column:o}=t,{lineNumber:r,column:a}=i;return{startLineNumber:n,startColumn:o,endLineNumber:r,endColumn:a}}},uge=class{constructor(s){this._worker=s,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(s){return s&&s.path.indexOf("/lib.")===0?!!Ne[s.path.slice(1)]:!1}getOrCreateModel(s){const e=_e.Uri.parse(s),t=_e.editor.getModel(e);if(t)return t;if(this.isLibFile(e)&&this._hasFetchedLibFiles)return _e.editor.createModel(this._libFiles[e.path.slice(1)],"typescript",e);const i=NN.getExtraLibs()[s];return i?_e.editor.createModel(i.content,"typescript",e):null}_containsLibFile(s){for(let e of s)if(this.isLibFile(e))return!0;return!1}async fetchLibFilesIfNecessary(s){!this._containsLibFile(s)||await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(s=>s.getLibFiles()).then(s=>{this._hasFetchedLibFiles=!0,this._libFiles=s})),this._fetchLibFilesPromise}},yM;(function(s){s[s.Warning=0]="Warning",s[s.Error=1]="Error",s[s.Suggestion=2]="Suggestion",s[s.Message=3]="Message"})(yM||(yM={}));var hge=class extends or{constructor(s,e,t,i){super(i),this._libFiles=s,this._defaults=e,this._selector=t,this._disposables=[],this._listener=Object.create(null);const n=a=>{if(a.getLanguageId()!==t)return;const l=()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h?a.isAttachedToEditor()&&this._doValidate(a):this._doValidate(a)};let d;const c=a.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(l,500)}),u=a.onDidChangeAttached(()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h&&(a.isAttachedToEditor()?l():_e.editor.setModelMarkers(a,this._selector,[]))});this._listener[a.uri.toString()]={dispose(){c.dispose(),u.dispose(),clearTimeout(d)}},l()},o=a=>{_e.editor.setModelMarkers(a,this._selector,[]);const l=a.uri.toString();this._listener[l]&&(this._listener[l].dispose(),delete this._listener[l])};this._disposables.push(_e.editor.onDidCreateModel(a=>n(a))),this._disposables.push(_e.editor.onWillDisposeModel(o)),this._disposables.push(_e.editor.onDidChangeModelLanguage(a=>{o(a.model),n(a.model)})),this._disposables.push({dispose(){for(const a of _e.editor.getModels())o(a)}});const r=()=>{for(const a of _e.editor.getModels())o(a),n(a)};this._disposables.push(this._defaults.onDidChange(r)),this._disposables.push(this._defaults.onDidExtraLibsChange(r)),_e.editor.getModels().forEach(a=>n(a))}dispose(){this._disposables.forEach(s=>s&&s.dispose()),this._disposables=[]}async _doValidate(s){const e=await this._worker(s.uri);if(s.isDisposed())return;const t=[],{noSyntaxValidation:i,noSemanticValidation:n,noSuggestionDiagnostics:o}=this._defaults.getDiagnosticsOptions();i||t.push(e.getSyntacticDiagnostics(s.uri.toString())),n||t.push(e.getSemanticDiagnostics(s.uri.toString())),o||t.push(e.getSuggestionDiagnostics(s.uri.toString()));const r=await Promise.all(t);if(!r||s.isDisposed())return;const a=r.reduce((d,c)=>c.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),l=a.map(d=>d.relatedInformation||[]).reduce((d,c)=>c.concat(d),[]).map(d=>d.file?_e.Uri.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(l),!s.isDisposed()&&_e.editor.setModelMarkers(s,this._selector,a.map(d=>this._convertDiagnostics(s,d)))}_convertDiagnostics(s,e){const t=e.start||0,i=e.length||1,{lineNumber:n,column:o}=s.getPositionAt(t),{lineNumber:r,column:a}=s.getPositionAt(t+i),l=[];return e.reportsUnnecessary&&l.push(_e.MarkerTag.Unnecessary),e.reportsDeprecated&&l.push(_e.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(e.category),startLineNumber:n,startColumn:o,endLineNumber:r,endColumn:a,message:pD(e.messageText,`
|
|
783
|
+
`):s}function CM(s){return typeof s.code=="string"&&typeof s.errno=="number"&&typeof s.syscall=="string"?f("nodeExceptionMessage","A system error occurred ({0})",s.message):s.message||f("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function X7(s=null,e=!1){if(!s)return f("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(s)){const t=Yg(s),i=X7(t[0],e);return t.length>1?f("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(js(s))return s;if(s.detail){const t=s.detail;if(t.error)return hx(t.error,e);if(t.exception)return hx(t.exception,e)}return s.stack?hx(s,e):s.message?s.message:f("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var s1=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})},Oh;(function(s){s[s.NO_ACTION=0]="NO_ACTION",s[s.CLOSE_PICKER=1]="CLOSE_PICKER",s[s.REFRESH_PICKER=2]="REFRESH_PICKER",s[s.REMOVE_ITEM=3]="REMOVE_ITEM"})(Oh||(Oh={}));function gx(s){const e=s;return Array.isArray(e.items)}function Ghe(s){const e=s;return!!e.picks&&e.additionalPicks instanceof Promise}class nS extends ${constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var i;const n=new Q;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let o;const r=n.add(new Ln),a=()=>s1(this,void 0,void 0,function*(){const l=r.value=new Q;o==null||o.dispose(!0),e.busy=!1,o=new fn(t);const d=o.token,c=e.value.substr(this.prefix.length).trim(),u=this._getPicks(c,l,d),h=(g,p)=>{var m;let _,v;if(gx(g)?(_=g.items,v=g.active):_=g,_.length===0){if(p)return!1;c.length>0&&((m=this.options)===null||m===void 0?void 0:m.noResultsPick)&&(_=[this.options.noResultsPick])}return e.items=_,v&&(e.activeItems=[v]),!0};if(u!==null)if(Ghe(u)){let g=!1,p=!1;yield Promise.all([(()=>s1(this,void 0,void 0,function*(){yield od(nS.FAST_PICKS_RACE_DELAY),!d.isCancellationRequested&&(p||(g=h(u.picks,!0)))}))(),(()=>s1(this,void 0,void 0,function*(){e.busy=!0;try{const m=yield u.additionalPicks;if(d.isCancellationRequested)return;let _,v;gx(u.picks)?(_=u.picks.items,v=u.picks.active):_=u.picks;let b,C;if(gx(m)?(b=m.items,C=m.active):b=m,b.length>0||!g){let w;if(!v&&!C){const S=e.activeItems[0];S&&_.indexOf(S)!==-1&&(w=S)}h({items:[..._,...b],active:v||C||w})}}finally{d.isCancellationRequested||(e.busy=!1),p=!0}}))()])}else if(!(u instanceof Promise))h(u);else{e.busy=!0;try{const g=yield u;if(d.isCancellationRequested)return;h(g)}finally{d.isCancellationRequested||(e.busy=!1)}}});return n.add(e.onDidChangeValue(()=>a())),a(),n.add(e.onDidAccept(l=>{const[d]=e.selectedItems;typeof(d==null?void 0:d.accept)=="function"&&(l.inBackground||e.hide(),d.accept(e.keyMods,l))})),n.add(e.onDidTriggerItemButton(({button:l,item:d})=>s1(this,void 0,void 0,function*(){var c,u;if(typeof d.trigger=="function"){const h=(u=(c=d.buttons)===null||c===void 0?void 0:c.indexOf(l))!==null&&u!==void 0?u:-1;if(h>=0){const g=d.trigger(h,e.keyMods),p=typeof g=="number"?g:yield g;if(t.isCancellationRequested)return;switch(p){case Oh.NO_ACTION:break;case Oh.CLOSE_PICKER:e.hide();break;case Oh.REFRESH_PICKER:a();break;case Oh.REMOVE_ITEM:const m=e.items.indexOf(d);if(m!==-1){const _=e.items.slice(),v=_.splice(m,1),b=e.activeItems.filter(w=>w!==v[0]),C=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=_,b&&(e.activeItems=b),e.keepScrollPosition=C}break}}}}))),n}}nS.FAST_PICKS_RACE_DELAY=200;var Q7=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cc=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},wM=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};let t_=class j1 extends nS{constructor(e,t,i,n,o,r){super(j1.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=o,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(wu)),this.options=e}_getPicks(e,t,i){return wM(this,void 0,void 0,function*(){const n=yield this.getCommandPicks(t,i);if(i.isCancellationRequested)return[];const o=[];for(const d of n){const c=Xn(j1.WORD_FILTER(e,d.label)),u=d.commandAlias?Xn(j1.WORD_FILTER(e,d.commandAlias)):void 0;c||u?(d.highlights={label:c,detail:this.options.showAlias?u:void 0},o.push(d)):e===d.commandId&&o.push(d)}const r=new Map;for(const d of o){const c=r.get(d.label);c?(d.description=d.commandId,c.description=c.commandId):r.set(d.label,d)}o.sort((d,c)=>{const u=this.commandsHistory.peek(d.commandId),h=this.commandsHistory.peek(c.commandId);return u&&h?u>h?-1:1:u?-1:h?1:d.label.localeCompare(c.label)});const a=[];let l=!1;for(let d=0;d<o.length;d++){const c=o[d],u=this.keybindingService.lookupKeybinding(c.commandId),h=u?f("commandPickAriaLabelWithKeybinding","{0}, {1}",c.label,u.getAriaLabel()):c.label;d===0&&this.commandsHistory.peek(c.commandId)&&(a.push({type:"separator",label:f("recentlyUsed","recently used")}),l=!0),d!==0&&l&&!this.commandsHistory.peek(c.commandId)&&(a.push({type:"separator",label:f("morecCommands","other commands")}),l=!1),a.push(Object.assign(Object.assign({},c),{ariaLabel:h,detail:this.options.showAlias&&c.commandAlias!==c.label?c.commandAlias:void 0,keybinding:u,accept:()=>wM(this,void 0,void 0,function*(){this.commandsHistory.push(c.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:c.commandId,from:"quick open"});try{yield this.commandService.executeCommand(c.commandId)}catch(g){oa(g)||this.dialogService.show(Jt.Error,f("canNotRun","Command '{0}' resulted in an error ({1})",c.label,X7(g)))}})}))}return a})}};t_.PREFIX=">";t_.WORD_FILTER=yI(nw,yQ,r3);t_=Q7([cc(1,Ye),cc(2,jt),cc(3,ai),cc(4,rl),cc(5,A_)],t_);let wu=class Ci extends ${constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=Ci.getConfiguredCommandHistoryLength(this.configurationService),Ci.cache&&Ci.cache.limit!==this.configuredCommandsHistoryLength&&(Ci.cache.limit=this.configuredCommandsHistoryLength,Ci.saveState(this.storageService))}load(){const e=this.storageService.get(Ci.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch{}const i=Ci.cache=new Ed(this.configuredCommandsHistoryLength,1);if(t){let n;t.usesLRU?n=t.entries:n=t.entries.sort((o,r)=>o.value-r.value),n.forEach(o=>i.set(o.key,o.value))}Ci.counter=this.storageService.getNumber(Ci.PREF_KEY_COUNTER,0,Ci.counter)}push(e){!Ci.cache||(Ci.cache.set(e,Ci.counter++),Ci.saveState(this.storageService))}peek(e){var t;return(t=Ci.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!Ci.cache)return;const t={usesLRU:!0,entries:[]};Ci.cache.forEach((i,n)=>t.entries.push({key:n,value:i})),e.store(Ci.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(Ci.PREF_KEY_COUNTER,Ci.counter,0,0)}static getConfiguredCommandHistoryLength(e){var t,i;const o=(i=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||i===void 0?void 0:i.history;return typeof o=="number"?o:Ci.DEFAULT_COMMANDS_HISTORY_LENGTH}};wu.DEFAULT_COMMANDS_HISTORY_LENGTH=50;wu.PREF_KEY_CACHE="commandPalette.mru.cache";wu.PREF_KEY_COUNTER="commandPalette.mru.counter";wu.counter=1;wu=Q7([cc(0,ca),cc(1,At)],wu);class Zhe extends t_{constructor(e,t,i,n,o,r){super(e,t,i,n,o,r)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const i of e.getSupportedActions())t.push({commandId:i.id,commandAlias:i.alias,label:p3(i.label)||i.id});return t}}var Yhe=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},hh=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}},Xhe=globalThis&&globalThis.__awaiter||function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{d(i.next(c))}catch(u){r(u)}}function l(c){try{d(i.throw(c))}catch(u){r(u)}}function d(c){c.done?o(c.value):n(c.value).then(a,l)}d((i=i.apply(s,e||[])).next())})};let i_=class extends Zhe{constructor(e,t,i,n,o,r){super({showAlias:!1},e,i,n,o,r),this.codeEditorService=t}get activeTextEditorControl(){return Xn(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return Xhe(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}};i_=Yhe([hh(0,Ye),hh(1,ft),hh(2,jt),hh(3,ai),hh(4,rl),hh(5,A_)],i_);li.as(Pu.Quickaccess).registerQuickAccessProvider({ctor:i_,prefix:i_.PREFIX,helpEntries:[{description:M0.quickCommandHelp,needsEditor:!0}]});class Qhe extends de{constructor(){super({id:"editor.action.quickCommand",label:M0.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:T.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(ll).quickAccess.show(i_.PREFIX)}}se(Qhe);var Jhe=globalThis&&globalThis.__decorate||function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},gh=globalThis&&globalThis.__param||function(s,e){return function(t,i){e(t,i,s)}};let dD=class extends Cd{constructor(e,t,i,n,o,r,a){super(!0,e,t,i,n,o,r,a)}};dD=Jhe([gh(1,De),gh(2,ft),gh(3,gi),gh(4,Ye),gh(5,ca),gh(6,At)],dD);dt(Cd.ID,dD);class ege extends de{constructor(){super({id:"editor.action.toggleHighContrast",label:Mk.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(Au);this._originalThemeName?(i.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=i.getColorTheme().themeName,i.setTheme("hc-black"))}}se(ege);function Yve(){return new Worker(""+new URL("editor.worker.eb2f580b.js",import.meta.url).href)}var J7=Object.defineProperty,tge=Object.getOwnPropertyDescriptor,ige=Object.getOwnPropertyNames,nge=Object.prototype.hasOwnProperty,sge=s=>J7(s,"__esModule",{value:!0}),oge=(s,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ige(e))!nge.call(s,i)&&i!=="default"&&J7(s,i,{get:()=>e[i],enumerable:!(t=tge(e,i))||t.enumerable});return s},_e={};sge(_e);oge(_e,Hn);var rge=class{constructor(s,e){this._modeId=s,this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker()),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange(()=>this._updateExtraLibs())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}async _updateExtraLibs(){if(!this._worker)return;const s=++this._updateExtraLibsToken,e=await this._worker.getProxy();this._updateExtraLibsToken===s&&e.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){if(!this._client){this._worker=_e.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}});let s=this._worker.getProxy();this._defaults.getEagerModelSync()&&(s=s.then(e=>this._worker?this._worker.withSyncedResources(_e.editor.getModels().filter(t=>t.getLanguageId()===this._modeId).map(t=>t.uri)):e)),this._client=s}return this._client}getLanguageServiceWorker(...s){let e;return this._getClient().then(t=>{e=t}).then(t=>{if(this._worker)return this._worker.withSyncedResources(s)}).then(t=>e)}},age="4.4.4",cD;(function(s){s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext"})(cD||(cD={}));var uD;(function(s){s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev"})(uD||(uD={}));var hD;(function(s){s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed"})(hD||(hD={}));var gD;(function(s){s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest"})(gD||(gD={}));var fD;(function(s){s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs"})(fD||(fD={}));var eB=class{constructor(s,e,t,i){this._onDidChange=new _e.Emitter,this._onDidExtraLibsChange=new _e.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(s),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(s,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===s)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:s,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];!n||n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(s){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),s&&s.length>0)for(const e of s){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(s){this._compilerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(s){this._diagnosticsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(s){this._workerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(s){this._inlayHintsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(s){}setEagerModelSync(s){this._eagerModelSync=s}getEagerModelSync(){return this._eagerModelSync}},lge=age,NN=new eB({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{}),tB=new eB({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{}),dge=()=>sS().then(s=>s.getTypeScriptWorker()),cge=()=>sS().then(s=>s.getJavaScriptWorker());_e.languages.typescript={ModuleKind:cD,JsxEmit:uD,NewLineKind:hD,ScriptTarget:gD,ModuleResolutionKind:fD,typescriptVersion:lge,typescriptDefaults:NN,javascriptDefaults:tB,getTypeScriptWorker:dge,getJavaScriptWorker:cge};function sS(){return pe(()=>Promise.resolve().then(()=>oB),void 0,import.meta.url)}_e.languages.onLanguage("typescript",()=>sS().then(s=>s.setupTypeScript(NN)));_e.languages.onLanguage("javascript",()=>sS().then(s=>s.setupJavaScript(tB)));var Ne={};Ne["lib.d.ts"]=!0;Ne["lib.dom.d.ts"]=!0;Ne["lib.dom.iterable.d.ts"]=!0;Ne["lib.es2015.collection.d.ts"]=!0;Ne["lib.es2015.core.d.ts"]=!0;Ne["lib.es2015.d.ts"]=!0;Ne["lib.es2015.generator.d.ts"]=!0;Ne["lib.es2015.iterable.d.ts"]=!0;Ne["lib.es2015.promise.d.ts"]=!0;Ne["lib.es2015.proxy.d.ts"]=!0;Ne["lib.es2015.reflect.d.ts"]=!0;Ne["lib.es2015.symbol.d.ts"]=!0;Ne["lib.es2015.symbol.wellknown.d.ts"]=!0;Ne["lib.es2016.array.include.d.ts"]=!0;Ne["lib.es2016.d.ts"]=!0;Ne["lib.es2016.full.d.ts"]=!0;Ne["lib.es2017.d.ts"]=!0;Ne["lib.es2017.full.d.ts"]=!0;Ne["lib.es2017.intl.d.ts"]=!0;Ne["lib.es2017.object.d.ts"]=!0;Ne["lib.es2017.sharedmemory.d.ts"]=!0;Ne["lib.es2017.string.d.ts"]=!0;Ne["lib.es2017.typedarrays.d.ts"]=!0;Ne["lib.es2018.asyncgenerator.d.ts"]=!0;Ne["lib.es2018.asynciterable.d.ts"]=!0;Ne["lib.es2018.d.ts"]=!0;Ne["lib.es2018.full.d.ts"]=!0;Ne["lib.es2018.intl.d.ts"]=!0;Ne["lib.es2018.promise.d.ts"]=!0;Ne["lib.es2018.regexp.d.ts"]=!0;Ne["lib.es2019.array.d.ts"]=!0;Ne["lib.es2019.d.ts"]=!0;Ne["lib.es2019.full.d.ts"]=!0;Ne["lib.es2019.object.d.ts"]=!0;Ne["lib.es2019.string.d.ts"]=!0;Ne["lib.es2019.symbol.d.ts"]=!0;Ne["lib.es2020.bigint.d.ts"]=!0;Ne["lib.es2020.d.ts"]=!0;Ne["lib.es2020.full.d.ts"]=!0;Ne["lib.es2020.intl.d.ts"]=!0;Ne["lib.es2020.promise.d.ts"]=!0;Ne["lib.es2020.sharedmemory.d.ts"]=!0;Ne["lib.es2020.string.d.ts"]=!0;Ne["lib.es2020.symbol.wellknown.d.ts"]=!0;Ne["lib.es2021.d.ts"]=!0;Ne["lib.es2021.full.d.ts"]=!0;Ne["lib.es2021.promise.d.ts"]=!0;Ne["lib.es2021.string.d.ts"]=!0;Ne["lib.es2021.weakref.d.ts"]=!0;Ne["lib.es5.d.ts"]=!0;Ne["lib.es6.d.ts"]=!0;Ne["lib.esnext.d.ts"]=!0;Ne["lib.esnext.full.d.ts"]=!0;Ne["lib.esnext.intl.d.ts"]=!0;Ne["lib.esnext.promise.d.ts"]=!0;Ne["lib.esnext.string.d.ts"]=!0;Ne["lib.esnext.weakref.d.ts"]=!0;Ne["lib.scripthost.d.ts"]=!0;Ne["lib.webworker.d.ts"]=!0;Ne["lib.webworker.importscripts.d.ts"]=!0;Ne["lib.webworker.iterable.d.ts"]=!0;var SM;(function(s){s[s.None=0]="None",s[s.Block=1]="Block",s[s.Smart=2]="Smart"})(SM||(SM={}));function pD(s,e,t=0){if(typeof s=="string")return s;if(s===void 0)return"";let i="";if(t){i+=e;for(let n=0;n<t;n++)i+=" "}if(i+=s.messageText,t++,s.next)for(const n of s.next)i+=pD(n,e,t);return i}function Dr(s){return s?s.map(e=>e.text).join(""):""}var or=class{constructor(s){this._worker=s}_textSpanToRange(s,e){let t=s.getPositionAt(e.start),i=s.getPositionAt(e.start+e.length),{lineNumber:n,column:o}=t,{lineNumber:r,column:a}=i;return{startLineNumber:n,startColumn:o,endLineNumber:r,endColumn:a}}},uge=class{constructor(s){this._worker=s,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(s){return s&&s.path.indexOf("/lib.")===0?!!Ne[s.path.slice(1)]:!1}getOrCreateModel(s){const e=_e.Uri.parse(s),t=_e.editor.getModel(e);if(t)return t;if(this.isLibFile(e)&&this._hasFetchedLibFiles)return _e.editor.createModel(this._libFiles[e.path.slice(1)],"typescript",e);const i=NN.getExtraLibs()[s];return i?_e.editor.createModel(i.content,"typescript",e):null}_containsLibFile(s){for(let e of s)if(this.isLibFile(e))return!0;return!1}async fetchLibFilesIfNecessary(s){!this._containsLibFile(s)||await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then(s=>s.getLibFiles()).then(s=>{this._hasFetchedLibFiles=!0,this._libFiles=s})),this._fetchLibFilesPromise}},yM;(function(s){s[s.Warning=0]="Warning",s[s.Error=1]="Error",s[s.Suggestion=2]="Suggestion",s[s.Message=3]="Message"})(yM||(yM={}));var hge=class extends or{constructor(s,e,t,i){super(i),this._libFiles=s,this._defaults=e,this._selector=t,this._disposables=[],this._listener=Object.create(null);const n=a=>{if(a.getLanguageId()!==t)return;const l=()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h?a.isAttachedToEditor()&&this._doValidate(a):this._doValidate(a)};let d;const c=a.onDidChangeContent(()=>{clearTimeout(d),d=window.setTimeout(l,500)}),u=a.onDidChangeAttached(()=>{const{onlyVisible:h}=this._defaults.getDiagnosticsOptions();h&&(a.isAttachedToEditor()?l():_e.editor.setModelMarkers(a,this._selector,[]))});this._listener[a.uri.toString()]={dispose(){c.dispose(),u.dispose(),clearTimeout(d)}},l()},o=a=>{_e.editor.setModelMarkers(a,this._selector,[]);const l=a.uri.toString();this._listener[l]&&(this._listener[l].dispose(),delete this._listener[l])};this._disposables.push(_e.editor.onDidCreateModel(a=>n(a))),this._disposables.push(_e.editor.onWillDisposeModel(o)),this._disposables.push(_e.editor.onDidChangeModelLanguage(a=>{o(a.model),n(a.model)})),this._disposables.push({dispose(){for(const a of _e.editor.getModels())o(a)}});const r=()=>{for(const a of _e.editor.getModels())o(a),n(a)};this._disposables.push(this._defaults.onDidChange(r)),this._disposables.push(this._defaults.onDidExtraLibsChange(r)),_e.editor.getModels().forEach(a=>n(a))}dispose(){this._disposables.forEach(s=>s&&s.dispose()),this._disposables=[]}async _doValidate(s){const e=await this._worker(s.uri);if(s.isDisposed())return;const t=[],{noSyntaxValidation:i,noSemanticValidation:n,noSuggestionDiagnostics:o}=this._defaults.getDiagnosticsOptions();i||t.push(e.getSyntacticDiagnostics(s.uri.toString())),n||t.push(e.getSemanticDiagnostics(s.uri.toString())),o||t.push(e.getSuggestionDiagnostics(s.uri.toString()));const r=await Promise.all(t);if(!r||s.isDisposed())return;const a=r.reduce((d,c)=>c.concat(d),[]).filter(d=>(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(d.code)===-1),l=a.map(d=>d.relatedInformation||[]).reduce((d,c)=>c.concat(d),[]).map(d=>d.file?_e.Uri.parse(d.file.fileName):null);await this._libFiles.fetchLibFilesIfNecessary(l),!s.isDisposed()&&_e.editor.setModelMarkers(s,this._selector,a.map(d=>this._convertDiagnostics(s,d)))}_convertDiagnostics(s,e){const t=e.start||0,i=e.length||1,{lineNumber:n,column:o}=s.getPositionAt(t),{lineNumber:r,column:a}=s.getPositionAt(t+i),l=[];return e.reportsUnnecessary&&l.push(_e.MarkerTag.Unnecessary),e.reportsDeprecated&&l.push(_e.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(e.category),startLineNumber:n,startColumn:o,endLineNumber:r,endColumn:a,message:pD(e.messageText,`
|
|
784
784
|
`),code:e.code.toString(),tags:l,relatedInformation:this._convertRelatedInformation(s,e.relatedInformation)}}_convertRelatedInformation(s,e){if(!e)return[];const t=[];return e.forEach(i=>{let n=s;if(i.file&&(n=this._libFiles.getOrCreateModel(i.file.fileName)),!n)return;const o=i.start||0,r=i.length||1,{lineNumber:a,column:l}=n.getPositionAt(o),{lineNumber:d,column:c}=n.getPositionAt(o+r);t.push({resource:n.uri,startLineNumber:a,startColumn:l,endLineNumber:d,endColumn:c,message:pD(i.messageText,`
|
|
785
785
|
`)})}),t}_tsDiagnosticCategoryToMarkerSeverity(s){switch(s){case 1:return _e.MarkerSeverity.Error;case 3:return _e.MarkerSeverity.Info;case 0:return _e.MarkerSeverity.Warning;case 2:return _e.MarkerSeverity.Hint}return _e.MarkerSeverity.Info}},q1=class extends or{get triggerCharacters(){return["."]}async provideCompletionItems(s,e,t,i){const n=s.getWordUntilPosition(e),o=new _e.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),r=s.uri,a=s.getOffsetAt(e),l=await this._worker(r);if(s.isDisposed())return;const d=await l.getCompletionsAtPosition(r.toString(),a);return!d||s.isDisposed()?void 0:{suggestions:d.entries.map(u=>{var p;let h=o;if(u.replacementSpan){const m=s.getPositionAt(u.replacementSpan.start),_=s.getPositionAt(u.replacementSpan.start+u.replacementSpan.length);h=new _e.Range(m.lineNumber,m.column,_.lineNumber,_.column)}const g=[];return((p=u.kindModifiers)==null?void 0:p.indexOf("deprecated"))!==-1&&g.push(_e.languages.CompletionItemTag.Deprecated),{uri:r,position:e,offset:a,range:h,label:u.name,insertText:u.name,sortText:u.sortText,kind:q1.convertKind(u.kind),tags:g}})}}async resolveCompletionItem(s,e){const t=s,i=t.uri,n=t.position,o=t.offset,a=await(await this._worker(i)).getCompletionEntryDetails(i.toString(),o,t.label);return a?{uri:i,position:n,label:a.name,kind:q1.convertKind(a.kind),detail:Dr(a.displayParts),documentation:{value:q1.createDocumentationString(a)}}:t}static convertKind(s){switch(s){case Re.primitiveType:case Re.keyword:return _e.languages.CompletionItemKind.Keyword;case Re.variable:case Re.localVariable:return _e.languages.CompletionItemKind.Variable;case Re.memberVariable:case Re.memberGetAccessor:case Re.memberSetAccessor:return _e.languages.CompletionItemKind.Field;case Re.function:case Re.memberFunction:case Re.constructSignature:case Re.callSignature:case Re.indexSignature:return _e.languages.CompletionItemKind.Function;case Re.enum:return _e.languages.CompletionItemKind.Enum;case Re.module:return _e.languages.CompletionItemKind.Module;case Re.class:return _e.languages.CompletionItemKind.Class;case Re.interface:return _e.languages.CompletionItemKind.Interface;case Re.warning:return _e.languages.CompletionItemKind.File}return _e.languages.CompletionItemKind.Property}static createDocumentationString(s){let e=Dr(s.documentation);if(s.tags)for(const t of s.tags)e+=`
|
|
786
786
|
|
|
@@ -1206,4 +1206,4 @@ ${iB(t)}`;return e}};function iB(s){let e=`*@${s.name}*`;if(s.name==="param"&&s.
|
|
|
1206
1206
|
* Released under the MIT license
|
|
1207
1207
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
1208
1208
|
*-----------------------------------------------------------------------------*/var g0e={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0}},f0e={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/[^#]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};const p0e=Object.freeze(Object.defineProperty({__proto__:null,conf:g0e,language:f0e},Symbol.toStringTag,{value:"Module"}));export{wie as K,Yve as W,pe as _,uc as a,Cie as b,Iie as e,Nie as l};
|
|
1209
|
-
//# sourceMappingURL=monaco.
|
|
1209
|
+
//# sourceMappingURL=monaco.f95ee3d0.js.map
|