@rsdoctor/client 0.3.2 → 0.3.4

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.
Files changed (42) hide show
  1. package/dist/index.html +1 -1
  2. package/dist/resource/css/826.2794f707.css +4 -0
  3. package/dist/resource/font/{codicon.7fe16dbd.ttf → codicon.44bc17fa.ttf} +0 -0
  4. package/dist/resource/js/{505.b0671115.js → 826.5dba3977.js} +5 -5
  5. package/dist/resource/js/async/{811.1fbe2090.js → 811.aeb19dcb.js} +1 -1
  6. package/dist/resource/js/index.fdcaa546.js +156 -0
  7. package/dist/resource/js/monaco-0.92c812de.js +20 -0
  8. package/dist/resource/js/monaco-1.e42b60cc.js +18 -0
  9. package/dist/resource/js/monaco-10.4b1f76d7.js +1 -0
  10. package/dist/resource/js/monaco-11.3626543b.js +3 -0
  11. package/dist/resource/js/monaco-12.9d08b924.js +4 -0
  12. package/dist/resource/js/monaco-13.3d40eb04.js +1 -0
  13. package/dist/resource/js/monaco-14.371c9801.js +43 -0
  14. package/dist/resource/js/monaco-15.d73381b5.js +366 -0
  15. package/dist/resource/js/monaco-16.e11e3d10.js +42 -0
  16. package/dist/resource/js/monaco-17.f5db5e54.js +8 -0
  17. package/dist/resource/js/monaco-2.79f0bbbe.js +1 -0
  18. package/dist/resource/js/monaco-3.6eef79c7.js +14 -0
  19. package/dist/resource/js/monaco-4.b9b35171.js +301 -0
  20. package/dist/resource/js/monaco-5.0a6c00b3.js +9 -0
  21. package/dist/resource/js/monaco-6.042b95c8.js +3 -0
  22. package/dist/resource/js/monaco-7.69f7178e.js +3 -0
  23. package/dist/resource/js/monaco-8.480cca31.js +1 -0
  24. package/dist/resource/js/monaco-9.d55eba30.js +1 -0
  25. package/package.json +3 -3
  26. package/dist/resource/css/505.b09c71b1.css +0 -1
  27. package/dist/resource/js/index.fc9559d0.js +0 -156
  28. package/dist/resource/js/monaco-0.c3af1bd3.js +0 -2
  29. package/dist/resource/js/monaco-1.7ad7764f.js +0 -369
  30. package/dist/resource/js/monaco-10.4db28e1a.js +0 -4
  31. package/dist/resource/js/monaco-11.18edf242.js +0 -25
  32. package/dist/resource/js/monaco-12.f2868e03.js +0 -5
  33. package/dist/resource/js/monaco-13.88108488.js +0 -1
  34. package/dist/resource/js/monaco-14.9ed23e83.js +0 -70
  35. package/dist/resource/js/monaco-2.6895e134.js +0 -17
  36. package/dist/resource/js/monaco-3.51c02ad7.js +0 -31
  37. package/dist/resource/js/monaco-4.2525ec7c.js +0 -31
  38. package/dist/resource/js/monaco-5.5bc856bc.js +0 -1
  39. package/dist/resource/js/monaco-6.6e712e08.js +0 -1
  40. package/dist/resource/js/monaco-7.1fa8c3af.js +0 -1
  41. package/dist/resource/js/monaco-8.dcf3e8dc.js +0 -38
  42. package/dist/resource/js/monaco-9.7c59b09b.js +0 -7
@@ -0,0 +1,18 @@
1
+ (self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["624"],{77993:function(e,t,i){"use strict";i.d(t,{T:function(){return s},h:function(){return a}});var n=i("55952"),o=i("34308");let r=RegExp(`(\\\\)?\\$\\((${o.k.iconNameExpression}(?:${o.k.iconModifierExpression})?)\\)`,"g");function s(e){let t;let i=[],n=0,o=0;for(;null!==(t=r.exec(e));){n<(o=t.index||0)&&i.push(e.substring(n,o)),n=(t.index||0)+t[0].length;let[,r,s]=t;i.push(r?`$(${s})`:a({id:s}))}return n<e.length&&i.push(e.substring(n)),i}function a(e){let t=n.$("span");return t.classList.add(...o.k.asClassNameArray(e)),t}},67602:function(e,t,i){"use strict";i.d(t,{J:function(){return n}});class n{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}},7388:function(e,t,i){"use strict";i.d(t,{EQ:function(){return _},Qc:function(){return D}});var n=i("1966"),o=i("94508"),r=i("7005"),s=i("3225"),a=i("97147"),l=i("71482");let d="[/\\\\]",u="[^/\\\\]",c=/\//g;function h(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${d}|${u}+${d}${t?`|${d}${u}+`:""})*?`}}function g(e,t){if(!e)return[];let i=[],n=!1,o=!1,r="";for(let s of e){switch(s){case t:if(!n&&!o){i.push(r),r="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":o=!0;break;case"]":o=!1}r+=s}return r&&i.push(r),i}let p=/^\*\*\/\*\.[\w\.-]+$/,m=/^\*\*\/([\w\.-]+)\/?$/,f=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,w=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,C=/^\*\*((\/[\w\.-]+)+)\/?$/,b=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,y=new r.z6(1e4),v=function(){return!1},S=function(){return null};function k(e,t){let i,n;if(!e)return S;i=(i="string"!=typeof e?e.pattern:e).trim();let o=`${i}_${!!t.trimForExclusions}`,r=y.get(o);return r?x(r,e):(r=p.test(i)?function(e,t){return function(i,n){return"string"==typeof i&&i.endsWith(e)?t:null}}(i.substr(4),i):(n=m.exec(N(i,t)))?function(e,t){let i=`/${e}`,n=`\\${e}`,o=function(o,r){return"string"!=typeof o?null:r?r===e?t:null:o===e||o.endsWith(i)||o.endsWith(n)?t:null},r=[e];return o.basenames=r,o.patterns=[t],o.allBasenames=r,o}(n[1],i):(t.trimForExclusions?w:f).test(i)?function(e,t){let i=L(e.slice(1,-1).split(",").map(e=>k(e,t)).filter(e=>e!==S),e),n=i.length;if(!n)return S;if(1===n)return i[0];let o=function(t,n){for(let o=0,r=i.length;o<r;o++)if(i[o](t,n))return e;return null},r=i.find(e=>!!e.allBasenames);r&&(o.allBasenames=r.allBasenames);let s=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return s.length&&(o.allPaths=s),o}(i,t):(n=C.exec(N(i,t)))?I(n[1].substr(1),i,!0):(n=b.exec(N(i,t)))?I(n[1],i,!1):function(e){try{let t=RegExp(`^${function e(t){if(!t)return"";let i="",n=g(t,"/");if(n.every(e=>"**"===e))i=".*";else{let t=!1;n.forEach((o,r)=>{if("**"===o){if(t)return;i+=h(2,r===n.length-1)}else{let t=!1,s="",a=!1,c="";for(let n of o){if("}"!==n&&t){s+=n;continue}if(a&&("]"!==n||!c)){let e;e="-"===n?n:"^"!==n&&"!"!==n||c?"/"===n?"":(0,l.ec)(n):"^",c+=e;continue}switch(n){case"{":t=!0;continue;case"[":a=!0;continue;case"}":{let n=g(s,","),o=`(?:${n.map(t=>e(t)).join("|")})`;i+=o,t=!1,s="";break}case"]":i+="["+c+"]",a=!1,c="";break;case"?":i+=u;continue;case"*":i+=h(1);continue;default:i+=(0,l.ec)(n)}}r<n.length-1&&("**"!==n[r+1]||r+2<n.length)&&(i+=d)}t="**"===o})}return i}(e)}$`);return function(i){return t.lastIndex=0,"string"==typeof i&&t.test(i)?e:null}}catch(e){return S}}(i),y.set(o,r),x(r,e))}function x(e,t){if("string"==typeof t)return e;let i=function(i,n){return(0,o.KM)(i,t.base,!a.IJ)?e((0,l.j3)(i.substr(t.base.length),s.ir),n):null};return i.allBasenames=e.allBasenames,i.allPaths=e.allPaths,i.basenames=e.basenames,i.patterns=e.patterns,i}function N(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function I(e,t,i){let n;let o=s.ir===s.KR.sep,r=o?e:e.replace(c,s.ir),a=s.ir+r,l=s.KR.sep+e;return(n=i?function(i,n){return"string"==typeof i&&(i===r||i.endsWith(a)||!o&&(i===e||i.endsWith(l)))?t:null}:function(i,n){return"string"!=typeof i||i!==r&&(o||i!==e)?null:t}).allPaths=[(i?"*/":"./")+e],n}function _(e,t,i){return!!e&&"string"==typeof t&&D(e)(t,void 0,i)}function D(e,t={}){if(!e)return v;if("string"==typeof e||function(e){return!!e&&"string"==typeof e.base&&"string"==typeof e.pattern}(e)){let i=k(e,t);if(i===S)return v;let n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return function(e,t){let i=L(Object.getOwnPropertyNames(e).map(i=>(function(e,t,i){if(!1===t)return S;let o=k(e,i);if(o===S)return S;if("boolean"==typeof t)return o;if(t){let i=t.when;if("string"==typeof i){let t=(t,r,s,a)=>{if(!a||!o(t,r))return null;let l=a(i.replace("$(basename)",()=>s));return(0,n.J8)(l)?l.then(t=>t?e:null):l?e:null};return t.requiresSiblings=!0,t}}return o})(i,e[i],t)).filter(e=>e!==S)),o=i.length;if(!o)return S;if(!i.some(e=>!!e.requiresSiblings)){if(1===o)return i[0];let e=function(e,t){let o;for(let r=0,s=i.length;r<s;r++){let s=i[r](e,t);if("string"==typeof s)return s;(0,n.J8)(s)&&(!o&&(o=[]),o.push(s))}return o?(async()=>{for(let e of o){let t=await e;if("string"==typeof t)return t}return null})():null},t=i.find(e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);let r=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return r.length&&(e.allPaths=r),e}let r=function(e,t,o){let r,a;for(let l=0,d=i.length;l<d;l++){let d=i[l];d.requiresSiblings&&o&&(!t&&(t=(0,s.EZ)(e)),!r&&(r=t.substr(0,t.length-(0,s.DZ)(e).length)));let u=d(e,t,r,o);if("string"==typeof u)return u;(0,n.J8)(u)&&(!a&&(a=[]),a.push(u))}return a?(async()=>{for(let e of a){let t=await e;if("string"==typeof t)return t}return null})():null},a=i.find(e=>!!e.allBasenames);a&&(r.allBasenames=a.allBasenames);let l=i.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return l.length&&(r.allPaths=l),r}(e,t)}function L(e,t){let i;let n=e.filter(e=>!!e.basenames);if(n.length<2)return e;let o=n.reduce((e,t)=>{let i=t.basenames;return i?e.concat(i):e},[]);if(t){i=[];for(let e=0,n=o.length;e<n;e++)i.push(t)}else i=n.reduce((e,t)=>{let i=t.patterns;return i?e.concat(i):e},[]);let r=function(e,t){if("string"!=typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){let t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}let n=o.indexOf(t);return -1!==n?i[n]:null};r.basenames=o,r.patterns=i,r.allBasenames=o;let s=e.filter(e=>!e.basenames);return s.push(r),s}},79221:function(e,t,i){"use strict";i.d(t,{$E:function(){return a},I8:function(){return function e(t){if(!t||"object"!=typeof t||t instanceof RegExp)return t;let i=Array.isArray(t)?[]:{};return Object.entries(t).forEach(([t,n])=>{i[t]=n&&"object"==typeof n?e(n):n}),i}},IU:function(){return l},_A:function(){return o},fS:function(){return function e(t,i){let n,o;if(t===i)return!0;if(null==t||null==i||typeof t!=typeof i||"object"!=typeof t||Array.isArray(t)!==Array.isArray(i))return!1;if(Array.isArray(t)){if(t.length!==i.length)return!1;for(n=0;n<t.length;n++)if(!e(t[n],i[n]))return!1}else{let r=[];for(o in t)r.push(o);r.sort();let s=[];for(o in i)s.push(o);if(s.sort(),!e(r,s))return!1;for(n=0;n<r.length;n++)if(!e(t[r[n]],i[r[n]]))return!1}return!0}},jB:function(){return function e(t,i,o=!0){return(0,n.Kn)(t)?((0,n.Kn)(i)&&Object.keys(i).forEach(r=>{r in t?o&&((0,n.Kn)(t[r])&&(0,n.Kn)(i[r])?e(t[r],i[r],o):t[r]=i[r]):t[r]=i[r]}),t):i}},rs:function(){return s}});var n=i("67414");function o(e){if(!e||"object"!=typeof e)return e;let t=[e];for(;t.length>0;){let e=t.shift();for(let i in Object.freeze(e),e)if(r.call(e,i)){let o=e[i];"object"==typeof o&&!Object.isFrozen(o)&&!(0,n.fU)(o)&&t.push(o)}}return e}let r=Object.prototype.hasOwnProperty;function s(e,t){return function e(t,i,o){if((0,n.Jp)(t))return t;let s=i(t);if(void 0!==s)return s;if(Array.isArray(t)){let n=[];for(let r of t)n.push(e(r,i,o));return n}if((0,n.Kn)(t)){if(o.has(t))throw Error("Cannot clone recursive data-structure");o.add(t);let n={};for(let s in t)r.call(t,s)&&(n[s]=e(t[s],i,o));return o.delete(t),n}return t}(e,t,new Set)}function a(e){let t=[];for(let i of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"==typeof e[i]&&t.push(i);return t}function l(e,t){let i=e=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(let t of e)n[t]=i(t);return n}},38319:function(e,t,i){"use strict";var n=i("88814");(0,n.H)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"20030"))}),(0,n.H)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"20030"))})},21649:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},o={defaultToken:"",tokenPostfix:".css",ws:"[ \n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}},83539:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={defaultToken:"",tokenPostfix:".dockerfile",variable:/\${?[\w]+}?/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/(ONBUILD)(\s+)/,["keyword",""]],[/(ENV)(\s+)([\w]+)/,["keyword","",{token:"variable",next:"@arguments"}]],[/(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,{token:"keyword",next:"@arguments"}]],arguments:[{include:"@whitespace"},{include:"@strings"},[/(@variable)/,{cases:{"@eos":{token:"variable",next:"@popall"},"@default":"variable"}}],[/\\/,{cases:{"@eos":"","@default":""}}],[/./,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],whitespace:[[/\s+/,{cases:{"@eos":{token:"",next:"@popall"},"@default":""}}]],comment:[[/(^#.*$)/,"comment","@popall"]],strings:[[/\\'$/,"","@popall"],[/\\'/,""],[/'$/,"string","@popall"],[/'/,"string","@stringBody"],[/"$/,"string","@popall"],[/"/,"string","@dblStringBody"]],stringBody:[[/[^\\\$']/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/'$/,"string","@popall"],[/'/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]],dblStringBody:[[/[^\\\$"]/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/\\./,"string.escape"],[/"$/,"string","@popall"],[/"/,"string","@pop"],[/(@variable)/,"variable"],[/\\$/,"string"],[/$/,"string","@popall"]]}}},76914:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},o={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[["non-sealed","keyword.non-sealed"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}},32706:function(e,t,i){"use strict";(0,i("88814").H)({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"70958"))})},49524:function(e,t,i){"use strict";(0,i("88814").H)({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,"11521"))})},9876:function(e,t,i){"use strict";i.d(t,{Ox:function(){return a},wk:function(){return l}});var n,o,r,s,a,l,d=i("94479"),u=i("5623"),c=i("67414"),h=i("74471"),g=i("36809"),p=i("87294"),m=i("1219"),f=i("6950"),w=i("59550"),C=i("79977"),b=i("11482"),y=i("70668"),v=i("83112"),S=i("8109"),k=i("77667"),x=i("14811"),N=i("55952");class I extends g._l{runEditorCommand(e,t,i){let n=t._getViewModel();n&&this.runCoreEditorCommand(n,i||{})}}(n=r||(r={})).metadata={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:`Property-value pairs that can be passed through this argument:
2
+ * 'to': A mandatory direction value.
3
+ \`\`\`
4
+ 'up', 'down'
5
+ \`\`\`
6
+ * 'by': Unit to move. Default is computed based on 'to' value.
7
+ \`\`\`
8
+ 'line', 'wrappedLine', 'page', 'halfPage', 'editor'
9
+ \`\`\`
10
+ * 'value': Number of units to move. Default is '1'.
11
+ * 'revealCursor': If 'true' reveals the cursor if it is outside view port.
12
+ `,constraint:function(e){return!!c.Kn(e)&&(!!(c.HD(e.to)&&(c.o8(e.by)||c.HD(e.by))&&(c.o8(e.value)||c.hj(e.value))&&(c.o8(e.revealCursor)||c.jn(e.revealCursor)))||!1)},schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage","editor"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},n.RawDirection={Up:"up",Right:"right",Down:"down",Left:"left"},n.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage",Editor:"editor",Column:"column"},n.parse=function(e){let t,i;switch(e.to){case n.RawDirection.Up:t=1;break;case n.RawDirection.Right:t=2;break;case n.RawDirection.Down:t=3;break;case n.RawDirection.Left:t=4;break;default:return null}switch(e.by){case n.RawUnit.Line:i=1;break;case n.RawUnit.WrappedLine:i=2;break;case n.RawUnit.Page:i=3;break;case n.RawUnit.HalfPage:i=4;break;case n.RawUnit.Editor:i=5;break;case n.RawUnit.Column:i=6;break;default:i=2}let o=Math.floor(e.value||1);return{direction:t,unit:i,value:o,revealCursor:!!e.revealCursor,select:!!e.select}},(o=s||(s={})).metadata={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:`Property-value pairs that can be passed through this argument:
13
+ * 'lineNumber': A mandatory line number value.
14
+ * 'at': Logical position at which line has to be revealed.
15
+ \`\`\`
16
+ 'top', 'center', 'bottom'
17
+ \`\`\`
18
+ `,constraint:function(e){return!!c.Kn(e)&&(!!((c.hj(e.lineNumber)||c.HD(e.lineNumber))&&(c.o8(e.at)||c.HD(e.at)))||!1)},schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},o.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"};class _{constructor(e){e.addImplementation(1e4,"code-editor",(e,t)=>{let i=e.get(p.$).getFocusedCodeEditor();return!!(i&&i.hasTextFocus())&&this._runEditorCommand(e,i,t)}),e.addImplementation(1e3,"generic-dom-input-textarea",(e,t)=>{let i=(0,N.vY)();return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(i),!0)}),e.addImplementation(0,"generic-dom",(e,t)=>{let i=e.get(p.$).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))})}_runEditorCommand(e,t,i){let n=this.runEditorCommand(e,t,i);return!n||n}}!function(e){class t extends I{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!!t.position)e.model.pushStackElement(),e.setCursorStates(t.source,3,[C.P.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&2!==t.revealType&&e.revealAllCursors(t.source,!0,!0)}}e.MoveTo=(0,g.fK)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,g.fK)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends I{runCoreEditorCommand(e,t){e.model.pushStackElement();let i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);null!==i&&(e.setCursorStates(t.source,3,i.viewStates.map(e=>f.Vi.fromViewState(e))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=(0,g.fK)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,n){if(void 0===n.position||void 0===n.viewPosition||void 0===n.mouseColumn)return null;let o=e.model.validatePosition(n.position),r=e.coordinatesConverter.validateViewPosition(new y.L(n.viewPosition.lineNumber,n.viewPosition.column),o),s=n.doColumnSelect?i.fromViewLineNumber:r.lineNumber,a=n.doColumnSelect?i.fromViewVisualColumn:n.mouseColumn-1;return m.U.columnSelect(e.cursorConfig,e,s,a,r.lineNumber,n.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,g.fK)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return m.U.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,g.fK)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return m.U.columnSelectRight(e.cursorConfig,e,i)}});class n extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return m.U.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,g.fK)(new n({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,g.fK)(new n({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:3595,linux:{primary:0}}}));class o extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return m.U.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,g.fK)(new o({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,g.fK)(new o({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:3596,linux:{primary:0}}}));class a extends I{constructor(){super({id:"cursorMove",precondition:void 0,metadata:C.N.metadata})}runCoreEditorCommand(e,t){let i=C.N.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,a._move(e,e.getCursorStates(),i)),e.revealAllCursors(t,!0)}static _move(e,t,i){let n=i.select,o=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return C.P.simpleMove(e,t,i.direction,n,o,i.unit);case 11:case 13:case 12:case 14:return C.P.viewportMove(e,t,i.direction,n,o);default:return null}}}e.CursorMoveImpl=a,e.CursorMove=(0,g.fK)(new a);class l extends I{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,C.P.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealAllCursors(t.source,!0)}}e.CursorLeft=(0,g.fK)(new l({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,g.fK)(new l({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:1039}})),e.CursorRight=(0,g.fK)(new l({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,g.fK)(new l({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:1041}})),e.CursorUp=(0,g.fK)(new l({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,g.fK)(new l({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,g.fK)(new l({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,g.fK)(new l({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:1035}})),e.CursorDown=(0,g.fK)(new l({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,g.fK)(new l({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,g.fK)(new l({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,g.fK)(new l({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:1036}})),e.CreateCursor=(0,g.fK)(new class extends I{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){let i;if(!t.position)return;i=t.wholeLine?C.P.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):C.P.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);let n=e.getCursorStates();if(n.length>1){let o=i.modelState?i.modelState.position:null,r=i.viewState?i.viewState.position:null;for(let i=0,s=n.length;i<s;i++){let s=n[i];if(!o||!!s.modelState.selection.containsPosition(o)){if(!r||s.viewState.selection.containsPosition(r)){n.splice(i,1),e.model.pushStackElement(),e.setCursorStates(t.source,3,n);return}}}}n.push(i),e.model.pushStackElement(),e.setCursorStates(t.source,3,n)}}),e.LastCursorMoveToSelect=(0,g.fK)(new class extends I{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),o=n.slice(0);o[i]=C.P.moveTo(e,n[i],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,o)}});class c extends I{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,C.P.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorHome=(0,g.fK)(new c({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=(0,g.fK)(new c({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class p extends I{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e){let t=[];for(let i=0,n=e.length;i<n;i++){let n=e[i],o=n.modelState.position.lineNumber;t[i]=f.Vi.fromModelState(n.modelState.move(this._inSelectionMode,o,1,0))}return t}}e.CursorLineStart=(0,g.fK)(new p({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=(0,g.fK)(new p({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:0,mac:{primary:1311}}}));class w extends I{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,C.P.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealAllCursors(t.source,!0)}}e.CursorEnd=(0,g.fK)(new w({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:S.u.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},metadata:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:d.NC("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=(0,g.fK)(new w({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:0,kbExpr:S.u.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},metadata:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:d.NC("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class b extends I{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealAllCursors(t.source,!0)}_exec(e,t){let i=[];for(let n=0,o=t.length;n<o;n++){let o=t[n],r=o.modelState.position.lineNumber,s=e.model.getLineMaxColumn(r);i[n]=f.Vi.fromModelState(o.modelState.move(this._inSelectionMode,r,s,0))}return i}}e.CursorLineEnd=(0,g.fK)(new b({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=(0,g.fK)(new b({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:0,mac:{primary:1315}}}));class k extends I{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,C.P.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorTop=(0,g.fK)(new k({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=(0,g.fK)(new k({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:3086,mac:{primary:3088}}}));class x extends I{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,C.P.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealAllCursors(t.source,!0)}}e.CursorBottom=(0,g.fK)(new x({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=(0,g.fK)(new x({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:3085,mac:{primary:3090}}}));class N extends I{constructor(){super({id:"editorScroll",precondition:void 0,metadata:r.metadata})}determineScrollMethod(e){return[6].includes(e.unit)&&[4,2].includes(e.direction)?this._runHorizontalEditorScroll.bind(this):[1,2,3,4,5,6].includes(e.unit)&&[1,3].includes(e.direction)?this._runVerticalEditorScroll.bind(this):null}runCoreEditorCommand(e,t){let i=r.parse(t);if(!i)return;let n=this.determineScrollMethod(i);n&&n(e,t.source,i)}_runVerticalEditorScroll(e,t,i){let n=this._computeDesiredScrollTop(e,i);if(i.revealCursor){let o=e.getCompletelyVisibleViewRangeAtScrollTop(n);e.setCursorStates(t,3,[C.P.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),o,i.select)])}e.viewLayout.setScrollPosition({scrollTop:n},0)}_computeDesiredScrollTop(e,t){let i;if(1===t.unit){let i;let n=e.viewLayout.getFutureViewport(),o=e.getCompletelyVisibleViewRangeAtScrollTop(n.top),r=e.coordinatesConverter.convertViewRangeToModelRange(o);i=1===t.direction?Math.max(1,r.startLineNumber-t.value):Math.min(e.model.getLineCount(),r.startLineNumber+t.value);let s=e.coordinatesConverter.convertModelPositionToViewPosition(new y.L(i,1));return e.viewLayout.getVerticalOffsetForLineNumber(s.lineNumber)}if(5===t.unit){let i=0;return 3===t.direction&&(i=e.model.getLineCount()-e.cursorConfig.pageSize),e.viewLayout.getVerticalOffsetForLineNumber(i)}i=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;let n=(1===t.direction?-1:1)*i;return e.viewLayout.getCurrentScrollTop()+n*e.cursorConfig.lineHeight}_runHorizontalEditorScroll(e,t,i){let n=this._computeDesiredScrollLeft(e,i);e.viewLayout.setScrollPosition({scrollLeft:n},0)}_computeDesiredScrollLeft(e,t){let i=(4===t.direction?-1:1)*t.value;return e.viewLayout.getCurrentScrollLeft()+i*e.cursorConfig.typicalHalfwidthCharacterWidth}}e.EditorScrollImpl=N,e.EditorScroll=(0,g.fK)(new N),e.ScrollLineUp=(0,g.fK)(new class extends I{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:r.RawDirection.Up,by:r.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageUp=(0,g.fK)(new class extends I{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:r.RawDirection.Up,by:r.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorTop=(0,g.fK)(new class extends I{constructor(){super({id:"scrollEditorTop",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:r.RawDirection.Up,by:r.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLineDown=(0,g.fK)(new class extends I{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:r.RawDirection.Down,by:r.RawUnit.WrappedLine,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollPageDown=(0,g.fK)(new class extends I{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:r.RawDirection.Down,by:r.RawUnit.Page,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollEditorBottom=(0,g.fK)(new class extends I{constructor(){super({id:"scrollEditorBottom",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:r.RawDirection.Down,by:r.RawUnit.Editor,value:1,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollLeft=(0,g.fK)(new class extends I{constructor(){super({id:"scrollLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:r.RawDirection.Left,by:r.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}}),e.ScrollRight=(0,g.fK)(new class extends I{constructor(){super({id:"scrollRight",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus}})}runCoreEditorCommand(t,i){e.EditorScroll.runCoreEditorCommand(t,{to:r.RawDirection.Right,by:r.RawUnit.Column,value:2,revealCursor:!1,select:!1,source:i.source})}});class D extends I{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[C.P.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),2!==t.revealType&&e.revealAllCursors(t.source,!0,!0))}}e.WordSelect=(0,g.fK)(new D({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=(0,g.fK)(new D({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=(0,g.fK)(new class extends I{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),o=n.slice(0),r=n[i];o[i]=C.P.word(e,r,r.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,o)}});class L extends I{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[C.P.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),2!==t.revealType&&e.revealAllCursors(t.source,!1,!0))}}e.LineSelect=(0,g.fK)(new L({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=(0,g.fK)(new L({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class E extends I{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){if(!t.position)return;let i=e.getLastAddedCursorIndex(),n=e.getCursorStates(),o=n.slice(0);o[i]=C.P.line(e,n[i],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,o)}}e.LastCursorLineSelect=(0,g.fK)(new E({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=(0,g.fK)(new E({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.CancelSelection=(0,g.fK)(new class extends I{constructor(){super({id:"cancelSelection",precondition:S.u.hasNonEmptySelection,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[C.P.cancelSelection(e,e.getPrimaryCursorState())]),e.revealAllCursors(t.source,!0)}}),e.RemoveSecondaryCursors=(0,g.fK)(new class extends I{constructor(){super({id:"removeSecondaryCursors",precondition:S.u.hasMultipleSelections,kbOpts:{weight:1,kbExpr:S.u.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealAllCursors(t.source,!0),(0,h.i7)(d.NC("removedCursor","Removed secondary cursors"))}}),e.RevealLine=(0,g.fK)(new class extends I{constructor(){super({id:"revealLine",precondition:void 0,metadata:s.metadata})}runCoreEditorCommand(e,t){let i=t.lineNumber||0,n="number"==typeof i?i+1:parseInt(i)+1;n<1&&(n=1);let o=e.model.getLineCount();n>o&&(n=o);let r=new v.e(n,1,n,e.model.getLineMaxColumn(n)),a=0;if(t.at)switch(t.at){case s.RawAtArgument.Top:a=3;break;case s.RawAtArgument.Center:a=1;break;case s.RawAtArgument.Bottom:a=4}let l=e.coordinatesConverter.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends _{constructor(){super(g.Sq)}runDOMCommand(e){u.vU&&(e.focus(),e.select()),e.ownerDocument.execCommand("selectAll")}runEditorCommand(e,t,i){let n=t._getViewModel();n&&this.runCoreEditorCommand(n,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[C.P.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,g.fK)(new class extends I{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[f.Vi.fromModelSelection(t.selection)]))}})}(a||(a={}));let D=k.Ao.and(S.u.textInputFocus,S.u.columnSelection);function L(e,t){x.W.registerKeybindingRule({id:e,primary:t,when:D,weight:1})}function E(e){return e.register(),e}L(a.CursorColumnSelectLeft.id,1039),L(a.CursorColumnSelectRight.id,1041),L(a.CursorColumnSelectUp.id,1040),L(a.CursorColumnSelectPageUp.id,1035),L(a.CursorColumnSelectDown.id,1042),L(a.CursorColumnSelectPageDown.id,1036),!function(e){class t extends g._l{runEditorCommand(e,t,i){let n=t._getViewModel();n&&this.runCoreEditingCommand(t,n,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,g.fK)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:S.u.writable,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,b.u6.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection)))}}),e.Outdent=(0,g.fK)(new class extends t{constructor(){super({id:"outdent",precondition:S.u.writable,kbOpts:{weight:0,kbExpr:k.Ao.and(S.u.editorTextFocus,S.u.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,b.u6.outdent(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.Tab=(0,g.fK)(new class extends t{constructor(){super({id:"tab",precondition:S.u.writable,kbOpts:{weight:0,kbExpr:k.Ao.and(S.u.editorTextFocus,S.u.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,b.u6.tab(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.DeleteLeft=(0,g.fK)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){let[n,o]=w.A.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection),t.getCursorAutoClosedCharacters());n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,g.fK)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:S.u.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){let[n,o]=w.A.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection));n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(3)}}),e.Undo=new class extends _{constructor(){super(g.n_)}runDOMCommand(e){e.ownerDocument.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(91))return t.getModel().undo()}},e.Redo=new class extends _{constructor(){super(g.kz)}runDOMCommand(e){e.ownerDocument.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(91))return t.getModel().redo()}}}(l||(l={}));class O extends g.mY{constructor(e,t,i){super({id:e,precondition:void 0,metadata:i}),this._handlerId=t}runCommand(e,t){let i=e.get(p.$).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function P(e,t){E(new O("default:"+e,e)),E(new O(e,e,t))}P("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),P("replacePreviousChar"),P("compositionType"),P("compositionStart"),P("compositionEnd"),P("paste"),P("cut")},97295:function(e,t,i){"use strict";i.d(t,{$J:function(){return T},$r:function(){return s},Av:function(){return F},BH:function(){return j},Bb:function(){return p},Bc:function(){return H},Bo:function(){return P},LJ:function(){return m},L_:function(){return N},NY:function(){return D},O7:function(){return v},Zc:function(){return k},d2:function(){return r},gk:function(){return A},hL:function(){return B},n0:function(){return O},qt:function(){return W},rk:function(){return w},y0:function(){return g}});var n,o,r,s,a=i("47983"),l=i("79221"),d=i("97147"),u=i("94554"),c=i("56810"),h=i("94479");let g=8;class p{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class m{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class f{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return C(e,t)}compute(e,t,i){return i}}class w{constructor(e,t){this.newValue=e,this.didChange=t}}function C(e,t){if("object"!=typeof e||"object"!=typeof t||!e||!t)return new w(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){let i=Array.isArray(e)&&Array.isArray(t)&&a.fS(e,t);return new w(t,!i)}let i=!1;for(let n in t)if(t.hasOwnProperty(n)){let o=C(e[n],t[n]);o.didChange&&(e[n]=o.newValue,i=!0)}return new w(e,i)}class b{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return C(e,t)}validate(e){return this.defaultValue}}class y{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return C(e,t)}validate(e){return void 0===e?this.defaultValue:e}compute(e,t,i){return i}}function v(e,t){return void 0===e?t:"false"!==e&&!!e}class S extends y{constructor(e,t,i,n){void 0!==n&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return v(e,this.defaultValue)}}function k(e,t,i,n){if(void 0===e)return t;let o=parseInt(e,10);return isNaN(o)?t:0|(o=Math.min(n,o=Math.max(i,o)))}class x extends y{static clampedInt(e,t,i,n){return k(e,t,i,n)}constructor(e,t,i,n,o,r){void 0!==r&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}validate(e){return x.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function N(e,t,i,n){if(void 0===e)return t;let o=I.float(e,t);return I.clamp(o,i,n)}class I extends y{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if("number"==typeof e)return e;if(void 0===e)return t;let i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,o){void 0!==o&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}validate(e){return this.validationFn(I.float(e,this.defaultValue))}}class _ extends y{static string(e,t){return"string"!=typeof e?t:e}constructor(e,t,i,n){void 0!==n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return _.string(e,this.defaultValue)}}function D(e,t,i,n){return"string"!=typeof e?t:n&&e in n?n[e]:-1===i.indexOf(e)?t:e}class L extends y{constructor(e,t,i,n,o){void 0!==o&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return D(e,this.defaultValue,this._allowedValues)}}class E extends f{constructor(e,t,i,n,o,r,s){void 0!==s&&(s.type="string",s.enum=o,s.default=n),super(e,t,i,s),this._allowedValues=o,this._convert=r}validate(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}(n=r||(r={}))[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin";class O extends f{constructor(){super(51,"fontLigatures",O.OFF,{anyOf:[{type:"boolean",description:h.NC("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:h.NC("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:h.NC("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){if(void 0===e)return this.defaultValue;if("string"==typeof e)return"false"===e||0===e.length?O.OFF:"true"===e?O.ON:e;return e?O.ON:O.OFF}}O.OFF='"liga" off, "calt" off',O.ON='"liga" on, "calt" on';class P extends f{constructor(){super(54,"fontVariations",P.OFF,{anyOf:[{type:"boolean",description:h.NC("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:h.NC("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:h.NC("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){if(void 0===e)return this.defaultValue;if("string"==typeof e)return"false"===e?P.OFF:"true"===e?P.TRANSLATE:e;return e?P.TRANSLATE:P.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}P.OFF="normal",P.TRANSLATE="translate";class M extends f{constructor(){super(53,"fontWeight",B.fontWeight,{anyOf:[{type:"number",minimum:M.MINIMUM_VALUE,maximum:M.MAXIMUM_VALUE,errorMessage:h.NC("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:M.SUGGESTION_VALUES}],default:B.fontWeight,description:h.NC("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(x.clampedInt(e,B.fontWeight,M.MINIMUM_VALUE,M.MAXIMUM_VALUE))}}M.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],M.MINIMUM_VALUE=1,M.MAXIMUM_VALUE=1e3;class A extends b{constructor(){super(145)}compute(e,t,i){return A.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,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){let t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight),n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));let o=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/o);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:o,minimapLineCount:r}}static _computeMinimapLayout(e,t){let 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};let r=t.stableMinimapLayoutInput,s=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&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,a=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,u=e.minimap.renderCharacters,c=o>=2?Math.round(2*e.minimap.scale):e.minimap.scale,h=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,w=e.viewLineCount,C=e.remainingWidth,b=e.isViewportWrapping,y=u?2:3,v=Math.floor(o*n),S=v/o,k=!1,x=!1,N=y*c,I=c/o,_=1;if("fill"===p||"fit"===p){let{typicalViewportLineCount:i,extraLinesBeforeFirstLine:r,extraLinesBeyondLastLine:l,desiredRatio:u,minimapLineCount:h}=A.computeContainedMinimapLineCount({viewLineCount:w,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:a,pixelRatio:o});if(w/h>1)k=!0,x=!0,N=1,I=(c=1)/o;else{let n=!1,d=c+1;if("fit"===p){let e=Math.ceil((r+w+l)*N);b&&s&&C<=t.stableFitRemainingWidth?(n=!0,d=t.stableFitMaxMinimapScale):n=e>v}if("fill"===p||n){k=!0;let n=c;N=Math.min(a*o,Math.max(1,Math.floor(1/u))),b&&s&&C<=t.stableFitRemainingWidth&&(d=t.stableFitMaxMinimapScale),(c=Math.min(d,Math.max(1,Math.floor(N/y))))>n&&(_=Math.min(2,c/n)),I=c/o/_,v=Math.ceil(Math.max(i,r+w+l)*N),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=c):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}let D=Math.min(Math.floor(h*I),Math.max(0,Math.floor((C-f-2)*I/(l+I)))+g),L=Math.floor(o*D),E=L/o;return L=Math.floor(L*_),{renderMinimap:u?1:2,minimapLeft:"left"===m?0:i-D-f,minimapWidth:D,minimapHeightIsEditorHeight:k,minimapIsSampling:x,minimapScale:c,minimapLineHeight:N,minimapCanvasInnerWidth:L,minimapCanvasInnerHeight:v,minimapCanvasOuterWidth:E,minimapCanvasOuterHeight:S}}static computeLayout(e,t){let i=0|t.outerWidth,n=0|t.outerHeight,o=0|t.lineHeight,r=0|t.lineNumbersDigitCount,s=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,d=t.viewLineCount,u=e.get(137),c="inherit"===u?e.get(136):u,h="inherit"===c?e.get(132):c,g=e.get(135),p=t.isDominatedByLongLines,f=e.get(57),w=0!==e.get(68).renderType,C=e.get(69),b=e.get(105),y=e.get(84),v=e.get(73),S=e.get(103),k=S.verticalScrollbarSize,x=S.verticalHasArrows,N=S.arrowSize,I=S.horizontalScrollbarSize,_=e.get(43),D="never"!==e.get(110),L=e.get(66);_&&D&&(L+=16);let E=0;w&&(E=Math.round(Math.max(r,C)*a));let O=0;f&&(O=o*t.glyphMarginDecorationLaneCount);let P=0,M=0+O,T=M+E,R=T+L,F=i-O-E-L,W=!1,V=!1,B=-1;"inherit"===c&&p?(W=!0,V=!0):"on"===h||"bounded"===h?V=!0:"wordWrapColumn"===h&&(B=g);let H=A._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:s,pixelRatio:l,scrollBeyondLastLine:b,paddingTop:y.top,paddingBottom:y.bottom,minimap:v,verticalScrollbarWidth:k,viewLineCount:d,remainingWidth:F,isViewportWrapping:V},t.memory||new m);0!==H.renderMinimap&&0===H.minimapLeft&&(P+=H.minimapWidth,M+=H.minimapWidth,T+=H.minimapWidth,R+=H.minimapWidth);let z=F-H.minimapWidth,j=Math.max(1,Math.floor((z-k-2)/s)),U=x?N:0;return V&&(B=Math.max(1,j),"bounded"===h&&(B=Math.min(B,g))),{width:i,height:n,glyphMarginLeft:P,glyphMarginWidth:O,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:M,lineNumbersWidth:E,decorationsLeft:T,decorationsWidth:L,contentLeft:R,contentWidth:z,minimap:H,viewportColumn:j,isWordWrapMinified:W,isViewportWrapping:V,wrappingColumn:B,verticalScrollbarWidth:k,horizontalScrollbarHeight:I,overviewRuler:{top:U,width:k,height:n-2*U,right:0}}}}(o=s||(s={})).Off="off",o.OnCode="onCode",o.On="on";function T(e){let t=e.get(98);return"editable"===t?e.get(91):"on"!==t}function R(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}let F="inUntrustedWorkspace",W={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function V(e,t,i){let n=i.indexOf(e);return -1===n?t:i[n]}let B={fontFamily:d.dz?"Menlo, Monaco, 'Courier New', monospace":d.IJ?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:d.dz?12:14,lineHeight:0,letterSpacing:0},H=[];function z(e){return H[e.id]=e,e}let j={acceptSuggestionOnCommitCharacter:z(new S(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:h.NC("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:z(new L(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",h.NC("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:h.NC("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:z(new class e extends f{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[h.NC("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),h.NC("accessibilitySupport.on","Optimize for usage with a Screen Reader."),h.NC("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:h.NC("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:z(new x(3,"accessibilityPageSize",10,1,1073741824,{description:h.NC("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."),tags:["accessibility"]})),ariaLabel:z(new _(4,"ariaLabel",h.NC("editorViewAccessibleLabel","Editor content"))),ariaRequired:z(new S(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:z(new S(8,"screenReaderAnnounceInlineSuggestion",!0,{description:h.NC("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:z(new L(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",h.NC("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),h.NC("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:h.NC("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:z(new L(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",h.NC("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),h.NC("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:h.NC("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:z(new L(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",h.NC("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:h.NC("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:z(new L(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",h.NC("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:h.NC("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:z(new L(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",h.NC("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),h.NC("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:h.NC("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:z(new E(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}},{enumDescriptions:[h.NC("editor.autoIndent.none","The editor will not insert indentation automatically."),h.NC("editor.autoIndent.keep","The editor will keep the current line's indentation."),h.NC("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),h.NC("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),h.NC("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:h.NC("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:z(new S(13,"automaticLayout",!1)),autoSurround:z(new L(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[h.NC("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),h.NC("editor.autoSurround.quotes","Surround with quotes but not brackets."),h.NC("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:h.NC("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:z(new class e extends f{constructor(){let e={enabled:u.D.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:u.D.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:h.NC("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:h.NC("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){return e&&"object"==typeof e?{enabled:v(e.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:v(e.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}:this.defaultValue}}),bracketPairGuides:z(new class e extends f{constructor(){let e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[h.NC("editor.guides.bracketPairs.true","Enables bracket pair guides."),h.NC("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),h.NC("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:h.NC("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[h.NC("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),h.NC("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),h.NC("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:h.NC("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:h.NC("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:h.NC("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[h.NC("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),h.NC("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),h.NC("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:h.NC("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){return e&&"object"==typeof e?{bracketPairs:V(e.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:V(e.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:v(e.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:v(e.indentation,this.defaultValue.indentation),highlightActiveIndentation:V(e.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}:this.defaultValue}}),stickyTabStops:z(new S(116,"stickyTabStops",!1,{description:h.NC("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:z(new S(17,"codeLens",!0,{description:h.NC("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:z(new _(18,"codeLensFontFamily","",{description:h.NC("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:z(new x(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:h.NC("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:z(new S(20,"colorDecorators",!0,{description:h.NC("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:z(new L(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[h.NC("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),h.NC("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),h.NC("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:h.NC("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:z(new x(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:h.NC("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:z(new S(22,"columnSelection",!1,{description:h.NC("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:z(new class e extends f{constructor(){let e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:h.NC("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:h.NC("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){return e&&"object"==typeof e?{insertSpace:v(e.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:v(e.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}:this.defaultValue}}),contextmenu:z(new S(24,"contextmenu",!0)),copyWithSyntaxHighlighting:z(new S(25,"copyWithSyntaxHighlighting",!0,{description:h.NC("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:z(new E(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}},{description:h.NC("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:z(new L(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[h.NC("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),h.NC("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),h.NC("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:h.NC("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:z(new E(28,"cursorStyle",r.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],function(e){switch(e){case"line":return r.Line;case"block":return r.Block;case"underline":return r.Underline;case"line-thin":return r.LineThin;case"block-outline":return r.BlockOutline;case"underline-thin":return r.UnderlineThin}},{description:h.NC("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:z(new x(29,"cursorSurroundingLines",0,0,1073741824,{description:h.NC("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:z(new L(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[h.NC("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),h.NC("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:h.NC("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:z(new x(31,"cursorWidth",0,0,1073741824,{markdownDescription:h.NC("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:z(new S(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:z(new S(33,"disableMonospaceOptimizations",!1)),domReadOnly:z(new S(34,"domReadOnly",!1)),dragAndDrop:z(new S(35,"dragAndDrop",!0,{description:h.NC("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:z(new class e extends S{constructor(){super(37,"emptySelectionClipboard",!0,{description:h.NC("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),dropIntoEditor:z(new class e extends f{constructor(){let e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:h.NC("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:h.NC("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[h.NC("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),h.NC("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){return e&&"object"==typeof e?{enabled:v(e.enabled,this.defaultValue.enabled),showDropSelector:D(e.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}:this.defaultValue}}),stickyScroll:z(new class e extends f{constructor(){let e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:h.NC("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:h.NC("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:h.NC("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:h.NC("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){return e&&"object"==typeof e?{enabled:v(e.enabled,this.defaultValue.enabled),maxLineCount:x.clampedInt(e.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:D(e.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:v(e.scrollWithEditor,this.defaultValue.scrollWithEditor)}:this.defaultValue}}),experimentalWhitespaceRendering:z(new L(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[h.NC("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),h.NC("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),h.NC("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:h.NC("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:z(new _(39,"extraEditorClassName","")),fastScrollSensitivity:z(new I(40,"fastScrollSensitivity",5,e=>e<=0?5:e,{markdownDescription:h.NC("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:z(new class e extends f{constructor(){let e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:h.NC("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:[h.NC("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),h.NC("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),h.NC("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:h.NC("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:[h.NC("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),h.NC("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),h.NC("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:h.NC("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:h.NC("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:d.dz},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:h.NC("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:h.NC("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){return e&&"object"==typeof e?{cursorMoveOnType:v(e.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"==typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":D(e.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":D(e.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:v(e.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:v(e.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:v(e.loop,this.defaultValue.loop)}:this.defaultValue}}),fixedOverflowWidgets:z(new S(42,"fixedOverflowWidgets",!1)),folding:z(new S(43,"folding",!0,{description:h.NC("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:z(new L(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[h.NC("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),h.NC("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:h.NC("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:z(new S(45,"foldingHighlight",!0,{description:h.NC("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:z(new S(46,"foldingImportsByDefault",!1,{description:h.NC("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:z(new x(47,"foldingMaximumRegions",5e3,10,65e3,{description:h.NC("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:z(new S(48,"unfoldOnClickAfterEndOfLine",!1,{description:h.NC("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:z(new _(49,"fontFamily",B.fontFamily,{description:h.NC("fontFamily","Controls the font family.")})),fontInfo:z(new class e extends b{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:z(new O),fontSize:z(new class e extends y{constructor(){super(52,"fontSize",B.fontSize,{type:"number",minimum:6,maximum:100,default:B.fontSize,description:h.NC("fontSize","Controls the font size in pixels.")})}validate(e){let t=I.float(e,this.defaultValue);return 0===t?B.fontSize:I.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:z(new M),fontVariations:z(new P),formatOnPaste:z(new S(55,"formatOnPaste",!1,{description:h.NC("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:z(new S(56,"formatOnType",!1,{description:h.NC("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:z(new S(57,"glyphMargin",!0,{description:h.NC("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:z(new class e extends f{constructor(){let 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:[h.NC("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),h.NC("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),h.NC("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(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:h.NC("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":{description:h.NC("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:h.NC("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:h.NC("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:h.NC("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:h.NC("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:h.NC("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:h.NC("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:h.NC("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:h.NC("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:h.NC("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;return e&&"object"==typeof e?{multiple:D(e.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=e.multipleDefinitions)&&void 0!==t?t:D(e.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(i=e.multipleTypeDefinitions)&&void 0!==i?i:D(e.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=e.multipleDeclarations)&&void 0!==n?n:D(e.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(o=e.multipleImplementations)&&void 0!==o?o:D(e.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(r=e.multipleReferences)&&void 0!==r?r:D(e.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:_.string(e.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:_.string(e.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:_.string(e.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:_.string(e.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:_.string(e.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}:this.defaultValue}}),hideCursorInOverviewRuler:z(new S(59,"hideCursorInOverviewRuler",!1,{description:h.NC("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:z(new class e extends f{constructor(){let e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:h.NC("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:h.NC("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:h.NC("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:h.NC("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:h.NC("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){return e&&"object"==typeof e?{enabled:v(e.enabled,this.defaultValue.enabled),delay:x.clampedInt(e.delay,this.defaultValue.delay,0,1e4),sticky:v(e.sticky,this.defaultValue.sticky),hidingDelay:x.clampedInt(e.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:v(e.above,this.defaultValue.above)}:this.defaultValue}}),inDiffEditor:z(new S(61,"inDiffEditor",!1)),letterSpacing:z(new I(64,"letterSpacing",B.letterSpacing,e=>I.clamp(e,-5,20),{description:h.NC("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:z(new class e extends f{constructor(){let e={enabled:s.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[s.Off,s.OnCode,s.On],default:e.enabled,enumDescriptions:[h.NC("editor.lightbulb.enabled.off","Disable the code action menu."),h.NC("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),h.NC("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:h.NC("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return e&&"object"==typeof e?{enabled:D(e.enabled,this.defaultValue.enabled,[s.Off,s.OnCode,s.On])}:this.defaultValue}}),lineDecorationsWidth:z(new class e extends f{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return"string"==typeof e&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):x.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?x.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}),lineHeight:z(new class e extends I{constructor(){super(67,"lineHeight",B.lineHeight,e=>I.clamp(e,0,150),{markdownDescription:h.NC("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:z(new class e extends f{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[h.NC("lineNumbers.off","Line numbers are not rendered."),h.NC("lineNumbers.on","Line numbers are rendered as absolute number."),h.NC("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),h.NC("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:h.NC("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:z(new x(69,"lineNumbersMinChars",5,1,300)),linkedEditing:z(new S(70,"linkedEditing",!1,{description:h.NC("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:z(new S(71,"links",!0,{description:h.NC("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:z(new L(72,"matchBrackets","always",["always","near","never"],{description:h.NC("matchBrackets","Highlight matching brackets.")})),minimap:z(new class e extends f{constructor(){let e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:h.NC("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:h.NC("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[h.NC("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),h.NC("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),h.NC("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:h.NC("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:h.NC("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:h.NC("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:h.NC("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:h.NC("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:h.NC("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:h.NC("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:h.NC("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:h.NC("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")}})}validate(e){var t;return e&&"object"==typeof e?{enabled:v(e.enabled,this.defaultValue.enabled),autohide:v(e.autohide,this.defaultValue.autohide),size:D(e.size,this.defaultValue.size,["proportional","fill","fit"]),side:D(e.side,this.defaultValue.side,["right","left"]),showSlider:D(e.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:v(e.renderCharacters,this.defaultValue.renderCharacters),scale:x.clampedInt(e.scale,1,1,3),maxColumn:x.clampedInt(e.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:v(e.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:v(e.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:I.clamp(null!==(t=e.sectionHeaderFontSize)&&void 0!==t?t:this.defaultValue.sectionHeaderFontSize,4,32)}:this.defaultValue}}),mouseStyle:z(new L(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:z(new I(75,"mouseWheelScrollSensitivity",1,e=>0===e?1:e,{markdownDescription:h.NC("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:z(new S(76,"mouseWheelZoom",!1,{markdownDescription:d.dz?h.NC("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):h.NC("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:z(new S(77,"multiCursorMergeOverlapping",!0,{description:h.NC("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:z(new E(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],function(e){return"ctrlCmd"===e?d.dz?"metaKey":"ctrlKey":"altKey"},{markdownEnumDescriptions:[h.NC("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),h.NC("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:h.NC({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](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:z(new L(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[h.NC("multiCursorPaste.spread","Each cursor pastes a single line of the text."),h.NC("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:h.NC("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:z(new x(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:h.NC("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:z(new L(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[h.NC("occurrencesHighlight.off","Does not highlight occurrences."),h.NC("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),h.NC("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:h.NC("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:z(new S(82,"overviewRulerBorder",!0,{description:h.NC("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:z(new x(83,"overviewRulerLanes",3,0,3)),padding:z(new class e extends f{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:h.NC("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:h.NC("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){return e&&"object"==typeof e?{top:x.clampedInt(e.top,0,0,1e3),bottom:x.clampedInt(e.bottom,0,0,1e3)}:this.defaultValue}}),pasteAs:z(new class e extends f{constructor(){let e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:h.NC("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:h.NC("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[h.NC("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),h.NC("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){return e&&"object"==typeof e?{enabled:v(e.enabled,this.defaultValue.enabled),showPasteSelector:D(e.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}:this.defaultValue}}),parameterHints:z(new class e extends f{constructor(){let e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:h.NC("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:h.NC("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){return e&&"object"==typeof e?{enabled:v(e.enabled,this.defaultValue.enabled),cycle:v(e.cycle,this.defaultValue.cycle)}:this.defaultValue}}),peekWidgetDefaultFocus:z(new L(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[h.NC("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),h.NC("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:h.NC("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:z(new S(88,"definitionLinkOpensInPeek",!1,{description:h.NC("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:z(new class e extends f{constructor(){let e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[h.NC("on","Quick suggestions show inside the suggest widget"),h.NC("inline","Quick suggestions show as ghost text"),h.NC("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:h.NC("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:h.NC("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:h.NC("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:h.NC("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){let t,i,n;if("boolean"==typeof e){let t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!=typeof e)return this.defaultValue;let{other:o,comments:r,strings:s}=e,a=["on","inline","off"];return t="boolean"==typeof o?o?"on":"off":D(o,this.defaultValue.other,a),i="boolean"==typeof r?r?"on":"off":D(r,this.defaultValue.comments,a),{other:t,comments:i,strings:n="boolean"==typeof s?s?"on":"off":D(s,this.defaultValue.strings,a)}}}),quickSuggestionsDelay:z(new x(90,"quickSuggestionsDelay",10,0,1073741824,{description:h.NC("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:z(new S(91,"readOnly",!1)),readOnlyMessage:z(new class e extends f{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return e&&"object"==typeof e?e:this.defaultValue}}),renameOnType:z(new S(93,"renameOnType",!1,{description:h.NC("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:h.NC("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:z(new S(94,"renderControlCharacters",!0,{description:h.NC("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:z(new L(95,"renderFinalNewline",d.IJ?"dimmed":"on",["off","on","dimmed"],{description:h.NC("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:z(new L(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",h.NC("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:h.NC("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:z(new S(97,"renderLineHighlightOnlyWhenFocus",!1,{description:h.NC("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:z(new L(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:z(new L(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",h.NC("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),h.NC("renderWhitespace.selection","Render whitespace characters only on selected text."),h.NC("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:h.NC("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:z(new x(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:z(new S(101,"roundedSelection",!0,{description:h.NC("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:z(new class e extends f{constructor(){let e=[],t={type:"number",description:h.NC("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:h.NC("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:h.NC("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)"number"==typeof i?t.push({column:x.clampedInt(i,0,0,1e4),color:null}):i&&"object"==typeof i&&t.push({column:x.clampedInt(i.column,0,0,1e4),color:i.color});return t.sort((e,t)=>e.column-t.column),t}return this.defaultValue}}),scrollbar:z(new class e extends f{constructor(){let 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,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[h.NC("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),h.NC("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),h.NC("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:h.NC("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[h.NC("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),h.NC("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),h.NC("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:h.NC("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:h.NC("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:h.NC("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:h.NC("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:h.NC("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;let t=x.clampedInt(e.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=x.clampedInt(e.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:x.clampedInt(e.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:R(e.vertical,this.defaultValue.vertical),horizontal:R(e.horizontal,this.defaultValue.horizontal),useShadows:v(e.useShadows,this.defaultValue.useShadows),verticalHasArrows:v(e.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:v(e.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:v(e.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:v(e.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:t,horizontalSliderSize:x.clampedInt(e.horizontalSliderSize,t,0,1e3),verticalScrollbarSize:i,verticalSliderSize:x.clampedInt(e.verticalSliderSize,i,0,1e3),scrollByPage:v(e.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:v(e.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}),scrollBeyondLastColumn:z(new x(104,"scrollBeyondLastColumn",4,0,1073741824,{description:h.NC("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:z(new S(105,"scrollBeyondLastLine",!0,{description:h.NC("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:z(new S(106,"scrollPredominantAxis",!0,{description:h.NC("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:z(new S(107,"selectionClipboard",!0,{description:h.NC("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:d.IJ})),selectionHighlight:z(new S(108,"selectionHighlight",!0,{description:h.NC("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:z(new S(109,"selectOnLineNumbers",!0)),showFoldingControls:z(new L(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[h.NC("showFoldingControls.always","Always show the folding controls."),h.NC("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),h.NC("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:h.NC("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:z(new S(111,"showUnused",!0,{description:h.NC("showUnused","Controls fading out of unused code.")})),showDeprecated:z(new S(140,"showDeprecated",!0,{description:h.NC("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:z(new class e extends f{constructor(){let e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:h.NC("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[h.NC("editor.inlayHints.on","Inlay hints are enabled"),h.NC("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",d.dz?"Ctrl+Option":"Ctrl+Alt"),h.NC("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",d.dz?"Ctrl+Option":"Ctrl+Alt"),h.NC("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:h.NC("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:h.NC("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:h.NC("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){return e&&"object"==typeof e?("boolean"==typeof e.enabled&&(e.enabled=e.enabled?"on":"off"),{enabled:D(e.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:x.clampedInt(e.fontSize,this.defaultValue.fontSize,0,100),fontFamily:_.string(e.fontFamily,this.defaultValue.fontFamily),padding:v(e.padding,this.defaultValue.padding)}):this.defaultValue}}),snippetSuggestions:z(new L(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[h.NC("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),h.NC("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),h.NC("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),h.NC("snippetSuggestions.none","Do not show snippet suggestions.")],description:h.NC("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:z(new class e extends f{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:h.NC("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:h.NC("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"==typeof e?{selectLeadingAndTrailingWhitespace:v(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:v(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue}}),smoothScrolling:z(new S(114,"smoothScrolling",!1,{description:h.NC("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:z(new x(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:z(new class e extends f{constructor(){let e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!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(118,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[h.NC("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),h.NC("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:h.NC("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:h.NC("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:h.NC("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:h.NC("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[h.NC("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),h.NC("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),h.NC("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),h.NC("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:h.NC("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:h.NC("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:h.NC("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:h.NC("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:h.NC("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:h.NC("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:h.NC("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:h.NC("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:h.NC("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:h.NC("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){return e&&"object"==typeof e?{insertMode:D(e.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:v(e.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:v(e.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:v(e.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:v(e.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:D(e.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:v(e.showIcons,this.defaultValue.showIcons),showStatusBar:v(e.showStatusBar,this.defaultValue.showStatusBar),preview:v(e.preview,this.defaultValue.preview),previewMode:D(e.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:v(e.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:v(e.showMethods,this.defaultValue.showMethods),showFunctions:v(e.showFunctions,this.defaultValue.showFunctions),showConstructors:v(e.showConstructors,this.defaultValue.showConstructors),showDeprecated:v(e.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:v(e.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:v(e.showFields,this.defaultValue.showFields),showVariables:v(e.showVariables,this.defaultValue.showVariables),showClasses:v(e.showClasses,this.defaultValue.showClasses),showStructs:v(e.showStructs,this.defaultValue.showStructs),showInterfaces:v(e.showInterfaces,this.defaultValue.showInterfaces),showModules:v(e.showModules,this.defaultValue.showModules),showProperties:v(e.showProperties,this.defaultValue.showProperties),showEvents:v(e.showEvents,this.defaultValue.showEvents),showOperators:v(e.showOperators,this.defaultValue.showOperators),showUnits:v(e.showUnits,this.defaultValue.showUnits),showValues:v(e.showValues,this.defaultValue.showValues),showConstants:v(e.showConstants,this.defaultValue.showConstants),showEnums:v(e.showEnums,this.defaultValue.showEnums),showEnumMembers:v(e.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:v(e.showKeywords,this.defaultValue.showKeywords),showWords:v(e.showWords,this.defaultValue.showWords),showColors:v(e.showColors,this.defaultValue.showColors),showFiles:v(e.showFiles,this.defaultValue.showFiles),showReferences:v(e.showReferences,this.defaultValue.showReferences),showFolders:v(e.showFolders,this.defaultValue.showFolders),showTypeParameters:v(e.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:v(e.showSnippets,this.defaultValue.showSnippets),showUsers:v(e.showUsers,this.defaultValue.showUsers),showIssues:v(e.showIssues,this.defaultValue.showIssues)}:this.defaultValue}}),inlineSuggest:z(new class e extends f{constructor(){let e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:h.NC("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[h.NC("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),h.NC("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),h.NC("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:h.NC("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:h.NC("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:h.NC("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){return e&&"object"==typeof e?{enabled:v(e.enabled,this.defaultValue.enabled),mode:D(e.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:D(e.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:v(e.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:v(e.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:_.string(e.fontFamily,this.defaultValue.fontFamily)}:this.defaultValue}}),inlineEdit:z(new class e extends f{constructor(){let e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:h.NC("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[h.NC("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),h.NC("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),h.NC("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:h.NC("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:h.NC("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:h.NC("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){return e&&"object"==typeof e?{enabled:v(e.enabled,this.defaultValue.enabled),showToolbar:D(e.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:_.string(e.fontFamily,this.defaultValue.fontFamily),keepOnBlur:v(e.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:v(e.backgroundColoring,this.defaultValue.backgroundColoring)}:this.defaultValue}}),inlineCompletionsAccessibilityVerbose:z(new S(149,"inlineCompletionsAccessibilityVerbose",!1,{description:h.NC("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:z(new x(119,"suggestFontSize",0,0,1e3,{markdownDescription:h.NC("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:z(new x(120,"suggestLineHeight",0,0,1e3,{markdownDescription:h.NC("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:z(new S(121,"suggestOnTriggerCharacters",!0,{description:h.NC("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:z(new L(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[h.NC("suggestSelection.first","Always select the first suggestion."),h.NC("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),h.NC("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:h.NC("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:z(new L(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[h.NC("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),h.NC("tabCompletion.off","Disable tab completions."),h.NC("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:h.NC("tabCompletion","Enables tab completions.")})),tabIndex:z(new x(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:z(new class e extends f{constructor(){let e={nonBasicASCII:F,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:F,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[W.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,F],default:e.nonBasicASCII,description:h.NC("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.")},[W.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:h.NC("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[W.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:h.NC("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.")},[W.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,F],default:e.includeComments,description:h.NC("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[W.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,F],default:e.includeStrings,description:h.NC("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[W.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:h.NC("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[W.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:h.NC("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&!l.fS(e.allowedCharacters,t.allowedCharacters)&&(e={...e,allowedCharacters:t.allowedCharacters},i=!0),t.allowedLocales&&e&&!l.fS(e.allowedLocales,t.allowedLocales)&&(e={...e,allowedLocales:t.allowedLocales},i=!0);let n=super.applyUpdate(e,t);return i?new w(n.newValue,!0):n}validate(e){return e&&"object"==typeof e?{nonBasicASCII:V(e.nonBasicASCII,F,[!0,!1,F]),invisibleCharacters:v(e.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:v(e.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:V(e.includeComments,F,[!0,!1,F]),includeStrings:V(e.includeStrings,F,[!0,!1,F]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}:this.defaultValue}validateBooleanMap(e,t){if("object"!=typeof e||!e)return t;let i={};for(let[t,n]of Object.entries(e))!0===n&&(i[t]=!0);return i}}),unusualLineTerminators:z(new L(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[h.NC("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),h.NC("unusualLineTerminators.off","Unusual line terminators are ignored."),h.NC("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:h.NC("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:z(new S(127,"useShadowDOM",!0)),useTabStops:z(new S(128,"useTabStops",!0,{description:h.NC("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:z(new L(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[h.NC("wordBreak.normal","Use the default line break rule."),h.NC("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:h.NC("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:z(new class e extends f{constructor(){super(130,"wordSegmenterLocales",[],{anyOf:[{description:h.NC("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:h.NC("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if("string"==typeof e&&(e=[e]),Array.isArray(e)){let t=[];for(let i of e)if("string"==typeof i)try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch(e){}return t}return this.defaultValue}}),wordSeparators:z(new _(131,"wordSeparators",c.vu,{description:h.NC("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:z(new L(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[h.NC("wordWrap.off","Lines will never wrap."),h.NC("wordWrap.on","Lines will wrap at the viewport width."),h.NC({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),h.NC({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:h.NC({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:z(new _(133,"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:z(new _(134,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xa3\xa5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:z(new x(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:h.NC({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:z(new L(136,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:z(new L(137,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:z(new class e extends b{constructor(){super(142)}compute(e,t,i){let n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(74)?n.push("mouse-default"):"copy"===t.get(74)&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(140)&&n.push("showDeprecated"),n.join(" ")}}),defaultColorDecorators:z(new S(147,"defaultColorDecorators",!1,{markdownDescription:h.NC("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:z(new class e extends b{constructor(){super(143)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:z(new S(144,"tabFocusMode",!1,{markdownDescription:h.NC("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:z(new A),wrappingInfo:z(new class e extends b{constructor(){super(146)}compute(e,t,i){let n=t.get(145);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}),wrappingIndent:z(new class e extends f{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[h.NC("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),h.NC("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),h.NC("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),h.NC("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:h.NC("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":break;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return 2===t.get(2)?0:i}}),wrappingStrategy:z(new class e extends f{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[h.NC("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."),h.NC("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.")],type:"string",enum:["simple","advanced"],default:"simple",description:h.NC("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return D(e,"simple",["simple","advanced"])}compute(e,t,i){return 2===t.get(2)?"advanced":i}})}},59775:function(e,t,i){"use strict";i.d(t,{z:function(){return n}});class n{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}},68201:function(e,t,i){"use strict";i.d(t,{g:function(){return n}});let n={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},19682:function(e,t,i){"use strict";i.d(t,{w:function(){return d}});var n=i("44850"),o=i("90579"),r=i("83812"),s=i("78219"),a=i("12606"),l=i("5128");function d(e,t,i,n){return new u(e,t,i,n).parseDocument()}class u{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw Error("Not supported");this.oldNodeReader=i?new l.B(i):void 0,this.positionMapper=new o.Y(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(r.tS.getEmpty(),0);return!e&&(e=n.Y0.getEmpty()),e}parseList(e,t){let i=[];for(;;){let n=this.tryReadChildFromCache(e);if(!n){let i=this.tokenizer.peek();if(!i||2===i.kind&&i.bracketIds.intersects(e))break;n=this.parseChild(e,t+1)}if(4!==n.kind||0!==n.childrenLength)i.push(n)}return this.oldNodeReader?(0,a.S)(i):(0,a.H)(i,this.createImmutableLists)}tryReadChildFromCache(e){if(this.oldNodeReader){let t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!(0,s.xd)(t)){let i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),i=>!!(null===t||(0,s.VR)(i.length,t))&&i.canBeReused(e));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}}parseChild(e,t){this._itemsConstructed++;let i=this.tokenizer.read();switch(i.kind){case 2:return new n.Dm(i.bracketIds,i.length);case 0:return i.astNode;case 1:{if(t>300)return new n.BH(i.length);let o=e.merge(i.bracketIds),r=this.parseList(o,t+1),s=this.tokenizer.peek();if(s&&2===s.kind&&(s.bracketId===i.bracketId||s.bracketIds.intersects(i.bracketIds)))return this.tokenizer.read(),n.Kd.create(i.astNode,r,s.astNode);return n.Kd.create(i.astNode,r,null)}default:throw Error("unexpected")}}}},41325:function(e,t,i){"use strict";i.d(t,{M:function(){return a}});var n=i("71482"),o=i("71917"),r=i("42991");class s{constructor(e,t,i,n,o,r,s,a,l){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=o,this._containsRTL=r,this._containsUnusualLineTerminators=s,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){let t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){let t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let e=0,n=i.length;e<n;e++){let n=i[e].buffer.replace(/\r\n|\r|\n/g,t),r=(0,o.Xp)(n);i[e]=new o.Lv(n,r)}let n=new r.A(i,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:n,disposable:n}}}class a{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&n.uS(e)&&(this.BOM=n.c1,e=e.substr(1));let t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1),this._previousChar=t}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){let t=(0,o.Nr)(this._tmpLineStarts,e);this.chunks.push(new o.Lv(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,!t.isBasicASCII&&(this.isBasicASCII=!1,!this.containsRTL&&(this.containsRTL=n.Ut(e)),!this.containsUnusualLineTerminators&&(this.containsUnusualLineTerminators=n.ab(e)))}finish(e=!0){return this._finish(),new s(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;let e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);let t=(0,o.Xp)(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}},37699:function(e,t,i){"use strict";i.d(t,{gD:function(){return s}});var n=i("26089"),o=i("70668"),r=i("42733");class s{constructor(e,t,i,n,o){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=n,this.wrappedTextIndentLength=o}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){let t=e>0?this.breakOffsets[e-1]:0,i=this.breakOffsets[e]-t;return e>0&&(i+=this.wrappedTextIndentLength),i}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let i=0===e?t:this.breakOffsets[e-1]+t;if(null!==this.injectionOffsets)for(let e=0;e<this.injectionOffsets.length&&i>this.injectionOffsets[e];e++)i<this.injectionOffsets[e]+this.injectionOptions[e].content.length?i=this.injectionOffsets[e]:i-=this.injectionOptions[e].content.length;return i}translateToOutputPosition(e,t=2){let i=e;if(null!==this.injectionOffsets)for(let n=0;n<this.injectionOffsets.length&&!(e<this.injectionOffsets[n])&&(1===t||e!==this.injectionOffsets[n]);n++){;i+=this.injectionOptions[n].content.length}return this.offsetInInputWithInjectionsToOutputPosition(i,t)}offsetInInputWithInjectionsToOutputPosition(e,t=2){let i=0,n=this.breakOffsets.length-1,o=0,r=0;for(;i<=n;){o=i+(n-i)/2|0;let s=this.breakOffsets[o];if(r=o>0?this.breakOffsets[o-1]:0,0===t){if(e<=r)n=o-1;else if(e>s)i=o+1;else break}else if(e<r)n=o-1;else if(e>=s)i=o+1;else break}let s=e-r;return o>0&&(s+=this.wrappedTextIndentLength),new d(o,s)}normalizeOutputPosition(e,t,i){if(null!==this.injectionOffsets){let n=this.outputPositionToOffsetInInputWithInjections(e,t),o=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(o!==n)return this.offsetInInputWithInjectionsToOutputPosition(o,i)}if(0===i){if(e>0&&t===this.getMinOutputOffset(e))return new d(e-1,this.getMaxOutputOffset(e-1))}else if(1===i&&e<this.getOutputLineCount()-1&&t===this.getMaxOutputOffset(e))return new d(e+1,this.getMinOutputOffset(e+1));return new d(e,t)}outputPositionToOffsetInInputWithInjections(e,t){return e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){let i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t){if(e===i.offsetInInputWithInjections+i.length&&a(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let e=i.offsetInInputWithInjections;if(l(this.injectionOptions[i.injectedTextIndex].cursorStops))return e;let t=i.injectedTextIndex-1;for(;t>=0&&this.injectionOffsets[t]===this.injectionOffsets[i.injectedTextIndex]&&!a(this.injectionOptions[t].cursorStops);){;if(e-=this.injectionOptions[t].content.length,l(this.injectionOptions[t].cursorStops))break;t--}return e}}if(1===t||4===t){let e=i.offsetInInputWithInjections+i.length,t=i.injectedTextIndex;for(;t+1<this.injectionOffsets.length&&this.injectionOffsets[t+1]===this.injectionOffsets[t];)e+=this.injectionOptions[t+1].content.length,t++;return e}if(0===t||3===t){let e=i.offsetInInputWithInjections,t=i.injectedTextIndex;for(;t-1>=0&&this.injectionOffsets[t-1]===this.injectionOffsets[t];)e-=this.injectionOptions[t-1].content.length,t--;return e}(0,n.vE)(t)}getInjectedText(e,t){let i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){let t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let n=0;for(let o=0;o<t.length;o++){let r=i[o].content.length,s=t[o]+n,a=t[o]+n+r;if(s>e)break;if(e<=a)return{injectedTextIndex:o,offsetInInputWithInjections:s,length:r};n+=r}}}}function a(e){return null==e||e===r.RM.Right||e===r.RM.Both}function l(e){return null==e||e===r.RM.Left||e===r.RM.Both}class d{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new o.L(e+this.outputLineIndex,this.outputOffset+1)}}},44370:function(e,t,i){"use strict";i.d(t,{x:function(){return o}});var n=i("83112");class o{constructor(e,t,i,o){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.lineHeight=0|t.lineHeight,this.whitespaceViewportData=i,this._model=o,this.visibleRange=new n.e(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}},5167:function(e,t,i){"use strict";i.d(t,{YW:function(){return x}});var n=i("76377"),o=i("55952"),r=i("28869"),s=i("73866"),a=i("76115"),l=i("52640"),d=i("98212"),u=i("37764"),c=i("34308");i("82425");var h=i("94479"),g=i("94590"),p=i("16445");let m=o.$;class f extends u.JT{constructor(e,t,i,n=!1){super(),this.model=t,this.showingStandaloneColorPicker=n,this._closeButton=null,this._domNode=m(".colorpicker-header"),o.R3(e,this._domNode),this._pickedColorNode=o.R3(this._domNode,m(".picked-color")),o.R3(this._pickedColorNode,m("span.codicon.codicon-color-mode")),this._pickedColorPresentation=o.R3(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");let r=(0,h.NC)("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",r),this._originalColorNode=o.R3(this._domNode,m(".original-color")),this._originalColorNode.style.backgroundColor=l.Il.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=i.getColorTheme().getColor(g.yJx)||l.Il.white,this._register(i.onDidColorThemeChange(e=>{this.backgroundColor=e.getColor(g.yJx)||l.Il.white})),this._register(o.nm(this._pickedColorNode,o.tw.CLICK,()=>this.model.selectNextColorPresentation())),this._register(o.nm(this._originalColorNode,o.tw.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=l.Il.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new w(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=l.Il.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class w extends u.JT{constructor(e){super(),this._onClicked=this._register(new d.Q5),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),o.R3(e,this._button);let t=document.createElement("div");t.classList.add("close-button-inner-div"),o.R3(this._button,t),o.R3(t,m(".button"+c.k.asCSSSelector((0,p.q5)("color-picker-close",a.l.close,(0,h.NC)("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(o.nm(this._button,o.tw.CLICK,()=>{this._onClicked.fire()}))}}class C extends u.JT{constructor(e,t,i,n=!1){super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=m(".colorpicker-body"),o.R3(e,this._domNode),this._saturationBox=new b(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new v(this._domNode,this.model,n),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new S(this._domNode,this.model,n),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),n&&(this._insertButton=this._register(new k(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){let i=this.model.color.hsva;this.model.color=new l.Il(new l.tx(i.h,e,t,i.a))}onDidOpacityChange(e){let t=this.model.color.hsva;this.model.color=new l.Il(new l.tx(t.h,t.s,t.v,e))}onDidHueChange(e){let t=this.model.color.hsva,i=(1-e)*360;this.model.color=new l.Il(new l.tx(360===i?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class b extends u.JT{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new d.Q5,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new d.Q5,this.onColorFlushed=this._onColorFlushed.event,this._domNode=m(".saturation-wrap"),o.R3(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",o.R3(this._domNode,this._canvas),this.selection=m(".saturation-selection"),o.R3(this._domNode,this.selection),this.layout(),this._register(o.nm(this._domNode,o.tw.POINTER_DOWN,e=>this.onPointerDown(e))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new r.C);let t=o.i(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,e=>this.onDidChangePosition(e.pageX-t.left,e.pageY-t.top),()=>null);let i=o.nm(e.target.ownerDocument,o.tw.POINTER_UP,()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){let i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();let e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){let e=this.model.color.hsva,t=new l.Il(new l.tx(e.h,1,1,1)),i=this._canvas.getContext("2d"),n=i.createLinearGradient(0,0,this._canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");let o=i.createLinearGradient(0,0,0,this._canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=l.Il.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=o,i.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();let t=e.hsva;this.paintSelection(t.s,t.v)}}class y extends u.JT{constructor(e,t,i=!1){super(),this.model=t,this._onDidChange=new d.Q5,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new d.Q5,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=o.R3(e,m(".standalone-strip")),this.overlay=o.R3(this.domNode,m(".standalone-overlay"))):(this.domNode=o.R3(e,m(".strip")),this.overlay=o.R3(this.domNode,m(".overlay"))),this.slider=o.R3(this.domNode,m(".slider")),this.slider.style.top="0px",this._register(o.nm(this.domNode,o.tw.POINTER_DOWN,e=>this.onPointerDown(e))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;let e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){let t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._register(new r.C),i=o.i(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,e=>this.onDidChangeTop(e.pageY-i.top),()=>null);let n=o.nm(e.target.ownerDocument,o.tw.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){let t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}}class v extends y{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);let{r:t,g:i,b:n}=e.rgba,o=new l.Il(new l.VS(t,i,n,1)),r=new l.Il(new l.VS(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${o} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class S extends y{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class k extends u.JT{constructor(e){super(),this._onClicked=this._register(new d.Q5),this.onClicked=this._onClicked.event,this._button=o.R3(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(o.nm(this._button,o.tw.CLICK,()=>{this._onClicked.fire()}))}get button(){return this._button}}class x extends s.${constructor(e,t,i,r,s=!1){super(),this.model=t,this.pixelRatio=i,this._register(n.T.getInstance(o.Jj(e)).onDidChange(()=>this.layout()));let a=m(".colorpicker-widget");e.appendChild(a),this.header=this._register(new f(a,this.model,r,s)),this.body=this._register(new C(a,this.model,this.pixelRatio,s))}layout(){this.body.layout()}}},65271:function(e,t,i){"use strict";i.d(t,{L3:function(){return g},aA:function(){return p},f4:function(){return h},nD:function(){return u},zq:function(){return c}});var n=i("47983"),o=i("66735"),r=i("45802"),s=i("36809"),a=i("76891"),l=i("32681");async function d(e,t,i,o){let s=i.ordered(e).map(i=>Promise.resolve(o(i,e,t)).then(void 0,e=>{(0,r.Cp)(e)})),a=await Promise.all(s);return(0,n.kX)(a.flat())}function u(e,t,i,n){return d(t,i,e,(e,t,i)=>e.provideDefinition(t,i,n))}function c(e,t,i,n){return d(t,i,e,(e,t,i)=>e.provideDeclaration(t,i,n))}function h(e,t,i,n){return d(t,i,e,(e,t,i)=>e.provideImplementation(t,i,n))}function g(e,t,i,n){return d(t,i,e,(e,t,i)=>e.provideTypeDefinition(t,i,n))}function p(e,t,i,n,o){return d(t,i,e,async(e,t,i)=>{let r=await e.provideReferences(t,i,{includeDeclaration:!0},o);if(!n||!r||2!==r.length)return r;let s=await e.provideReferences(t,i,{includeDeclaration:!1},o);return s&&1===s.length?s:r})}async function m(e){let t=await e(),i=new l.oQ(t,""),n=i.references.map(e=>e.link);return i.dispose(),n}(0,s.sb)("_executeDefinitionProvider",(e,t,i)=>{let n=u(e.get(a.p).definitionProvider,t,i,o.Ts.None);return m(()=>n)}),(0,s.sb)("_executeTypeDefinitionProvider",(e,t,i)=>{let n=g(e.get(a.p).typeDefinitionProvider,t,i,o.Ts.None);return m(()=>n)}),(0,s.sb)("_executeDeclarationProvider",(e,t,i)=>{let n=c(e.get(a.p).declarationProvider,t,i,o.Ts.None);return m(()=>n)}),(0,s.sb)("_executeReferenceProvider",(e,t,i)=>{let n=p(e.get(a.p).referenceProvider,t,i,!1,o.Ts.None);return m(()=>n)}),(0,s.sb)("_executeImplementationProvider",(e,t,i)=>{let n=h(e.get(a.p).implementationProvider,t,i,o.Ts.None);return m(()=>n)})},82352:function(e,t,i){"use strict";var n=i("22885"),o=i("36809"),r=i("94590"),s=i("29149"),a=i("60327"),l=i("28756"),d=i("69115"),u=i("53303");i("64243"),(0,o._K)(u.c.ID,u.c,2),(0,o.Qr)(n.kv),(0,o.Qr)(n.CJ),(0,o.Qr)(n.cW),(0,o.Qr)(n.HF),(0,o.Qr)(n.er),(0,o.Qr)(n.KN),(0,o.Qr)(n.lM),(0,o.Qr)(n.Rc),(0,o.Qr)(n.cE),(0,o.Qr)(n.rb),(0,o.Qr)(n.F_),(0,o.Qr)(n.O5),a.Ae.register(l.D5),a.Ae.register(d.k),(0,s.Ic)((e,t)=>{let i=e.getColor(r.CNo);i&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`))})},68289:function(e,t,i){"use strict";i.d(t,{Q:function(){return h}});var n,o,r=i("1966"),s=i("45802"),a=i("98212"),l=i("37764"),d=i("33037"),u=i("64141"),c=i("59730");(n=o||(o={})).Default={type:0},n.Pending=class e{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}},n.Active=class e{constructor(e){this.hints=e,this.type=1}};class h extends l.JT{constructor(e,t,i=h.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new a.Q5),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=o.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new l.XK),this.triggerChars=new d.q,this.retriggerChars=new d.q,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new r.vp(i),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(e=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(e=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(e=>this.onCursorChange(e))),this._register(this.editor.onDidChangeModelContent(e=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(e=>this.onDidType(e))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=o.Default,this.throttledDelayer.cancel(),!e&&this._onChangedHints.fire(void 0)}trigger(e,t){let i=this.editor.getModel();if(!i||!this.providers.has(i))return;let n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(n),t).catch(s.dL)}next(){if(1!==this.state.type)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e==e-1,n=this.editor.getOption(86).cycle;if((e<2||i)&&!n){this.cancel();return}this.updateActiveSignature(i&&n?0:t+1)}previous(){if(1!==this.state.type)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,n=this.editor.getOption(86).cycle;if((e<2||i)&&!n){this.cancel();return}this.updateActiveSignature(i&&n?e-1:t-1)}updateActiveSignature(e){1===this.state.type&&(this.state=new o.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){let t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;let n=this._pendingTriggers.reduce(g);this._pendingTriggers=[];let a={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;let l=this.editor.getModel(),d=this.editor.getPosition();this.state=new o.Pending((0,r.PG)(e=>(0,c.L)(this.providers,l,d,a,e)),i);try{let t=await this.state.request;if(e!==this.triggerId)return null==t||t.dispose(),!1;if(!t||!t.value.signatures||0===t.value.signatures.length)return null==t||t.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1;return this.state=new o.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0}catch(t){return e===this.triggerId&&(this.state=o.Default),(0,s.dL)(t),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();let e=this.editor.getModel();if(e)for(let t of this.providers.ordered(e)){for(let e of t.signatureHelpTriggerCharacters||[])if(e.length){let t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(let e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;let t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:u.WW.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:u.WW.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:u.WW.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,!this.triggerOnType&&this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function g(e,t){switch(t.triggerKind){case u.WW.Invoke:return t;case u.WW.ContentChange:return e;case u.WW.TriggerCharacter:default:return t}}h.DEFAULT_DELAY=120},80901:function(e,t,i){"use strict";i.d(t,{S:function(){return b}});var n,o=i("1966"),r=i("66735"),s=i("76115"),a=i("34308"),l=i("57796"),d=i("37764"),u=i("71482"),c=i("83112"),h=i("64141"),g=i("92654"),p=i("1327"),m=i("94479"),f=i("76891"),w=i("65910"),C=function(e,t){return function(i,n){t(i,n,e)}};let b=n=class extends p.X{constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,(0,m.NC)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),d.JT.None}provideWithTextEditor(e,t,i){let n=e.editor,o=this.getModel(n);return o?this._languageFeaturesService.documentSymbolProvider.has(o)?this.doProvideWithEditorSymbols(e,o,t,i):this.doProvideWithoutEditorSymbols(e,o,t,i):d.JT.None}doProvideWithoutEditorSymbols(e,t,i,n){let o=new d.SL;return this.provideLabelPick(i,(0,m.NC)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>{await 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}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;let i=new o.CR,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))}));return t.add((0,d.OF)(()=>i.complete(!1))),i.p}doProvideWithEditorSymbols(e,t,i,o){var s;let a;let u=e.editor,h=new d.SL;h.add(i.onDidAccept(t=>{let[n]=i.selectedItems;n&&n.range&&(this.gotoLocation(e,{range:n.range.selection,keyMods:i.keyMods,preserveFocus:t.inBackground}),!t.inBackground&&i.hide())})),h.add(i.onDidTriggerItemButton(({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())}));let g=this.getDocumentSymbols(t,o);let p=async e=>{null==a||a.dispose(!0),i.busy=!1,a=new r.AU(o),i.busy=!0;try{let t=(0,l.AO)(i.value.substr(n.PREFIX.length).trim()),r=await this.doGetSymbolPicks(g,t,void 0,a.token);if(o.isCancellationRequested)return;if(r.length>0){if(i.items=r,e&&0===t.original.length){let t=(0,w.dF)(r,t=>!!("separator"!==t.type&&t.range&&c.e.containsPosition(t.range.decoration,e)));t&&(i.activeItems=[t])}}else t.original.length>0?this.provideLabelPick(i,(0,m.NC)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,(0,m.NC)("noSymbolResults","No editor symbols"))}finally{!o.isCancellationRequested&&(i.busy=!1)}};return h.add(i.onDidChangeValue(()=>p(void 0))),p(null===(s=u.getSelection())||void 0===s?void 0:s.getPosition()),h.add(i.onDidChangeActive(()=>{let[e]=i.activeItems;e&&e.range&&(u.revealRangeInCenter(e.range.selection,0),this.addDecorations(u,e.range.decoration))})),h}async doGetSymbolPicks(e,t,i,o){var r,d;let g,p,f;let w=await e;if(o.isCancellationRequested)return[];let C=0===t.original.indexOf(n.SCOPE_PREFIX),b=C?1:0;t.values&&t.values.length>1?(g=(0,l.Ic)(t.values[0]),p=(0,l.Ic)(t.values.slice(1))):g=t;let S=null===(d=null===(r=this.options)||void 0===r?void 0:r.openSideBySideDirection)||void 0===d?void 0:d.call(r);S&&(f=[{iconClass:"right"===S?a.k.asClassName(s.l.splitHorizontal):a.k.asClassName(s.l.splitVertical),tooltip:"right"===S?(0,m.NC)("openToSide","Open to the Side"):(0,m.NC)("openToBottom","Open to the Bottom")}]);let k=[];for(let e=0;e<w.length;e++){let n,o,r,s,a=w[e],d=(0,u.fy)(a.name),m=`$(${h.uZ.toIcon(a.kind).id}) ${d}`,C=m.length-d.length,y=a.containerName;(null==i?void 0:i.extraContainerLabel)&&(y=y?`${i.extraContainerLabel} \u{2022} ${y}`:i.extraContainerLabel);if(t.original.length>b){let e=!1;if(g!==t&&([n,o]=(0,l.mt)(m,{...t,values:void 0},b,C),"number"==typeof n&&(e=!0)),"number"!=typeof n&&([n,o]=(0,l.mt)(m,g,b,C),"number"!=typeof n))continue;if(!e&&p){if(y&&p.original.length>0&&([r,s]=(0,l.mt)(y,p)),"number"!=typeof r)continue;"number"==typeof n&&(n+=r)}}let v=a.tags&&a.tags.indexOf(1)>=0;k.push({index:e,kind:a.kind,score:n,label:m,ariaLabel:(0,h.R4)(a.name,a.kind),description:y,highlights:v?void 0:{label:o,description:s},range:{selection:c.e.collapseToStart(a.selectionRange),decoration:a.range},strikethrough:v,buttons:f})}let x=k.sort((e,t)=>C?this.compareByKindAndScore(e,t):this.compareByScore(e,t)),N=[];if(C){let e,t;let i=0;function I(){t&&"number"==typeof e&&i>0&&(t.label=(0,u.WU)(v[e]||y,i))}for(let n of x)e!==n.kind?(I(),e=n.kind,i=1,t={type:"separator"},N.push(t)):i++,N.push(n);I()}else x.length>0&&(N=[{label:(0,m.NC)("symbols","symbols ({0})",k.length),type:"separator"},...x]);return N}compareByScore(e,t){if("number"!=typeof e.score&&"number"==typeof t.score)return 1;if("number"==typeof e.score&&"number"!=typeof t.score)return -1;if("number"==typeof e.score&&"number"==typeof t.score){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){let i=v[e.kind]||y,n=v[t.kind]||y,o=i.localeCompare(n);return 0===o?this.compareByScore(e,t):o}async getDocumentSymbols(e,t){let i=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}};b.PREFIX="@",b.SCOPE_PREFIX=":",b.PREFIX_BY_CATEGORY=`${n.PREFIX}${n.SCOPE_PREFIX}`,b=n=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([C(0,f.p),C(1,g.Je)],b);let y=(0,m.NC)("property","properties ({0})"),v={5:(0,m.NC)("method","methods ({0})"),11:(0,m.NC)("function","functions ({0})"),8:(0,m.NC)("_constructor","constructors ({0})"),12:(0,m.NC)("variable","variables ({0})"),4:(0,m.NC)("class","classes ({0})"),22:(0,m.NC)("struct","structs ({0})"),23:(0,m.NC)("event","events ({0})"),24:(0,m.NC)("operator","operators ({0})"),10:(0,m.NC)("interface","interfaces ({0})"),2:(0,m.NC)("namespace","namespaces ({0})"),3:(0,m.NC)("package","packages ({0})"),25:(0,m.NC)("typeParameter","type parameters ({0})"),1:(0,m.NC)("modules","modules ({0})"),6:(0,m.NC)("property","properties ({0})"),9:(0,m.NC)("enum","enumerations ({0})"),21:(0,m.NC)("enumMember","enumeration members ({0})"),14:(0,m.NC)("string","strings ({0})"),0:(0,m.NC)("file","files ({0})"),17:(0,m.NC)("array","arrays ({0})"),15:(0,m.NC)("number","numbers ({0})"),16:(0,m.NC)("boolean","booleans ({0})"),18:(0,m.NC)("object","objects ({0})"),19:(0,m.NC)("key","keys ({0})"),7:(0,m.NC)("field","fields ({0})"),13:(0,m.NC)("constant","constants ({0})")}},29218:function(e,t,i){"use strict";i.d(t,{K:function(){return s}});var n=i("47983"),o=i("83112"),r=i("98925");class s{static async create(e,t){if(!t.getOption(118).localityBonus||!t.hasModel())return s.None;let i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return s.None;let[l]=await new r.x().provideSelectionRanges(i,[a]);if(0===l.length)return s.None;let d=await e.computeWordRanges(i.uri,l[0].range);if(!d)return s.None;let u=i.getWordUntilPosition(a);return delete d[u.word],new class extends s{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2097152;let r=d["string"==typeof i.label?i.label:i.label.label];if((0,n.XY)(r))return 2097152;let s=(0,n.ry)(r,o.e.fromPositions(e),o.e.compareRangesUsingStarts),u=s>=0?r[s]:r[Math.max(0,~s-1)],c=l.length;for(let e of l){if(!o.e.containsRange(e.range,u))break;c-=1}return c}}}}s.None=new class extends s{distance(){return 0}}},12246:function(e,t,i){"use strict";var n=i("25907"),o=i("36809"),r=i("94479");class s extends o.R6{constructor(){super({id:"editor.action.forceRetokenize",label:r.NC("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;let i=t.getModel();i.tokenization.resetTokenization();let o=new n.G;i.tokenization.forceTokenization(i.getLineCount()),o.stop(),console.log(`tokenization took ${o.elapsed()}`)}}(0,o.Qr)(s)},7277:function(e,t,i){"use strict";var n=i("36809"),o=i("49756"),r=i("30410"),s=i("91989"),a=i("42962");class l extends n.R6{constructor(){super({id:"editor.action.toggleHighContrast",label:r.xi.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){let i=e.get(o.Z),n=i.getColorTheme();(0,s.c3)(n.type)?(i.setTheme(this._originalThemeName||((0,s._T)(n.type)?a.rW:a.TG)),this._originalThemeName=null):(i.setTheme((0,s._T)(n.type)?a.kR:a.MU),this._originalThemeName=n.themeName)}}(0,n.Qr)(l)},49756:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});let n=(0,i("95449").yh)("themeService")},46547:function(e,t,i){"use strict";let n,o;i.r(t),i.d(t,{CompletionAdapter:function(){return ts},DefinitionAdapter:function(){return tp},DiagnosticsAdapter:function(){return tr},DocumentColorAdapter:function(){return tx},DocumentFormattingEditProvider:function(){return tv},DocumentHighlightAdapter:function(){return tg},DocumentLinkAdapter:function(){return ty},DocumentRangeFormattingEditProvider:function(){return tS},DocumentSymbolAdapter:function(){return tC},FoldingRangeAdapter:function(){return tN},HoverAdapter:function(){return tc},ReferenceAdapter:function(){return tf},RenameAdapter:function(){return tw},SelectionRangeAdapter:function(){return tI},WorkerManager:function(){return tt},fromPosition:function(){return ta},fromRange:function(){return tl},getWorker:function(){return tT},setupMode:function(){return tF},toRange:function(){return td},toTextEdit:function(){return tu}});var r,s,a,l,d,u,c,h,g,p,m,f,w,C,b,y,v,S,k,x,N,I,_,D,L,E,O,P,M,A,T,R,F,W,V,B,H,z,j,U,K,q,$,G,Q,J,X,Y,Z,ee,et,ei,en,eo,er,es,ea,el,ed,eu,ec,eh,eg,ep,em,ef,ew,eC,eb,ey,ev,eS,ek,ex,eN,eI,e_,eD,eL,eE,eO,eP,eM,eA,eT,eR,eF,eW,eV,eB,eH,ez,ej,eU,eK,eq,e$,eG,eQ,eJ,eX,eY,eZ,e0,e1,e2,e3,e4=i("76761"),e5=Object.defineProperty,e7=Object.getOwnPropertyDescriptor,e6=Object.getOwnPropertyNames,e9=Object.prototype.hasOwnProperty,e8=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of e6(t))!e9.call(e,o)&&o!==i&&e5(e,o,{get:()=>t[o],enumerable:!(n=e7(t,o))||n.enumerable});return e},te={};e8(te,n=e4,"default"),o&&e8(o,n,"default");var tt=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!!this._worker)Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),!this._client&&(this._worker=te.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}};(r=Y||(Y={})).MIN_VALUE=-2147483648,r.MAX_VALUE=2147483647,(s=Z||(Z={})).MIN_VALUE=0,s.MAX_VALUE=2147483647,(a=ee||(ee={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=Z.MAX_VALUE),t===Number.MAX_VALUE&&(t=Z.MAX_VALUE),{line:e,character:t}},a.is=function(e){return e1.objectLiteral(e)&&e1.uinteger(e.line)&&e1.uinteger(e.character)},(l=et||(et={})).create=function(e,t,i,n){if(e1.uinteger(e)&&e1.uinteger(t)&&e1.uinteger(i)&&e1.uinteger(n))return{start:ee.create(e,t),end:ee.create(i,n)};if(ee.is(e)&&ee.is(t))return{start:e,end:t};throw Error("Range#create called with invalid arguments["+e+", "+t+", "+i+", "+n+"]")},l.is=function(e){return e1.objectLiteral(e)&&ee.is(e.start)&&ee.is(e.end)},(d=ei||(ei={})).create=function(e,t){return{uri:e,range:t}},d.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.string(e.uri)||e1.undefined(e.uri))},(u=en||(en={})).create=function(e,t,i,n){return{targetUri:e,targetRange:t,targetSelectionRange:i,originSelectionRange:n}},u.is=function(e){return e1.defined(e)&&et.is(e.targetRange)&&e1.string(e.targetUri)&&(et.is(e.targetSelectionRange)||e1.undefined(e.targetSelectionRange))&&(et.is(e.originSelectionRange)||e1.undefined(e.originSelectionRange))},(c=eo||(eo={})).create=function(e,t,i,n){return{red:e,green:t,blue:i,alpha:n}},c.is=function(e){return e1.numberRange(e.red,0,1)&&e1.numberRange(e.green,0,1)&&e1.numberRange(e.blue,0,1)&&e1.numberRange(e.alpha,0,1)},(h=er||(er={})).create=function(e,t){return{range:e,color:t}},h.is=function(e){return et.is(e.range)&&eo.is(e.color)},(g=es||(es={})).create=function(e,t,i){return{label:e,textEdit:t,additionalTextEdits:i}},g.is=function(e){return e1.string(e.label)&&(e1.undefined(e.textEdit)||em.is(e))&&(e1.undefined(e.additionalTextEdits)||e1.typedArray(e.additionalTextEdits,em.is))},(p=ea||(ea={})).Comment="comment",p.Imports="imports",p.Region="region",(m=el||(el={})).create=function(e,t,i,n,o){var r={startLine:e,endLine:t};return e1.defined(i)&&(r.startCharacter=i),e1.defined(n)&&(r.endCharacter=n),e1.defined(o)&&(r.kind=o),r},m.is=function(e){return e1.uinteger(e.startLine)&&e1.uinteger(e.startLine)&&(e1.undefined(e.startCharacter)||e1.uinteger(e.startCharacter))&&(e1.undefined(e.endCharacter)||e1.uinteger(e.endCharacter))&&(e1.undefined(e.kind)||e1.string(e.kind))},(f=ed||(ed={})).create=function(e,t){return{location:e,message:t}},f.is=function(e){return e1.defined(e)&&ei.is(e.location)&&e1.string(e.message)},(w=eu||(eu={})).Error=1,w.Warning=2,w.Information=3,w.Hint=4,(C=ec||(ec={})).Unnecessary=1,C.Deprecated=2,(eh||(eh={})).is=function(e){return null!=e&&e1.string(e.href)},(b=eg||(eg={})).create=function(e,t,i,n,o,r){var s={range:e,message:t};return e1.defined(i)&&(s.severity=i),e1.defined(n)&&(s.code=n),e1.defined(o)&&(s.source=o),e1.defined(r)&&(s.relatedInformation=r),s},b.is=function(e){var t;return e1.defined(e)&&et.is(e.range)&&e1.string(e.message)&&(e1.number(e.severity)||e1.undefined(e.severity))&&(e1.integer(e.code)||e1.string(e.code)||e1.undefined(e.code))&&(e1.undefined(e.codeDescription)||e1.string(null===(t=e.codeDescription)||void 0===t?void 0:t.href))&&(e1.string(e.source)||e1.undefined(e.source))&&(e1.undefined(e.relatedInformation)||e1.typedArray(e.relatedInformation,ed.is))},(y=ep||(ep={})).create=function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var o={title:e,command:t};return e1.defined(i)&&i.length>0&&(o.arguments=i),o},y.is=function(e){return e1.defined(e)&&e1.string(e.title)&&e1.string(e.command)},(v=em||(em={})).replace=function(e,t){return{range:e,newText:t}},v.insert=function(e,t){return{range:{start:e,end:e},newText:t}},v.del=function(e){return{range:e,newText:""}},v.is=function(e){return e1.objectLiteral(e)&&e1.string(e.newText)&&et.is(e.range)},(S=ef||(ef={})).create=function(e,t,i){var n={label:e};return void 0!==t&&(n.needsConfirmation=t),void 0!==i&&(n.description=i),n},S.is=function(e){return void 0!==e&&e1.objectLiteral(e)&&e1.string(e.label)&&(e1.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(e1.string(e.description)||void 0===e.description)},(ew||(ew={})).is=function(e){return"string"==typeof e},(k=eC||(eC={})).replace=function(e,t,i){return{range:e,newText:t,annotationId:i}},k.insert=function(e,t,i){return{range:{start:e,end:e},newText:t,annotationId:i}},k.del=function(e,t){return{range:e,newText:"",annotationId:t}},k.is=function(e){return em.is(e)&&(ef.is(e.annotationId)||ew.is(e.annotationId))},(x=eb||(eb={})).create=function(e,t){return{textDocument:e,edits:t}},x.is=function(e){return e1.defined(e)&&eI.is(e.textDocument)&&Array.isArray(e.edits)},(N=ey||(ey={})).create=function(e,t,i){var n={kind:"create",uri:e};return void 0!==t&&(void 0!==t.overwrite||void 0!==t.ignoreIfExists)&&(n.options=t),void 0!==i&&(n.annotationId=i),n},N.is=function(e){return e&&"create"===e.kind&&e1.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||e1.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||e1.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||ew.is(e.annotationId))},(I=ev||(ev={})).create=function(e,t,i,n){var o={kind:"rename",oldUri:e,newUri:t};return void 0!==i&&(void 0!==i.overwrite||void 0!==i.ignoreIfExists)&&(o.options=i),void 0!==n&&(o.annotationId=n),o},I.is=function(e){return e&&"rename"===e.kind&&e1.string(e.oldUri)&&e1.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||e1.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||e1.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||ew.is(e.annotationId))},(_=eS||(eS={})).create=function(e,t,i){var n={kind:"delete",uri:e};return void 0!==t&&(void 0!==t.recursive||void 0!==t.ignoreIfNotExists)&&(n.options=t),void 0!==i&&(n.annotationId=i),n},_.is=function(e){return e&&"delete"===e.kind&&e1.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||e1.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||e1.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||ew.is(e.annotationId))},(ek||(ek={})).is=function(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every(function(e){return e1.string(e.kind)?ey.is(e)||ev.is(e)||eS.is(e):eb.is(e)}))};var ti=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,i){var n,o;if(void 0===i?n=em.insert(e,t):ew.is(i)?(o=i,n=eC.insert(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),n=eC.insert(e,t,o)),this.edits.push(n),void 0!==o)return o},e.prototype.replace=function(e,t,i){var n,o;if(void 0===i?n=em.replace(e,t):ew.is(i)?(o=i,n=eC.replace(e,t,i)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),n=eC.replace(e,t,o)),this.edits.push(n),void 0!==o)return o},e.prototype.delete=function(e,t){var i,n;if(void 0===t?i=em.del(e):ew.is(t)?(n=t,i=eC.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),i=eC.del(e,n)),this.edits.push(i),void 0!==n)return n},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw Error("Text edit change is not configured to manage change annotations.")},e}(),tn=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var i;if(ew.is(e)?i=e:(i=this.nextId(),t=e),void 0!==this._annotations[i])throw Error("Id "+i+" is already in use.");if(void 0===t)throw Error("No annotation provided for id "+i);return this._annotations[i]=t,this._size++,i},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new tn(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach(function(e){if(eb.is(e)){var i=new ti(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=i}})):e.changes&&Object.keys(e.changes).forEach(function(i){var n=new ti(e.changes[i]);t._textEditChanges[i]=n})):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(eI.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version},i=this._textEditChanges[t.uri];if(!i){var n=[],o={textDocument:t,edits:n};this._workspaceEdit.documentChanges.push(o),i=new ti(n,this._changeAnnotations),this._textEditChanges[t.uri]=i}return i}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw Error("Workspace edit is not configured for normal text edit changes.");var i=this._textEditChanges[e];if(!i){var n=[];this._workspaceEdit.changes[e]=n,i=new ti(n),this._textEditChanges[e]=i}return i},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new tn,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,i){var n,o,r;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(ef.is(t)||ew.is(t)?n=t:i=t,void 0===n?o=ey.create(e,i):(r=ew.is(n)?n:this._changeAnnotations.manage(n),o=ey.create(e,i,r)),this._workspaceEdit.documentChanges.push(o),void 0!==r)return r},e.prototype.renameFile=function(e,t,i,n){var o,r,s;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(ef.is(i)||ew.is(i)?o=i:n=i,void 0===o?r=ev.create(e,t,n):(s=ew.is(o)?o:this._changeAnnotations.manage(o),r=ev.create(e,t,n,s)),this._workspaceEdit.documentChanges.push(r),void 0!==s)return s},e.prototype.deleteFile=function(e,t,i){var n,o,r;if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw Error("Workspace edit is not configured for document changes.");if(ef.is(t)||ew.is(t)?n=t:i=t,void 0===n?o=eS.create(e,i):(r=ew.is(n)?n:this._changeAnnotations.manage(n),o=eS.create(e,i,r)),this._workspaceEdit.documentChanges.push(o),void 0!==r)return r}}(),(D=ex||(ex={})).create=function(e){return{uri:e}},D.is=function(e){return e1.defined(e)&&e1.string(e.uri)},(L=eN||(eN={})).create=function(e,t){return{uri:e,version:t}},L.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&e1.integer(e.version)},(E=eI||(eI={})).create=function(e,t){return{uri:e,version:t}},E.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&(null===e.version||e1.integer(e.version))},(O=e_||(e_={})).create=function(e,t,i,n){return{uri:e,languageId:t,version:i,text:n}},O.is=function(e){return e1.defined(e)&&e1.string(e.uri)&&e1.string(e.languageId)&&e1.integer(e.version)&&e1.string(e.text)},(P=eD||(eD={})).PlainText="plaintext",P.Markdown="markdown",(M=eD||(eD={})).is=function(e){return e===M.PlainText||e===M.Markdown},(eL||(eL={})).is=function(e){return e1.objectLiteral(e)&&eD.is(e.kind)&&e1.string(e.value)},(A=eE||(eE={})).Text=1,A.Method=2,A.Function=3,A.Constructor=4,A.Field=5,A.Variable=6,A.Class=7,A.Interface=8,A.Module=9,A.Property=10,A.Unit=11,A.Value=12,A.Enum=13,A.Keyword=14,A.Snippet=15,A.Color=16,A.File=17,A.Reference=18,A.Folder=19,A.EnumMember=20,A.Constant=21,A.Struct=22,A.Event=23,A.Operator=24,A.TypeParameter=25,(T=eO||(eO={})).PlainText=1,T.Snippet=2,(eP||(eP={})).Deprecated=1,(R=eM||(eM={})).create=function(e,t,i){return{newText:e,insert:t,replace:i}},R.is=function(e){return e&&e1.string(e.newText)&&et.is(e.insert)&&et.is(e.replace)},(F=eA||(eA={})).asIs=1,F.adjustIndentation=2,(eT||(eT={})).create=function(e){return{label:e}},(eR||(eR={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(W=eF||(eF={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},W.is=function(e){return e1.string(e)||e1.objectLiteral(e)&&e1.string(e.language)&&e1.string(e.value)},(eW||(eW={})).is=function(e){return!!e&&e1.objectLiteral(e)&&(eL.is(e.contents)||eF.is(e.contents)||e1.typedArray(e.contents,eF.is))&&(void 0===e.range||et.is(e.range))},(eV||(eV={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(eB||(eB={})).create=function(e,t){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];var o={label:e};return e1.defined(t)&&(o.documentation=t),e1.defined(i)?o.parameters=i:o.parameters=[],o},(V=eH||(eH={})).Text=1,V.Read=2,V.Write=3,(ez||(ez={})).create=function(e,t){var i={range:e};return e1.number(t)&&(i.kind=t),i},(B=ej||(ej={})).File=1,B.Module=2,B.Namespace=3,B.Package=4,B.Class=5,B.Method=6,B.Property=7,B.Field=8,B.Constructor=9,B.Enum=10,B.Interface=11,B.Function=12,B.Variable=13,B.Constant=14,B.String=15,B.Number=16,B.Boolean=17,B.Array=18,B.Object=19,B.Key=20,B.Null=21,B.EnumMember=22,B.Struct=23,B.Event=24,B.Operator=25,B.TypeParameter=26,(eU||(eU={})).Deprecated=1,(eK||(eK={})).create=function(e,t,i,n,o){var r={name:e,kind:t,location:{uri:n,range:i}};return o&&(r.containerName=o),r},(H=eq||(eq={})).create=function(e,t,i,n,o,r){var s={name:e,detail:t,kind:i,range:n,selectionRange:o};return void 0!==r&&(s.children=r),s},H.is=function(e){return e&&e1.string(e.name)&&e1.number(e.kind)&&et.is(e.range)&&et.is(e.selectionRange)&&(void 0===e.detail||e1.string(e.detail))&&(void 0===e.deprecated||e1.boolean(e.deprecated))&&(void 0===e.children||Array.isArray(e.children))&&(void 0===e.tags||Array.isArray(e.tags))},(z=e$||(e$={})).Empty="",z.QuickFix="quickfix",z.Refactor="refactor",z.RefactorExtract="refactor.extract",z.RefactorInline="refactor.inline",z.RefactorRewrite="refactor.rewrite",z.Source="source",z.SourceOrganizeImports="source.organizeImports",z.SourceFixAll="source.fixAll",(j=eG||(eG={})).create=function(e,t){var i={diagnostics:e};return null!=t&&(i.only=t),i},j.is=function(e){return e1.defined(e)&&e1.typedArray(e.diagnostics,eg.is)&&(void 0===e.only||e1.typedArray(e.only,e1.string))},(U=eQ||(eQ={})).create=function(e,t,i){var n={title:e},o=!0;return"string"==typeof t?(o=!1,n.kind=t):ep.is(t)?n.command=t:n.edit=t,o&&void 0!==i&&(n.kind=i),n},U.is=function(e){return e&&e1.string(e.title)&&(void 0===e.diagnostics||e1.typedArray(e.diagnostics,eg.is))&&(void 0===e.kind||e1.string(e.kind))&&(void 0!==e.edit||void 0!==e.command)&&(void 0===e.command||ep.is(e.command))&&(void 0===e.isPreferred||e1.boolean(e.isPreferred))&&(void 0===e.edit||ek.is(e.edit))},(K=eJ||(eJ={})).create=function(e,t){var i={range:e};return e1.defined(t)&&(i.data=t),i},K.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.undefined(e.command)||ep.is(e.command))},(q=eX||(eX={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},q.is=function(e){return e1.defined(e)&&e1.uinteger(e.tabSize)&&e1.boolean(e.insertSpaces)},($=eY||(eY={})).create=function(e,t,i){return{range:e,target:t,data:i}},$.is=function(e){return e1.defined(e)&&et.is(e.range)&&(e1.undefined(e.target)||e1.string(e.target))},(G=eZ||(eZ={})).create=function(e,t){return{range:e,parent:t}},G.is=function(e){return void 0!==e&&et.is(e.range)&&(void 0===e.parent||G.is(e.parent))},(Q=e0||(e0={})).create=function(e,t,i,n){return new to(e,t,i,n)},Q.is=function(e){return!!(e1.defined(e)&&e1.string(e.uri)&&(e1.undefined(e.languageId)||e1.string(e.languageId))&&e1.uinteger(e.lineCount)&&e1.func(e.getText)&&e1.func(e.positionAt)&&e1.func(e.offsetAt))},Q.applyEdits=function(e,t){for(var i=e.getText(),n=function e(t,i){if(t.length<=1)return t;var n=t.length/2|0,o=t.slice(0,n),r=t.slice(n);e(o,i),e(r,i);for(var s=0,a=0,l=0;s<o.length&&a<r.length;)0>=i(o[s],r[a])?t[l++]=o[s++]:t[l++]=r[a++];for(;s<o.length;)t[l++]=o[s++];for(;a<r.length;)t[l++]=r[a++];return t}(t,function(e,t){var i=e.range.start.line-t.range.start.line;return 0===i?e.range.start.character-t.range.start.character:i}),o=i.length,r=n.length-1;r>=0;r--){var s=n[r],a=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(l<=o)i=i.substring(0,a)+s.newText+i.substring(l,i.length);else throw Error("Overlapping edit");o=a}return i};var to=function(){function e(e,t,i,n){this._uri=e,this._languageId=t,this._version=i,this._content=n,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,i=!0,n=0;n<t.length;n++){i&&(e.push(n),i=!1);var o=t.charAt(n);i="\r"===o||"\n"===o,"\r"===o&&n+1<t.length&&"\n"===t.charAt(n+1)&&n++}i&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),i=0,n=t.length;if(0===n)return ee.create(0,e);for(;i<n;){var o=Math.floor((i+n)/2);t[o]>e?n=o:i=o+1}var r=i-1;return ee.create(r,e-t[r])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var i=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,n),i)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();J=e1||(e1={}),X=Object.prototype.toString,J.defined=function(e){return void 0!==e},J.undefined=function(e){return void 0===e},J.boolean=function(e){return!0===e||!1===e},J.string=function(e){return"[object String]"===X.call(e)},J.number=function(e){return"[object Number]"===X.call(e)},J.numberRange=function(e,t,i){return"[object Number]"===X.call(e)&&t<=e&&e<=i},J.integer=function(e){return"[object Number]"===X.call(e)&&-2147483648<=e&&e<=2147483647},J.uinteger=function(e){return"[object Number]"===X.call(e)&&0<=e&&e<=2147483647},J.func=function(e){return"[object Function]"===X.call(e)},J.objectLiteral=function(e){return null!==e&&"object"==typeof e},J.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)};var tr=class{constructor(e,t,i){this._languageId=e,this._worker=t,this._disposables=[],this._listener=Object.create(null);let n=e=>{let t,i=e.getLanguageId();i===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent(()=>{window.clearTimeout(t),t=window.setTimeout(()=>this._doValidate(e.uri,i),500)}),this._doValidate(e.uri,i))},o=e=>{te.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),i=this._listener[t];i&&(i.dispose(),delete this._listener[t])};this._disposables.push(te.editor.onDidCreateModel(n)),this._disposables.push(te.editor.onWillDisposeModel(o)),this._disposables.push(te.editor.onDidChangeModelLanguage(e=>{o(e.model),n(e.model)})),this._disposables.push(i(e=>{te.editor.getModels().forEach(e=>{e.getLanguageId()===this._languageId&&(o(e),n(e))})})),this._disposables.push({dispose:()=>{for(let e in te.editor.getModels().forEach(o),this._listener)this._listener[e].dispose()}}),te.editor.getModels().forEach(n)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,t){this._worker(e).then(t=>t.doValidation(e.toString())).then(i=>{let n=i.map(t=>(function(e,t){let i="number"==typeof t.code?String(t.code):t.code;return{severity:function(e){switch(e){case eu.Error:return te.MarkerSeverity.Error;case eu.Warning:return te.MarkerSeverity.Warning;case eu.Information:return te.MarkerSeverity.Info;case eu.Hint:return te.MarkerSeverity.Hint;default:return te.MarkerSeverity.Info}}(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:i,source:t.source}})(e,t)),o=te.editor.getModel(e);o&&o.getLanguageId()===t&&te.editor.setModelMarkers(o,t,n)}).then(void 0,e=>{console.error(e)})}},ts=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,i,n){let o=e.uri;return this._worker(o).then(e=>e.doComplete(o.toString(),ta(t))).then(i=>{if(!i)return;let n=e.getWordUntilPosition(t),o=new te.Range(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn),r=i.items.map(e=>{let t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:function(e){return e&&"editor.action.triggerSuggest"===e.command?{id:e.command,title:e.title,arguments:e.arguments}:void 0}(e.command),range:o,kind:function(e){let t=te.languages.CompletionItemKind;switch(e){case eE.Text:return t.Text;case eE.Method:return t.Method;case eE.Function:return t.Function;case eE.Constructor:return t.Constructor;case eE.Field:return t.Field;case eE.Variable:return t.Variable;case eE.Class:return t.Class;case eE.Interface:return t.Interface;case eE.Module:return t.Module;case eE.Property:break;case eE.Unit:return t.Unit;case eE.Value:return t.Value;case eE.Enum:return t.Enum;case eE.Keyword:return t.Keyword;case eE.Snippet:return t.Snippet;case eE.Color:return t.Color;case eE.File:return t.File;case eE.Reference:return t.Reference}return t.Property}(e.kind)};return e.textEdit&&(function(e){return void 0!==e.insert&&void 0!==e.replace}(e.textEdit)?t.range={insert:td(e.textEdit.insert),replace:td(e.textEdit.replace)}:t.range=td(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(tu)),e.insertTextFormat===eO.Snippet&&(t.insertTextRules=te.languages.CompletionItemInsertTextRule.InsertAsSnippet),t});return{isIncomplete:i.isIncomplete,suggestions:r}})}};function ta(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function tl(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function td(e){if(e)return new te.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function tu(e){if(e)return{range:td(e.range),text:e.newText}}var tc=class{constructor(e){this._worker=e}provideHover(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.doHover(n.toString(),ta(t))).then(e=>{if(e)return{range:td(e.range),contents:function(e){if(e)return Array.isArray(e)?e.map(th):[th(e)]}(e.contents)}})}};function th(e){var t;if("string"==typeof e)return{value:e};if((t=e)&&"object"==typeof t&&"string"==typeof t.kind)return"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value};return{value:"```"+e.language+"\n"+e.value+"\n```\n"}}var tg=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.findDocumentHighlights(n.toString(),ta(t))).then(e=>{if(e)return e.map(e=>({range:td(e.range),kind:function(e){switch(e){case eH.Read:return te.languages.DocumentHighlightKind.Read;case eH.Write:return te.languages.DocumentHighlightKind.Write;case eH.Text:}return te.languages.DocumentHighlightKind.Text}(e.kind)}))})}},tp=class{constructor(e){this._worker=e}provideDefinition(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.findDefinition(n.toString(),ta(t))).then(e=>{if(e)return[tm(e)]})}};function tm(e){return{uri:te.Uri.parse(e.uri),range:td(e.range)}}var tf=class{constructor(e){this._worker=e}provideReferences(e,t,i,n){let o=e.uri;return this._worker(o).then(e=>e.findReferences(o.toString(),ta(t))).then(e=>{if(e)return e.map(tm)})}},tw=class{constructor(e){this._worker=e}provideRenameEdits(e,t,i,n){let o=e.uri;return this._worker(o).then(e=>e.doRename(o.toString(),ta(t),i)).then(e=>(function(e){if(!e||!e.changes)return;let t=[];for(let i in e.changes){let n=te.Uri.parse(i);for(let o of e.changes[i])t.push({resource:n,versionId:void 0,textEdit:{range:td(o.range),text:o.newText}})}return{edits:t}})(e))}},tC=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentSymbols(i.toString())).then(e=>{if(e)return e.map(e=>(function(e){return"children"in e})(e)?function e(t){return{name:t.name,detail:t.detail??"",kind:tb(t.kind),range:td(t.range),selectionRange:td(t.selectionRange),tags:t.tags??[],children:(t.children??[]).map(t=>e(t))}}(e):{name:e.name,detail:"",containerName:e.containerName,kind:tb(e.kind),range:td(e.location.range),selectionRange:td(e.location.range),tags:[]})})}};function tb(e){let t=te.languages.SymbolKind;switch(e){case ej.File:return t.File;case ej.Module:return t.Module;case ej.Namespace:return t.Namespace;case ej.Package:return t.Package;case ej.Class:return t.Class;case ej.Method:return t.Method;case ej.Property:return t.Property;case ej.Field:return t.Field;case ej.Constructor:return t.Constructor;case ej.Enum:return t.Enum;case ej.Interface:return t.Interface;case ej.Function:break;case ej.Variable:return t.Variable;case ej.Constant:return t.Constant;case ej.String:return t.String;case ej.Number:return t.Number;case ej.Boolean:return t.Boolean;case ej.Array:return t.Array}return t.Function}var ty=class{constructor(e){this._worker=e}provideLinks(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentLinks(i.toString())).then(e=>{if(e)return{links:e.map(e=>({range:td(e.range),url:e.target}))}})}},tv=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.format(n.toString(),null,tk(t)).then(e=>{if(e&&0!==e.length)return e.map(tu)}))}},tS=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,i,n){let o=e.uri;return this._worker(o).then(e=>e.format(o.toString(),tl(t),tk(i)).then(e=>{if(e&&0!==e.length)return e.map(tu)}))}};function tk(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var tx=class{constructor(e){this._worker=e}provideDocumentColors(e,t){let i=e.uri;return this._worker(i).then(e=>e.findDocumentColors(i.toString())).then(e=>{if(e)return e.map(e=>({color:e.color,range:td(e.range)}))})}provideColorPresentations(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getColorPresentations(n.toString(),t.color,tl(t.range))).then(e=>{if(e)return e.map(e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=tu(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(tu)),t})})}},tN=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getFoldingRanges(n.toString(),t)).then(e=>{if(e)return e.map(e=>{let t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case ea.Comment:return te.languages.FoldingRangeKind.Comment;case ea.Imports:return te.languages.FoldingRangeKind.Imports;case ea.Region:return te.languages.FoldingRangeKind.Region}}(e.kind)),t})})}},tI=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,i){let n=e.uri;return this._worker(n).then(e=>e.getSelectionRanges(n.toString(),t.map(ta))).then(e=>{if(e)return e.map(e=>{let t=[];for(;e;)t.push({range:td(e.range)}),e=e.parent;return t})})}};function t_(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function tD(e){return 10===e||13===e||8232===e||8233===e}function tL(e){return e>=48&&e<=57}(e2||(e2={})).DEFAULT={allowTrailingComma:!1};var tE=function(e,t){void 0===t&&(t=!1);var i=e.length,n=0,o="",r=0,s=16,a=0,l=0,d=0,u=0,c=0;function h(){if(o="",c=0,r=n,l=a,u=d,n>=i)return r=i,s=17;var t=e.charCodeAt(n);if(t_(t)){do n++,o+=String.fromCharCode(t),t=e.charCodeAt(n);while(t_(t));return s=15}if(tD(t))return n++,o+=String.fromCharCode(t),13===t&&10===e.charCodeAt(n)&&(n++,o+="\n"),a++,d=n,s=14;switch(t){case 123:return n++,s=1;case 125:return n++,s=2;case 91:return n++,s=3;case 93:return n++,s=4;case 58:return n++,s=6;case 44:return n++,s=5;case 34:return n++,o=function(){for(var t="",o=n;;){if(n>=i){t+=e.substring(o,n),c=2;break}var r=e.charCodeAt(n);if(34===r){t+=e.substring(o,n),n++;break}if(92===r){if(t+=e.substring(o,n),++n>=i){c=2;break}switch(e.charCodeAt(n++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+=" ";break;case 117:var s=function(t,i){for(var o=0,r=0;o<4||!i;){var s=e.charCodeAt(n);if(s>=48&&s<=57)r=16*r+s-48;else if(s>=65&&s<=70)r=16*r+s-65+10;else if(s>=97&&s<=102)r=16*r+s-97+10;else break;n++,o++}return o<t&&(r=-1),r}(4,!0);s>=0?t+=String.fromCharCode(s):c=4;break;default:c=5}o=n;continue}if(r>=0&&r<=31){if(tD(r)){t+=e.substring(o,n),c=2;break}c=6}n++}return t}(),s=10;case 47:var h=n-1;if(47===e.charCodeAt(n+1)){for(n+=2;n<i&&!tD(e.charCodeAt(n));){;n++}return o=e.substring(h,n),s=12}if(42===e.charCodeAt(n+1)){n+=2;for(var g=i-1,p=!1;n<g;){var m=e.charCodeAt(n);if(42===m&&47===e.charCodeAt(n+1)){n+=2,p=!0;break}n++,tD(m)&&(13===m&&10===e.charCodeAt(n)&&n++,a++,d=n)}return!p&&(n++,c=1),o=e.substring(h,n),s=13}return o+=String.fromCharCode(t),n++,s=16;case 45:if(o+=String.fromCharCode(t),++n===i||!tL(e.charCodeAt(n)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=function(){var t=n;if(48===e.charCodeAt(n))n++;else for(n++;n<e.length&&tL(e.charCodeAt(n));)n++;if(n<e.length&&46===e.charCodeAt(n)){if(!(++n<e.length&&tL(e.charCodeAt(n))))return c=3,e.substring(t,n);for(n++;n<e.length&&tL(e.charCodeAt(n));)n++}var i=n;if(n<e.length&&(69===e.charCodeAt(n)||101===e.charCodeAt(n))){if((++n<e.length&&43===e.charCodeAt(n)||45===e.charCodeAt(n))&&n++,n<e.length&&tL(e.charCodeAt(n))){for(n++;n<e.length&&tL(e.charCodeAt(n));)n++;i=n}else c=3}return e.substring(t,i)}(),s=11;default:for(;n<i&&function(e){if(t_(e)||tD(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}(t);)n++,t=e.charCodeAt(n);if(r!==n){switch(o=e.substring(r,n)){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return o+=String.fromCharCode(t),n++,s=16}}return{setPosition:function(e){n=e,o="",r=0,s=16,c=0},getPosition:function(){return n},scan:t?function(){var e;do e=h();while(e>=12&&e<=15);return e}:h,getToken:function(){return s},getTokenValue:function(){return o},getTokenOffset:function(){return r},getTokenLength:function(){return n-r},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return r-u},getTokenError:function(){return c}}},tO="delimiter.bracket.json",tP="delimiter.array.json",tM=class e{constructor(e,t){this.parent=e,this.type=t}static pop(e){return e?e.parent:null}static push(t,i){return new e(t,i)}static equals(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;for(;e&&t&&e!==t;){;if(e.type!==t.type)return!1;e=e.parent,t=t.parent}return!0}},tA=class e{constructor(e,t,i,n){this._state=e,this.scanError=t,this.lastWasColon=i,this.parents=n}clone(){return new e(this._state,this.scanError,this.lastWasColon,this.parents)}equals(t){return t===this||!!t&&t instanceof e&&this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon&&tM.equals(this.parents,t.parents)}getStateData(){return this._state}setStateData(e){this._state=e}};function tT(){return new Promise((e,t)=>{if(!e3)return t("JSON not registered!");e(e3)})}var tR=class extends tr{constructor(e,t,i){super(e,t,i.onDidChange),this._disposables.push(te.editor.onWillDisposeModel(e=>{this._resetSchema(e.uri)})),this._disposables.push(te.editor.onDidChangeModelLanguage(e=>{this._resetSchema(e.model.uri)}))}_resetSchema(e){this._worker().then(t=>{t.resetSchema(e.toString())})}};function tF(e){let t=[],i=[],n=new tt(e);function o(){let{languageId:t,modeConfiguration:n}=e;if(tV(i),n.documentFormattingEdits&&i.push(te.languages.registerDocumentFormattingEditProvider(t,new tv(e3))),n.documentRangeFormattingEdits&&i.push(te.languages.registerDocumentRangeFormattingEditProvider(t,new tS(e3))),n.completionItems&&i.push(te.languages.registerCompletionItemProvider(t,new ts(e3,[" ",":",'"']))),n.hovers&&i.push(te.languages.registerHoverProvider(t,new tc(e3))),n.documentSymbols&&i.push(te.languages.registerDocumentSymbolProvider(t,new tC(e3))),n.tokens){var o;i.push(te.languages.setTokensProvider(t,(o=!0,{getInitialState:()=>new tA(null,null,!1,null),tokenize:(e,t)=>(function(e,t,i,n=0){let o=0,r=!1;switch(i.scanError){case 2:t='"'+t,o=1;break;case 1:t="/*"+t,o=2}let s=tE(t),a=i.lastWasColon,l=i.parents,d={tokens:[],endState:i.clone()};for(;;){let u=n+s.getPosition(),c="",h=s.scan();if(17===h)break;if(u===n+s.getPosition())throw Error("Scanner did not advance, next 3 characters are: "+t.substr(s.getPosition(),3));switch(r&&(u-=o),r=o>0,h){case 1:l=tM.push(l,0),c=tO,a=!1;break;case 2:l=tM.pop(l),c=tO,a=!1;break;case 3:l=tM.push(l,1),c=tP,a=!1;break;case 4:l=tM.pop(l),c=tP,a=!1;break;case 6:c="delimiter.colon.json",a=!0;break;case 5:c="delimiter.comma.json",a=!1;break;case 8:case 9:case 7:c="keyword.json",a=!1;break;case 10:let g=1===(l?l.type:0);c=a||g?"string.value.json":"string.key.json",a=!1;break;case 11:c="number.json",a=!1}if(e)switch(h){case 12:c="comment.line.json";break;case 13:c="comment.block.json"}d.endState=new tA(i.getStateData(),s.getTokenError(),a,l),d.tokens.push({startIndex:u,scopes:c})}return d})(o,e,t)})))}n.colors&&i.push(te.languages.registerColorProvider(t,new tx(e3))),n.foldingRanges&&i.push(te.languages.registerFoldingRangeProvider(t,new tN(e3))),n.diagnostics&&i.push(new tR(t,e3,e)),n.selectionRanges&&i.push(te.languages.registerSelectionRangeProvider(t,new tI(e3)))}t.push(n),e3=(...e)=>n.getLanguageServiceWorker(...e),o(),t.push(te.languages.setLanguageConfiguration(e.languageId,tB));let r=e.modeConfiguration;return e.onDidChange(e=>{e.modeConfiguration!==r&&(r=e.modeConfiguration,o())}),t.push(tW(i)),tW(t)}function tW(e){return{dispose:()=>tV(e)}}function tV(e){for(;e.length;)e.pop().dispose()}var tB={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}},73130:function(e,t,i){"use strict";i.d(t,{r:function(){return g}});var n=i("55952"),o=i("44608"),r=i("12084"),s=i("19711"),a=i("98212"),l=i("37764"),d=i("19309");i("59265");var u=i("94260"),c=i("59955"),h=function(e,t){return function(i,n){t(i,n,e)}};let g=class extends l.JT{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t,i={},l,d){var c,h;super(),this._link=t,this._hoverService=l,this._enabled=!0,this.el=(0,n.R3)(e,(0,n.$)("a.monaco-link",{tabIndex:null!==(c=t.tabIndex)&&void 0!==c?c:0,href:t.href},t.label)),this.hoverDelegate=null!==(h=i.hoverDelegate)&&void 0!==h?h:(0,u.tM)("mouse"),this.setTooltip(t.title),this.el.setAttribute("role","button");let g=this._register(new o.Y(this.el,"click")),p=this._register(new o.Y(this.el,"keypress")),m=a.ju.chain(p.event,e=>e.map(e=>new r.y(e)).filter(e=>3===e.keyCode)),f=this._register(new o.Y(this.el,s.t.Tap)).event;this._register(s.o.addTarget(this.el));let w=a.ju.any(g.event,m,f);this._register(w(e=>{this.enabled&&(n.zB.stop(e,!0),(null==i?void 0:i.opener)?i.opener(this._link.href):d.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}setTooltip(e){this.hoverDelegate.showNativeHover?this.el.title=null!=e?e:"":!this.hover&&e?this.hover=this._register(this._hoverService.setupUpdatableHover(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};g=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([h(3,c.Bs),h(4,d.v)],g)},65150:function(e,t,i){"use strict";i.d(t,{O:function(){return k}});var n,o=i("55952"),r=i("8614"),s=i("45695"),a=i("32623"),l=i("4387"),d=i("66735"),u=i("98212"),c=i("37764"),h=i("64138"),g=i("94479"),p=i("84587"),m=i("97789"),f=i("24574"),w=i("55111"),C=i("91867"),b=i("95449"),y=i("87108"),v=function(e,t){return function(i,n){t(i,n,e)}};let S=o.$,k=n=class extends c.JT{get container(){return this._container}constructor(e,t,i){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.enabled=!0,this.onDidAcceptEmitter=this._register(new u.Q5),this.onDidCustomEmitter=this._register(new u.Q5),this.onDidTriggerButtonEmitter=this._register(new u.Q5),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new u.Q5),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new u.Q5),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(u.ju.runAndSubscribe(o.Xo,({window:e,disposables:t})=>this.registerKeyModsListeners(e,t),{window:C.E,disposables:this._store})),this._register(o.Jc(e=>{this.ui&&o.Jj(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))}))}registerKeyModsListeners(e,t){let i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};for(let n of[o.tw.KEY_DOWN,o.tw.KEY_UP,o.tw.MOUSE_DOWN])t.add(o.nm(e,n,i,!0))}getUI(e){if(this.ui)return e&&o.Jj(this._container)!==o.Jj(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;let t=o.R3(this._container,S(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";let i=o.dS(t),n=o.R3(t,S(".quick-input-titlebar")),d=this._register(new r.o(n,{hoverDelegate:this.options.hoverDelegate}));d.domNode.classList.add("quick-input-left-action-bar");let u=o.R3(n,S(".quick-input-title")),c=this._register(new r.o(n,{hoverDelegate:this.options.hoverDelegate}));c.domNode.classList.add("quick-input-right-action-bar");let h=o.R3(t,S(".quick-input-header")),w=o.R3(h,S("input.quick-input-check-all"));w.type="checkbox",w.setAttribute("aria-label",(0,g.NC)("quickInput.checkAll","Toggle all checkboxes")),this._register(o.mu(w,o.tw.CHANGE,e=>{let t=w.checked;F.setAllVisibleChecked(t)})),this._register(o.nm(w,o.tw.CLICK,e=>{(e.x||e.y)&&k.setFocus()}));let C=o.R3(h,S(".quick-input-description")),b=o.R3(h,S(".quick-input-and-message")),v=o.R3(b,S(".quick-input-filter")),k=this._register(new m.z(v,this.styles.inputBox,this.styles.toggle));k.setAttribute("aria-describedby",`${this.idPrefix}message`);let x=o.R3(v,S(".quick-input-visible-count"));x.setAttribute("aria-live","polite"),x.setAttribute("aria-atomic","true");let N=new a.Z(x,{countFormat:(0,g.NC)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),I=o.R3(v,S(".quick-input-count"));I.setAttribute("aria-live","polite");let _=new a.Z(I,{countFormat:(0,g.NC)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),D=o.R3(h,S(".quick-input-action")),L=this._register(new s.z(D,this.styles.button));L.label=(0,g.NC)("ok","OK"),this._register(L.onDidClick(e=>{this.onDidAcceptEmitter.fire()}));let E=o.R3(h,S(".quick-input-action")),O=this._register(new s.z(E,{...this.styles.button,supportIcons:!0}));O.label=(0,g.NC)("custom","Custom"),this._register(O.onDidClick(e=>{this.onDidCustomEmitter.fire()}));let P=o.R3(b,S(`#${this.idPrefix}message.quick-input-message`)),M=this._register(new l.k(t,this.styles.progressBar));M.getContainer().classList.add("quick-input-progress");let A=o.R3(t,S(".quick-input-html-widget"));A.tabIndex=-1;let T=o.R3(t,S(".quick-input-description")),R=this.idPrefix+"list",F=this._register(this.instantiationService.createInstance(y.g,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,R));k.setAttribute("aria-controls",R),this._register(F.onDidChangeFocus(()=>{var e;k.setAttribute("aria-activedescendant",null!==(e=F.getActiveDescendant())&&void 0!==e?e:"")})),this._register(F.onChangedAllVisibleChecked(e=>{w.checked=e})),this._register(F.onChangedVisibleCount(e=>{N.setCount(e)})),this._register(F.onChangedCheckedCount(e=>{_.setCount(e)})),this._register(F.onLeave(()=>{setTimeout(()=>{this.controller&&(k.setFocus(),this.controller instanceof f.Px&&this.controller.canSelectMany&&F.clearFocus())},0)}));let W=o.go(t);return this._register(W),this._register(o.nm(t,o.tw.FOCUS,e=>{!o.jg(e.relatedTarget,t)&&(this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0)},!0)),this._register(W.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(p.Jq.Blur),this.previousFocusElement=void 0})),this._register(o.nm(t,o.tw.FOCUS,e=>{k.setFocus()})),this._register(o.mu(t,o.tw.KEY_DOWN,e=>{if(!o.jg(e.target,A))switch(e.keyCode){case 3:o.zB.stop(e,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:o.zB.stop(e,!0),this.hide(p.Jq.Gesture);break;case 2:if(!e.altKey&&!e.ctrlKey&&!e.metaKey){let i=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(t.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.isDisplayed()&&i.push(".monaco-list"),this.getUI().message&&i.push(".quick-input-message a"),this.getUI().widget){if(o.jg(e.target,this.getUI().widget))break;i.push(".quick-input-html-widget")}let n=t.querySelectorAll(i.join(", "));e.shiftKey&&e.target===n[0]?(o.zB.stop(e,!0),F.clearFocus()):!e.shiftKey&&o.jg(e.target,n[n.length-1])&&(o.zB.stop(e,!0),n[0].focus())}break;case 10:e.ctrlKey&&(o.zB.stop(e,!0),this.getUI().list.toggleHover())}})),this.ui={container:t,styleSheet:i,leftActionBar:d,titleBar:n,title:u,description1:T,description2:C,widget:A,rightActionBar:c,checkAll:w,inputContainer:b,filterContainer:v,inputBox:k,visibleCountContainer:x,visibleCount:N,countContainer:I,count:_,okContainer:D,ok:L,message:P,customButtonContainer:E,customButton:O,list:F,progressBar:M,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e),linkOpenerDelegate:e=>this.options.linkOpenerDelegate(e)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,o.R3(this._container,this.ui.container))}pick(e,t={},i=d.Ts.None){return new Promise((n,o)=>{let r,s=e=>{var i;s=n,null===(i=t.onKeyMods)||void 0===i||i.call(t,a.keyMods),n(e)};if(i.isCancellationRequested){s(void 0);return}let a=this.createQuickPick(),l=[a,a.onDidAccept(()=>{if(a.canSelectMany)s(a.selectedItems.slice()),a.hide();else{let e=a.activeItems[0];e&&(s(e),a.hide())}}),a.onDidChangeActive(e=>{let i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)}),a.onDidChangeSelection(e=>{if(!a.canSelectMany){let t=e[0];t&&(s(t),a.hide())}}),a.onDidTriggerItemButton(e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{let t=a.items.indexOf(e.item);if(-1!==t){let e=a.items.slice(),i=e.splice(t,1),n=a.activeItems.filter(e=>e!==i[0]),o=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=e,n&&(a.activeItems=n),a.keepScrollPosition=o}}})),a.onDidTriggerSeparatorButton(e=>{var i;return null===(i=t.onDidTriggerSeparatorButton)||void 0===i?void 0:i.call(t,e)}),a.onDidChangeValue(e=>{r&&!e&&(1!==a.activeItems.length||a.activeItems[0]!==r)&&(a.activeItems=[r])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{(0,c.B9)(l),s(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([e,t])=>{r=t,a.busy=!1,a.items=e,a.canSelectMany&&(a.selectedItems=e.filter(e=>"separator"!==e.type&&e.picked)),r&&(a.activeItems=[r])}),a.show(),Promise.resolve(e).then(void 0,e=>{o(e),a.hide()})})}createQuickPick(){let e=this.getUI(!0);return new f.Px(e)}createInputBox(){let e=this.getUI(!0);return new f.Wz(e)}show(e){let t=this.getUI(!0);this.onShowEmitter.fire();let i=this.controller;this.controller=e,null==i||i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",o.mc(t.widget),t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(h.Z.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),o.mc(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;let n=this.options.backKeybindingLabel();f.Rw.tooltip=n?(0,g.NC)("quickInput.backWithKeybinding","Back ({0})",n):(0,g.NC)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}isVisible(){return!!this.ui&&"none"!==this.ui.container.style.display}setVisibilities(e){let t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){for(let t of(this.enabled=e,this.getUI().leftActionBar.viewItems))t.action.enabled=e;for(let t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t,i;let n=this.controller;if(!n)return;n.willHide(e);let r=null===(t=this.ui)||void 0===t?void 0:t.container,s=r&&!o.b5(r);if(this.controller=null,this.onHideEmitter.fire(),r&&(r.style.display="none"),!s){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=null!==(i=e.parentElement)&&void 0!==i?i:void 0;(null==e?void 0:e.offsetParent)?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}n.didHide(e)}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;let e=this.ui.container.style,t=Math.min(.62*this.dimension.width,n.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){let{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=null!=e?e:"",this.ui.container.style.backgroundColor=null!=t?t:"",this.ui.container.style.color=null!=i?i:"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.list.style(this.styles.list);let r=[];this.styles.pickerGroup.pickerGroupBorder&&r.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&r.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(r.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&r.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&r.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&r.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&r.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&r.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),r.push("}"));let s=r.join("\n");s!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=s)}}};k.MAX_WIDTH=600,k=n=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([v(1,w.F),v(2,b.TG)],k)}}]);