@vtj/pro 0.7.26 → 0.7.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/element-plus/dark/css-vars.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +14 -14
- package/dist/assets/{Editor-BKlikwSl-uIOh4y3V.js → Editor-BKlikwSl-0TD_yCQN.js} +2 -2
- package/dist/assets/{css.worker-B_Aed3oD.js → css.worker-Cj_nKzFJ.js} +1 -1
- package/dist/assets/{editor.worker-4A4PVHlo.js → editor.worker-CxQ7p1mj.js} +1 -1
- package/dist/assets/element-plus-B_U2Vnwx.js +20 -0
- package/dist/assets/element-plus-CD9l4erj.css +1 -0
- package/dist/assets/{html.worker-Bgap3cgf.js → html.worker-Dbbe6jGy.js} +1 -1
- package/dist/assets/{index-BHEFMbUZ.js → index-0NWYiSyW.js} +10 -10
- package/dist/assets/{index-BKnw9Tg1.js → index-BZSlKKjn.js} +2 -2
- package/dist/assets/{index-Bxrryvcu.js → index-D-PFM6a6.js} +1 -1
- package/dist/assets/{json.worker-iScMtFwT.js → json.worker-BiEozgVN.js} +1 -1
- package/dist/assets/{monaco-editor-CPxLaFIm.js → monaco-editor-DdPna5vs.js} +3 -3
- package/dist/assets/{preview-CoyKveUP.js → preview-B9bGZs1k.js} +2 -2
- package/dist/assets/{ts.worker-CeBFPhYz.js → ts.worker-BomFZlTR.js} +1 -1
- package/dist/index.html +4 -4
- package/package.json +11 -11
- package/dist/assets/element-plus-D0DEnZL_.js +0 -20
- package/dist/assets/element-plus-DHbWYHhp.css +0 -1
|
@@ -4,7 +4,7 @@ function __vite__mapDeps(indexes) {
|
|
|
4
4
|
}
|
|
5
5
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
6
6
|
}
|
|
7
|
-
const sZ="modulepreload",oZ=function(s,e){return new URL(s,e).href},h4={},Se=function(e,t,i){let n=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");n=Promise.all(t.map(r=>{if(r=oZ(r,i),r in h4)return;h4[r]=!0;const a=r.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!i)for(let u=o.length-1;u>=0;u--){const h=o[u];if(h.href===r&&(!a||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${l}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":sZ,a||(c.as="script",c.crossOrigin=""),c.href=r,document.head.appendChild(c),a)return new Promise((u,h)=>{c.addEventListener("load",u),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})}))}return n.then(()=>e()).catch(o=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=o,window.dispatchEvent(r),!r.defaultPrevented)throw o})};function nr(s,e=0){return s[s.length-(1+e)]}function rZ(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function pi(s,e,t=(i,n)=>i===n){if(s===e)return!0;if(!s||!e||s.length!==e.length)return!1;for(let i=0,n=s.length;i<n;i++)if(!t(s[i],e[i]))return!1;return!0}function aZ(s,e){const t=s.length-1;e<t&&(s[e]=s[t]),s.pop()}function Cv(s,e,t){return lZ(s.length,i=>t(s[i],e))}function lZ(s,e){let t=0,i=s-1;for(;t<=i;){const n=(t+i)/2|0,o=e(n);if(o<0)t=n+1;else if(o>0)i=n-1;else return n}return-(t+1)}function TI(s,e,t){if(s=s|0,s>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],o=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?o.push(a):r.push(a)}return s<n.length?TI(s,n,t):s<n.length+r.length?r[0]:TI(s-(n.length+r.length),o,t)}function g4(s,e){const t=[];let i;for(const n of s.slice(0).sort(e))!i||e(i[0],n)!==0?(i=[n],t.push(i)):i.push(n);return t}function*wM(s,e){let t,i;for(const n of s)i!==void 0&&e(i,n)?t.push(n):(t&&(yield t),t=[n]),i=n;t&&(yield t)}function WW(s,e){for(let t=0;t<=s.length;t++)e(t===0?void 0:s[t-1],t===s.length?void 0:s[t])}function dZ(s,e){for(let t=0;t<s.length;t++)e(t===0?void 0:s[t-1],s[t],t+1===s.length?void 0:s[t+1])}function Pa(s){return s.filter(e=>!!e)}function f4(s){let e=0;for(let t=0;t<s.length;t++)s[t]&&(s[e]=s[t],e+=1);s.length=e}function VW(s){return!Array.isArray(s)||s.length===0}function Jn(s){return Array.isArray(s)&&s.length>0}function oc(s,e=t=>t){const t=new Set;return s.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function SM(s,e){return s.length>0?s[0]:e}function Cs(s,e){let t=typeof e=="number"?s:0;typeof e=="number"?t=s:(t=0,e=s);const i=[];if(t<=e)for(let n=t;n<e;n++)i.push(n);else for(let n=t;n>e;n--)i.push(n);return i}function ek(s,e,t){const i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function xD(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function mw(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function NI(s,e){for(const t of e)s.push(t)}function yM(s){return Array.isArray(s)?s:[s]}function cZ(s,e,t){const i=HW(s,e),n=s.length,o=t.length;s.length=n+o;for(let r=n-1;r>=i;r--)s[r+o]=s[r];for(let r=0;r<o;r++)s[r+i]=t[r]}function p4(s,e,t,i){const n=HW(s,e);let o=s.splice(n,t);return o===void 0&&(o=[]),cZ(s,n,i),o}function HW(s,e){return e<0?Math.max(e+s.length,0):Math.min(e,s.length)}var wv;(function(s){function e(o){return o<0}s.isLessThan=e;function t(o){return o<=0}s.isLessThanOrEqual=t;function i(o){return o>0}s.isGreaterThan=i;function n(o){return o===0}s.isNeitherLessOrGreaterThan=n,s.greaterThan=1,s.lessThan=-1,s.neitherLessOrGreaterThan=0})(wv||(wv={}));function fr(s,e){return(t,i)=>e(s(t),s(i))}function uZ(...s){return(e,t)=>{for(const i of s){const n=i(e,t);if(!wv.isNeitherLessOrGreaterThan(n))return n}return wv.neitherLessOrGreaterThan}}const Yd=(s,e)=>s-e,hZ=(s,e)=>Yd(s?1:0,e?1:0);function $W(s){return(e,t)=>-s(e,t)}class rc{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class Fl{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Fl(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Fl(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||wv.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}Fl.empty=new Fl(s=>{});function Rs(s){return typeof s=="string"}function Is(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function gZ(s){const e=Object.getPrototypeOf(Uint8Array);return typeof s=="object"&&s instanceof e}function Nu(s){return typeof s=="number"&&!isNaN(s)}function m4(s){return!!s&&typeof s[Symbol.iterator]=="function"}function zW(s){return s===!0||s===!1}function _o(s){return typeof s>"u"}function Bl(s){return!Vo(s)}function Vo(s){return _o(s)||s===null}function Dt(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Zc(s){if(Vo(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function Sv(s){return typeof s=="function"}function fZ(s,e){const t=Math.min(s.length,e.length);for(let i=0;i<t;i++)pZ(s[i],e[i])}function pZ(s,e){if(Rs(e)){if(typeof s!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(Sv(e)){try{if(s instanceof e)return}catch{}if(!Vo(s)&&s.constructor===e||e.length===1&&e.call(void 0,s)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function yd(s){if(!s||typeof s!="object"||s instanceof RegExp)return s;const e=Array.isArray(s)?[]:{};return Object.entries(s).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?yd(i):i}),e}function mZ(s){if(!s||typeof s!="object")return s;const e=[s];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(UW.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!gZ(n)&&e.push(n)}}return s}const UW=Object.prototype.hasOwnProperty;function jW(s,e){return AI(s,e,new Set)}function AI(s,e,t){if(Vo(s))return s;const i=e(s);if(typeof i<"u")return i;if(Array.isArray(s)){const n=[];for(const o of s)n.push(AI(o,e,t));return n}if(Is(s)){if(t.has(s))throw new Error("Cannot clone recursive data-structure");t.add(s);const n={};for(const o in s)UW.call(s,o)&&(n[o]=AI(s[o],e,t));return t.delete(s),n}return s}function tk(s,e,t=!0){return Is(s)?(Is(e)&&Object.keys(e).forEach(i=>{i in s?t&&(Is(s[i])&&Is(e[i])?tk(s[i],e[i],t):s[i]=e[i]):s[i]=e[i]}),s):e}function jo(s,e){if(s===e)return!0;if(s==null||e===null||e===void 0||typeof s!=typeof e||typeof s!="object"||Array.isArray(s)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(s)){if(s.length!==e.length)return!1;for(t=0;t<s.length;t++)if(!jo(s[t],e[t]))return!1}else{const n=[];for(i in s)n.push(i);n.sort();const o=[];for(i in e)o.push(i);if(o.sort(),!jo(n,o))return!1;for(t=0;t<n.length;t++)if(!jo(s[n[t]],e[n[t]]))return!1}return!0}function _Z(s){let e=[];for(;Object.prototype!==s;)e=e.concat(Object.getOwnPropertyNames(s)),s=Object.getPrototypeOf(s);return e}function xM(s){const e=[];for(const t of _Z(s))typeof s[t]=="function"&&e.push(t);return e}function bZ(s,e){const t=n=>function(){const o=Array.prototype.slice.call(arguments,0);return e(n,o)},i={};for(const n of s)i[n]=t(n);return i}let vZ=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function qW(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,(i,n)=>{const o=n[0],r=e[o];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),vZ&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function p(s,e,...t){return qW(e,t)}function wt(s,e,...t){const i=qW(e,t);return{value:i,original:i}}var kD;const ip="en";let AS=!1,RS=!1,z1=!1,KW=!1,kM=!1,LM=!1,GW=!1,_w,U1=ip,_4=ip,CZ,la;const Xd=globalThis;let ws;typeof Xd.vscode<"u"&&typeof Xd.vscode.process<"u"?ws=Xd.vscode.process:typeof process<"u"&&(ws=process);const wZ=typeof((kD=ws?.versions)===null||kD===void 0?void 0:kD.electron)=="string",SZ=wZ&&ws?.type==="renderer";if(typeof ws=="object"){AS=ws.platform==="win32",RS=ws.platform==="darwin",z1=ws.platform==="linux",z1&&ws.env.SNAP&&ws.env.SNAP_REVISION,ws.env.CI||ws.env.BUILD_ARTIFACTSTAGINGDIRECTORY,_w=ip,U1=ip;const s=ws.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];_w=e.locale,_4=e.osLocale,U1=t||ip,CZ=e._translationsConfigFile}catch{}KW=!0}else typeof navigator=="object"&&!SZ?(la=navigator.userAgent,AS=la.indexOf("Windows")>=0,RS=la.indexOf("Macintosh")>=0,LM=(la.indexOf("Macintosh")>=0||la.indexOf("iPad")>=0||la.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,z1=la.indexOf("Linux")>=0,GW=la?.indexOf("Mobi")>=0,kM=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),_w=ip,U1=_w,_4=navigator.language):console.error("Unable to resolve platform.");const ts=AS,gt=RS,Bs=z1,Ia=KW,ah=kM,yZ=kM&&typeof Xd.importScripts=="function",xZ=yZ?Xd.origin:void 0,Oa=LM,ZW=GW,jl=la,kZ=U1,LZ=typeof Xd.postMessage=="function"&&!Xd.importScripts,YW=(()=>{if(LZ){const s=[];Xd.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=s.length;i<n;i++){const o=s[i];if(o.id===t.data.vscodeScheduleAsyncWork){s.splice(i,1),o.callback();return}}});let e=0;return t=>{const i=++e;s.push({id:i,callback:t}),Xd.postMessage({vscodeScheduleAsyncWork:i},"*")}}return s=>setTimeout(s)})(),bo=RS||LM?2:AS?1:3;let b4=!0,v4=!1;function XW(){if(!v4){v4=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,b4=new Uint16Array(s.buffer)[0]===513}return b4}const QW=!!(jl&&jl.indexOf("Chrome")>=0),DZ=!!(jl&&jl.indexOf("Firefox")>=0),EZ=!!(!QW&&jl&&jl.indexOf("Safari")>=0),IZ=!!(jl&&jl.indexOf("Edg/")>=0),TZ=!!(jl&&jl.indexOf("Android")>=0),Xn={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var ft;(function(s){function e(C){return C&&typeof C=="object"&&typeof C[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function i(){return t}s.empty=i;function*n(C){yield C}s.single=n;function o(C){return e(C)?C:n(C)}s.wrap=o;function r(C){return C||t}s.from=r;function*a(C){for(let w=C.length-1;w>=0;w--)yield C[w]}s.reverse=a;function l(C){return!C||C[Symbol.iterator]().next().done===!0}s.isEmpty=l;function d(C){return C[Symbol.iterator]().next().value}s.first=d;function c(C,w){for(const S of C)if(w(S))return!0;return!1}s.some=c;function u(C,w){for(const S of C)if(w(S))return S}s.find=u;function*h(C,w){for(const S of C)w(S)&&(yield S)}s.filter=h;function*g(C,w){let S=0;for(const x of C)yield w(x,S++)}s.map=g;function*f(...C){for(const w of C)yield*w}s.concat=f;function m(C,w,S){let x=S;for(const k of C)x=w(x,k);return x}s.reduce=m;function*_(C,w,S=C.length){for(w<0&&(w+=C.length),S<0?S+=C.length:S>C.length&&(S=C.length);w<S;w++)yield C[w]}s.slice=_;function b(C,w=Number.POSITIVE_INFINITY){const S=[];if(w===0)return[S,C];const x=C[Symbol.iterator]();for(let k=0;k<w;k++){const E=x.next();if(E.done)return[S,s.empty()];S.push(E.value)}return[S,{[Symbol.iterator](){return x}}]}s.consume=b;async function v(C){const w=[];for await(const S of C)w.push(S);return Promise.resolve(w)}s.asyncToArray=v})(ft||(ft={}));let Gi=class RI{constructor(e){this.element=e,this.next=RI.Undefined,this.prev=RI.Undefined}};Gi.Undefined=new Gi(void 0);class Ts{constructor(){this._first=Gi.Undefined,this._last=Gi.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Gi.Undefined}clear(){let e=this._first;for(;e!==Gi.Undefined;){const t=e.next;e.prev=Gi.Undefined,e.next=Gi.Undefined,e=t}this._first=Gi.Undefined,this._last=Gi.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Gi(e);if(this._first===Gi.Undefined)this._first=i,this._last=i;else if(t){const o=this._last;this._last=i,i.prev=o,o.next=i}else{const o=this._first;this._first=i,i.next=o,o.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Gi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Gi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Gi.Undefined&&e.next!==Gi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Gi.Undefined&&e.next===Gi.Undefined?(this._first=Gi.Undefined,this._last=Gi.Undefined):e.next===Gi.Undefined?(this._last=this._last.prev,this._last.next=Gi.Undefined):e.prev===Gi.Undefined&&(this._first=this._first.next,this._first.prev=Gi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Gi.Undefined;)yield e.element,e=e.next}}const JW="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function NZ(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of JW)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const DM=NZ();function EM(s){let e=DM;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const eV=new Ts;eV.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function yv(s,e,t,i,n){if(e=EM(e),n||(n=ft.first(eV)),t.length>n.maxLen){let d=s-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,s+n.maxLen/2),yv(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-o>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const u=AZ(e,t,r,a);if(!u&&l||(l=u,c<=0))break;a=c}if(l){const d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function AZ(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}const Ic=8;class tV{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class iV{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class hi{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return ik(e,t)}compute(e,t,i){return i}}class Mb{constructor(e,t){this.newValue=e,this.didChange=t}}function ik(s,e){if(typeof s!="object"||typeof e!="object"||!s||!e)return new Mb(e,s!==e);if(Array.isArray(s)||Array.isArray(e)){const i=Array.isArray(s)&&Array.isArray(e)&&pi(s,e);return new Mb(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=ik(s[i],e[i]);n.didChange&&(s[i]=n.newValue,t=!0)}return new Mb(s,t)}class CC{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return ik(e,t)}validate(e){return this.defaultValue}}class Jm{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return ik(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function we(s,e){return typeof s>"u"?e:s==="false"?!1:!!s}class bt extends Jm{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return we(e,this.defaultValue)}}function Hh(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class zt extends Jm{static clampedInt(e,t,i,n){return Hh(e,t,i,n)}constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}validate(e){return zt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function RZ(s,e,t,i){if(typeof s>"u")return e;const n=Hr.float(s,e);return Hr.clamp(n,t,i)}class Hr extends Jm{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}validate(e){return this.validationFn(Hr.float(e,this.defaultValue))}}class xs extends Jm{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return xs.string(e,this.defaultValue)}}function xi(s,e,t,i){return typeof s!="string"?e:i&&s in i?i[s]:t.indexOf(s)===-1?e:s}class bi extends Jm{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return xi(e,this.defaultValue,this._allowedValues)}}class bw extends hi{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function MZ(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class PZ extends hi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","Optimize for usage with a Screen Reader."),p("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:p("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 i===0?e.accessibilitySupport:i}}class OZ extends hi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:we(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:we(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function FZ(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Dn;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(Dn||(Dn={}));function BZ(s){switch(s){case"line":return Dn.Line;case"block":return Dn.Block;case"underline":return Dn.Underline;case"line-thin":return Dn.LineThin;case"block-outline":return Dn.BlockOutline;case"underline-thin":return Dn.UnderlineThin}}class WZ extends CC{constructor(){super(141)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(139)&&n.push("showDeprecated"),n.join(" ")}}class VZ extends bt{constructor(){super(37,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class HZ extends hi{constructor(){const 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:p("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:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("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:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:gt},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("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:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:we(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":xi(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":xi(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:we(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:we(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:we(t.loop,this.defaultValue.loop)}}}class Ho extends hi{constructor(){super(51,"fontLigatures",Ho.OFF,{anyOf:[{type:"boolean",description:p("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:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?Ho.OFF:e==="true"?Ho.ON:e:e?Ho.ON:Ho.OFF}}Ho.OFF='"liga" off, "calt" off';Ho.ON='"liga" on, "calt" on';class xa extends hi{constructor(){super(54,"fontVariations",xa.OFF,{anyOf:[{type:"boolean",description:p("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:p("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:p("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){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?xa.OFF:e==="true"?xa.TRANSLATE:e:e?xa.TRANSLATE:xa.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}xa.OFF="normal";xa.TRANSLATE="translate";class $Z extends CC{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class zZ extends Jm{constructor(){super(52,"fontSize",to.fontSize,{type:"number",minimum:6,maximum:100,default:to.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Hr.float(e,this.defaultValue);return t===0?to.fontSize:Hr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Sl extends hi{constructor(){super(53,"fontWeight",to.fontWeight,{anyOf:[{type:"number",minimum:Sl.MINIMUM_VALUE,maximum:Sl.MAXIMUM_VALUE,errorMessage:p("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:Sl.SUGGESTION_VALUES}],default:to.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(zt.clampedInt(e,to.fontWeight,Sl.MINIMUM_VALUE,Sl.MAXIMUM_VALUE))}}Sl.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Sl.MINIMUM_VALUE=1;Sl.MAXIMUM_VALUE=1e3;class UZ extends hi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),p("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:p("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:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:p("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:p("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:p("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:p("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:p("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:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:xi(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:xi(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:xi(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:xi(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:xi(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:xi(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:xs.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:xs.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:xs.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:xs.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:xs.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class jZ extends hi{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("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:p("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:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),delay:zt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:we(t.sticky,this.defaultValue.sticky),hidingDelay:zt.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:we(t.above,this.defaultValue.above)}}}class Ip extends CC{constructor(){super(144)}compute(e,t,i){return Ip.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){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const 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){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.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,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,v=e.remainingWidth,C=e.isViewportWrapping,w=u?2:3;let S=Math.floor(o*n);const x=S/o;let k=!1,E=!1,N=w*h,H=h/o,P=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:Pe,extraLinesBeforeFirstLine:be,extraLinesBeyondLastLine:Je,desiredRatio:et,minimapLineCount:Ae}=Ip.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:o});if(b/Ae>1)k=!0,E=!0,h=1,N=1,H=h/o;else{let Bi=!1,_s=h+1;if(f==="fit"){const Ji=Math.ceil((be+b+Je)*N);C&&a&&v<=t.stableFitRemainingWidth?(Bi=!0,_s=t.stableFitMaxMinimapScale):Bi=Ji>S}if(f==="fill"||Bi){k=!0;const Ji=h;N=Math.min(l*o,Math.max(1,Math.floor(1/et))),C&&a&&v<=t.stableFitRemainingWidth&&(_s=t.stableFitMaxMinimapScale),h=Math.min(_s,Math.max(1,Math.floor(N/w))),h>Ji&&(P=Math.min(2,h/Ji)),H=h/o/P,S=Math.ceil(Math.max(Pe,be+b+Je)*N),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const M=Math.floor(g*H),B=Math.min(M,Math.max(0,Math.floor((v-_-2)*H/(d+H)))+Ic);let Z=Math.floor(o*B);const ne=Z/o;Z=Math.floor(Z*P);const ve=u?1:2,ke=m==="left"?0:i-B-_;return{renderMinimap:ve,minimapLeft:ke,minimapWidth:B,minimapHeightIsEditorHeight:k,minimapIsSampling:E,minimapScale:h,minimapLineHeight:N,minimapCanvasInnerWidth:Z,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:ne,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,c=t.viewLineCount,u=e.get(136),h=u==="inherit"?e.get(135):u,g=h==="inherit"?e.get(131):h,f=e.get(134),m=t.isDominatedByLongLines,_=e.get(57),b=e.get(68).renderType!==0,v=e.get(69),C=e.get(105),w=e.get(84),S=e.get(73),x=e.get(103),k=x.verticalScrollbarSize,E=x.verticalHasArrows,N=x.arrowSize,H=x.horizontalScrollbarSize,P=e.get(43),M=e.get(110)!=="never";let B=e.get(66);P&&M&&(B+=16);let Z=0;if(b){const on=Math.max(r,v);Z=Math.round(on*l)}let ne=0;_&&(ne=o*t.glyphMarginDecorationLaneCount);let ve=0,ke=ve+ne,Pe=ke+Z,be=Pe+B;const Je=i-ne-Z-B;let et=!1,Ae=!1,me=-1;h==="inherit"&&m?(et=!0,Ae=!0):g==="on"||g==="bounded"?Ae=!0:g==="wordWrapColumn"&&(me=f);const Bi=Ip._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:C,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:k,viewLineCount:c,remainingWidth:Je,isViewportWrapping:Ae},t.memory||new iV);Bi.renderMinimap!==0&&Bi.minimapLeft===0&&(ve+=Bi.minimapWidth,ke+=Bi.minimapWidth,Pe+=Bi.minimapWidth,be+=Bi.minimapWidth);const _s=Je-Bi.minimapWidth,Ji=Math.max(1,Math.floor((_s-k-2)/a)),Tt=E?N:0;return Ae&&(me=Math.max(1,Ji),g==="bounded"&&(me=Math.min(me,f))),{width:i,height:n,glyphMarginLeft:ve,glyphMarginWidth:ne,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:ke,lineNumbersWidth:Z,decorationsLeft:Pe,decorationsWidth:B,contentLeft:be,contentWidth:_s,minimap:Bi,viewportColumn:Ji,isWordWrapMinified:et,isViewportWrapping:Ae,wrappingColumn:me,verticalScrollbarWidth:k,horizontalScrollbarHeight:H,overviewRuler:{top:Tt,width:k,height:n-2*Tt,right:0}}}}class qZ extends hi{constructor(){super(138,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[p("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."),p("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:p("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 xi(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var Br;(function(s){s.Off="off",s.OnCode="onCode",s.On="on"})(Br||(Br={}));class KZ extends hi{constructor(){const e={enabled:Br.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Br.Off,Br.OnCode,Br.On],default:e.enabled,enumDescriptions:[p("editor.lightbulb.enabled.off","Disable the code action menu."),p("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),p("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:p("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:xi(e.enabled,this.defaultValue.enabled,[Br.Off,Br.OnCode,Br.On])}}}class GZ extends hi{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:p("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:p("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:p("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:p("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),maxLineCount:zt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:xi(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:we(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class ZZ extends hi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(140,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",gt?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",gt?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("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:p("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:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:xi(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:zt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:xs.string(t.fontFamily,this.defaultValue.fontFamily),padding:we(t.padding,this.defaultValue.padding)}}}class YZ extends hi{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):zt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?zt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class XZ extends Hr{constructor(){super(67,"lineHeight",to.lineHeight,e=>Hr.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height.
|
|
7
|
+
const sZ="modulepreload",oZ=function(s,e){return new URL(s,e).href},h4={},Se=function(e,t,i){let n=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link"),r=document.querySelector("meta[property=csp-nonce]"),a=r?.nonce||r?.getAttribute("nonce");n=Promise.all(t.map(l=>{if(l=oZ(l,i),l in h4)return;h4[l]=!0;const d=l.endsWith(".css"),c=d?'[rel="stylesheet"]':"";if(!!i)for(let g=o.length-1;g>=0;g--){const f=o[g];if(f.href===l&&(!d||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":sZ,d||(h.as="script",h.crossOrigin=""),h.href=l,a&&h.setAttribute("nonce",a),document.head.appendChild(h),d)return new Promise((g,f)=>{h.addEventListener("load",g),h.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}return n.then(()=>e()).catch(o=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=o,window.dispatchEvent(r),!r.defaultPrevented)throw o})};function nr(s,e=0){return s[s.length-(1+e)]}function rZ(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function pi(s,e,t=(i,n)=>i===n){if(s===e)return!0;if(!s||!e||s.length!==e.length)return!1;for(let i=0,n=s.length;i<n;i++)if(!t(s[i],e[i]))return!1;return!0}function aZ(s,e){const t=s.length-1;e<t&&(s[e]=s[t]),s.pop()}function Cv(s,e,t){return lZ(s.length,i=>t(s[i],e))}function lZ(s,e){let t=0,i=s-1;for(;t<=i;){const n=(t+i)/2|0,o=e(n);if(o<0)t=n+1;else if(o>0)i=n-1;else return n}return-(t+1)}function TI(s,e,t){if(s=s|0,s>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],o=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?o.push(a):r.push(a)}return s<n.length?TI(s,n,t):s<n.length+r.length?r[0]:TI(s-(n.length+r.length),o,t)}function g4(s,e){const t=[];let i;for(const n of s.slice(0).sort(e))!i||e(i[0],n)!==0?(i=[n],t.push(i)):i.push(n);return t}function*wM(s,e){let t,i;for(const n of s)i!==void 0&&e(i,n)?t.push(n):(t&&(yield t),t=[n]),i=n;t&&(yield t)}function WW(s,e){for(let t=0;t<=s.length;t++)e(t===0?void 0:s[t-1],t===s.length?void 0:s[t])}function dZ(s,e){for(let t=0;t<s.length;t++)e(t===0?void 0:s[t-1],s[t],t+1===s.length?void 0:s[t+1])}function Pa(s){return s.filter(e=>!!e)}function f4(s){let e=0;for(let t=0;t<s.length;t++)s[t]&&(s[e]=s[t],e+=1);s.length=e}function VW(s){return!Array.isArray(s)||s.length===0}function Jn(s){return Array.isArray(s)&&s.length>0}function oc(s,e=t=>t){const t=new Set;return s.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function SM(s,e){return s.length>0?s[0]:e}function Cs(s,e){let t=typeof e=="number"?s:0;typeof e=="number"?t=s:(t=0,e=s);const i=[];if(t<=e)for(let n=t;n<e;n++)i.push(n);else for(let n=t;n>e;n--)i.push(n);return i}function ek(s,e,t){const i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function xD(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function mw(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function NI(s,e){for(const t of e)s.push(t)}function yM(s){return Array.isArray(s)?s:[s]}function cZ(s,e,t){const i=HW(s,e),n=s.length,o=t.length;s.length=n+o;for(let r=n-1;r>=i;r--)s[r+o]=s[r];for(let r=0;r<o;r++)s[r+i]=t[r]}function p4(s,e,t,i){const n=HW(s,e);let o=s.splice(n,t);return o===void 0&&(o=[]),cZ(s,n,i),o}function HW(s,e){return e<0?Math.max(e+s.length,0):Math.min(e,s.length)}var wv;(function(s){function e(o){return o<0}s.isLessThan=e;function t(o){return o<=0}s.isLessThanOrEqual=t;function i(o){return o>0}s.isGreaterThan=i;function n(o){return o===0}s.isNeitherLessOrGreaterThan=n,s.greaterThan=1,s.lessThan=-1,s.neitherLessOrGreaterThan=0})(wv||(wv={}));function fr(s,e){return(t,i)=>e(s(t),s(i))}function uZ(...s){return(e,t)=>{for(const i of s){const n=i(e,t);if(!wv.isNeitherLessOrGreaterThan(n))return n}return wv.neitherLessOrGreaterThan}}const Yd=(s,e)=>s-e,hZ=(s,e)=>Yd(s?1:0,e?1:0);function $W(s){return(e,t)=>-s(e,t)}class rc{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;const i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class Fl{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Fl(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Fl(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||wv.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}}Fl.empty=new Fl(s=>{});function Rs(s){return typeof s=="string"}function Is(s){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&!(s instanceof RegExp)&&!(s instanceof Date)}function gZ(s){const e=Object.getPrototypeOf(Uint8Array);return typeof s=="object"&&s instanceof e}function Nu(s){return typeof s=="number"&&!isNaN(s)}function m4(s){return!!s&&typeof s[Symbol.iterator]=="function"}function zW(s){return s===!0||s===!1}function _o(s){return typeof s>"u"}function Bl(s){return!Vo(s)}function Vo(s){return _o(s)||s===null}function Dt(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Zc(s){if(Vo(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function Sv(s){return typeof s=="function"}function fZ(s,e){const t=Math.min(s.length,e.length);for(let i=0;i<t;i++)pZ(s[i],e[i])}function pZ(s,e){if(Rs(e)){if(typeof s!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(Sv(e)){try{if(s instanceof e)return}catch{}if(!Vo(s)&&s.constructor===e||e.length===1&&e.call(void 0,s)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function yd(s){if(!s||typeof s!="object"||s instanceof RegExp)return s;const e=Array.isArray(s)?[]:{};return Object.entries(s).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?yd(i):i}),e}function mZ(s){if(!s||typeof s!="object")return s;const e=[s];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(UW.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!gZ(n)&&e.push(n)}}return s}const UW=Object.prototype.hasOwnProperty;function jW(s,e){return AI(s,e,new Set)}function AI(s,e,t){if(Vo(s))return s;const i=e(s);if(typeof i<"u")return i;if(Array.isArray(s)){const n=[];for(const o of s)n.push(AI(o,e,t));return n}if(Is(s)){if(t.has(s))throw new Error("Cannot clone recursive data-structure");t.add(s);const n={};for(const o in s)UW.call(s,o)&&(n[o]=AI(s[o],e,t));return t.delete(s),n}return s}function tk(s,e,t=!0){return Is(s)?(Is(e)&&Object.keys(e).forEach(i=>{i in s?t&&(Is(s[i])&&Is(e[i])?tk(s[i],e[i],t):s[i]=e[i]):s[i]=e[i]}),s):e}function jo(s,e){if(s===e)return!0;if(s==null||e===null||e===void 0||typeof s!=typeof e||typeof s!="object"||Array.isArray(s)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(s)){if(s.length!==e.length)return!1;for(t=0;t<s.length;t++)if(!jo(s[t],e[t]))return!1}else{const n=[];for(i in s)n.push(i);n.sort();const o=[];for(i in e)o.push(i);if(o.sort(),!jo(n,o))return!1;for(t=0;t<n.length;t++)if(!jo(s[n[t]],e[n[t]]))return!1}return!0}function _Z(s){let e=[];for(;Object.prototype!==s;)e=e.concat(Object.getOwnPropertyNames(s)),s=Object.getPrototypeOf(s);return e}function xM(s){const e=[];for(const t of _Z(s))typeof s[t]=="function"&&e.push(t);return e}function bZ(s,e){const t=n=>function(){const o=Array.prototype.slice.call(arguments,0);return e(n,o)},i={};for(const n of s)i[n]=t(n);return i}let vZ=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function qW(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,(i,n)=>{const o=n[0],r=e[o];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),vZ&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function p(s,e,...t){return qW(e,t)}function wt(s,e,...t){const i=qW(e,t);return{value:i,original:i}}var kD;const ip="en";let AS=!1,RS=!1,z1=!1,KW=!1,kM=!1,LM=!1,GW=!1,_w,U1=ip,_4=ip,CZ,la;const Xd=globalThis;let ws;typeof Xd.vscode<"u"&&typeof Xd.vscode.process<"u"?ws=Xd.vscode.process:typeof process<"u"&&(ws=process);const wZ=typeof((kD=ws?.versions)===null||kD===void 0?void 0:kD.electron)=="string",SZ=wZ&&ws?.type==="renderer";if(typeof ws=="object"){AS=ws.platform==="win32",RS=ws.platform==="darwin",z1=ws.platform==="linux",z1&&ws.env.SNAP&&ws.env.SNAP_REVISION,ws.env.CI||ws.env.BUILD_ARTIFACTSTAGINGDIRECTORY,_w=ip,U1=ip;const s=ws.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s),t=e.availableLanguages["*"];_w=e.locale,_4=e.osLocale,U1=t||ip,CZ=e._translationsConfigFile}catch{}KW=!0}else typeof navigator=="object"&&!SZ?(la=navigator.userAgent,AS=la.indexOf("Windows")>=0,RS=la.indexOf("Macintosh")>=0,LM=(la.indexOf("Macintosh")>=0||la.indexOf("iPad")>=0||la.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,z1=la.indexOf("Linux")>=0,GW=la?.indexOf("Mobi")>=0,kM=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),_w=ip,U1=_w,_4=navigator.language):console.error("Unable to resolve platform.");const ts=AS,gt=RS,Bs=z1,Ia=KW,ah=kM,yZ=kM&&typeof Xd.importScripts=="function",xZ=yZ?Xd.origin:void 0,Oa=LM,ZW=GW,jl=la,kZ=U1,LZ=typeof Xd.postMessage=="function"&&!Xd.importScripts,YW=(()=>{if(LZ){const s=[];Xd.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=s.length;i<n;i++){const o=s[i];if(o.id===t.data.vscodeScheduleAsyncWork){s.splice(i,1),o.callback();return}}});let e=0;return t=>{const i=++e;s.push({id:i,callback:t}),Xd.postMessage({vscodeScheduleAsyncWork:i},"*")}}return s=>setTimeout(s)})(),bo=RS||LM?2:AS?1:3;let b4=!0,v4=!1;function XW(){if(!v4){v4=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,b4=new Uint16Array(s.buffer)[0]===513}return b4}const QW=!!(jl&&jl.indexOf("Chrome")>=0),DZ=!!(jl&&jl.indexOf("Firefox")>=0),EZ=!!(!QW&&jl&&jl.indexOf("Safari")>=0),IZ=!!(jl&&jl.indexOf("Edg/")>=0),TZ=!!(jl&&jl.indexOf("Android")>=0),Xn={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var ft;(function(s){function e(C){return C&&typeof C=="object"&&typeof C[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function i(){return t}s.empty=i;function*n(C){yield C}s.single=n;function o(C){return e(C)?C:n(C)}s.wrap=o;function r(C){return C||t}s.from=r;function*a(C){for(let w=C.length-1;w>=0;w--)yield C[w]}s.reverse=a;function l(C){return!C||C[Symbol.iterator]().next().done===!0}s.isEmpty=l;function d(C){return C[Symbol.iterator]().next().value}s.first=d;function c(C,w){for(const S of C)if(w(S))return!0;return!1}s.some=c;function u(C,w){for(const S of C)if(w(S))return S}s.find=u;function*h(C,w){for(const S of C)w(S)&&(yield S)}s.filter=h;function*g(C,w){let S=0;for(const x of C)yield w(x,S++)}s.map=g;function*f(...C){for(const w of C)yield*w}s.concat=f;function m(C,w,S){let x=S;for(const k of C)x=w(x,k);return x}s.reduce=m;function*_(C,w,S=C.length){for(w<0&&(w+=C.length),S<0?S+=C.length:S>C.length&&(S=C.length);w<S;w++)yield C[w]}s.slice=_;function b(C,w=Number.POSITIVE_INFINITY){const S=[];if(w===0)return[S,C];const x=C[Symbol.iterator]();for(let k=0;k<w;k++){const E=x.next();if(E.done)return[S,s.empty()];S.push(E.value)}return[S,{[Symbol.iterator](){return x}}]}s.consume=b;async function v(C){const w=[];for await(const S of C)w.push(S);return Promise.resolve(w)}s.asyncToArray=v})(ft||(ft={}));let Gi=class RI{constructor(e){this.element=e,this.next=RI.Undefined,this.prev=RI.Undefined}};Gi.Undefined=new Gi(void 0);class Ts{constructor(){this._first=Gi.Undefined,this._last=Gi.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Gi.Undefined}clear(){let e=this._first;for(;e!==Gi.Undefined;){const t=e.next;e.prev=Gi.Undefined,e.next=Gi.Undefined,e=t}this._first=Gi.Undefined,this._last=Gi.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new Gi(e);if(this._first===Gi.Undefined)this._first=i,this._last=i;else if(t){const o=this._last;this._last=i,i.prev=o,o.next=i}else{const o=this._first;this._first=i,i.next=o,o.prev=i}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Gi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Gi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Gi.Undefined&&e.next!==Gi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Gi.Undefined&&e.next===Gi.Undefined?(this._first=Gi.Undefined,this._last=Gi.Undefined):e.next===Gi.Undefined?(this._last=this._last.prev,this._last.next=Gi.Undefined):e.prev===Gi.Undefined&&(this._first=this._first.next,this._first.prev=Gi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Gi.Undefined;)yield e.element,e=e.next}}const JW="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function NZ(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of JW)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const DM=NZ();function EM(s){let e=DM;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const eV=new Ts;eV.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function yv(s,e,t,i,n){if(e=EM(e),n||(n=ft.first(eV)),t.length>n.maxLen){let d=s-n.maxLen/2;return d<0?d=0:i+=d,t=t.substring(d,s+n.maxLen/2),yv(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let d=1;!(Date.now()-o>=n.timeBudget);d++){const c=r-n.windowSize*d;e.lastIndex=Math.max(0,c);const u=AZ(e,t,r,a);if(!u&&l||(l=u,c<=0))break;a=c}if(l){const d={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,d}return null}function AZ(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}const Ic=8;class tV{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class iV{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class hi{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return ik(e,t)}compute(e,t,i){return i}}class Mb{constructor(e,t){this.newValue=e,this.didChange=t}}function ik(s,e){if(typeof s!="object"||typeof e!="object"||!s||!e)return new Mb(e,s!==e);if(Array.isArray(s)||Array.isArray(e)){const i=Array.isArray(s)&&Array.isArray(e)&&pi(s,e);return new Mb(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=ik(s[i],e[i]);n.didChange&&(s[i]=n.newValue,t=!0)}return new Mb(s,t)}class CC{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return ik(e,t)}validate(e){return this.defaultValue}}class Jm{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return ik(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function we(s,e){return typeof s>"u"?e:s==="false"?!1:!!s}class bt extends Jm{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return we(e,this.defaultValue)}}function Hh(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class zt extends Jm{static clampedInt(e,t,i,n){return Hh(e,t,i,n)}constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}validate(e){return zt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function RZ(s,e,t,i){if(typeof s>"u")return e;const n=Hr.float(s,e);return Hr.clamp(n,t,i)}class Hr extends Jm{static clamp(e,t,i){return e<t?t:e>i?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}validate(e){return this.validationFn(Hr.float(e,this.defaultValue))}}class xs extends Jm{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return xs.string(e,this.defaultValue)}}function xi(s,e,t,i){return typeof s!="string"?e:i&&s in i?i[s]:t.indexOf(s)===-1?e:s}class bi extends Jm{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return xi(e,this.defaultValue,this._allowedValues)}}class bw extends hi{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function MZ(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class PZ extends hi{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","Optimize for usage with a Screen Reader."),p("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:p("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 i===0?e.accessibilitySupport:i}}class OZ extends hi{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:we(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:we(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function FZ(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Dn;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(Dn||(Dn={}));function BZ(s){switch(s){case"line":return Dn.Line;case"block":return Dn.Block;case"underline":return Dn.Underline;case"line-thin":return Dn.LineThin;case"block-outline":return Dn.BlockOutline;case"underline-thin":return Dn.UnderlineThin}}class WZ extends CC{constructor(){super(141)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(111)&&n.push("showUnused"),t.get(139)&&n.push("showDeprecated"),n.join(" ")}}class VZ extends bt{constructor(){super(37,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class HZ extends hi{constructor(){const 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:p("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:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("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:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:gt},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("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:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:we(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":xi(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":xi(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:we(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:we(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:we(t.loop,this.defaultValue.loop)}}}class Ho extends hi{constructor(){super(51,"fontLigatures",Ho.OFF,{anyOf:[{type:"boolean",description:p("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:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?Ho.OFF:e==="true"?Ho.ON:e:e?Ho.ON:Ho.OFF}}Ho.OFF='"liga" off, "calt" off';Ho.ON='"liga" on, "calt" on';class xa extends hi{constructor(){super(54,"fontVariations",xa.OFF,{anyOf:[{type:"boolean",description:p("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:p("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:p("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){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?xa.OFF:e==="true"?xa.TRANSLATE:e:e?xa.TRANSLATE:xa.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}xa.OFF="normal";xa.TRANSLATE="translate";class $Z extends CC{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class zZ extends Jm{constructor(){super(52,"fontSize",to.fontSize,{type:"number",minimum:6,maximum:100,default:to.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Hr.float(e,this.defaultValue);return t===0?to.fontSize:Hr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Sl extends hi{constructor(){super(53,"fontWeight",to.fontWeight,{anyOf:[{type:"number",minimum:Sl.MINIMUM_VALUE,maximum:Sl.MAXIMUM_VALUE,errorMessage:p("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:Sl.SUGGESTION_VALUES}],default:to.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(zt.clampedInt(e,to.fontWeight,Sl.MINIMUM_VALUE,Sl.MAXIMUM_VALUE))}}Sl.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];Sl.MINIMUM_VALUE=1;Sl.MAXIMUM_VALUE=1e3;class UZ extends hi{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),p("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:p("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:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:p("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:p("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:p("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:p("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:p("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:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:xi(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:xi(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:xi(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(n=a.multipleDeclarations)!==null&&n!==void 0?n:xi(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:xi(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:xi(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:xs.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:xs.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:xs.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:xs.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:xs.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class jZ extends hi{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("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:p("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:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),delay:zt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:we(t.sticky,this.defaultValue.sticky),hidingDelay:zt.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:we(t.above,this.defaultValue.above)}}}class Ip extends CC{constructor(){super(144)}compute(e,t,i){return Ip.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){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const 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){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.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,l=e.lineHeight,d=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let h=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,v=e.remainingWidth,C=e.isViewportWrapping,w=u?2:3;let S=Math.floor(o*n);const x=S/o;let k=!1,E=!1,N=w*h,H=h/o,P=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:Pe,extraLinesBeforeFirstLine:be,extraLinesBeyondLastLine:Je,desiredRatio:et,minimapLineCount:Ae}=Ip.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:o});if(b/Ae>1)k=!0,E=!0,h=1,N=1,H=h/o;else{let Bi=!1,_s=h+1;if(f==="fit"){const Ji=Math.ceil((be+b+Je)*N);C&&a&&v<=t.stableFitRemainingWidth?(Bi=!0,_s=t.stableFitMaxMinimapScale):Bi=Ji>S}if(f==="fill"||Bi){k=!0;const Ji=h;N=Math.min(l*o,Math.max(1,Math.floor(1/et))),C&&a&&v<=t.stableFitRemainingWidth&&(_s=t.stableFitMaxMinimapScale),h=Math.min(_s,Math.max(1,Math.floor(N/w))),h>Ji&&(P=Math.min(2,h/Ji)),H=h/o/P,S=Math.ceil(Math.max(Pe,be+b+Je)*N),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=h):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const M=Math.floor(g*H),B=Math.min(M,Math.max(0,Math.floor((v-_-2)*H/(d+H)))+Ic);let Z=Math.floor(o*B);const ne=Z/o;Z=Math.floor(Z*P);const ve=u?1:2,ke=m==="left"?0:i-B-_;return{renderMinimap:ve,minimapLeft:ke,minimapWidth:B,minimapHeightIsEditorHeight:k,minimapIsSampling:E,minimapScale:h,minimapLineHeight:N,minimapCanvasInnerWidth:Z,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:ne,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,d=t.pixelRatio,c=t.viewLineCount,u=e.get(136),h=u==="inherit"?e.get(135):u,g=h==="inherit"?e.get(131):h,f=e.get(134),m=t.isDominatedByLongLines,_=e.get(57),b=e.get(68).renderType!==0,v=e.get(69),C=e.get(105),w=e.get(84),S=e.get(73),x=e.get(103),k=x.verticalScrollbarSize,E=x.verticalHasArrows,N=x.arrowSize,H=x.horizontalScrollbarSize,P=e.get(43),M=e.get(110)!=="never";let B=e.get(66);P&&M&&(B+=16);let Z=0;if(b){const on=Math.max(r,v);Z=Math.round(on*l)}let ne=0;_&&(ne=o*t.glyphMarginDecorationLaneCount);let ve=0,ke=ve+ne,Pe=ke+Z,be=Pe+B;const Je=i-ne-Z-B;let et=!1,Ae=!1,me=-1;h==="inherit"&&m?(et=!0,Ae=!0):g==="on"||g==="bounded"?Ae=!0:g==="wordWrapColumn"&&(me=f);const Bi=Ip._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:d,scrollBeyondLastLine:C,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:k,viewLineCount:c,remainingWidth:Je,isViewportWrapping:Ae},t.memory||new iV);Bi.renderMinimap!==0&&Bi.minimapLeft===0&&(ve+=Bi.minimapWidth,ke+=Bi.minimapWidth,Pe+=Bi.minimapWidth,be+=Bi.minimapWidth);const _s=Je-Bi.minimapWidth,Ji=Math.max(1,Math.floor((_s-k-2)/a)),Tt=E?N:0;return Ae&&(me=Math.max(1,Ji),g==="bounded"&&(me=Math.min(me,f))),{width:i,height:n,glyphMarginLeft:ve,glyphMarginWidth:ne,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:ke,lineNumbersWidth:Z,decorationsLeft:Pe,decorationsWidth:B,contentLeft:be,contentWidth:_s,minimap:Bi,viewportColumn:Ji,isWordWrapMinified:et,isViewportWrapping:Ae,wrappingColumn:me,verticalScrollbarWidth:k,horizontalScrollbarHeight:H,overviewRuler:{top:Tt,width:k,height:n-2*Tt,right:0}}}}class qZ extends hi{constructor(){super(138,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[p("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."),p("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:p("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 xi(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var Br;(function(s){s.Off="off",s.OnCode="onCode",s.On="on"})(Br||(Br={}));class KZ extends hi{constructor(){const e={enabled:Br.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Br.Off,Br.OnCode,Br.On],default:e.enabled,enumDescriptions:[p("editor.lightbulb.enabled.off","Disable the code action menu."),p("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),p("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:p("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:xi(e.enabled,this.defaultValue.enabled,[Br.Off,Br.OnCode,Br.On])}}}class GZ extends hi{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:p("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:p("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:p("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:p("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),maxLineCount:zt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:xi(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:we(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class ZZ extends hi{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(140,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",gt?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",gt?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("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:p("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:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:xi(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:zt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:xs.string(t.fontFamily,this.defaultValue.fontFamily),padding:we(t.padding,this.defaultValue.padding)}}}class YZ extends hi{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):zt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?zt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class XZ extends Hr{constructor(){super(67,"lineHeight",to.lineHeight,e=>Hr.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height.
|
|
8
8
|
- Use 0 to automatically compute the line height from the font size.
|
|
9
9
|
- Values between 0 and 8 will be used as a multiplier with the font size.
|
|
10
10
|
- Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class QZ extends hi{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:p("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("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:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),autohide:we(t.autohide,this.defaultValue.autohide),size:xi(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:xi(t.side,this.defaultValue.side,["right","left"]),showSlider:xi(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:we(t.renderCharacters,this.defaultValue.renderCharacters),scale:zt.clampedInt(t.scale,1,1,3),maxColumn:zt.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function JZ(s){return s==="ctrlCmd"?gt?"metaKey":"ctrlKey":"altKey"}class eY extends hi{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("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:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:zt.clampedInt(t.top,0,0,1e3),bottom:zt.clampedInt(t.bottom,0,0,1e3)}}}class tY extends hi{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("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:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),cycle:we(t.cycle,this.defaultValue.cycle)}}}class iY extends CC{constructor(){super(142)}compute(e,t,i){return e.pixelRatio}}class nY extends hi{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[p("on","Quick suggestions show inside the suggest widget"),p("inline","Quick suggestions show as ghost text"),p("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:p("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){if(typeof e=="boolean"){const d=e?"on":"off";return{comments:d,strings:d,other:d}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,o=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=xi(t,this.defaultValue.other,o),typeof i=="boolean"?a=i?"on":"off":a=xi(i,this.defaultValue.comments,o),typeof n=="boolean"?l=n?"on":"off":l=xi(n,this.defaultValue.strings,o),{other:r,comments:a,strings:l}}}class sY extends hi{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function MS(s){const e=s.get(98);return e==="editable"?s.get(91):e!=="on"}class oY extends hi{constructor(){const e=[],t={type:"number",description:p("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:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("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)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:zt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:zt.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}class rY extends hi{constructor(){super(92,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function C4(s,e){if(typeof s!="string")return e;switch(s){case"hidden":return 2;case"visible":return 3;default:return 1}}let aY=class extends hi{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:p("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=zt.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=zt.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:zt.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:C4(t.vertical,this.defaultValue.vertical),horizontal:C4(t.horizontal,this.defaultValue.horizontal),useShadows:we(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:we(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:we(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:we(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:we(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:zt.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:zt.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:we(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:we(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}};const Mo="inUntrustedWorkspace",Gs={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"};class lY extends hi{constructor(){const e={nonBasicASCII:Mo,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Mo,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",e,{[Gs.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Mo],default:e.nonBasicASCII,description:p("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.")},[Gs.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:p("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Gs.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:p("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.")},[Gs.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Mo],default:e.includeComments,description:p("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[Gs.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Mo],default:e.includeStrings,description:p("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Gs.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:p("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Gs.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:p("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(jo(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(jo(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const n=super.applyUpdate(e,t);return i?new Mb(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:Tp(t.nonBasicASCII,Mo,[!0,!1,Mo]),invisibleCharacters:we(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:we(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Tp(t.includeComments,Mo,[!0,!1,Mo]),includeStrings:Tp(t.includeStrings,Mo,[!0,!1,Mo]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,o]of Object.entries(e))o===!0&&(i[n]=!0);return i}}class dY extends hi{constructor(){const 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:p("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:[p("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),p("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),p("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:p("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:p("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:p("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),mode:xi(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:xi(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:we(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:we(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:xs.string(t.fontFamily,this.defaultValue.fontFamily)}}}class cY extends hi{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:p("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[p("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),p("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),p("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:p("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:p("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:p("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),showToolbar:xi(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:xs.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:we(t.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:we(t.backgroundColoring,this.defaultValue.backgroundColoring)}}}class uY extends hi{constructor(){const e={enabled:Xn.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:Xn.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("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:p("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:we(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class hY extends hi{constructor(){const 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:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[p("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),p("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),p("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:Tp(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Tp(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:we(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:we(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Tp(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Tp(s,e,t){const i=t.indexOf(s);return i===-1?e:t[i]}class gY extends hi{constructor(){const 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:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("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:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("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:[p("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),p("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:p("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:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("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:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("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:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:p("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:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:xi(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:we(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:we(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:we(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:we(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:xi(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:we(t.showIcons,this.defaultValue.showIcons),showStatusBar:we(t.showStatusBar,this.defaultValue.showStatusBar),preview:we(t.preview,this.defaultValue.preview),previewMode:xi(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:we(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:we(t.showMethods,this.defaultValue.showMethods),showFunctions:we(t.showFunctions,this.defaultValue.showFunctions),showConstructors:we(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:we(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:we(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:we(t.showFields,this.defaultValue.showFields),showVariables:we(t.showVariables,this.defaultValue.showVariables),showClasses:we(t.showClasses,this.defaultValue.showClasses),showStructs:we(t.showStructs,this.defaultValue.showStructs),showInterfaces:we(t.showInterfaces,this.defaultValue.showInterfaces),showModules:we(t.showModules,this.defaultValue.showModules),showProperties:we(t.showProperties,this.defaultValue.showProperties),showEvents:we(t.showEvents,this.defaultValue.showEvents),showOperators:we(t.showOperators,this.defaultValue.showOperators),showUnits:we(t.showUnits,this.defaultValue.showUnits),showValues:we(t.showValues,this.defaultValue.showValues),showConstants:we(t.showConstants,this.defaultValue.showConstants),showEnums:we(t.showEnums,this.defaultValue.showEnums),showEnumMembers:we(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:we(t.showKeywords,this.defaultValue.showKeywords),showWords:we(t.showWords,this.defaultValue.showWords),showColors:we(t.showColors,this.defaultValue.showColors),showFiles:we(t.showFiles,this.defaultValue.showFiles),showReferences:we(t.showReferences,this.defaultValue.showReferences),showFolders:we(t.showFolders,this.defaultValue.showFolders),showTypeParameters:we(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:we(t.showSnippets,this.defaultValue.showSnippets),showUsers:we(t.showUsers,this.defaultValue.showUsers),showIssues:we(t.showIssues,this.defaultValue.showIssues)}}}class fY extends hi{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:p("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:we(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:we(e.selectSubwords,this.defaultValue.selectSubwords)}}}class pY extends hi{constructor(){super(137,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class mY extends CC{constructor(){super(145)}compute(e,t,i){const n=t.get(144);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class _Y extends hi{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("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:p("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:[p("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),p("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),showDropSelector:xi(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class bY extends hi{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:p("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:[p("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),p("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:we(t.enabled,this.defaultValue.enabled),showPasteSelector:xi(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const vY="Consolas, 'Courier New', monospace",CY="Menlo, Monaco, 'Courier New', monospace",wY="'Droid Sans Mono', 'monospace', monospace",to={fontFamily:gt?CY:Bs?wY:vY,fontWeight:"normal",fontSize:gt?12:14,lineHeight:0,letterSpacing:0},np=[];function ie(s){return np[s.id]=s,s}const qa={acceptSuggestionOnCommitCharacter:ie(new bt(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("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:ie(new bi(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("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:ie(new PZ),accessibilityPageSize:ie(new zt(3,"accessibilityPageSize",10,1,1073741824,{description:p("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:ie(new xs(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),ariaRequired:ie(new bt(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:ie(new bt(8,"screenReaderAnnounceInlineSuggestion",!0,{description:p("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:ie(new bi(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:ie(new bi(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),p("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:p("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:ie(new bi(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ie(new bi(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ie(new bi(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ie(new bw(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],MZ,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("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:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ie(new bt(13,"automaticLayout",!1)),autoSurround:ie(new bi(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ie(new uY),bracketPairGuides:ie(new hY),stickyTabStops:ie(new bt(116,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ie(new bt(17,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ie(new xs(18,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ie(new zt(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ie(new bt(20,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:ie(new bi(147,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[p("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),p("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),p("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:p("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:ie(new zt(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:p("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ie(new bt(22,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ie(new OZ),contextmenu:ie(new bt(24,"contextmenu",!0)),copyWithSyntaxHighlighting:ie(new bt(25,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ie(new bw(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],FZ,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ie(new bi(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[p("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),p("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),p("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ie(new bw(28,"cursorStyle",Dn.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],BZ,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ie(new zt(29,"cursorSurroundingLines",0,0,1073741824,{description:p("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:ie(new bi(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:p("cursorSurroundingLinesStyle","Controls when `#cursorSurroundingLines#` should be enforced.")})),cursorWidth:ie(new zt(31,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ie(new bt(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:ie(new bt(33,"disableMonospaceOptimizations",!1)),domReadOnly:ie(new bt(34,"domReadOnly",!1)),dragAndDrop:ie(new bt(35,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ie(new VZ),dropIntoEditor:ie(new _Y),stickyScroll:ie(new GZ),experimentalWhitespaceRendering:ie(new bi(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[p("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),p("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),p("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:p("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ie(new xs(39,"extraEditorClassName","")),fastScrollSensitivity:ie(new Hr(40,"fastScrollSensitivity",5,s=>s<=0?5:s,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ie(new HZ),fixedOverflowWidgets:ie(new bt(42,"fixedOverflowWidgets",!1)),folding:ie(new bt(43,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ie(new bi(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ie(new bt(45,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ie(new bt(46,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ie(new zt(47,"foldingMaximumRegions",5e3,10,65e3,{description:p("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:ie(new bt(48,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ie(new xs(49,"fontFamily",to.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:ie(new $Z),fontLigatures2:ie(new Ho),fontSize:ie(new zZ),fontWeight:ie(new Sl),fontVariations:ie(new xa),formatOnPaste:ie(new bt(55,"formatOnPaste",!1,{description:p("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:ie(new bt(56,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ie(new bt(57,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ie(new UZ),hideCursorInOverviewRuler:ie(new bt(59,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ie(new jZ),inDiffEditor:ie(new bt(61,"inDiffEditor",!1)),letterSpacing:ie(new Hr(64,"letterSpacing",to.letterSpacing,s=>Hr.clamp(s,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ie(new KZ),lineDecorationsWidth:ie(new YZ),lineHeight:ie(new XZ),lineNumbers:ie(new sY),lineNumbersMinChars:ie(new zt(69,"lineNumbersMinChars",5,1,300)),linkedEditing:ie(new bt(70,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ie(new bt(71,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ie(new bi(72,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:ie(new QZ),mouseStyle:ie(new bi(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ie(new Hr(75,"mouseWheelScrollSensitivity",1,s=>s===0?1:s,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ie(new bt(76,"mouseWheelZoom",!1,{markdownDescription:gt?p("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ie(new bt(77,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ie(new bw(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],JZ,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({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:ie(new bi(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ie(new zt(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:p("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ie(new bi(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[p("occurrencesHighlight.off","Does not highlight occurrences."),p("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),p("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:p("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:ie(new bt(82,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ie(new zt(83,"overviewRulerLanes",3,0,3)),padding:ie(new eY),pasteAs:ie(new bY),parameterHints:ie(new tY),peekWidgetDefaultFocus:ie(new bi(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:ie(new bt(88,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ie(new nY),quickSuggestionsDelay:ie(new zt(90,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ie(new bt(91,"readOnly",!1)),readOnlyMessage:ie(new rY),renameOnType:ie(new bt(93,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ie(new bt(94,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ie(new bi(95,"renderFinalNewline",Bs?"dimmed":"on",["off","on","dimmed"],{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ie(new bi(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ie(new bt(97,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ie(new bi(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ie(new bi(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ie(new zt(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ie(new bt(101,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ie(new oY),scrollbar:ie(new aY),scrollBeyondLastColumn:ie(new zt(104,"scrollBeyondLastColumn",4,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ie(new bt(105,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ie(new bt(106,"scrollPredominantAxis",!0,{description:p("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:ie(new bt(107,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Bs})),selectionHighlight:ie(new bt(108,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ie(new bt(109,"selectOnLineNumbers",!0)),showFoldingControls:ie(new bi(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ie(new bt(111,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:ie(new bt(139,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ie(new ZZ),snippetSuggestions:ie(new bi(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ie(new fY),smoothScrolling:ie(new bt(114,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ie(new zt(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ie(new gY),inlineSuggest:ie(new dY),inlineEdit:ie(new cY),inlineCompletionsAccessibilityVerbose:ie(new bt(148,"inlineCompletionsAccessibilityVerbose",!1,{description:p("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:ie(new zt(119,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ie(new zt(120,"suggestLineHeight",0,0,1e3,{markdownDescription:p("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:ie(new bt(121,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ie(new bi(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ie(new bi(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:ie(new zt(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:ie(new lY),unusualLineTerminators:ie(new bi(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ie(new bt(127,"useShadowDOM",!0)),useTabStops:ie(new bt(128,"useTabStops",!0,{description:p("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:ie(new bi(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[p("wordBreak.normal","Use the default line break rule."),p("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:p("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:ie(new xs(130,"wordSeparators",JW,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ie(new bi(131,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({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:p({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:ie(new xs(132,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ie(new xs(133,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ie(new zt(134,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({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:ie(new bi(135,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ie(new bi(136,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ie(new WZ),defaultColorDecorators:ie(new bt(146,"defaultColorDecorators",!1,{markdownDescription:p("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:ie(new iY),tabFocusMode:ie(new bt(143,"tabFocusMode",!1,{markdownDescription:p("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:ie(new Ip),wrappingInfo:ie(new mY),wrappingIndent:ie(new pY),wrappingStrategy:ie(new qZ)};class SY{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?am.isErrorNoTelemetry(e)?new am(e.message+`
|
|
@@ -19,7 +19,7 @@ const sZ="modulepreload",oZ=function(s,e){return new URL(s,e).href},h4={},Se=fun
|
|
|
19
19
|
| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const n=p("contextkey.parser.error.expectedButGot",`Expected: {0}
|
|
20
20
|
Received: '{1}'.`,e,Gh.getLexeme(t)),o=t.offset,r=Gh.getLexeme(t);return this._parsingErrors.push({message:n,offset:o,lexeme:r,additionalInfo:i}),lb._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};QV._parseError=new Error;class K{static false(){return Ws.INSTANCE}static true(){return oo.INSTANCE}static has(e){return af.create(e)}static equals(e,t){return i_.create(e,t)}static notEquals(e,t){return gk.create(e,t)}static regex(e,t){return Nv.create(e,t)}static in(e,t){return uk.create(e,t)}static notIn(e,t){return hk.create(e,t)}static not(e){return lf.create(e)}static and(...e){return og.create(e,null,!0)}static or(...e){return Id.create(e,null,!0)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}}K._parser=new QV({regexParsingWithErrorRecovery:!1});function cJ(s,e){const t=s?s.substituteConstants():void 0,i=e?e.substituteConstants():void 0;return!t&&!i?!0:!t||!i?!1:t.equals(i)}function Ob(s,e){return s.cmp(e)}class Ws{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return oo.INSTANCE}}Ws.INSTANCE=new Ws;class oo{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return Ws.INSTANCE}}oo.INSTANCE=new oo;class af{static create(e,t=null){const i=ns.get(e);return typeof i=="boolean"?i?oo.INSTANCE:Ws.INSTANCE:new af(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:eH(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=ns.get(this.key);return typeof e=="boolean"?e?oo.INSTANCE:Ws.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=lf.create(this.key,this)),this.negated}}class i_{static create(e,t,i=null){if(typeof t=="boolean")return t?af.create(e,i):lf.create(e,i);const n=ns.get(e);return typeof n=="boolean"?t===(n?"true":"false")?oo.INSTANCE:Ws.INSTANCE:new i_(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:df(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=ns.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?oo.INSTANCE:Ws.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=gk.create(this.key,this.value,this)),this.negated}}class uk{static create(e,t){return new uk(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:df(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):typeof i=="string"&&typeof t=="object"&&t!==null?tJ.call(t,i):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=hk.create(this.key,this.valueKey)),this.negated}}class hk{static create(e,t){return new hk(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=uk.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class gk{static create(e,t,i=null){if(typeof t=="boolean")return t?lf.create(e,i):af.create(e,i);const n=ns.get(e);return typeof n=="boolean"?t===(n?"true":"false")?Ws.INSTANCE:oo.INSTANCE:new gk(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:df(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=ns.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?Ws.INSTANCE:oo.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=i_.create(this.key,this.value,this)),this.negated}}class lf{static create(e,t=null){const i=ns.get(e);return typeof i=="boolean"?i?Ws.INSTANCE:oo.INSTANCE:new lf(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:eH(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=ns.get(this.key);return typeof e=="boolean"?e?Ws.INSTANCE:oo.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=af.create(this.key,this)),this.negated}}function fk(s,e){if(typeof s=="string"){const t=parseFloat(s);isNaN(t)||(s=t)}return typeof s=="string"||typeof s=="number"?e(s):Ws.INSTANCE}class pk{static create(e,t,i=null){return fk(t,n=>new pk(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:df(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=bk.create(this.key,this.value,this)),this.negated}}class mk{static create(e,t,i=null){return fk(t,n=>new mk(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:df(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_k.create(this.key,this.value,this)),this.negated}}class _k{static create(e,t,i=null){return fk(t,n=>new _k(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:df(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=mk.create(this.key,this.value,this)),this.negated}}class bk{static create(e,t,i=null){return fk(t,n=>new bk(e,n,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:df(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=pk.create(this.key,this.value,this)),this.negated}}class Nv{static create(e,t){return new Nv(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return t<i?-1:t>i?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=tP.create(this)),this.negated}}class tP{static create(e){return new tP(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function JV(s){let e=null;for(let t=0,i=s.length;t<i;t++){const n=s[t].substituteConstants();if(s[t]!==n&&e===null){e=[];for(let o=0;o<t;o++)e[o]=s[o]}e!==null&&(e[t]=n)}return e===null?s:e}class og{static create(e,t,i){return og._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=6}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const n=Ob(this.expr[t],e.expr[t]);if(n!==0)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=JV(this.expr);return e===this.expr?this:og.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e,t,i){const n=[];let o=!1;for(const r of e)if(r){if(r.type===1){o=!0;continue}if(r.type===0)return Ws.INSTANCE;if(r.type===6){n.push(...r.expr);continue}n.push(r)}if(n.length===0&&o)return oo.INSTANCE;if(n.length!==0){if(n.length===1)return n[0];n.sort(Ob);for(let r=1;r<n.length;r++)n[r-1].equals(n[r])&&(n.splice(r,1),r--);if(n.length===1)return n[0];for(;n.length>1;){const r=n[n.length-1];if(r.type!==9)break;n.pop();const a=n.pop(),l=n.length===0,d=Id.create(r.expr.map(c=>og.create([c,a],null,i)),null,l);d&&(n.push(d),n.sort(Ob))}if(n.length===1)return n[0];if(i){for(let r=0;r<n.length;r++)for(let a=r+1;a<n.length;a++)if(n[r].negate().equals(n[a]))return Ws.INSTANCE;if(n.length===1)return n[0]}return new og(n,t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=Id.create(e,this,!0)}return this.negated}}class Id{static create(e,t,i){return Id._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,i=this.expr.length;t<i;t++){const n=Ob(this.expr[t],e.expr[t]);if(n!==0)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,i=this.expr.length;t<i;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}substituteConstants(){const e=JV(this.expr);return e===this.expr?this:Id.create(e,this.negated,!1)}evaluate(e){for(let t=0,i=this.expr.length;t<i;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e,t,i){let n=[],o=!1;if(e){for(let r=0,a=e.length;r<a;r++){const l=e[r];if(l){if(l.type===0){o=!0;continue}if(l.type===1)return oo.INSTANCE;if(l.type===9){n=n.concat(l.expr);continue}n.push(l)}}if(n.length===0&&o)return Ws.INSTANCE;n.sort(Ob)}if(n.length!==0){if(n.length===1)return n[0];for(let r=1;r<n.length;r++)n[r-1].equals(n[r])&&(n.splice(r,1),r--);if(n.length===1)return n[0];if(i){for(let r=0;r<n.length;r++)for(let a=r+1;a<n.length;a++)if(n[r].negate().equals(n[a]))return oo.INSTANCE;if(n.length===1)return n[0]}return new Id(n,t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),n=[];for(const o of K4(t))for(const r of K4(i))n.push(og.create([o,r],null,!1));e.unshift(Id.create(n,null,!1))}this.negated=Id.create(e,this,!0)}return this.negated}}class he extends af{static all(){return he._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,typeof i=="object"?he._info.push({...i,key:e}):i!==!0&&he._info.push({key:e,description:i,type:t!=null?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return i_.create(this.key,e)}}he._info=[];const Fe=ct("contextKeyService");function eH(s,e){return s<e?-1:s>e?1:0}function df(s,e,t,i){return s<t?-1:s>t?1:e<i?-1:e>i?1:0}function $T(s,e){if(s.type===0||e.type===1)return!0;if(s.type===9)return e.type===9?q4(s.expr,e.expr):!1;if(e.type===9){for(const t of e.expr)if($T(s,t))return!0;return!1}if(s.type===6){if(e.type===6)return q4(e.expr,s.expr);for(const t of s.expr)if($T(t,e))return!0;return!1}return s.equals(e)}function q4(s,e){let t=0,i=0;for(;t<s.length&&i<e.length;){const n=s[t].cmp(e[i]);if(n<0)return!1;n===0&&t++,i++}return t===s.length}function K4(s){return s.type===9?s.expr:[s]}function zD(s,e){if(!s)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function vk(s,e="Unreachable"){throw new Error(e)}function G4(s){s||je(new li("Soft Assertion Failed"))}function hm(s){if(!s()){debugger;s(),je(new li("Assertion Failed"))}}function tH(s,e){let t=0;for(;t<s.length-1;){const i=s[t],n=s[t+1];if(!e(i,n))return!1;t++}return!0}class uJ{constructor(){this.data=new Map}add(e,t){zD(Rs(e)),zD(Is(t)),zD(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}const _i=new uJ;class iP{constructor(){this._coreKeybindings=new Ts,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(bo===1){if(e&&e.win)return e.win}else if(bo===2){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=iP.bindToCurrentPlatform(e),i=new X;if(t&&t.primary){const n=NT(t.primary,bo);n&&i.add(this._registerDefaultKeybinding(n,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let n=0,o=t.secondary.length;n<o;n++){const r=t.secondary[n],a=NT(r,bo);a&&i.add(this._registerDefaultKeybinding(a,e.id,e.args,e.weight,-n-1,e.when))}return i}registerCommandAndKeybindingRule(e){return Gr(this.registerKeybindingRule(e),pt.registerCommand(e))}_registerDefaultKeybinding(e,t,i,n,o,r){const a=this._coreKeybindings.push({keybinding:e,command:t,commandArgs:i,when:r,weight1:n,weight2:o,extensionId:null,isBuiltinExtension:!1});return this._cachedMergedKeybindings=null,De(()=>{a(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(gJ)),this._cachedMergedKeybindings.slice(0)}}const ro=new iP,hJ={EditorModes:"platform.keybindingsRegistry"};_i.add(hJ.EditorModes,ro);function gJ(s,e){if(s.weight1!==e.weight1)return s.weight1-e.weight1;if(s.command&&e.command){if(s.command<e.command)return-1;if(s.command>e.command)return 1}return s.weight2-e.weight2}var fJ=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Z4=function(s,e){return function(t,i){e(t,i,s)}},Z1;function op(s){return s.command!==void 0}function pJ(s){return s.submenu!==void 0}class D{constructor(e){if(D._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);D._instances.set(e,this),this.id=e}}D._instances=new Map;D.CommandPalette=new D("CommandPalette");D.DebugBreakpointsContext=new D("DebugBreakpointsContext");D.DebugCallStackContext=new D("DebugCallStackContext");D.DebugConsoleContext=new D("DebugConsoleContext");D.DebugVariablesContext=new D("DebugVariablesContext");D.NotebookVariablesContext=new D("NotebookVariablesContext");D.DebugHoverContext=new D("DebugHoverContext");D.DebugWatchContext=new D("DebugWatchContext");D.DebugToolBar=new D("DebugToolBar");D.DebugToolBarStop=new D("DebugToolBarStop");D.EditorContext=new D("EditorContext");D.SimpleEditorContext=new D("SimpleEditorContext");D.EditorContent=new D("EditorContent");D.EditorLineNumberContext=new D("EditorLineNumberContext");D.EditorContextCopy=new D("EditorContextCopy");D.EditorContextPeek=new D("EditorContextPeek");D.EditorContextShare=new D("EditorContextShare");D.EditorTitle=new D("EditorTitle");D.EditorTitleRun=new D("EditorTitleRun");D.EditorTitleContext=new D("EditorTitleContext");D.EditorTitleContextShare=new D("EditorTitleContextShare");D.EmptyEditorGroup=new D("EmptyEditorGroup");D.EmptyEditorGroupContext=new D("EmptyEditorGroupContext");D.EditorTabsBarContext=new D("EditorTabsBarContext");D.EditorTabsBarShowTabsSubmenu=new D("EditorTabsBarShowTabsSubmenu");D.EditorTabsBarShowTabsZenModeSubmenu=new D("EditorTabsBarShowTabsZenModeSubmenu");D.EditorActionsPositionSubmenu=new D("EditorActionsPositionSubmenu");D.ExplorerContext=new D("ExplorerContext");D.ExplorerContextShare=new D("ExplorerContextShare");D.ExtensionContext=new D("ExtensionContext");D.GlobalActivity=new D("GlobalActivity");D.CommandCenter=new D("CommandCenter");D.CommandCenterCenter=new D("CommandCenterCenter");D.LayoutControlMenuSubmenu=new D("LayoutControlMenuSubmenu");D.LayoutControlMenu=new D("LayoutControlMenu");D.MenubarMainMenu=new D("MenubarMainMenu");D.MenubarAppearanceMenu=new D("MenubarAppearanceMenu");D.MenubarDebugMenu=new D("MenubarDebugMenu");D.MenubarEditMenu=new D("MenubarEditMenu");D.MenubarCopy=new D("MenubarCopy");D.MenubarFileMenu=new D("MenubarFileMenu");D.MenubarGoMenu=new D("MenubarGoMenu");D.MenubarHelpMenu=new D("MenubarHelpMenu");D.MenubarLayoutMenu=new D("MenubarLayoutMenu");D.MenubarNewBreakpointMenu=new D("MenubarNewBreakpointMenu");D.PanelAlignmentMenu=new D("PanelAlignmentMenu");D.PanelPositionMenu=new D("PanelPositionMenu");D.ActivityBarPositionMenu=new D("ActivityBarPositionMenu");D.MenubarPreferencesMenu=new D("MenubarPreferencesMenu");D.MenubarRecentMenu=new D("MenubarRecentMenu");D.MenubarSelectionMenu=new D("MenubarSelectionMenu");D.MenubarShare=new D("MenubarShare");D.MenubarSwitchEditorMenu=new D("MenubarSwitchEditorMenu");D.MenubarSwitchGroupMenu=new D("MenubarSwitchGroupMenu");D.MenubarTerminalMenu=new D("MenubarTerminalMenu");D.MenubarViewMenu=new D("MenubarViewMenu");D.MenubarHomeMenu=new D("MenubarHomeMenu");D.OpenEditorsContext=new D("OpenEditorsContext");D.OpenEditorsContextShare=new D("OpenEditorsContextShare");D.ProblemsPanelContext=new D("ProblemsPanelContext");D.SCMInputBox=new D("SCMInputBox");D.SCMChangesSeparator=new D("SCMChangesSeparator");D.SCMIncomingChanges=new D("SCMIncomingChanges");D.SCMIncomingChangesContext=new D("SCMIncomingChangesContext");D.SCMIncomingChangesSetting=new D("SCMIncomingChangesSetting");D.SCMOutgoingChanges=new D("SCMOutgoingChanges");D.SCMOutgoingChangesContext=new D("SCMOutgoingChangesContext");D.SCMOutgoingChangesSetting=new D("SCMOutgoingChangesSetting");D.SCMIncomingChangesAllChangesContext=new D("SCMIncomingChangesAllChangesContext");D.SCMIncomingChangesHistoryItemContext=new D("SCMIncomingChangesHistoryItemContext");D.SCMOutgoingChangesAllChangesContext=new D("SCMOutgoingChangesAllChangesContext");D.SCMOutgoingChangesHistoryItemContext=new D("SCMOutgoingChangesHistoryItemContext");D.SCMChangeContext=new D("SCMChangeContext");D.SCMResourceContext=new D("SCMResourceContext");D.SCMResourceContextShare=new D("SCMResourceContextShare");D.SCMResourceFolderContext=new D("SCMResourceFolderContext");D.SCMResourceGroupContext=new D("SCMResourceGroupContext");D.SCMSourceControl=new D("SCMSourceControl");D.SCMSourceControlInline=new D("SCMSourceControlInline");D.SCMSourceControlTitle=new D("SCMSourceControlTitle");D.SCMTitle=new D("SCMTitle");D.SearchContext=new D("SearchContext");D.SearchActionMenu=new D("SearchActionContext");D.StatusBarWindowIndicatorMenu=new D("StatusBarWindowIndicatorMenu");D.StatusBarRemoteIndicatorMenu=new D("StatusBarRemoteIndicatorMenu");D.StickyScrollContext=new D("StickyScrollContext");D.TestItem=new D("TestItem");D.TestItemGutter=new D("TestItemGutter");D.TestMessageContext=new D("TestMessageContext");D.TestMessageContent=new D("TestMessageContent");D.TestPeekElement=new D("TestPeekElement");D.TestPeekTitle=new D("TestPeekTitle");D.TouchBarContext=new D("TouchBarContext");D.TitleBarContext=new D("TitleBarContext");D.TitleBarTitleContext=new D("TitleBarTitleContext");D.TunnelContext=new D("TunnelContext");D.TunnelPrivacy=new D("TunnelPrivacy");D.TunnelProtocol=new D("TunnelProtocol");D.TunnelPortInline=new D("TunnelInline");D.TunnelTitle=new D("TunnelTitle");D.TunnelLocalAddressInline=new D("TunnelLocalAddressInline");D.TunnelOriginInline=new D("TunnelOriginInline");D.ViewItemContext=new D("ViewItemContext");D.ViewContainerTitle=new D("ViewContainerTitle");D.ViewContainerTitleContext=new D("ViewContainerTitleContext");D.ViewTitle=new D("ViewTitle");D.ViewTitleContext=new D("ViewTitleContext");D.CommentEditorActions=new D("CommentEditorActions");D.CommentThreadTitle=new D("CommentThreadTitle");D.CommentThreadActions=new D("CommentThreadActions");D.CommentThreadAdditionalActions=new D("CommentThreadAdditionalActions");D.CommentThreadTitleContext=new D("CommentThreadTitleContext");D.CommentThreadCommentContext=new D("CommentThreadCommentContext");D.CommentTitle=new D("CommentTitle");D.CommentActions=new D("CommentActions");D.InteractiveToolbar=new D("InteractiveToolbar");D.InteractiveCellTitle=new D("InteractiveCellTitle");D.InteractiveCellDelete=new D("InteractiveCellDelete");D.InteractiveCellExecute=new D("InteractiveCellExecute");D.InteractiveInputExecute=new D("InteractiveInputExecute");D.IssueReporter=new D("IssueReporter");D.NotebookToolbar=new D("NotebookToolbar");D.NotebookStickyScrollContext=new D("NotebookStickyScrollContext");D.NotebookCellTitle=new D("NotebookCellTitle");D.NotebookCellDelete=new D("NotebookCellDelete");D.NotebookCellInsert=new D("NotebookCellInsert");D.NotebookCellBetween=new D("NotebookCellBetween");D.NotebookCellListTop=new D("NotebookCellTop");D.NotebookCellExecute=new D("NotebookCellExecute");D.NotebookCellExecuteGoTo=new D("NotebookCellExecuteGoTo");D.NotebookCellExecutePrimary=new D("NotebookCellExecutePrimary");D.NotebookDiffCellInputTitle=new D("NotebookDiffCellInputTitle");D.NotebookDiffCellMetadataTitle=new D("NotebookDiffCellMetadataTitle");D.NotebookDiffCellOutputsTitle=new D("NotebookDiffCellOutputsTitle");D.NotebookOutputToolbar=new D("NotebookOutputToolbar");D.NotebookEditorLayoutConfigure=new D("NotebookEditorLayoutConfigure");D.NotebookKernelSource=new D("NotebookKernelSource");D.BulkEditTitle=new D("BulkEditTitle");D.BulkEditContext=new D("BulkEditContext");D.TimelineItemContext=new D("TimelineItemContext");D.TimelineTitle=new D("TimelineTitle");D.TimelineTitleContext=new D("TimelineTitleContext");D.TimelineFilterSubMenu=new D("TimelineFilterSubMenu");D.AccountsContext=new D("AccountsContext");D.SidebarTitle=new D("SidebarTitle");D.PanelTitle=new D("PanelTitle");D.AuxiliaryBarTitle=new D("AuxiliaryBarTitle");D.TerminalInstanceContext=new D("TerminalInstanceContext");D.TerminalEditorInstanceContext=new D("TerminalEditorInstanceContext");D.TerminalNewDropdownContext=new D("TerminalNewDropdownContext");D.TerminalTabContext=new D("TerminalTabContext");D.TerminalTabEmptyAreaContext=new D("TerminalTabEmptyAreaContext");D.TerminalStickyScrollContext=new D("TerminalStickyScrollContext");D.WebviewContext=new D("WebviewContext");D.InlineCompletionsActions=new D("InlineCompletionsActions");D.InlineEditActions=new D("InlineEditActions");D.NewFile=new D("NewFile");D.MergeInput1Toolbar=new D("MergeToolbar1Toolbar");D.MergeInput2Toolbar=new D("MergeToolbar2Toolbar");D.MergeBaseToolbar=new D("MergeBaseToolbar");D.MergeInputResultToolbar=new D("MergeToolbarResultToolbar");D.InlineSuggestionToolbar=new D("InlineSuggestionToolbar");D.InlineEditToolbar=new D("InlineEditToolbar");D.ChatContext=new D("ChatContext");D.ChatCodeBlock=new D("ChatCodeblock");D.ChatMessageTitle=new D("ChatMessageTitle");D.ChatExecute=new D("ChatExecute");D.ChatInputSide=new D("ChatInputSide");D.AccessibleView=new D("AccessibleView");D.MultiDiffEditorFileToolbar=new D("MultiDiffEditorFileToolbar");const Sr=ct("menuService");class Td{static for(e){let t=this._all.get(e);return t||(t=new Td(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof Td&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}Td._all=new Map;const Tn=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new AY({merge:Td.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(s){return this._commands.set(s.id,s),this._onDidChangeMenu.fire(Td.for(D.CommandPalette)),De(()=>{this._commands.delete(s.id)&&this._onDidChangeMenu.fire(Td.for(D.CommandPalette))})}getCommand(s){return this._commands.get(s)}getCommands(){const s=new Map;return this._commands.forEach((e,t)=>s.set(t,e)),s}appendMenuItem(s,e){let t=this._menuItems.get(s);t||(t=new Ts,this._menuItems.set(s,t));const i=t.push(e);return this._onDidChangeMenu.fire(Td.for(s)),De(()=>{i(),this._onDidChangeMenu.fire(Td.for(s))})}appendMenuItems(s){const e=new X;for(const{id:t,item:i}of s)e.add(this.appendMenuItem(t,i));return e}getMenuItems(s){let e;return this._menuItems.has(s)?e=[...this._menuItems.get(s)]:e=[],s===D.CommandPalette&&this._appendImplicitItems(e),e}_appendImplicitItems(s){const e=new Set;for(const t of s)op(t)&&(e.add(t.command.id),t.alt&&e.add(t.alt.id));this._commands.forEach((t,i)=>{e.has(i)||s.push({command:t})})}};class Av extends um{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,typeof e.title=="string"?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let Zo=Z1=class{static label(e,t){return t?.renderShortTitle&&e.shortTitle?typeof e.shortTitle=="string"?e.shortTitle:e.shortTitle.value:typeof e.title=="string"?e.title:e.title.value}constructor(e,t,i,n,o,r){var a,l;this.hideActions=n,this._commandService=r,this.id=e.id,this.label=Z1.label(e,i),this.tooltip=(l=typeof e.tooltip=="string"?e.tooltip:(a=e.tooltip)===null||a===void 0?void 0:a.value)!==null&&l!==void 0?l:"",this.enabled=!e.precondition||o.contextMatchesRules(e.precondition),this.checked=void 0;let d;if(e.toggled){const c=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=o.contextMatchesRules(c.condition),this.checked&&c.tooltip&&(this.tooltip=typeof c.tooltip=="string"?c.tooltip:c.tooltip.value),this.checked&&Re.isThemeIcon(c.icon)&&(d=c.icon),this.checked&&c.title&&(this.label=typeof c.title=="string"?c.title:c.title.value)}d||(d=Re.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new Z1(t,void 0,i,n,o,r):void 0,this._options=i,this.class=d&&Re.asClassName(d)}run(...e){var t,i;let n=[];return!((t=this._options)===null||t===void 0)&&t.arg&&(n=[...n,this._options.arg]),!((i=this._options)===null||i===void 0)&&i.shouldForwardArgs&&(n=[...n,...e]),this._commandService.executeCommand(this.id,...n)}};Zo=Z1=fJ([Z4(4,Fe),Z4(5,mi)],Zo);class uo{constructor(e){this.desc=e}}function Kt(s){const e=new X,t=new s,{f1:i,menu:n,keybinding:o,...r}=t.desc;if(pt.getCommand(r.id))throw new Error(`Cannot register two commands with the same id: ${r.id}`);if(e.add(pt.registerCommand({id:r.id,handler:(a,...l)=>t.run(a,...l),metadata:r.metadata})),Array.isArray(n))for(const a of n)e.add(Tn.appendMenuItem(a.id,{command:{...r,precondition:a.precondition===null?void 0:r.precondition},...a}));else n&&e.add(Tn.appendMenuItem(n.id,{command:{...r,precondition:n.precondition===null?void 0:r.precondition},...n}));if(i&&(e.add(Tn.appendMenuItem(D.CommandPalette,{command:r,when:r.precondition})),e.add(Tn.addCommand(r))),Array.isArray(o))for(const a of o)e.add(ro.registerKeybindingRule({...a,id:r.id,when:r.precondition?K.and(r.precondition,a.when):a.when}));else o&&e.add(ro.registerKeybindingRule({...o,id:r.id,when:r.precondition?K.and(r.precondition,o.when):o.when}));return e}const fs=ct("telemetryService"),Hs=ct("logService");var zn;(function(s){s[s.Off=0]="Off",s[s.Trace=1]="Trace",s[s.Debug=2]="Debug",s[s.Info=3]="Info",s[s.Warning=4]="Warning",s[s.Error=5]="Error"})(zn||(zn={}));const iH=zn.Info;class nH extends V{constructor(){super(...arguments),this.level=iH,this._onDidChangeLogLevel=this._register(new O),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==zn.Off&&this.level<=e}}class mJ extends nH{constructor(e=iH,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(zn.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(zn.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(zn.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(zn.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(zn.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}}class _J extends nH{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}function bJ(s){switch(s){case zn.Trace:return"trace";case zn.Debug:return"debug";case zn.Info:return"info";case zn.Warning:return"warn";case zn.Error:return"error";case zn.Off:return"off"}}new he("logLevel",bJ(zn.Info));let Ck=class{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let i=t.kbExpr;this.precondition&&(i?i=K.and(i,this.precondition):i=this.precondition);const n={id:this.id,weight:t.weight,args:t.args,when:i,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};ro.registerKeybindingRule(n)}}pt.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){Tn.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}};class n_ extends Ck{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,n){return this._implementations.push({priority:e,name:t,implementation:i,when:n}),this._implementations.sort((o,r)=>r.priority-o.priority),{dispose:()=>{for(let o=0;o<this._implementations.length;o++)if(this._implementations[o].implementation===i){this._implementations.splice(o,1);return}}}}runCommand(e,t){const i=e.get(Hs),n=e.get(Fe);i.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const o of this._implementations){if(o.when){const a=n.getContext(jn());if(!o.when.evaluate(a))continue}const r=o.implementation(e,t);if(r)return i.trace(`Command '${this.id}' was handled by '${o.name}'.`),typeof r=="boolean"?void 0:r}i.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class sH extends Ck{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class wn extends Ck{static bindToContribution(e){return class extends wn{constructor(i){super(i),this._callback=i.handler}runEditorCommand(i,n,o){const r=e(n);r&&this._callback(r,o)}}}static runEditorCommand(e,t,i,n){const o=e.get(yt),r=o.getFocusedCodeEditor()||o.getActiveCodeEditor();if(r)return r.invokeWithinContext(a=>{if(a.get(Fe).contextMatchesRules(i??void 0))return n(a,r,t)})}runCommand(e,t){return wn.runEditorCommand(e,t,this.precondition,(i,n,o)=>this.runEditorCommand(i,n,o))}}class fe extends wn{static convertOptions(e){let t;Array.isArray(e.menuOpts)?t=e.menuOpts:e.menuOpts?t=[e.menuOpts]:t=[];function i(n){return n.menuId||(n.menuId=D.EditorContext),n.title||(n.title=e.label),n.when=K.and(e.precondition,n.when),n}return Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(e){super(fe.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(fs).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class oH extends fe{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort((i,n)=>n[0]-i[0]),{dispose:()=>{for(let i=0;i<this._implementations.length;i++)if(this._implementations[i][1]===t){this._implementations.splice(i,1);return}}}}run(e,t,i){for(const n of this._implementations){const o=n[1](e,t,i);if(o)return typeof o=="boolean"?void 0:o}}}class Ga extends uo{run(e,...t){const i=e.get(yt),n=i.getFocusedCodeEditor()||i.getActiveCodeEditor();if(n)return n.invokeWithinContext(o=>{var r,a;const l=o.get(Fe),d=o.get(Hs);if(!l.contextMatchesRules((r=this.desc.precondition)!==null&&r!==void 0?r:void 0)){d.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,(a=this.desc.precondition)===null||a===void 0?void 0:a.serialize());return}return this.runEditorCommand(o,n,...t)})}}function rd(s,e){pt.registerCommand(s,function(t,...i){const n=t.get(Ne),[o,r]=i;Dt(Ie.isUri(o)),Dt(F.isIPosition(r));const a=t.get(gi).getModel(o);if(a){const l=F.lift(r);return n.invokeFunction(e,a,l,...i.slice(2))}return t.get(co).createModelReference(o).then(l=>new Promise((d,c)=>{try{const u=n.invokeFunction(e,l.object.textEditorModel,F.lift(r),i.slice(2));d(u)}catch(u){c(u)}}).finally(()=>{l.dispose()}))})}function le(s){return lr.INSTANCE.registerEditorCommand(s),s}function Q(s){const e=new s;return lr.INSTANCE.registerEditorAction(e),e}function rH(s){return lr.INSTANCE.registerEditorAction(s),s}function vJ(s){lr.INSTANCE.registerEditorAction(s)}function xt(s,e,t){lr.INSTANCE.registerEditorContribution(s,e,t)}var Rp;(function(s){function e(r){return lr.INSTANCE.getEditorCommand(r)}s.getEditorCommand=e;function t(){return lr.INSTANCE.getEditorActions()}s.getEditorActions=t;function i(){return lr.INSTANCE.getEditorContributions()}s.getEditorContributions=i;function n(r){return lr.INSTANCE.getEditorContributions().filter(a=>r.indexOf(a.id)>=0)}s.getSomeEditorContributions=n;function o(){return lr.INSTANCE.getDiffEditorContributions()}s.getDiffEditorContributions=o})(Rp||(Rp={}));const CJ={EditorCommonContributions:"editor.contributions"};class lr{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}lr.INSTANCE=new lr;_i.add(CJ.EditorCommonContributions,lr.INSTANCE);function EC(s){return s.register(),s}const aH=EC(new n_({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:D.MenubarEditMenu,group:"1_do",title:p({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:D.CommandPalette,group:"",title:p("undo","Undo"),order:1}]}));EC(new sH(aH,{id:"default:undo",precondition:void 0}));const lH=EC(new n_({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:D.MenubarEditMenu,group:"1_do",title:p({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:D.CommandPalette,group:"",title:p("redo","Redo"),order:1}]}));EC(new sH(lH,{id:"default:redo",precondition:void 0}));const wJ=EC(new n_({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:D.MenubarSelectionMenu,group:"1_basic",title:p({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:D.CommandPalette,group:"",title:p("selectAll","Select All"),order:1}]})),SJ="$initialize";let Y4=!1;function zT(s){ah&&(Y4||(Y4=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(s.message))}class yJ{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class X4{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class xJ{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class kJ{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class LJ{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class DJ{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const i=String(++this._lastSentReq);return new Promise((n,o)=>{this._pendingReplies[i]={resolve:n,reject:o},this._send(new yJ(this._workerId,i,e,t))})}listen(e,t){let i=null;const n=new O({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new xJ(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new LJ(this._workerId,i)),i=null}});return n.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),t.reject(i);return}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then(n=>{this._send(new X4(this._workerId,t,n,void 0))},n=>{n.detail instanceof Error&&(n.detail=w4(n.detail)),this._send(new X4(this._workerId,t,void 0,w4(n)))})}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)(n=>{this._send(new kJ(this._workerId,t,n))});this._pendingEvents.set(t,i)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const t=[];if(e.type===0)for(let i=0;i<e.args.length;i++)e.args[i]instanceof ArrayBuffer&&t.push(e.args[i]);else e.type===1&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class EJ extends V{constructor(e,t,i){super();let n=null;this._worker=this._register(e.create("vs/base/common/worker/simpleWorker",c=>{this._protocol.handleMessage(c)},c=>{n?.(c)})),this._protocol=new DJ({sendMessage:(c,u)=>{this._worker.postMessage(c,u)},handleMessage:(c,u)=>{if(typeof i[c]!="function")return Promise.reject(new Error("Missing method "+c+" on main thread host."));try{return Promise.resolve(i[c].apply(i,u))}catch(h){return Promise.reject(h)}},handleEvent:(c,u)=>{if(cH(c)){const h=i[c].call(i,u);if(typeof h!="function")throw new Error(`Missing dynamic event ${c} on main thread host.`);return h}if(dH(c)){const h=i[c];if(typeof h!="function")throw new Error(`Missing event ${c} on main thread host.`);return h}throw new Error(`Malformed event name ${c}`)}}),this._protocol.setWorkerId(this._worker.getId());let o=null;const r=globalThis.require;typeof r<"u"&&typeof r.getConfig=="function"?o=r.getConfig():typeof globalThis.requirejs<"u"&&(o=globalThis.requirejs.s.contexts._.config);const a=xM(i);this._onModuleLoaded=this._protocol.sendMessage(SJ,[this._worker.getId(),JSON.parse(JSON.stringify(o)),t,a]);const l=(c,u)=>this._request(c,u),d=(c,u)=>this._protocol.listen(c,u);this._lazyProxy=new Promise((c,u)=>{n=u,this._onModuleLoaded.then(h=>{c(IJ(h,l,d))},h=>{u(h),this._onError("Worker failed to load "+t,h)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((i,n)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(i,n)},n)})}_onError(e,t){console.error(e),console.info(t)}}function dH(s){return s[0]==="o"&&s[1]==="n"&&gl(s.charCodeAt(2))}function cH(s){return/^onDynamic/.test(s)&&gl(s.charCodeAt(9))}function IJ(s,e,t){const i=r=>function(){const a=Array.prototype.slice.call(arguments,0);return e(r,a)},n=r=>function(a){return t(r,a)},o={};for(const r of s){if(cH(r)){o[r]=n(r);continue}if(dH(r)){o[r]=t(r,void 0);continue}o[r]=i(r)}return o}function fc(s,e){var t;const i=globalThis.MonacoEnvironment;if(i?.createTrustedTypesPolicy)try{return i.createTrustedTypesPolicy(s,e)}catch(n){je(n);return}try{return(t=Wt.trustedTypes)===null||t===void 0?void 0:t.createPolicy(s,e)}catch(n){je(n);return}}const Q4=fc("defaultWorkerFactory",{createScriptURL:s=>s});function TJ(s){const e=globalThis.MonacoEnvironment;if(e){if(typeof e.getWorker=="function")return e.getWorker("workerMain.js",s);if(typeof e.getWorkerUrl=="function"){const t=e.getWorkerUrl("workerMain.js",s);return new Worker(Q4?Q4.createScriptURL(t):t,{name:s})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function NJ(s){return typeof s.then=="function"}class AJ extends V{constructor(e,t,i,n,o){super(),this.id=t,this.label=i;const r=TJ(i);NJ(r)?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then(a=>{a.onmessage=function(l){n(l.data)},a.onmessageerror=o,typeof a.addEventListener=="function"&&a.addEventListener("error",o)}),this._register(De(()=>{var a;(a=this.worker)===null||a===void 0||a.then(l=>{l.onmessage=null,l.onmessageerror=null,l.removeEventListener("error",o),l.terminate()}),this.worker=null}))}getId(){return this.id}postMessage(e,t){var i;(i=this.worker)===null||i===void 0||i.then(n=>{try{n.postMessage(e,t)}catch(o){je(o),je(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:o}))}})}}class wk{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){const n=++wk.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new AJ(e,n,this._label||"anonymous"+n,t,o=>{zT(o),this._webWorkerFailedBeforeError=o,i(o)})}}wk.LAST_WORKER_ID=0;var ji;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(ji||(ji={}));class UD{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++)switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1;break}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(e.getTokenCount()===0)return!0;const i=e.findTokenIndexAtOffset(t-2),n=e.getStandardTokenType(i);return this.isOK(n)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){const n=String.fromCharCode(i);if(!this.open.includes(n)&&!this.close.includes(n))return n}return null}findNeutralCharacter(){return this._neutralCharacterSearched||(this._neutralCharacterSearched=!0,this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),this._neutralCharacter||(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class RJ{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)N_(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),N_(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),N_(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),N_(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),t.close.length===1&&t.open.length===1&&N_(this.autoClosingPairsCloseSingleChar,t.close,t)}}function N_(s,e,t){s.has(e)?s.get(e).push(t):s.set(e,[t])}function Sk(s,e){const t=s.getCount(),i=s.findTokenIndexAtOffset(e),n=s.getLanguageId(i);let o=i;for(;o+1<t&&s.getLanguageId(o+1)===n;)o++;let r=i;for(;r>0&&s.getLanguageId(r-1)===n;)r--;return new MJ(s,n,r,o+1,s.getStartOffset(r),s.getEndOffset(o))}class MJ{constructor(e,t,i,n,o,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=o,this._lastCharOffset=r}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function ll(s){return(s&3)!==0}class gm{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(t=>new UD(t)):e.brackets?this._autoClosingPairs=e.brackets.map(t=>new UD({open:t[0],close:t[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new UD({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:gm.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:gm.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}gm.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])>
|
|
21
21
|
`;gm.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])>
|
|
22
|
-
`;const J4=typeof Buffer<"u";let jD;class yk{static wrap(e){return J4&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new yk(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return J4?this.buffer.toString():(jD||(jD=new TextDecoder),jD.decode(this.buffer))}}function PJ(s,e){return s[e+0]<<0>>>0|s[e+1]<<8>>>0}function OJ(s,e,t){s[t+0]=e&255,e=e>>>8,s[t+1]=e&255}function fa(s,e){return s[e]*2**24+s[e+1]*2**16+s[e+2]*2**8+s[e+3]}function pa(s,e,t){s[t+3]=e,e=e>>>8,s[t+2]=e,e=e>>>8,s[t+1]=e,e=e>>>8,s[t]=e}function e5(s,e){return s[e]}function t5(s,e,t){s[t]=e}let qD;function uH(){return qD||(qD=new TextDecoder("UTF-16LE")),qD}let KD;function FJ(){return KD||(KD=new TextDecoder("UTF-16BE")),KD}let GD;function hH(){return GD||(GD=XW()?uH():FJ()),GD}function BJ(s,e,t){const i=new Uint16Array(s.buffer,e,t);return t>0&&(i[0]===65279||i[0]===65534)?WJ(s,e,t):uH().decode(i)}function WJ(s,e,t){const i=[];let n=0;for(let o=0;o<t;o++){const r=PJ(s,e);e+=2,i[n++]=String.fromCharCode(r)}return i.join("")}class s_{constructor(e){this._capacity=e|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(this._bufferLength===0)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return hH().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(t===0||ln(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i)}}class XS{constructor(e,t,i,n,o,r){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=n,this.forwardRegex=o,this.reversedRegex=r,this._openSet=XS._toSet(this.open),this._closeSet=XS._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}function VJ(s){const e=s.length;s=s.map(r=>[r[0].toLowerCase(),r[1].toLowerCase()]);const t=[];for(let r=0;r<e;r++)t[r]=r;const i=(r,a)=>{const[l,d]=r,[c,u]=a;return l===c||l===u||d===c||d===u},n=(r,a)=>{const l=Math.min(r,a),d=Math.max(r,a);for(let c=0;c<e;c++)t[c]===d&&(t[c]=l)};for(let r=0;r<e;r++){const a=s[r];for(let l=r+1;l<e;l++){const d=s[l];i(a,d)&&n(t[r],t[l])}}const o=[];for(let r=0;r<e;r++){const a=[],l=[];for(let d=0;d<e;d++)if(t[d]===r){const[c,u]=s[d];a.push(c),l.push(u)}a.length>0&&o.push({open:a,close:l})}return o}class HJ{constructor(e,t){this._richEditBracketsBrand=void 0;const i=VJ(t);this.brackets=i.map((n,o)=>new XS(e,o,n.open,n.close,$J(n.open,n.close,i,o),zJ(n.open,n.close,i,o))),this.forwardRegex=UJ(this.brackets),this.reversedRegex=jJ(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const n of this.brackets){for(const o of n.open)this.textIsBracket[o]=n,this.textIsOpenBracket[o]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,o.length);for(const o of n.close)this.textIsBracket[o]=n,this.textIsOpenBracket[o]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,o.length)}}}function gH(s,e,t,i){for(let n=0,o=e.length;n<o;n++){if(n===t)continue;const r=e[n];for(const a of r.open)a.indexOf(s)>=0&&i.push(a);for(const a of r.close)a.indexOf(s)>=0&&i.push(a)}}function fH(s,e){return s.length-e.length}function xk(s){if(s.length<=1)return s;const e=[],t=new Set;for(const i of s)t.has(i)||(e.push(i),t.add(i));return e}function $J(s,e,t,i){let n=[];n=n.concat(s),n=n.concat(e);for(let o=0,r=n.length;o<r;o++)gH(n[o],t,i,n);return n=xk(n),n.sort(fH),n.reverse(),kk(n)}function zJ(s,e,t,i){let n=[];n=n.concat(s),n=n.concat(e);for(let o=0,r=n.length;o<r;o++)gH(n[o],t,i,n);return n=xk(n),n.sort(fH),n.reverse(),kk(n.map(nP))}function UJ(s){let e=[];for(const t of s){for(const i of t.open)e.push(i);for(const i of t.close)e.push(i)}return e=xk(e),kk(e)}function jJ(s){let e=[];for(const t of s){for(const i of t.open)e.push(i);for(const i of t.close)e.push(i)}return e=xk(e),kk(e.map(nP))}function qJ(s){const e=/^[\w ]+$/.test(s);return s=Ko(s),e?`\\b${s}\\b`:s}function kk(s){const e=`(${s.map(qJ).join(")|(")})`;return CV(e,!0)}const nP=function(){function s(i){const n=new Uint16Array(i.length);let o=0;for(let r=i.length-1;r>=0;r--)n[o++]=i.charCodeAt(r);return hH().decode(n)}let e=null,t=null;return function(n){return e!==n&&(e=n,t=s(e)),t}}();class Rr{static _findPrevBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const r=i.length-(o.index||0),a=o[0].length,l=n+r;return new L(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,n,o){const a=nP(i).substring(i.length-o,i.length-n);return this._findPrevBracketInText(e,t,a,n)}static findNextBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const r=o.index||0,a=o[0].length;if(a===0)return null;const l=n+r;return new L(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,n,o){const r=i.substring(n,o);return this.findNextBracketInText(e,t,r,n)}}class KJ{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const n=i.charAt(i.length-1);e.push(n)}return oc(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const n=t.findTokenIndexAtOffset(i-1);if(ll(t.getStandardTokenType(n)))return null;const o=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,i-1)+e,a=Rr.findPrevBracketInRange(o,1,r,0,r.length);if(!a)return null;const l=r.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[l])return null;const c=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:l}:null}}function xw(s){return s.global&&(s.lastIndex=0),!0}class GJ{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&xw(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&xw(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&xw(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&xw(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class rp{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(t=>{const i=rp._createOpenBracketRegExp(t[0]),n=rp._createCloseBracketRegExp(t[1]);i&&n&&this._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:n})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let o=0,r=this._regExpRules.length;o<r;o++){const a=this._regExpRules[o];if([{reg:a.beforeText,text:i},{reg:a.afterText,text:n},{reg:a.previousLineText,text:t}].every(d=>d.reg?(d.reg.lastIndex=0,d.reg.test(d.text)):!0))return a.action}if(e>=2&&i.length>0&&n.length>0)for(let o=0,r=this._brackets.length;o<r;o++){const a=this._brackets[o];if(a.openRegExp.test(i)&&a.closeRegExp.test(n))return{indentAction:ji.IndentOutdent}}if(e>=2&&i.length>0){for(let o=0,r=this._brackets.length;o<r;o++)if(this._brackets[o].openRegExp.test(i))return{indentAction:ji.Indent}}return null}static _createOpenBracketRegExp(e){let t=Ko(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",rp._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=Ko(e);return/\B/.test(t.charAt(t.length-1))||(t=t+"\\b"),t="^\\s*"+t,rp._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return je(t),null}}}const nt=ct("configurationService");function UT(s,e){const t=Object.create(null);for(const i in s)pH(t,i,s[i],e);return t}function pH(s,e,t,i){const n=e.split("."),o=n.pop();let r=s;for(let a=0;a<n.length;a++){const l=n[a];let d=r[l];switch(typeof d){case"undefined":d=r[l]=Object.create(null);break;case"object":break;default:i(`Ignoring ${e} as ${n.slice(0,a+1).join(".")} is ${JSON.stringify(d)}`);return}r=d}if(typeof r=="object"&&r!==null)try{r[o]=t}catch{i(`Ignoring ${e} as ${n.join(".")} is ${JSON.stringify(r)}`)}else i(`Ignoring ${e} as ${n.join(".")} is ${JSON.stringify(r)}`)}function ZJ(s,e){const t=e.split(".");mH(s,t)}function mH(s,e){const t=e.shift();if(e.length===0){delete s[t];return}if(Object.keys(s).indexOf(t)!==-1){const i=s[t];typeof i=="object"&&!Array.isArray(i)&&(mH(i,e),Object.keys(i).length===0&&delete s[t])}}function i5(s,e,t){function i(r,a){let l=r;for(const d of a){if(typeof l!="object"||l===null)return;l=l[d]}return l}const n=e.split("."),o=i(s,n);return typeof o>"u"?t:o}function YJ(s){return s.replace(/[\[\]]/g,"")}const ri=ct("languageService");class fl{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}const _H=[];function mt(s,e,t){e instanceof fl||(e=new fl(e,[],!!t)),_H.push([s,e])}function n5(){return _H}const ki=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),Lk={JSONContribution:"base.contributions.json"};function XJ(s){return s.length>0&&s.charAt(s.length-1)==="#"?s.substring(0,s.length-1):s}class QJ{constructor(){this._onDidChangeSchema=new O,this.schemasById={}}registerSchema(e,t){this.schemasById[XJ(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const JJ=new QJ;_i.add(Lk.JSONContribution,JJ);const Za={Configuration:"base.contributions.configuration"},A_="vscode://schemas/settings/resourceLanguage",s5=_i.as(Lk.JSONContribution);class eee{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new O,this._onDidUpdateConfiguration=new O,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:p("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},s5.registerSchema(A_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),s5.registerSchema(A_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;const n=[];for(const{overrides:o,source:r}of e)for(const a in o)if(t.add(a),Bu.test(a)){const l=this.configurationDefaultsOverrides.get(a),d=(i=l?.valuesSources)!==null&&i!==void 0?i:new Map;if(r)for(const g of Object.keys(o[a]))d.set(g,r);const c={...l?.value||{},...o[a]};this.configurationDefaultsOverrides.set(a,{source:r,value:c,valuesSources:d});const u=YJ(a),h={type:"object",default:c,description:p("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",u),$ref:A_,defaultDefaultValue:c,source:Rs(r)?void 0:r,defaultValueSource:r};n.push(...QS(a)),this.configurationProperties[a]=h,this.defaultLanguageConfigurationOverridesNode.properties[a]=h}else{this.configurationDefaultsOverrides.set(a,{value:o[a],source:r});const l=this.configurationProperties[a];l&&(this.updatePropertyDefaultValue(a,l),this.updateSchema(a,l))}this.doRegisterOverrideIdentifiers(n)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach(n=>{this.validateAndRegisterProperties(n,t,n.extensionInfo,n.restrictedProperties,void 0,i),this.configurationContributors.push(n),this.registerJSONConfiguration(n)})}validateAndRegisterProperties(e,t=!0,i,n,o=3,r){var a;o=Vo(e.scope)?o:e.scope;const l=e.properties;if(l)for(const c in l){const u=l[c];if(t&&nee(c,u)){delete l[c];continue}if(u.source=i,u.defaultDefaultValue=l[c].default,this.updatePropertyDefaultValue(c,u),Bu.test(c)?u.scope=void 0:(u.scope=Vo(u.scope)?o:u.scope,u.restricted=Vo(u.restricted)?!!n?.includes(c):u.restricted),l[c].hasOwnProperty("included")&&!l[c].included){this.excludedConfigurationProperties[c]=l[c],delete l[c];continue}else this.configurationProperties[c]=l[c],!((a=l[c].policy)===null||a===void 0)&&a.name&&this.policyConfigurations.set(l[c].policy.name,c);!l[c].deprecationMessage&&l[c].markdownDeprecationMessage&&(l[c].deprecationMessage=l[c].markdownDeprecationMessage),r.add(c)}const d=e.allOf;if(d)for(const c of d)this.validateAndRegisterProperties(c,t,i,n,o,r)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=i=>{const n=i.properties;if(n)for(const r in n)this.updateSchema(r,n[r]);const o=i.allOf;o?.forEach(t)};t(e)}updateSchema(e,t){switch(t.scope){case 1:break;case 2:break;case 6:break;case 3:break;case 4:break;case 5:this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:p("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:p("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:A_};this.updatePropertyDefaultValue(t,i)}}registerOverridePropertyPatternKey(){p("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),p("overrideSettings.errorMessage","This setting does not support per-language configuration."),this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let n=i?.value,o=i?.source;_o(n)&&(n=t.defaultDefaultValue,o=void 0),_o(n)&&(n=iee(t.type)),t.default=n,t.defaultValueSource=o}}const bH="\\[([^\\]]+)\\]",o5=new RegExp(bH,"g"),tee=`^(${bH})+$`,Bu=new RegExp(tee);function QS(s){const e=[];if(Bu.test(s)){let t=o5.exec(s);for(;t?.length;){const i=t[1].trim();i&&e.push(i),t=o5.exec(s)}}return oc(e)}function iee(s){switch(Array.isArray(s)?s[0]:s){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const Y1=new eee;_i.add(Za.Configuration,Y1);function nee(s,e){var t,i,n,o;return s.trim()?Bu.test(s)?p("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",s):Y1.getConfigurationProperties()[s]!==void 0?p("config.property.duplicate","Cannot register '{0}'. This property is already registered.",s):!((t=e.policy)===null||t===void 0)&&t.name&&Y1.getPolicyConfigurations().get((i=e.policy)===null||i===void 0?void 0:i.name)!==void 0?p("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",s,(n=e.policy)===null||n===void 0?void 0:n.name,Y1.getPolicyConfigurations().get((o=e.policy)===null||o===void 0?void 0:o.name)):null:p("config.property.empty","Cannot register an empty property")}const see={ModesRegistry:"editor.modesRegistry"};class oee{constructor(){this._onDidChangeLanguages=new O,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t<i;t++)if(this._languages[t]===e){this._languages.splice(t,1);return}}}}getLanguages(){return this._languages}}const fm=new oee;_i.add(see.ModesRegistry,fm);const qo="plaintext",ree=".txt";fm.registerLanguage({id:qo,extensions:[ree],aliases:[p("plainText.alias","Plain Text"),"text"],mimetypes:[ki.text]});_i.as(Za.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}]);class aee{constructor(e,t){this.languageId=e;const i=t.brackets?r5(t.brackets):[],n=new D4(a=>{const l=new Set;return{info:new lee(this,a,l),closing:l}}),o=new D4(a=>{const l=new Set,d=new Set;return{info:new dee(this,a,l,d),opening:l,openingColorized:d}});for(const[a,l]of i){const d=n.get(a),c=o.get(l);d.closing.add(c.info),c.opening.add(d.info)}const r=t.colorizedBracketPairs?r5(t.colorizedBracketPairs):i.filter(a=>!(a[0]==="<"&&a[1]===">"));for(const[a,l]of r){const d=n.get(a),c=o.get(l);d.closing.add(c.info),c.openingColorized.add(d.info),c.opening.add(d.info)}this._openingBrackets=new Map([...n.cachedValues].map(([a,l])=>[a,l.info])),this._closingBrackets=new Map([...o.cachedValues].map(([a,l])=>[a,l.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function r5(s){return s.filter(([e,t])=>e!==""&&t!=="")}class vH{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class lee extends vH{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class dee extends vH{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config!==this.config?!1:this.openingBrackets.has(e)}closesColorized(e){return e.config!==this.config?!1:this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var cee=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},a5=function(s,e){return function(t,i){e(t,i,s)}};class ZD{constructor(e){this.languageId=e}affects(e){return this.languageId?this.languageId===e:!0}}const Gt=ct("languageConfigurationService");let jT=class extends V{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new fee),this.onDidChangeEmitter=this._register(new O),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(qT));this._register(this.configurationService.onDidChangeConfiguration(n=>{const o=n.change.keys.some(a=>i.has(a)),r=n.change.overrides.filter(([a,l])=>l.some(d=>i.has(d))).map(([a])=>a);if(o)this.configurations.clear(),this.onDidChangeEmitter.fire(new ZD(void 0));else for(const a of r)this.languageService.isRegisteredLanguageId(a)&&(this.configurations.delete(a),this.onDidChangeEmitter.fire(new ZD(a)))})),this._register(this._registry.onDidChange(n=>{this.configurations.delete(n.languageId),this.onDidChangeEmitter.fire(new ZD(n.languageId))}))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=uee(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};jT=cee([a5(0,nt),a5(1,ri)],jT);function uee(s,e,t,i){let n=e.getLanguageConfiguration(s);if(!n){if(!i.isRegisteredLanguageId(s))return new Pp(s,{});n=new Pp(s,{})}const o=hee(n.languageId,t),r=wH([n.underlyingConfig,o]);return new Pp(n.languageId,r)}const qT={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function hee(s,e){const t=e.getValue(qT.brackets,{overrideIdentifier:s}),i=e.getValue(qT.colorizedBracketPairs,{overrideIdentifier:s});return{brackets:l5(t),colorizedBracketPairs:l5(i)}}function l5(s){if(Array.isArray(s))return s.map(e=>{if(!(!Array.isArray(e)||e.length!==2))return[e[0],e[1]]}).filter(e=>!!e)}function CH(s,e,t){const i=s.getLineContent(e);let n=Ut(i);return n.length>t-1&&(n=n.substring(0,t-1)),n}function Mp(s,e,t){s.tokenization.forceTokenization(e);const i=s.tokenization.getLineTokens(e),n=typeof t>"u"?s.getLineMaxColumn(e)-1:t-1;return Sk(i,n)}class gee{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new d5(e,t,++this._order);return this._entries.push(i),this._resolved=null,De(()=>{for(let n=0;n<this._entries.length;n++)if(this._entries[n]===i){this._entries.splice(n,1),this._resolved=null;break}})}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new Pp(this.languageId,e))}return this._resolved}_resolve(){return this._entries.length===0?null:(this._entries.sort(d5.cmp),wH(this._entries.map(e=>e.configuration)))}}function wH(s){let e={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const t of s)e={comments:t.comments||e.comments,brackets:t.brackets||e.brackets,wordPattern:t.wordPattern||e.wordPattern,indentationRules:t.indentationRules||e.indentationRules,onEnterRules:t.onEnterRules||e.onEnterRules,autoClosingPairs:t.autoClosingPairs||e.autoClosingPairs,surroundingPairs:t.surroundingPairs||e.surroundingPairs,autoCloseBefore:t.autoCloseBefore||e.autoCloseBefore,folding:t.folding||e.folding,colorizedBracketPairs:t.colorizedBracketPairs||e.colorizedBracketPairs,__electricCharacterSupport:t.__electricCharacterSupport||e.__electricCharacterSupport};return e}class d5{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class c5{constructor(e){this.languageId=e}}class fee extends V{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._register(this.register(qo,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let n=this._entries.get(e);n||(n=new gee(e),this._entries.set(e,n));const o=n.register(t,i);return this._onDidChange.fire(new c5(e)),De(()=>{o.dispose(),this._onDidChange.fire(new c5(e))})}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class Pp{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new rp(this.underlyingConfig):null,this.comments=Pp._handleComments(this.underlyingConfig),this.characterPair=new gm(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||DM,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new GJ(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new aee(e,this.underlyingConfig)}getWordDefinition(){return EM(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new HJ(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new KJ(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new RJ(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[n,o]=t.blockComment;i.blockCommentStartToken=n,i.blockCommentEndToken=o}return i}}mt(Gt,jT,1);class Tc{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}}class u5{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i<n;i++)t[i]=e.charCodeAt(i);return t}}function pee(s,e,t){return new yl(new u5(s),new u5(e)).ComputeDiff(t).changes}class Df{static Assert(e,t){if(!e)throw new Error(t)}}class Ef{static Copy(e,t,i,n,o){for(let r=0;r<o;r++)i[n+r]=e[t+r]}static Copy2(e,t,i,n,o){for(let r=0;r<o;r++)i[n+r]=e[t+r]}}class h5{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Tc(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class yl{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,o,r]=yl._getElements(e),[a,l,d]=yl._getElements(t);this._hasStrings=r&&d,this._originalStringElements=n,this._originalElementsOrHash=o,this._modifiedStringElements=a,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const t=e.getElements();if(yl._isStringArray(t)){const i=new Int32Array(t.length);for(let n=0,o=t.length;n<o;n++)i[n]=GM(t[n],0);return[t,i,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]!==this._modifiedElementsOrHash[t]?!1:this._hasStrings?this._originalStringElements[e]===this._modifiedStringElements[t]:!0}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;const i=yl._getStrictElement(this._originalSequence,e),n=yl._getStrictElement(this._modifiedSequence,t);return i===n}static _getStrictElement(e,t){return typeof e.getStrictElement=="function"?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]!==this._originalElementsOrHash[t]?!1:this._hasStrings?this._originalStringElements[e]===this._originalStringElements[t]:!0}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]!==this._modifiedElementsOrHash[t]?!1:this._hasStrings?this._modifiedStringElements[e]===this._modifiedStringElements[t]:!0}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,i,n,o){const r=[!1];let a=this.ComputeDiffRecursive(e,t,i,n,r);return o&&(a=this.PrettifyChanges(a)),{quitEarly:r[0],changes:a}}ComputeDiffRecursive(e,t,i,n,o){for(o[0]=!1;e<=t&&i<=n&&this.ElementsAreEqual(e,i);)e++,i++;for(;t>=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let u;return i<=n?(Df.Assert(e===t+1,"originalStart should only be one more than originalEnd"),u=[new Tc(e,0,i,n-i+1)]):e<=t?(Df.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),u=[new Tc(e,t-e+1,i,0)]):(Df.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Df.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const r=[0],a=[0],l=this.ComputeRecursionPoint(e,t,i,n,r,a,o),d=r[0],c=a[0];if(l!==null)return l;if(!o[0]){const u=this.ComputeDiffRecursive(e,d,i,c,o);let h=[];return o[0]?h=[new Tc(d+1,t-(d+1)+1,c+1,n-(c+1)+1)]:h=this.ComputeDiffRecursive(d+1,t,c+1,n,o),this.ConcatenateChanges(u,h)}return[new Tc(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,o,r,a,l,d,c,u,h,g,f,m,_,b,v){let C=null,w=null,S=new h5,x=t,k=i,E=g[0]-_[0]-n,N=-1073741824,H=this.m_forwardHistory.length-1;do{const P=E+e;P===x||P<k&&d[P-1]<d[P+1]?(u=d[P+1],f=u-E-n,u<N&&S.MarkNextChange(),N=u,S.AddModifiedElement(u+1,f),E=P+1-e):(u=d[P-1]+1,f=u-E-n,u<N&&S.MarkNextChange(),N=u-1,S.AddOriginalElement(u,f+1),E=P-1-e),H>=0&&(d=this.m_forwardHistory[H],e=d[0],x=1,k=d.length-1)}while(--H>=-1);if(C=S.getReverseChanges(),v[0]){let P=g[0]+1,M=_[0]+1;if(C!==null&&C.length>0){const B=C[C.length-1];P=Math.max(P,B.getOriginalEnd()),M=Math.max(M,B.getModifiedEnd())}w=[new Tc(P,h-P+1,M,m-M+1)]}else{S=new h5,x=r,k=a,E=g[0]-_[0]-l,N=1073741824,H=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const P=E+o;P===x||P<k&&c[P-1]>=c[P+1]?(u=c[P+1]-1,f=u-E-l,u>N&&S.MarkNextChange(),N=u+1,S.AddOriginalElement(u+1,f+1),E=P+1-o):(u=c[P-1],f=u-E-l,u>N&&S.MarkNextChange(),N=u,S.AddModifiedElement(u+1,f+1),E=P-1-o),H>=0&&(c=this.m_reverseHistory[H],o=c[0],x=1,k=c.length-1)}while(--H>=-1);w=S.getChanges()}return this.ConcatenateChanges(C,w)}ComputeRecursionPoint(e,t,i,n,o,r,a){let l=0,d=0,c=0,u=0,h=0,g=0;e--,i--,o[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(n-i),m=f+1,_=new Int32Array(m),b=new Int32Array(m),v=n-i,C=t-e,w=e-i,S=t-n,k=(C-v)%2===0;_[v]=e,b[C]=t,a[0]=!1;for(let E=1;E<=f/2+1;E++){let N=0,H=0;c=this.ClipDiagonalBound(v-E,E,v,m),u=this.ClipDiagonalBound(v+E,E,v,m);for(let M=c;M<=u;M+=2){M===c||M<u&&_[M-1]<_[M+1]?l=_[M+1]:l=_[M-1]+1,d=l-(M-v)-w;const B=l;for(;l<t&&d<n&&this.ElementsAreEqual(l+1,d+1);)l++,d++;if(_[M]=l,l+d>N+H&&(N=l,H=d),!k&&Math.abs(M-C)<=E-1&&l>=b[M])return o[0]=l,r[0]=d,B<=b[M]&&1447>0&&E<=1448?this.WALKTRACE(v,c,u,w,C,h,g,S,_,b,l,t,o,d,n,r,k,a):null}const P=(N-e+(H-i)-E)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(N,P))return a[0]=!0,o[0]=N,r[0]=H,P>0&&1447>0&&E<=1448?this.WALKTRACE(v,c,u,w,C,h,g,S,_,b,l,t,o,d,n,r,k,a):(e++,i++,[new Tc(e,t-e+1,i,n-i+1)]);h=this.ClipDiagonalBound(C-E,E,C,m),g=this.ClipDiagonalBound(C+E,E,C,m);for(let M=h;M<=g;M+=2){M===h||M<g&&b[M-1]>=b[M+1]?l=b[M+1]-1:l=b[M-1],d=l-(M-C)-S;const B=l;for(;l>e&&d>i&&this.ElementsAreEqual(l,d);)l--,d--;if(b[M]=l,k&&Math.abs(M-v)<=E&&l<=_[M])return o[0]=l,r[0]=d,B>=_[M]&&1447>0&&E<=1448?this.WALKTRACE(v,c,u,w,C,h,g,S,_,b,l,t,o,d,n,r,k,a):null}if(E<=1447){let M=new Int32Array(u-c+2);M[0]=v-c+1,Ef.Copy2(_,c,M,1,u-c+1),this.m_forwardHistory.push(M),M=new Int32Array(g-h+2),M[0]=C-h+1,Ef.Copy2(b,h,M,1,g-h+1),this.m_reverseHistory.push(M)}}return this.WALKTRACE(v,c,u,w,C,h,g,S,_,b,l,t,o,d,n,r,k,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const i=e[t],n=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,o=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,r=i.originalLength>0,a=i.modifiedLength>0;for(;i.originalStart+i.originalLength<n&&i.modifiedStart+i.modifiedLength<o&&(!r||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!a||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const d=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!d)break;i.originalStart++,i.modifiedStart++}const l=[null];if(t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],l)){e[t]=l[0],e.splice(t+1,1),t--;continue}}for(let t=e.length-1;t>=0;t--){const i=e[t];let n=0,o=0;if(t>0){const u=e[t-1];n=u.originalStart+u.originalLength,o=u.modifiedStart+u.modifiedLength}const r=i.originalLength>0,a=i.modifiedLength>0;let l=0,d=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let u=1;;u++){const h=i.originalStart-u,g=i.modifiedStart-u;if(h<n||g<o||r&&!this.OriginalElementsAreEqual(h,h+i.originalLength)||a&&!this.ModifiedElementsAreEqual(g,g+i.modifiedLength))break;const m=(h===n&&g===o?5:0)+this._boundaryScore(h,i.originalLength,g,i.modifiedLength);m>d&&(d=m,l=u)}i.originalStart-=l,i.modifiedStart-=l;const c=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],c)){e[t-1]=c[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,i=e.length;t<i;t++){const n=e[t-1],o=e[t],r=o.originalStart-n.originalStart-n.originalLength,a=n.originalStart,l=o.originalStart+o.originalLength,d=l-a,c=n.modifiedStart,u=o.modifiedStart+o.modifiedLength,h=u-c;if(r<5&&d<20&&h<20){const g=this._findBetterContiguousSequence(a,d,c,h,r);if(g){const[f,m]=g;(f!==n.originalStart+n.originalLength||m!==n.modifiedStart+n.modifiedLength)&&(n.originalLength=f-n.originalStart,n.modifiedLength=m-n.modifiedStart,o.originalStart=f+r,o.modifiedStart=m+r,o.originalLength=l-o.originalStart,o.modifiedLength=u-o.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,i,n,o){if(t<o||n<o)return null;const r=e+t-o+1,a=i+n-o+1;let l=0,d=0,c=0;for(let u=e;u<r;u++)for(let h=i;h<a;h++){const g=this._contiguousSequenceScore(u,h,o);g>0&&g>l&&(l=g,d=u,c=h)}return l>0?[d,c]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let o=0;o<i;o++){if(!this.ElementsAreEqual(e+o,t+o))return 0;n+=this._originalStringElements[e+o].length}return n}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){const o=this._OriginalRegionIsBoundary(e,t)?1:0,r=this._ModifiedRegionIsBoundary(i,n)?1:0;return o+r}ConcatenateChanges(e,t){const i=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return Ef.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],Ef.Copy(t,1,n,e.length,t.length-1),n}else{const n=new Array(e.length+t.length);return Ef.Copy(e,0,n,0,e.length),Ef.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,i){if(Df.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Df.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const n=e.originalStart;let o=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new Tc(n,o,r,a),!0}else return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&e<n)return e;const o=i,r=n-i-1,a=t%2===0;if(e<0){const l=o%2===0;return a===l?0:1}else{const l=r%2===0;return a===l?n-1:n-2}}}function JS(s){return s<0?0:s>255?255:s|0}function If(s){return s<0?0:s>4294967295?4294967295:s|0}class mee{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=If(e);const i=this.values,n=this.prefixSum,o=t.length;return o===0?!1:(this.values=new Uint32Array(i.length+o),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=If(e),t=If(t),this.values[e]===t?!1:(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=If(e),t=If(t);const i=this.values,n=this.prefixSum;if(e>=i.length)return!1;const o=i.length-e;return t>=o&&(t=o),t===0?!1:(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=If(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,o=0,r=0;for(;t<=i;)if(n=t+(i-t)/2|0,o=this.prefixSum[n],r=o-this.values[n],e<r)i=n-1;else if(e>=o)t=n+1;else break;return new SH(n,e-r)}}class _ee{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new SH(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=ek(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e<t;e++){const i=this._values[e],n=e>0?this._prefixSum[e-1]:0;this._prefixSum[e]=n+i;for(let o=0;o<i;o++)this._indexBySum[n+o]=e}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._invalidate(e))}}class SH{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class bee{constructor(e,t,i,n){this._uri=e,this._lines=t,this._eol=i,this._versionId=n,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const i of t)this._acceptDeleteRange(i.range),this._acceptInsertText(new F(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let n=0;n<t;n++)i[n]=this._lines[n].length+e;this._lineStarts=new mee(i)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){if(t.length===0)return;const i=sd(t);if(i.length===1){this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));return}i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);const n=new Uint32Array(i.length-1);for(let o=1;o<i.length;o++)this._lines.splice(e.lineNumber+o-1,0,i[o]),n[o-1]=i[o].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,n)}}class o_{constructor(e){const t=JS(e);this._defaultValue=t,this._asciiMap=o_._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const i=JS(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class ey{constructor(){this._actual=new o_(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}clear(){return this._actual.clear()}}class vee{constructor(e,t,i){const n=new Uint8Array(e*t);for(let o=0,r=e*t;o<r;o++)n[o]=i;this._data=n,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,i){this._data[e*this.cols+t]=i}}class Cee{constructor(e){let t=0,i=0;for(let o=0,r=e.length;o<r;o++){const[a,l,d]=e[o];l>t&&(t=l),a>i&&(i=a),d>i&&(i=d)}t++,i++;const n=new vee(i,t,0);for(let o=0,r=e.length;o<r;o++){const[a,l,d]=e[o];n.set(a,l,d)}this._states=n,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let YD=null;function wee(){return YD===null&&(YD=new Cee([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),YD}let R_=null;function See(){if(R_===null){R_=new o_(0);const s=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let t=0;t<s.length;t++)R_.set(s.charCodeAt(t),1);const e=".,;:";for(let t=0;t<e.length;t++)R_.set(e.charCodeAt(t),2)}return R_}class ty{static _createLink(e,t,i,n,o){let r=o-1;do{const a=t.charCodeAt(r);if(e.get(a)!==2)break;r--}while(r>n);if(n>0){const a=t.charCodeAt(n-1),l=t.charCodeAt(r);(a===40&&l===41||a===91&&l===93||a===123&&l===125)&&r--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:r+2},url:t.substring(n,r+1)}}static computeLinks(e,t=wee()){const i=See(),n=[];for(let o=1,r=e.getLineCount();o<=r;o++){const a=e.getLineContent(o),l=a.length;let d=0,c=0,u=0,h=1,g=!1,f=!1,m=!1,_=!1;for(;d<l;){let b=!1;const v=a.charCodeAt(d);if(h===13){let C;switch(v){case 40:g=!0,C=0;break;case 41:C=g?0:1;break;case 91:m=!0,f=!0,C=0;break;case 93:m=!1,C=f?0:1;break;case 123:_=!0,C=0;break;case 125:C=_?0:1;break;case 39:case 34:case 96:u===v?C=1:u===39||u===34||u===96?C=0:C=1;break;case 42:C=u===42?1:0;break;case 124:C=u===124?1:0;break;case 32:C=m?0:1;break;default:C=i.get(v)}C===1&&(n.push(ty._createLink(i,a,o,c,d)),b=!0)}else if(h===12){let C;v===91?(f=!0,C=0):C=i.get(v),C===1?b=!0:h=13}else h=t.nextState(h,v),h===0&&(b=!0);b&&(h=1,g=!1,f=!1,_=!1,c=d+1,u=v),d++}h===13&&n.push(ty._createLink(i,a,o,c,l))}return n}}function yee(s){return!s||typeof s.getLineCount!="function"||typeof s.getLineContent!="function"?[]:ty.computeLinks(s)}class KT{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,i,n,o){if(e&&t){const r=this.doNavigateValueSet(t,o);if(r)return{range:e,value:r}}if(i&&n){const r=this.doNavigateValueSet(n,o);if(r)return{range:i,value:r}}return null}doNavigateValueSet(e,t){const i=this.numberReplace(e,t);return i!==null?i:this.textReplace(e,t)}numberReplace(e,t){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let n=Number(e);const o=parseFloat(e);return!isNaN(n)&&!isNaN(o)&&n===o?n===0&&!t?null:(n=Math.floor(n*i),n+=t?i:-i,String(n/i)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,i){let n=null;for(let o=0,r=e.length;n===null&&o<r;o++)n=this.valueSetReplace(e[o],t,i);return n}valueSetReplace(e,t,i){let n=e.indexOf(t);return n>=0?(n+=i?1:-1,n<0?n=e.length-1:n%=e.length,e[n]):null}}KT.INSTANCE=new KT;class xee extends o_{constructor(e){super(0);for(let t=0,i=e.length;t<i;t++)this.set(e.charCodeAt(t),2);this.set(32,1),this.set(9,1)}}function kee(s){const e={};return t=>(e.hasOwnProperty(t)||(e[t]=s(t)),e[t])}const vr=kee(s=>new xee(s));var Yo;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(Yo||(Yo={}));var ql;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=3]="Right"})(ql||(ql={}));var wo;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(wo||(wo={}));var zr;(function(s){s[s.Both=0]="Both",s[s.Right=1]="Right",s[s.Left=2]="Left",s[s.None=3]="None"})(zr||(zr={}));class X1{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,e.tabSize|0),e.indentSize==="tabSize"?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,e.indentSize|0),this._indentSizeIsTabSize=!1),this.insertSpaces=!!e.insertSpaces,this.defaultEOL=e.defaultEOL|0,this.trimAutoWhitespace=!!e.trimAutoWhitespace,this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&jo(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class Rv{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function Lee(s){return s&&typeof s.read=="function"}class XD{constructor(e,t,i,n,o,r){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=o,this._isTracked=r}}class Dee{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class Eee{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function yH(s){return!s.isTooLargeForSyncing()&&!s.isForSimpleWidget}const Iee=999;class zh{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){if(this.searchString==="")return null;let e;this.isRegex?e=Tee(this.searchString):e=this.searchString.indexOf(`
|
|
22
|
+
`;const J4=typeof Buffer<"u";let jD;class yk{static wrap(e){return J4&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new yk(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return J4?this.buffer.toString():(jD||(jD=new TextDecoder),jD.decode(this.buffer))}}function PJ(s,e){return s[e+0]<<0>>>0|s[e+1]<<8>>>0}function OJ(s,e,t){s[t+0]=e&255,e=e>>>8,s[t+1]=e&255}function fa(s,e){return s[e]*2**24+s[e+1]*2**16+s[e+2]*2**8+s[e+3]}function pa(s,e,t){s[t+3]=e,e=e>>>8,s[t+2]=e,e=e>>>8,s[t+1]=e,e=e>>>8,s[t]=e}function e5(s,e){return s[e]}function t5(s,e,t){s[t]=e}let qD;function uH(){return qD||(qD=new TextDecoder("UTF-16LE")),qD}let KD;function FJ(){return KD||(KD=new TextDecoder("UTF-16BE")),KD}let GD;function hH(){return GD||(GD=XW()?uH():FJ()),GD}function BJ(s,e,t){const i=new Uint16Array(s.buffer,e,t);return t>0&&(i[0]===65279||i[0]===65534)?WJ(s,e,t):uH().decode(i)}function WJ(s,e,t){const i=[];let n=0;for(let o=0;o<t;o++){const r=PJ(s,e);e+=2,i[n++]=String.fromCharCode(r)}return i.join("")}class s_{constructor(e){this._capacity=e|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(this._bufferLength===0)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return hH().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}appendCharCode(e){const t=this._capacity-this._bufferLength;t<=1&&(t===0||ln(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIICharCode(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendString(e){const t=e.length;if(this._bufferLength+t>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let i=0;i<t;i++)this._buffer[this._bufferLength++]=e.charCodeAt(i)}}class XS{constructor(e,t,i,n,o,r){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=n,this.forwardRegex=o,this.reversedRegex=r,this._openSet=XS._toSet(this.open),this._closeSet=XS._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}function VJ(s){const e=s.length;s=s.map(r=>[r[0].toLowerCase(),r[1].toLowerCase()]);const t=[];for(let r=0;r<e;r++)t[r]=r;const i=(r,a)=>{const[l,d]=r,[c,u]=a;return l===c||l===u||d===c||d===u},n=(r,a)=>{const l=Math.min(r,a),d=Math.max(r,a);for(let c=0;c<e;c++)t[c]===d&&(t[c]=l)};for(let r=0;r<e;r++){const a=s[r];for(let l=r+1;l<e;l++){const d=s[l];i(a,d)&&n(t[r],t[l])}}const o=[];for(let r=0;r<e;r++){const a=[],l=[];for(let d=0;d<e;d++)if(t[d]===r){const[c,u]=s[d];a.push(c),l.push(u)}a.length>0&&o.push({open:a,close:l})}return o}class HJ{constructor(e,t){this._richEditBracketsBrand=void 0;const i=VJ(t);this.brackets=i.map((n,o)=>new XS(e,o,n.open,n.close,$J(n.open,n.close,i,o),zJ(n.open,n.close,i,o))),this.forwardRegex=UJ(this.brackets),this.reversedRegex=jJ(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const n of this.brackets){for(const o of n.open)this.textIsBracket[o]=n,this.textIsOpenBracket[o]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,o.length);for(const o of n.close)this.textIsBracket[o]=n,this.textIsOpenBracket[o]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,o.length)}}}function gH(s,e,t,i){for(let n=0,o=e.length;n<o;n++){if(n===t)continue;const r=e[n];for(const a of r.open)a.indexOf(s)>=0&&i.push(a);for(const a of r.close)a.indexOf(s)>=0&&i.push(a)}}function fH(s,e){return s.length-e.length}function xk(s){if(s.length<=1)return s;const e=[],t=new Set;for(const i of s)t.has(i)||(e.push(i),t.add(i));return e}function $J(s,e,t,i){let n=[];n=n.concat(s),n=n.concat(e);for(let o=0,r=n.length;o<r;o++)gH(n[o],t,i,n);return n=xk(n),n.sort(fH),n.reverse(),kk(n)}function zJ(s,e,t,i){let n=[];n=n.concat(s),n=n.concat(e);for(let o=0,r=n.length;o<r;o++)gH(n[o],t,i,n);return n=xk(n),n.sort(fH),n.reverse(),kk(n.map(nP))}function UJ(s){let e=[];for(const t of s){for(const i of t.open)e.push(i);for(const i of t.close)e.push(i)}return e=xk(e),kk(e)}function jJ(s){let e=[];for(const t of s){for(const i of t.open)e.push(i);for(const i of t.close)e.push(i)}return e=xk(e),kk(e.map(nP))}function qJ(s){const e=/^[\w ]+$/.test(s);return s=Ko(s),e?`\\b${s}\\b`:s}function kk(s){const e=`(${s.map(qJ).join(")|(")})`;return CV(e,!0)}const nP=function(){function s(i){const n=new Uint16Array(i.length);let o=0;for(let r=i.length-1;r>=0;r--)n[o++]=i.charCodeAt(r);return hH().decode(n)}let e=null,t=null;return function(n){return e!==n&&(e=n,t=s(e)),t}}();class Rr{static _findPrevBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const r=i.length-(o.index||0),a=o[0].length,l=n+r;return new L(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,n,o){const a=nP(i).substring(i.length-o,i.length-n);return this._findPrevBracketInText(e,t,a,n)}static findNextBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const r=o.index||0,a=o[0].length;if(a===0)return null;const l=n+r;return new L(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,n,o){const r=i.substring(n,o);return this.findNextBracketInText(e,t,r,n)}}class KJ{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const n=i.charAt(i.length-1);e.push(n)}return oc(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const n=t.findTokenIndexAtOffset(i-1);if(ll(t.getStandardTokenType(n)))return null;const o=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,i-1)+e,a=Rr.findPrevBracketInRange(o,1,r,0,r.length);if(!a)return null;const l=r.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[l])return null;const c=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:l}:null}}function xw(s){return s.global&&(s.lastIndex=0),!0}class GJ{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&xw(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&xw(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&xw(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&xw(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class rp{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(t=>{const i=rp._createOpenBracketRegExp(t[0]),n=rp._createCloseBracketRegExp(t[1]);i&&n&&this._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:n})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let o=0,r=this._regExpRules.length;o<r;o++){const a=this._regExpRules[o];if([{reg:a.beforeText,text:i},{reg:a.afterText,text:n},{reg:a.previousLineText,text:t}].every(d=>d.reg?(d.reg.lastIndex=0,d.reg.test(d.text)):!0))return a.action}if(e>=2&&i.length>0&&n.length>0)for(let o=0,r=this._brackets.length;o<r;o++){const a=this._brackets[o];if(a.openRegExp.test(i)&&a.closeRegExp.test(n))return{indentAction:ji.IndentOutdent}}if(e>=2&&i.length>0){for(let o=0,r=this._brackets.length;o<r;o++)if(this._brackets[o].openRegExp.test(i))return{indentAction:ji.Indent}}return null}static _createOpenBracketRegExp(e){let t=Ko(e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",rp._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=Ko(e);return/\B/.test(t.charAt(t.length-1))||(t=t+"\\b"),t="^\\s*"+t,rp._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return je(t),null}}}const nt=ct("configurationService");function UT(s,e){const t=Object.create(null);for(const i in s)pH(t,i,s[i],e);return t}function pH(s,e,t,i){const n=e.split("."),o=n.pop();let r=s;for(let a=0;a<n.length;a++){const l=n[a];let d=r[l];switch(typeof d){case"undefined":d=r[l]=Object.create(null);break;case"object":break;default:i(`Ignoring ${e} as ${n.slice(0,a+1).join(".")} is ${JSON.stringify(d)}`);return}r=d}if(typeof r=="object"&&r!==null)try{r[o]=t}catch{i(`Ignoring ${e} as ${n.join(".")} is ${JSON.stringify(r)}`)}else i(`Ignoring ${e} as ${n.join(".")} is ${JSON.stringify(r)}`)}function ZJ(s,e){const t=e.split(".");mH(s,t)}function mH(s,e){const t=e.shift();if(e.length===0){delete s[t];return}if(Object.keys(s).indexOf(t)!==-1){const i=s[t];typeof i=="object"&&!Array.isArray(i)&&(mH(i,e),Object.keys(i).length===0&&delete s[t])}}function i5(s,e,t){function i(r,a){let l=r;for(const d of a){if(typeof l!="object"||l===null)return;l=l[d]}return l}const n=e.split("."),o=i(s,n);return typeof o>"u"?t:o}function YJ(s){return s.replace(/[\[\]]/g,"")}const ri=ct("languageService");class fl{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}const _H=[];function mt(s,e,t){e instanceof fl||(e=new fl(e,[],!!t)),_H.push([s,e])}function n5(){return _H}const ki=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),Lk={JSONContribution:"base.contributions.json"};function XJ(s){return s.length>0&&s.charAt(s.length-1)==="#"?s.substring(0,s.length-1):s}class QJ{constructor(){this._onDidChangeSchema=new O,this.schemasById={}}registerSchema(e,t){this.schemasById[XJ(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const JJ=new QJ;_i.add(Lk.JSONContribution,JJ);const Za={Configuration:"base.contributions.configuration"},A_="vscode://schemas/settings/resourceLanguage",s5=_i.as(Lk.JSONContribution);class eee{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new O,this._onDidUpdateConfiguration=new O,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:p("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},s5.registerSchema(A_,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),s5.registerSchema(A_,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;const n=[];for(const{overrides:o,source:r}of e)for(const a in o)if(t.add(a),Bu.test(a)){const l=this.configurationDefaultsOverrides.get(a),d=(i=l?.valuesSources)!==null&&i!==void 0?i:new Map;if(r)for(const g of Object.keys(o[a]))d.set(g,r);const c={...l?.value||{},...o[a]};this.configurationDefaultsOverrides.set(a,{source:r,value:c,valuesSources:d});const u=YJ(a),h={type:"object",default:c,description:p("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",u),$ref:A_,defaultDefaultValue:c,source:Rs(r)?void 0:r,defaultValueSource:r};n.push(...QS(a)),this.configurationProperties[a]=h,this.defaultLanguageConfigurationOverridesNode.properties[a]=h}else{this.configurationDefaultsOverrides.set(a,{value:o[a],source:r});const l=this.configurationProperties[a];l&&(this.updatePropertyDefaultValue(a,l),this.updateSchema(a,l))}this.doRegisterOverrideIdentifiers(n)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach(n=>{this.validateAndRegisterProperties(n,t,n.extensionInfo,n.restrictedProperties,void 0,i),this.configurationContributors.push(n),this.registerJSONConfiguration(n)})}validateAndRegisterProperties(e,t=!0,i,n,o=3,r){var a;o=Vo(e.scope)?o:e.scope;const l=e.properties;if(l)for(const c in l){const u=l[c];if(t&&nee(c,u)){delete l[c];continue}if(u.source=i,u.defaultDefaultValue=l[c].default,this.updatePropertyDefaultValue(c,u),Bu.test(c)?u.scope=void 0:(u.scope=Vo(u.scope)?o:u.scope,u.restricted=Vo(u.restricted)?!!n?.includes(c):u.restricted),l[c].hasOwnProperty("included")&&!l[c].included){this.excludedConfigurationProperties[c]=l[c],delete l[c];continue}else this.configurationProperties[c]=l[c],!((a=l[c].policy)===null||a===void 0)&&a.name&&this.policyConfigurations.set(l[c].policy.name,c);!l[c].deprecationMessage&&l[c].markdownDeprecationMessage&&(l[c].deprecationMessage=l[c].markdownDeprecationMessage),r.add(c)}const d=e.allOf;if(d)for(const c of d)this.validateAndRegisterProperties(c,t,i,n,o,r)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=i=>{const n=i.properties;if(n)for(const r in n)this.updateSchema(r,n[r]);const o=i.allOf;o?.forEach(t)};t(e)}updateSchema(e,t){switch(t.scope){case 1:break;case 2:break;case 6:break;case 3:break;case 4:break;case 5:this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:p("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:p("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:A_};this.updatePropertyDefaultValue(t,i)}}registerOverridePropertyPatternKey(){p("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),p("overrideSettings.errorMessage","This setting does not support per-language configuration."),this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let n=i?.value,o=i?.source;_o(n)&&(n=t.defaultDefaultValue,o=void 0),_o(n)&&(n=iee(t.type)),t.default=n,t.defaultValueSource=o}}const bH="\\[([^\\]]+)\\]",o5=new RegExp(bH,"g"),tee=`^(${bH})+$`,Bu=new RegExp(tee);function QS(s){const e=[];if(Bu.test(s)){let t=o5.exec(s);for(;t?.length;){const i=t[1].trim();i&&e.push(i),t=o5.exec(s)}}return oc(e)}function iee(s){switch(Array.isArray(s)?s[0]:s){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const Y1=new eee;_i.add(Za.Configuration,Y1);function nee(s,e){var t,i,n,o;return s.trim()?Bu.test(s)?p("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",s):Y1.getConfigurationProperties()[s]!==void 0?p("config.property.duplicate","Cannot register '{0}'. This property is already registered.",s):!((t=e.policy)===null||t===void 0)&&t.name&&Y1.getPolicyConfigurations().get((i=e.policy)===null||i===void 0?void 0:i.name)!==void 0?p("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",s,(n=e.policy)===null||n===void 0?void 0:n.name,Y1.getPolicyConfigurations().get((o=e.policy)===null||o===void 0?void 0:o.name)):null:p("config.property.empty","Cannot register an empty property")}const see={ModesRegistry:"editor.modesRegistry"};class oee{constructor(){this._onDidChangeLanguages=new O,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t<i;t++)if(this._languages[t]===e){this._languages.splice(t,1);return}}}}getLanguages(){return this._languages}}const fm=new oee;_i.add(see.ModesRegistry,fm);const qo="plaintext",ree=".txt";fm.registerLanguage({id:qo,extensions:[ree],aliases:[p("plainText.alias","Plain Text"),"text"],mimetypes:[ki.text]});_i.as(Za.Configuration).registerDefaultConfigurations([{overrides:{"[plaintext]":{"editor.unicodeHighlight.ambiguousCharacters":!1,"editor.unicodeHighlight.invisibleCharacters":!1}}}]);class aee{constructor(e,t){this.languageId=e;const i=t.brackets?r5(t.brackets):[],n=new D4(a=>{const l=new Set;return{info:new lee(this,a,l),closing:l}}),o=new D4(a=>{const l=new Set,d=new Set;return{info:new dee(this,a,l,d),opening:l,openingColorized:d}});for(const[a,l]of i){const d=n.get(a),c=o.get(l);d.closing.add(c.info),c.opening.add(d.info)}const r=t.colorizedBracketPairs?r5(t.colorizedBracketPairs):i.filter(a=>!(a[0]==="<"&&a[1]===">"));for(const[a,l]of r){const d=n.get(a),c=o.get(l);d.closing.add(c.info),c.openingColorized.add(d.info),c.opening.add(d.info)}this._openingBrackets=new Map([...n.cachedValues].map(([a,l])=>[a,l.info])),this._closingBrackets=new Map([...o.cachedValues].map(([a,l])=>[a,l.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function r5(s){return s.filter(([e,t])=>e!==""&&t!=="")}class vH{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class lee extends vH{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class dee extends vH{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config!==this.config?!1:this.openingBrackets.has(e)}closesColorized(e){return e.config!==this.config?!1:this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var cee=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},a5=function(s,e){return function(t,i){e(t,i,s)}};class ZD{constructor(e){this.languageId=e}affects(e){return this.languageId?this.languageId===e:!0}}const Gt=ct("languageConfigurationService");let jT=class extends V{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new fee),this.onDidChangeEmitter=this._register(new O),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(qT));this._register(this.configurationService.onDidChangeConfiguration(n=>{const o=n.change.keys.some(a=>i.has(a)),r=n.change.overrides.filter(([a,l])=>l.some(d=>i.has(d))).map(([a])=>a);if(o)this.configurations.clear(),this.onDidChangeEmitter.fire(new ZD(void 0));else for(const a of r)this.languageService.isRegisteredLanguageId(a)&&(this.configurations.delete(a),this.onDidChangeEmitter.fire(new ZD(a)))})),this._register(this._registry.onDidChange(n=>{this.configurations.delete(n.languageId),this.onDidChangeEmitter.fire(new ZD(n.languageId))}))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=uee(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};jT=cee([a5(0,nt),a5(1,ri)],jT);function uee(s,e,t,i){let n=e.getLanguageConfiguration(s);if(!n){if(!i.isRegisteredLanguageId(s))return new Pp(s,{});n=new Pp(s,{})}const o=hee(n.languageId,t),r=wH([n.underlyingConfig,o]);return new Pp(n.languageId,r)}const qT={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function hee(s,e){const t=e.getValue(qT.brackets,{overrideIdentifier:s}),i=e.getValue(qT.colorizedBracketPairs,{overrideIdentifier:s});return{brackets:l5(t),colorizedBracketPairs:l5(i)}}function l5(s){if(Array.isArray(s))return s.map(e=>{if(!(!Array.isArray(e)||e.length!==2))return[e[0],e[1]]}).filter(e=>!!e)}function CH(s,e,t){const i=s.getLineContent(e);let n=Ut(i);return n.length>t-1&&(n=n.substring(0,t-1)),n}function Mp(s,e,t){s.tokenization.forceTokenization(e);const i=s.tokenization.getLineTokens(e),n=typeof t>"u"?s.getLineMaxColumn(e)-1:t-1;return Sk(i,n)}class gee{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new d5(e,t,++this._order);return this._entries.push(i),this._resolved=null,De(()=>{for(let n=0;n<this._entries.length;n++)if(this._entries[n]===i){this._entries.splice(n,1),this._resolved=null;break}})}getResolvedConfiguration(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new Pp(this.languageId,e))}return this._resolved}_resolve(){return this._entries.length===0?null:(this._entries.sort(d5.cmp),wH(this._entries.map(e=>e.configuration)))}}function wH(s){let e={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const t of s)e={comments:t.comments||e.comments,brackets:t.brackets||e.brackets,wordPattern:t.wordPattern||e.wordPattern,indentationRules:t.indentationRules||e.indentationRules,onEnterRules:t.onEnterRules||e.onEnterRules,autoClosingPairs:t.autoClosingPairs||e.autoClosingPairs,surroundingPairs:t.surroundingPairs||e.surroundingPairs,autoCloseBefore:t.autoCloseBefore||e.autoCloseBefore,folding:t.folding||e.folding,colorizedBracketPairs:t.colorizedBracketPairs||e.colorizedBracketPairs,__electricCharacterSupport:t.__electricCharacterSupport||e.__electricCharacterSupport};return e}class d5{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class c5{constructor(e){this.languageId=e}}class fee extends V{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._register(this.register(qo,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let n=this._entries.get(e);n||(n=new gee(e),this._entries.set(e,n));const o=n.register(t,i);return this._onDidChange.fire(new c5(e)),De(()=>{o.dispose(),this._onDidChange.fire(new c5(e))})}getLanguageConfiguration(e){const t=this._entries.get(e);return t?.getResolvedConfiguration()||null}}class Pp{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new rp(this.underlyingConfig):null,this.comments=Pp._handleComments(this.underlyingConfig),this.characterPair=new gm(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||DM,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new GJ(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new aee(e,this.underlyingConfig)}getWordDefinition(){return EM(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new HJ(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new KJ(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new RJ(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[n,o]=t.blockComment;i.blockCommentStartToken=n,i.blockCommentEndToken=o}return i}}mt(Gt,jT,1);class Tc{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}}class u5{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i<n;i++)t[i]=e.charCodeAt(i);return t}}function pee(s,e,t){return new yl(new u5(s),new u5(e)).ComputeDiff(t).changes}class Df{static Assert(e,t){if(!e)throw new Error(t)}}class Ef{static Copy(e,t,i,n,o){for(let r=0;r<o;r++)i[n+r]=e[t+r]}static Copy2(e,t,i,n,o){for(let r=0;r<o;r++)i[n+r]=e[t+r]}}class h5{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Tc(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class yl{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,o,r]=yl._getElements(e),[a,l,d]=yl._getElements(t);this._hasStrings=r&&d,this._originalStringElements=n,this._originalElementsOrHash=o,this._modifiedStringElements=a,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const t=e.getElements();if(yl._isStringArray(t)){const i=new Int32Array(t.length);for(let n=0,o=t.length;n<o;n++)i[n]=GM(t[n],0);return[t,i,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]!==this._modifiedElementsOrHash[t]?!1:this._hasStrings?this._originalStringElements[e]===this._modifiedStringElements[t]:!0}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;const i=yl._getStrictElement(this._originalSequence,e),n=yl._getStrictElement(this._modifiedSequence,t);return i===n}static _getStrictElement(e,t){return typeof e.getStrictElement=="function"?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]!==this._originalElementsOrHash[t]?!1:this._hasStrings?this._originalStringElements[e]===this._originalStringElements[t]:!0}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]!==this._modifiedElementsOrHash[t]?!1:this._hasStrings?this._modifiedStringElements[e]===this._modifiedStringElements[t]:!0}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,i,n,o){const r=[!1];let a=this.ComputeDiffRecursive(e,t,i,n,r);return o&&(a=this.PrettifyChanges(a)),{quitEarly:r[0],changes:a}}ComputeDiffRecursive(e,t,i,n,o){for(o[0]=!1;e<=t&&i<=n&&this.ElementsAreEqual(e,i);)e++,i++;for(;t>=e&&n>=i&&this.ElementsAreEqual(t,n);)t--,n--;if(e>t||i>n){let u;return i<=n?(Df.Assert(e===t+1,"originalStart should only be one more than originalEnd"),u=[new Tc(e,0,i,n-i+1)]):e<=t?(Df.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),u=[new Tc(e,t-e+1,i,0)]):(Df.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Df.Assert(i===n+1,"modifiedStart should only be one more than modifiedEnd"),u=[]),u}const r=[0],a=[0],l=this.ComputeRecursionPoint(e,t,i,n,r,a,o),d=r[0],c=a[0];if(l!==null)return l;if(!o[0]){const u=this.ComputeDiffRecursive(e,d,i,c,o);let h=[];return o[0]?h=[new Tc(d+1,t-(d+1)+1,c+1,n-(c+1)+1)]:h=this.ComputeDiffRecursive(d+1,t,c+1,n,o),this.ConcatenateChanges(u,h)}return[new Tc(e,t-e+1,i,n-i+1)]}WALKTRACE(e,t,i,n,o,r,a,l,d,c,u,h,g,f,m,_,b,v){let C=null,w=null,S=new h5,x=t,k=i,E=g[0]-_[0]-n,N=-1073741824,H=this.m_forwardHistory.length-1;do{const P=E+e;P===x||P<k&&d[P-1]<d[P+1]?(u=d[P+1],f=u-E-n,u<N&&S.MarkNextChange(),N=u,S.AddModifiedElement(u+1,f),E=P+1-e):(u=d[P-1]+1,f=u-E-n,u<N&&S.MarkNextChange(),N=u-1,S.AddOriginalElement(u,f+1),E=P-1-e),H>=0&&(d=this.m_forwardHistory[H],e=d[0],x=1,k=d.length-1)}while(--H>=-1);if(C=S.getReverseChanges(),v[0]){let P=g[0]+1,M=_[0]+1;if(C!==null&&C.length>0){const B=C[C.length-1];P=Math.max(P,B.getOriginalEnd()),M=Math.max(M,B.getModifiedEnd())}w=[new Tc(P,h-P+1,M,m-M+1)]}else{S=new h5,x=r,k=a,E=g[0]-_[0]-l,N=1073741824,H=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const P=E+o;P===x||P<k&&c[P-1]>=c[P+1]?(u=c[P+1]-1,f=u-E-l,u>N&&S.MarkNextChange(),N=u+1,S.AddOriginalElement(u+1,f+1),E=P+1-o):(u=c[P-1],f=u-E-l,u>N&&S.MarkNextChange(),N=u,S.AddModifiedElement(u+1,f+1),E=P-1-o),H>=0&&(c=this.m_reverseHistory[H],o=c[0],x=1,k=c.length-1)}while(--H>=-1);w=S.getChanges()}return this.ConcatenateChanges(C,w)}ComputeRecursionPoint(e,t,i,n,o,r,a){let l=0,d=0,c=0,u=0,h=0,g=0;e--,i--,o[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(n-i),m=f+1,_=new Int32Array(m),b=new Int32Array(m),v=n-i,C=t-e,w=e-i,S=t-n,k=(C-v)%2===0;_[v]=e,b[C]=t,a[0]=!1;for(let E=1;E<=f/2+1;E++){let N=0,H=0;c=this.ClipDiagonalBound(v-E,E,v,m),u=this.ClipDiagonalBound(v+E,E,v,m);for(let M=c;M<=u;M+=2){M===c||M<u&&_[M-1]<_[M+1]?l=_[M+1]:l=_[M-1]+1,d=l-(M-v)-w;const B=l;for(;l<t&&d<n&&this.ElementsAreEqual(l+1,d+1);)l++,d++;if(_[M]=l,l+d>N+H&&(N=l,H=d),!k&&Math.abs(M-C)<=E-1&&l>=b[M])return o[0]=l,r[0]=d,B<=b[M]&&E<=1448?this.WALKTRACE(v,c,u,w,C,h,g,S,_,b,l,t,o,d,n,r,k,a):null}const P=(N-e+(H-i)-E)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(N,P))return a[0]=!0,o[0]=N,r[0]=H,P>0&&E<=1448?this.WALKTRACE(v,c,u,w,C,h,g,S,_,b,l,t,o,d,n,r,k,a):(e++,i++,[new Tc(e,t-e+1,i,n-i+1)]);h=this.ClipDiagonalBound(C-E,E,C,m),g=this.ClipDiagonalBound(C+E,E,C,m);for(let M=h;M<=g;M+=2){M===h||M<g&&b[M-1]>=b[M+1]?l=b[M+1]-1:l=b[M-1],d=l-(M-C)-S;const B=l;for(;l>e&&d>i&&this.ElementsAreEqual(l,d);)l--,d--;if(b[M]=l,k&&Math.abs(M-v)<=E&&l<=_[M])return o[0]=l,r[0]=d,B>=_[M]&&E<=1448?this.WALKTRACE(v,c,u,w,C,h,g,S,_,b,l,t,o,d,n,r,k,a):null}if(E<=1447){let M=new Int32Array(u-c+2);M[0]=v-c+1,Ef.Copy2(_,c,M,1,u-c+1),this.m_forwardHistory.push(M),M=new Int32Array(g-h+2),M[0]=C-h+1,Ef.Copy2(b,h,M,1,g-h+1),this.m_reverseHistory.push(M)}}return this.WALKTRACE(v,c,u,w,C,h,g,S,_,b,l,t,o,d,n,r,k,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const i=e[t],n=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,o=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,r=i.originalLength>0,a=i.modifiedLength>0;for(;i.originalStart+i.originalLength<n&&i.modifiedStart+i.modifiedLength<o&&(!r||this.OriginalElementsAreEqual(i.originalStart,i.originalStart+i.originalLength))&&(!a||this.ModifiedElementsAreEqual(i.modifiedStart,i.modifiedStart+i.modifiedLength));){const d=this.ElementsAreStrictEqual(i.originalStart,i.modifiedStart);if(this.ElementsAreStrictEqual(i.originalStart+i.originalLength,i.modifiedStart+i.modifiedLength)&&!d)break;i.originalStart++,i.modifiedStart++}const l=[null];if(t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],l)){e[t]=l[0],e.splice(t+1,1),t--;continue}}for(let t=e.length-1;t>=0;t--){const i=e[t];let n=0,o=0;if(t>0){const u=e[t-1];n=u.originalStart+u.originalLength,o=u.modifiedStart+u.modifiedLength}const r=i.originalLength>0,a=i.modifiedLength>0;let l=0,d=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let u=1;;u++){const h=i.originalStart-u,g=i.modifiedStart-u;if(h<n||g<o||r&&!this.OriginalElementsAreEqual(h,h+i.originalLength)||a&&!this.ModifiedElementsAreEqual(g,g+i.modifiedLength))break;const m=(h===n&&g===o?5:0)+this._boundaryScore(h,i.originalLength,g,i.modifiedLength);m>d&&(d=m,l=u)}i.originalStart-=l,i.modifiedStart-=l;const c=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],c)){e[t-1]=c[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,i=e.length;t<i;t++){const n=e[t-1],o=e[t],r=o.originalStart-n.originalStart-n.originalLength,a=n.originalStart,l=o.originalStart+o.originalLength,d=l-a,c=n.modifiedStart,u=o.modifiedStart+o.modifiedLength,h=u-c;if(r<5&&d<20&&h<20){const g=this._findBetterContiguousSequence(a,d,c,h,r);if(g){const[f,m]=g;(f!==n.originalStart+n.originalLength||m!==n.modifiedStart+n.modifiedLength)&&(n.originalLength=f-n.originalStart,n.modifiedLength=m-n.modifiedStart,o.originalStart=f+r,o.modifiedStart=m+r,o.originalLength=l-o.originalStart,o.modifiedLength=u-o.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,i,n,o){if(t<o||n<o)return null;const r=e+t-o+1,a=i+n-o+1;let l=0,d=0,c=0;for(let u=e;u<r;u++)for(let h=i;h<a;h++){const g=this._contiguousSequenceScore(u,h,o);g>0&&g>l&&(l=g,d=u,c=h)}return l>0?[d,c]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let o=0;o<i;o++){if(!this.ElementsAreEqual(e+o,t+o))return 0;n+=this._originalStringElements[e+o].length}return n}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){const o=this._OriginalRegionIsBoundary(e,t)?1:0,r=this._ModifiedRegionIsBoundary(i,n)?1:0;return o+r}ConcatenateChanges(e,t){const i=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return Ef.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],Ef.Copy(t,1,n,e.length,t.length-1),n}else{const n=new Array(e.length+t.length);return Ef.Copy(e,0,n,0,e.length),Ef.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,i){if(Df.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Df.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const n=e.originalStart;let o=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new Tc(n,o,r,a),!0}else return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&e<n)return e;const o=i,r=n-i-1,a=t%2===0;if(e<0){const l=o%2===0;return a===l?0:1}else{const l=r%2===0;return a===l?n-1:n-2}}}function JS(s){return s<0?0:s>255?255:s|0}function If(s){return s<0?0:s>4294967295?4294967295:s|0}class mee{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=If(e);const i=this.values,n=this.prefixSum,o=t.length;return o===0?!1:(this.values=new Uint32Array(i.length+o),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=If(e),t=If(t),this.values[e]===t?!1:(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=If(e),t=If(t);const i=this.values,n=this.prefixSum;if(e>=i.length)return!1;const o=i.length-e;return t>=o&&(t=o),t===0?!1:(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=If(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,o=0,r=0;for(;t<=i;)if(n=t+(i-t)/2|0,o=this.prefixSum[n],r=o-this.values[n],e<r)i=n-1;else if(e>=o)t=n+1;else break;return new SH(n,e-r)}}class _ee{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new SH(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=ek(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e<t;e++){const i=this._values[e],n=e>0?this._prefixSum[e-1]:0;this._prefixSum[e]=n+i;for(let o=0;o<i;o++)this._indexBySum[n+o]=e}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._invalidate(e))}}class SH{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class bee{constructor(e,t,i,n){this._uri=e,this._lines=t,this._eol=i,this._versionId=n,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const i of t)this._acceptDeleteRange(i.range),this._acceptInsertText(new F(i.range.startLineNumber,i.range.startColumn),i.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let n=0;n<t;n++)i[n]=this._lines[n].length+e;this._lineStarts=new mee(i)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.setValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){if(t.length===0)return;const i=sd(t);if(i.length===1){this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]+this._lines[e.lineNumber-1].substring(e.column-1));return}i[i.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+i[0]);const n=new Uint32Array(i.length-1);for(let o=1;o<i.length;o++)this._lines.splice(e.lineNumber+o-1,0,i[o]),n[o-1]=i[o].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,n)}}class o_{constructor(e){const t=JS(e);this._defaultValue=t,this._asciiMap=o_._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const i=JS(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class ey{constructor(){this._actual=new o_(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}clear(){return this._actual.clear()}}class vee{constructor(e,t,i){const n=new Uint8Array(e*t);for(let o=0,r=e*t;o<r;o++)n[o]=i;this._data=n,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,i){this._data[e*this.cols+t]=i}}class Cee{constructor(e){let t=0,i=0;for(let o=0,r=e.length;o<r;o++){const[a,l,d]=e[o];l>t&&(t=l),a>i&&(i=a),d>i&&(i=d)}t++,i++;const n=new vee(i,t,0);for(let o=0,r=e.length;o<r;o++){const[a,l,d]=e[o];n.set(a,l,d)}this._states=n,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let YD=null;function wee(){return YD===null&&(YD=new Cee([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),YD}let R_=null;function See(){if(R_===null){R_=new o_(0);const s=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let t=0;t<s.length;t++)R_.set(s.charCodeAt(t),1);const e=".,;:";for(let t=0;t<e.length;t++)R_.set(e.charCodeAt(t),2)}return R_}class ty{static _createLink(e,t,i,n,o){let r=o-1;do{const a=t.charCodeAt(r);if(e.get(a)!==2)break;r--}while(r>n);if(n>0){const a=t.charCodeAt(n-1),l=t.charCodeAt(r);(a===40&&l===41||a===91&&l===93||a===123&&l===125)&&r--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:r+2},url:t.substring(n,r+1)}}static computeLinks(e,t=wee()){const i=See(),n=[];for(let o=1,r=e.getLineCount();o<=r;o++){const a=e.getLineContent(o),l=a.length;let d=0,c=0,u=0,h=1,g=!1,f=!1,m=!1,_=!1;for(;d<l;){let b=!1;const v=a.charCodeAt(d);if(h===13){let C;switch(v){case 40:g=!0,C=0;break;case 41:C=g?0:1;break;case 91:m=!0,f=!0,C=0;break;case 93:m=!1,C=f?0:1;break;case 123:_=!0,C=0;break;case 125:C=_?0:1;break;case 39:case 34:case 96:u===v?C=1:u===39||u===34||u===96?C=0:C=1;break;case 42:C=u===42?1:0;break;case 124:C=u===124?1:0;break;case 32:C=m?0:1;break;default:C=i.get(v)}C===1&&(n.push(ty._createLink(i,a,o,c,d)),b=!0)}else if(h===12){let C;v===91?(f=!0,C=0):C=i.get(v),C===1?b=!0:h=13}else h=t.nextState(h,v),h===0&&(b=!0);b&&(h=1,g=!1,f=!1,_=!1,c=d+1,u=v),d++}h===13&&n.push(ty._createLink(i,a,o,c,l))}return n}}function yee(s){return!s||typeof s.getLineCount!="function"||typeof s.getLineContent!="function"?[]:ty.computeLinks(s)}class KT{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,i,n,o){if(e&&t){const r=this.doNavigateValueSet(t,o);if(r)return{range:e,value:r}}if(i&&n){const r=this.doNavigateValueSet(n,o);if(r)return{range:i,value:r}}return null}doNavigateValueSet(e,t){const i=this.numberReplace(e,t);return i!==null?i:this.textReplace(e,t)}numberReplace(e,t){const i=Math.pow(10,e.length-(e.lastIndexOf(".")+1));let n=Number(e);const o=parseFloat(e);return!isNaN(n)&&!isNaN(o)&&n===o?n===0&&!t?null:(n=Math.floor(n*i),n+=t?i:-i,String(n/i)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,i){let n=null;for(let o=0,r=e.length;n===null&&o<r;o++)n=this.valueSetReplace(e[o],t,i);return n}valueSetReplace(e,t,i){let n=e.indexOf(t);return n>=0?(n+=i?1:-1,n<0?n=e.length-1:n%=e.length,e[n]):null}}KT.INSTANCE=new KT;class xee extends o_{constructor(e){super(0);for(let t=0,i=e.length;t<i;t++)this.set(e.charCodeAt(t),2);this.set(32,1),this.set(9,1)}}function kee(s){const e={};return t=>(e.hasOwnProperty(t)||(e[t]=s(t)),e[t])}const vr=kee(s=>new xee(s));var Yo;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(Yo||(Yo={}));var ql;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=3]="Right"})(ql||(ql={}));var wo;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(wo||(wo={}));var zr;(function(s){s[s.Both=0]="Both",s[s.Right=1]="Right",s[s.Left=2]="Left",s[s.None=3]="None"})(zr||(zr={}));class X1{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,e.tabSize|0),e.indentSize==="tabSize"?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,e.indentSize|0),this._indentSizeIsTabSize=!1),this.insertSpaces=!!e.insertSpaces,this.defaultEOL=e.defaultEOL|0,this.trimAutoWhitespace=!!e.trimAutoWhitespace,this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&jo(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class Rv{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function Lee(s){return s&&typeof s.read=="function"}class XD{constructor(e,t,i,n,o,r){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=o,this._isTracked=r}}class Dee{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class Eee{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function yH(s){return!s.isTooLargeForSyncing()&&!s.isForSimpleWidget}const Iee=999;class zh{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){if(this.searchString==="")return null;let e;this.isRegex?e=Tee(this.searchString):e=this.searchString.indexOf(`
|
|
23
23
|
`)>=0;let t=null;try{t=CV(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch{return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new Dee(t,this.wordSeparators?vr(this.wordSeparators):null,i?this.searchString:null)}}function Tee(s){if(!s||s.length===0)return!1;for(let e=0,t=s.length;e<t;e++){const i=s.charCodeAt(e);if(i===10)return!0;if(i===92){if(e++,e>=t)break;const n=s.charCodeAt(e);if(n===110||n===114||n===87)return!0}}return!1}function Zh(s,e,t){if(!t)return new Rv(s,null);const i=[];for(let n=0,o=e.length;n<o;n++)i[n]=e[n];return new Rv(s,i)}class g5{constructor(e){const t=[];let i=0;for(let n=0,o=e.length;n<o;n++)e.charCodeAt(n)===10&&(t[i++]=n);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let i=0,n=t.length-1;if(n===-1||e<=t[0])return 0;for(;i<n;){const o=i+((n-i)/2>>0);t[o]>=e?n=o-1:t[o+1]>=e?(i=o,n=o):i=o+1}return i+1}}class kw{static findMatches(e,t,i,n,o){const r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,i,new ap(r.wordSeparators,r.regex),n,o):this._doFindMatchesLineByLine(e,i,r,n,o):[]}static _getMultilineMatchRange(e,t,i,n,o,r){let a,l=0;n?(l=n.findLineFeedCountBeforeOffset(o),a=t+o+l):a=t+o;let d;if(n){const g=n.findLineFeedCountBeforeOffset(o+r.length)-l;d=a+r.length+g}else d=a+r.length;const c=e.getPositionAt(a),u=e.getPositionAt(d);return new L(c.lineNumber,c.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,i,n,o){const r=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),l=e.getEOL()===`\r
|
|
24
24
|
`?new g5(a):null,d=[];let c=0,u;for(i.reset(0);u=i.next(a);)if(d[c++]=Zh(this._getMultilineMatchRange(e,r,a,l,u.index,u[0]),u,n),c>=o)return d;return d}static _doFindMatchesLineByLine(e,t,i,n,o){const r=[];let a=0;if(t.startLineNumber===t.endLineNumber){const d=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return a=this._findMatchesInLine(i,d,t.startLineNumber,t.startColumn-1,a,r,n,o),r}const l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);a=this._findMatchesInLine(i,l,t.startLineNumber,t.startColumn-1,a,r,n,o);for(let d=t.startLineNumber+1;d<t.endLineNumber&&a<o;d++)a=this._findMatchesInLine(i,e.getLineContent(d),d,0,a,r,n,o);if(a<o){const d=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);a=this._findMatchesInLine(i,d,t.endLineNumber,0,a,r,n,o)}return r}static _findMatchesInLine(e,t,i,n,o,r,a,l){const d=e.wordSeparators;if(!a&&e.simpleSearch){const h=e.simpleSearch,g=h.length,f=t.length;let m=-g;for(;(m=t.indexOf(h,m+g))!==-1;)if((!d||sP(d,t,f,m,g))&&(r[o++]=new Rv(new L(i,m+1+n,i,m+1+g+n),null),o>=l))return o;return o}const c=new ap(e.wordSeparators,e.regex);let u;c.reset(0);do if(u=c.next(t),u&&(r[o++]=Zh(new L(i,u.index+1+n,i,u.index+1+u[0].length+n),u,a),o>=l))return o;while(u);return o}static findNextMatch(e,t,i,n){const o=t.parseSearchRequest();if(!o)return null;const r=new ap(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,i,r,n):this._doFindNextMatchLineByLine(e,i,r,n)}static _doFindNextMatchMultiline(e,t,i,n){const o=new F(t.lineNumber,1),r=e.getOffsetAt(o),a=e.getLineCount(),l=e.getValueInRange(new L(o.lineNumber,o.column,a,e.getLineMaxColumn(a)),1),d=e.getEOL()===`\r
|
|
25
25
|
`?new g5(l):null;i.reset(t.column-1);const c=i.next(l);return c?Zh(this._getMultilineMatchRange(e,r,l,d,c.index,c[0]),c,n):t.lineNumber!==1||t.column!==1?this._doFindNextMatchMultiline(e,new F(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){const o=e.getLineCount(),r=t.lineNumber,a=e.getLineContent(r),l=this._findFirstMatchInLine(i,a,r,t.column,n);if(l)return l;for(let d=1;d<=o;d++){const c=(r+d-1)%o,u=e.getLineContent(c+1),h=this._findFirstMatchInLine(i,u,c+1,1,n);if(h)return h}return null}static _findFirstMatchInLine(e,t,i,n,o){e.reset(n-1);const r=e.next(t);return r?Zh(new L(i,r.index+1,i,r.index+1+r[0].length),r,o):null}static findPreviousMatch(e,t,i,n){const o=t.parseSearchRequest();if(!o)return null;const r=new ap(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,i,r,n):this._doFindPreviousMatchLineByLine(e,i,r,n)}static _doFindPreviousMatchMultiline(e,t,i,n){const o=this._doFindMatchesMultiline(e,new L(1,1,t.lineNumber,t.column),i,n,10*Iee);if(o.length>0)return o[o.length-1];const r=e.getLineCount();return t.lineNumber!==r||t.column!==e.getLineMaxColumn(r)?this._doFindPreviousMatchMultiline(e,new F(r,e.getLineMaxColumn(r)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){const o=e.getLineCount(),r=t.lineNumber,a=e.getLineContent(r).substring(0,t.column-1),l=this._findLastMatchInLine(i,a,r,n);if(l)return l;for(let d=1;d<=o;d++){const c=(o+r-d-1)%o,u=e.getLineContent(c+1),h=this._findLastMatchInLine(i,u,c+1,n);if(h)return h}return null}static _findLastMatchInLine(e,t,i,n){let o=null,r;for(e.reset(0);r=e.next(t);)o=Zh(new L(i,r.index+1,i,r.index+1+r[0].length),r,n);return o}}function Nee(s,e,t,i,n){if(i===0)return!0;const o=e.charCodeAt(i-1);if(s.get(o)!==0||o===13||o===10)return!0;if(n>0){const r=e.charCodeAt(i);if(s.get(r)!==0)return!0}return!1}function Aee(s,e,t,i,n){if(i+n===t)return!0;const o=e.charCodeAt(i+n);if(s.get(o)!==0||o===13||o===10)return!0;if(n>0){const r=e.charCodeAt(i+n-1);if(s.get(r)!==0)return!0}return!1}function sP(s,e,t,i,n){return Nee(s,e,t,i,n)&&Aee(s,e,t,i,n)}class ap{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(i=this._searchRegex.exec(e),!i))return null;const n=i.index,o=i[0].length;if(n===this._prevMatchStartIndex&&o===this._prevMatchLength){if(o===0){US(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=n,this._prevMatchLength=o,!this._wordSeparators||sP(this._wordSeparators,e,t,n,o))return i}while(i);return null}}class oP{static computeUnicodeHighlights(e,t,i){const n=i?i.startLineNumber:1,o=i?i.endLineNumber:e.getLineCount(),r=new f5(t),a=r.getCandidateCodePoints();let l;a==="allNonBasicAscii"?l=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):l=new RegExp(`${Ree(Array.from(a))}`,"g");const d=new ap(null,l),c=[];let u=!1,h,g=0,f=0,m=0;e:for(let _=n,b=o;_<=b;_++){const v=e.getLineContent(_),C=v.length;d.reset(0);do if(h=d.next(v),h){let w=h.index,S=h.index+h[0].length;if(w>0){const N=v.charCodeAt(w-1);ln(N)&&w--}if(S+1<C){const N=v.charCodeAt(S-1);ln(N)&&S++}const x=v.substring(w,S);let k=yv(w+1,DM,v,0);k&&k.endColumn<=w+1&&(k=null);const E=r.shouldHighlightNonBasicASCII(x,k?k.word:null);if(E!==0){if(E===3?g++:E===2?f++:E===1?m++:vk(),c.length>=1e3){u=!0;break e}c.push(new L(_,w+1,_,S+1))}}while(h)}return{ranges:c,hasMore:u,ambiguousCharacterCount:g,invisibleCharacterCount:f,nonBasicAsciiCharacterCount:m}}static computeUnicodeHighlightReason(e,t){const i=new f5(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const o=e.codePointAt(0),r=i.ambiguousCharacters.getPrimaryConfusable(o),a=Ag.getLocales().filter(l=>!Ag.getInstance(new Set([...t.allowedLocales,l])).isAmbiguous(o));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:a}}case 1:return{kind:2}}}}function Ree(s,e){return`[${Ko(s.map(i=>String.fromCodePoint(i)).join(""))}]`}class f5{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Ag.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of Vl.codePoints)p5(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,o=!1;if(t)for(const r of t){const a=r.codePointAt(0),l=xC(r);n=n||l,!l&&!this.ambiguousCharacters.isAmbiguous(a)&&!Vl.isInvisibleCharacter(a)&&(o=!0)}return!n&&o?0:this.options.invisibleCharacters&&!p5(e)&&Vl.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function p5(s){return s===" "||s===`
|
|
@@ -1472,4 +1472,4 @@ ${$G(i)}`;return t}};function $G(s){let e=`*@${s.name}*`;if(s.name==="param"&&s.
|
|
|
1472
1472
|
|
|
1473
1473
|
`+l:"")}]}}},qG=class extends na{async provideDocumentHighlights(s,e,t){const i=s.uri,n=s.getOffsetAt(e),o=await this._worker(i);if(s.isDisposed())return;const r=await o.getDocumentHighlights(i.toString(),n,[i.toString()]);if(!(!r||s.isDisposed()))return r.flatMap(a=>a.highlightSpans.map(l=>({range:this._textSpanToRange(s,l.textSpan),kind:l.kind==="writtenReference"?We.languages.DocumentHighlightKind.Write:We.languages.DocumentHighlightKind.Text})))}},KG=class extends na{constructor(s,e){super(e),this._libFiles=s}async provideDefinition(s,e,t){const i=s.uri,n=s.getOffsetAt(e),o=await this._worker(i);if(s.isDisposed())return;const r=await o.getDefinitionAtPosition(i.toString(),n);if(!r||s.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(r.map(l=>We.Uri.parse(l.fileName))),s.isDisposed()))return;const a=[];for(let l of r){const d=this._libFiles.getOrCreateModel(l.fileName);d&&a.push({uri:d.uri,range:this._textSpanToRange(d,l.textSpan)})}return a}},GG=class extends na{constructor(s,e){super(e),this._libFiles=s}async provideReferences(s,e,t,i){const n=s.uri,o=s.getOffsetAt(e),r=await this._worker(n);if(s.isDisposed())return;const a=await r.getReferencesAtPosition(n.toString(),o);if(!a||s.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(a.map(d=>We.Uri.parse(d.fileName))),s.isDisposed()))return;const l=[];for(let d of a){const c=this._libFiles.getOrCreateModel(d.fileName);c&&l.push({uri:c.uri,range:this._textSpanToRange(c,d.textSpan)})}return l}},ZG=class extends na{async provideDocumentSymbols(s,e){const t=s.uri,i=await this._worker(t);if(s.isDisposed())return;const n=await i.getNavigationTree(t.toString());if(!n||s.isDisposed())return;const o=(a,l)=>({name:a.text,detail:"",kind:To[a.kind]||We.languages.SymbolKind.Variable,range:this._textSpanToRange(s,a.spans[0]),selectionRange:this._textSpanToRange(s,a.spans[0]),tags:[],children:a.childItems?.map(c=>o(c,a.text)),containerName:l});return n.childItems?n.childItems.map(a=>o(a)):[]}},ui=class{static{this.unknown=""}static{this.keyword="keyword"}static{this.script="script"}static{this.module="module"}static{this.class="class"}static{this.interface="interface"}static{this.type="type"}static{this.enum="enum"}static{this.variable="var"}static{this.localVariable="local var"}static{this.function="function"}static{this.localFunction="local function"}static{this.memberFunction="method"}static{this.memberGetAccessor="getter"}static{this.memberSetAccessor="setter"}static{this.memberVariable="property"}static{this.constructorImplementation="constructor"}static{this.callSignature="call"}static{this.indexSignature="index"}static{this.constructSignature="construct"}static{this.parameter="parameter"}static{this.typeParameter="type parameter"}static{this.primitiveType="primitive type"}static{this.label="label"}static{this.alias="alias"}static{this.const="const"}static{this.let="let"}static{this.warning="warning"}},To=Object.create(null);To[ui.module]=We.languages.SymbolKind.Module;To[ui.class]=We.languages.SymbolKind.Class;To[ui.enum]=We.languages.SymbolKind.Enum;To[ui.interface]=We.languages.SymbolKind.Interface;To[ui.memberFunction]=We.languages.SymbolKind.Method;To[ui.memberVariable]=We.languages.SymbolKind.Property;To[ui.memberGetAccessor]=We.languages.SymbolKind.Property;To[ui.memberSetAccessor]=We.languages.SymbolKind.Property;To[ui.variable]=We.languages.SymbolKind.Variable;To[ui.const]=We.languages.SymbolKind.Variable;To[ui.localVariable]=We.languages.SymbolKind.Variable;To[ui.variable]=We.languages.SymbolKind.Variable;To[ui.function]=We.languages.SymbolKind.Function;To[ui.localFunction]=We.languages.SymbolKind.Function;var rf=class extends na{static _convertOptions(s){return{ConvertTabsToSpaces:s.insertSpaces,TabSize:s.tabSize,IndentSize:s.tabSize,IndentStyle:2,NewLineCharacter:`
|
|
1474
1474
|
`,InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(s,e){return{text:e.newText,range:this._textSpanToRange(s,e.span)}}},YG=class extends rf{constructor(){super(...arguments),this.canFormatMultipleRanges=!1}async provideDocumentRangeFormattingEdits(s,e,t,i){const n=s.uri,o=s.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),r=s.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=await this._worker(n);if(s.isDisposed())return;const l=await a.getFormattingEditsForRange(n.toString(),o,r,rf._convertOptions(t));if(!(!l||s.isDisposed()))return l.map(d=>this._convertTextChanges(s,d))}},XG=class extends rf{get autoFormatTriggerCharacters(){return[";","}",`
|
|
1475
|
-
`]}async provideOnTypeFormattingEdits(s,e,t,i,n){const o=s.uri,r=s.getOffsetAt(e),a=await this._worker(o);if(s.isDisposed())return;const l=await a.getFormattingEditsAfterKeystroke(o.toString(),r,t,rf._convertOptions(i));if(!(!l||s.isDisposed()))return l.map(d=>this._convertTextChanges(s,d))}},QG=class extends rf{async provideCodeActions(s,e,t,i){const n=s.uri,o=s.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),r=s.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=rf._convertOptions(s.getOptions()),l=t.markers.filter(h=>h.code).map(h=>h.code).map(Number),d=await this._worker(n);if(s.isDisposed())return;const c=await d.getCodeFixesAtPosition(n.toString(),o,r,l,a);return!c||s.isDisposed()?{actions:[],dispose:()=>{}}:{actions:c.filter(h=>h.changes.filter(g=>g.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(s,t,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(s,e,t){const i=[];for(const o of t.changes)for(const r of o.textChanges)i.push({resource:s.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(s,r.span),text:r.newText}});return{title:t.description,edit:{edits:i},diagnostics:e.markers,kind:"quickfix"}}},JG=class extends na{constructor(s,e){super(e),this._libFiles=s}async provideRenameEdits(s,e,t,i){const n=s.uri,o=n.toString(),r=s.getOffsetAt(e),a=await this._worker(n);if(s.isDisposed())return;const l=await a.getRenameInfo(o,r,{allowRenameOfImportPath:!1});if(l.canRename===!1)return{edits:[],rejectReason:l.localizedErrorMessage};if(l.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const d=await a.findRenameLocations(o,r,!1,!1,!1);if(!d||s.isDisposed())return;const c=[];for(const u of d){const h=this._libFiles.getOrCreateModel(u.fileName);if(h)c.push({resource:h.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(h,u.textSpan),text:t}});else throw new Error(`Unknown file ${u.fileName}.`)}return{edits:c}}},eZ=class extends na{async provideInlayHints(s,e,t){const i=s.uri,n=i.toString(),o=s.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),r=s.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=await this._worker(i);return s.isDisposed()?null:{hints:(await a.provideInlayHints(n,o,r)).map(c=>({...c,label:c.text,position:s.getPositionAt(c.position),kind:this._convertHintKind(c.kind)})),dispose:()=>{}}}_convertHintKind(s){switch(s){case"Parameter":return We.languages.InlayHintKind.Parameter;case"Type":return We.languages.InlayHintKind.Type;default:return We.languages.InlayHintKind.Type}}},vM,CM;function g2e(s){CM=tZ(s,"typescript")}function f2e(s){vM=tZ(s,"javascript")}function p2e(){return new Promise((s,e)=>{if(!vM)return e("JavaScript not registered!");s(vM)})}function m2e(){return new Promise((s,e)=>{if(!CM)return e("TypeScript not registered!");s(CM)})}function tZ(s,e){const t=[],i=new BG(e,s),n=(...a)=>i.getLanguageServiceWorker(...a),o=new WG(n);function r(){const{modeConfiguration:a}=s;_2e(t),a.completionItems&&t.push(We.languages.registerCompletionItemProvider(e,new HG(n))),a.signatureHelp&&t.push(We.languages.registerSignatureHelpProvider(e,new zG(n))),a.hovers&&t.push(We.languages.registerHoverProvider(e,new jG(n))),a.documentHighlights&&t.push(We.languages.registerDocumentHighlightProvider(e,new qG(n))),a.definitions&&t.push(We.languages.registerDefinitionProvider(e,new KG(o,n))),a.references&&t.push(We.languages.registerReferenceProvider(e,new GG(o,n))),a.documentSymbols&&t.push(We.languages.registerDocumentSymbolProvider(e,new ZG(n))),a.rename&&t.push(We.languages.registerRenameProvider(e,new JG(o,n))),a.documentRangeFormattingEdits&&t.push(We.languages.registerDocumentRangeFormattingEditProvider(e,new YG(n))),a.onTypeFormattingEdits&&t.push(We.languages.registerOnTypeFormattingEditProvider(e,new XG(n))),a.codeActions&&t.push(We.languages.registerCodeActionProvider(e,new QG(n))),a.inlayHints&&t.push(We.languages.registerInlayHintsProvider(e,new eZ(n))),a.diagnostics&&t.push(new VG(o,s,e,n))}return r(),n}function _2e(s){for(;s.length;)s.pop().dispose()}const b2e=Object.freeze(Object.defineProperty({__proto__:null,Adapter:na,CodeActionAdaptor:QG,DefinitionAdapter:KG,DiagnosticsAdapter:VG,DocumentHighlightAdapter:qG,FormatAdapter:YG,FormatHelper:rf,FormatOnTypeAdapter:XG,InlayHintsAdapter:eZ,Kind:ui,LibFiles:WG,OutlineAdapter:ZG,QuickInfoAdapter:jG,ReferenceAdapter:GG,RenameAdapter:JG,SignatureHelpAdapter:zG,SuggestAdapter:HG,WorkerManager:BG,flattenDiagnosticMessageText:Jx,getJavaScriptWorker:p2e,getTypeScriptWorker:m2e,setupJavaScript:f2e,setupTypeScript:g2e},Symbol.toStringTag,{value:"Module"}));function v2e(s){return new Worker(""+new URL("json.worker-
|
|
1475
|
+
`]}async provideOnTypeFormattingEdits(s,e,t,i,n){const o=s.uri,r=s.getOffsetAt(e),a=await this._worker(o);if(s.isDisposed())return;const l=await a.getFormattingEditsAfterKeystroke(o.toString(),r,t,rf._convertOptions(i));if(!(!l||s.isDisposed()))return l.map(d=>this._convertTextChanges(s,d))}},QG=class extends rf{async provideCodeActions(s,e,t,i){const n=s.uri,o=s.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),r=s.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=rf._convertOptions(s.getOptions()),l=t.markers.filter(h=>h.code).map(h=>h.code).map(Number),d=await this._worker(n);if(s.isDisposed())return;const c=await d.getCodeFixesAtPosition(n.toString(),o,r,l,a);return!c||s.isDisposed()?{actions:[],dispose:()=>{}}:{actions:c.filter(h=>h.changes.filter(g=>g.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(s,t,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(s,e,t){const i=[];for(const o of t.changes)for(const r of o.textChanges)i.push({resource:s.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(s,r.span),text:r.newText}});return{title:t.description,edit:{edits:i},diagnostics:e.markers,kind:"quickfix"}}},JG=class extends na{constructor(s,e){super(e),this._libFiles=s}async provideRenameEdits(s,e,t,i){const n=s.uri,o=n.toString(),r=s.getOffsetAt(e),a=await this._worker(n);if(s.isDisposed())return;const l=await a.getRenameInfo(o,r,{allowRenameOfImportPath:!1});if(l.canRename===!1)return{edits:[],rejectReason:l.localizedErrorMessage};if(l.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const d=await a.findRenameLocations(o,r,!1,!1,!1);if(!d||s.isDisposed())return;const c=[];for(const u of d){const h=this._libFiles.getOrCreateModel(u.fileName);if(h)c.push({resource:h.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(h,u.textSpan),text:t}});else throw new Error(`Unknown file ${u.fileName}.`)}return{edits:c}}},eZ=class extends na{async provideInlayHints(s,e,t){const i=s.uri,n=i.toString(),o=s.getOffsetAt({lineNumber:e.startLineNumber,column:e.startColumn}),r=s.getOffsetAt({lineNumber:e.endLineNumber,column:e.endColumn}),a=await this._worker(i);return s.isDisposed()?null:{hints:(await a.provideInlayHints(n,o,r)).map(c=>({...c,label:c.text,position:s.getPositionAt(c.position),kind:this._convertHintKind(c.kind)})),dispose:()=>{}}}_convertHintKind(s){switch(s){case"Parameter":return We.languages.InlayHintKind.Parameter;case"Type":return We.languages.InlayHintKind.Type;default:return We.languages.InlayHintKind.Type}}},vM,CM;function g2e(s){CM=tZ(s,"typescript")}function f2e(s){vM=tZ(s,"javascript")}function p2e(){return new Promise((s,e)=>{if(!vM)return e("JavaScript not registered!");s(vM)})}function m2e(){return new Promise((s,e)=>{if(!CM)return e("TypeScript not registered!");s(CM)})}function tZ(s,e){const t=[],i=new BG(e,s),n=(...a)=>i.getLanguageServiceWorker(...a),o=new WG(n);function r(){const{modeConfiguration:a}=s;_2e(t),a.completionItems&&t.push(We.languages.registerCompletionItemProvider(e,new HG(n))),a.signatureHelp&&t.push(We.languages.registerSignatureHelpProvider(e,new zG(n))),a.hovers&&t.push(We.languages.registerHoverProvider(e,new jG(n))),a.documentHighlights&&t.push(We.languages.registerDocumentHighlightProvider(e,new qG(n))),a.definitions&&t.push(We.languages.registerDefinitionProvider(e,new KG(o,n))),a.references&&t.push(We.languages.registerReferenceProvider(e,new GG(o,n))),a.documentSymbols&&t.push(We.languages.registerDocumentSymbolProvider(e,new ZG(n))),a.rename&&t.push(We.languages.registerRenameProvider(e,new JG(o,n))),a.documentRangeFormattingEdits&&t.push(We.languages.registerDocumentRangeFormattingEditProvider(e,new YG(n))),a.onTypeFormattingEdits&&t.push(We.languages.registerOnTypeFormattingEditProvider(e,new XG(n))),a.codeActions&&t.push(We.languages.registerCodeActionProvider(e,new QG(n))),a.inlayHints&&t.push(We.languages.registerInlayHintsProvider(e,new eZ(n))),a.diagnostics&&t.push(new VG(o,s,e,n))}return r(),n}function _2e(s){for(;s.length;)s.pop().dispose()}const b2e=Object.freeze(Object.defineProperty({__proto__:null,Adapter:na,CodeActionAdaptor:QG,DefinitionAdapter:KG,DiagnosticsAdapter:VG,DocumentHighlightAdapter:qG,FormatAdapter:YG,FormatHelper:rf,FormatOnTypeAdapter:XG,InlayHintsAdapter:eZ,Kind:ui,LibFiles:WG,OutlineAdapter:ZG,QuickInfoAdapter:jG,ReferenceAdapter:GG,RenameAdapter:JG,SignatureHelpAdapter:zG,SuggestAdapter:HG,WorkerManager:BG,flattenDiagnosticMessageText:Jx,getJavaScriptWorker:p2e,getTypeScriptWorker:m2e,setupJavaScript:f2e,setupTypeScript:g2e},Symbol.toStringTag,{value:"Module"}));function v2e(s){return new Worker(""+new URL("json.worker-BiEozgVN.js",import.meta.url).href,{name:s?.name})}const X4e=Object.freeze(Object.defineProperty({__proto__:null,default:v2e},Symbol.toStringTag,{value:"Module"}));function C2e(s){return new Worker(""+new URL("css.worker-Cj_nKzFJ.js",import.meta.url).href,{name:s?.name})}const Q4e=Object.freeze(Object.defineProperty({__proto__:null,default:C2e},Symbol.toStringTag,{value:"Module"}));function w2e(s){return new Worker(""+new URL("html.worker-Dbbe6jGy.js",import.meta.url).href,{name:s?.name})}const J4e=Object.freeze(Object.defineProperty({__proto__:null,default:w2e},Symbol.toStringTag,{value:"Module"}));function S2e(s){return new Worker(""+new URL("ts.worker-BomFZlTR.js",import.meta.url).href,{name:s?.name})}const e5e=Object.freeze(Object.defineProperty({__proto__:null,default:S2e},Symbol.toStringTag,{value:"Module"}));function y2e(s){return new Worker(""+new URL("editor.worker-CxQ7p1mj.js",import.meta.url).href,{name:s?.name})}const t5e=Object.freeze(Object.defineProperty({__proto__:null,default:y2e},Symbol.toStringTag,{value:"Module"}));export{Se as _,t5e as a,Q4e as c,dbe as e,J4e as h,X4e as j,e5e as t};
|