T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/.local/lib/code-server-4.102.2/lib/vscode/out/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/.local/lib/code-server-4.102.2/lib/vscode/out/server-main.js
"use strict";/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/var G1=function(e,t){return G1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,i){s.__proto__=i}||function(s,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(s[n]=i[n])},G1(e,t)};export function __extends(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");G1(e,t);function s(){this.constructor=e}e.prototype=t===null?Object.create(t):(s.prototype=t.prototype,new s)}export var __assign=function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(t[r]=s[r])}return t},__assign.apply(this,arguments)};export function __rest(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]]);return s}export function __decorate(e,t,s,i){var n=arguments.length,r=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,s):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,s,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n<3?o(r):n>3?o(t,s,r):o(t,s))||r);return n>3&&r&&Object.defineProperty(t,s,r),r}export function __param(e,t){return function(s,i){t(s,i,e)}}export function __esDecorate(e,t,s,i,n,r){function o(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var a=i.kind,c=a==="getter"?"get":a==="setter"?"set":"value",l=!t&&e?i.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,i.name):{}),h,f=!1,p=s.length-1;p>=0;p--){var g={};for(var w in i)g[w]=w==="access"?{}:i[w];for(var w in i.access)g.access[w]=i.access[w];g.addInitializer=function(x){if(f)throw new TypeError("Cannot add initializers after decoration has completed");r.push(o(x||null))};var b=(0,s[p])(a==="accessor"?{get:u.get,set:u.set}:u[c],g);if(a==="accessor"){if(b===void 0)continue;if(b===null||typeof b!="object")throw new TypeError("Object expected");(h=o(b.get))&&(u.get=h),(h=o(b.set))&&(u.set=h),(h=o(b.init))&&n.unshift(h)}else(h=o(b))&&(a==="field"?n.unshift(h):u[c]=h)}l&&Object.defineProperty(l,i.name,u),f=!0}export function __runInitializers(e,t,s){for(var i=arguments.length>2,n=0;n<t.length;n++)s=i?t[n].call(e,s):t[n].call(e);return i?s:void 0}export function __propKey(e){return typeof e=="symbol"?e:"".concat(e)}export function __setFunctionName(e,t,s){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:s?"".concat(s," ",t):t})}export function __metadata(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}export function __awaiter(e,t,s,i){function n(r){return r instanceof s?r:new s(function(o){o(r)})}return new(s||(s=Promise))(function(r,o){function a(u){try{l(i.next(u))}catch(h){o(h)}}function c(u){try{l(i.throw(u))}catch(h){o(h)}}function l(u){u.done?r(u.value):n(u.value).then(a,c)}l((i=i.apply(e,t||[])).next())})}export function __generator(e,t){var s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(u){return c([l,u])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(s=0)),s;)try{if(i=1,n&&(r=l[0]&2?n.return:l[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;switch(n=0,r&&(l=[l[0]&2,r.value]),l[0]){case 0:case 1:r=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,n=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){s=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){s.label=l[1];break}if(l[0]===6&&s.label<r[1]){s.label=r[1],r=l;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(l);break}r[2]&&s.ops.pop(),s.trys.pop();continue}l=t.call(e,s)}catch(u){l=[6,u],n=0}finally{i=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}export var __createBinding=Object.create?function(e,t,s,i){i===void 0&&(i=s);var n=Object.getOwnPropertyDescriptor(t,s);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,i,n)}:function(e,t,s,i){i===void 0&&(i=s),e[i]=t[s]};export function __exportStar(e,t){for(var s in e)s!=="default"&&!Object.prototype.hasOwnProperty.call(t,s)&&__createBinding(t,e,s)}export function __values(e){var t=typeof Symbol=="function"&&Symbol.iterator,s=t&&e[t],i=0;if(s)return s.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}export function __read(e,t){var s=typeof Symbol=="function"&&e[Symbol.iterator];if(!s)return e;var i=s.call(e),n,r=[],o;try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)r.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(s=i.return)&&s.call(i)}finally{if(o)throw o.error}}return r}export function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}export function __spreadArrays(){for(var e=0,t=0,s=arguments.length;t<s;t++)e+=arguments[t].length;for(var i=Array(e),n=0,t=0;t<s;t++)for(var r=arguments[t],o=0,a=r.length;o<a;o++,n++)i[n]=r[o];return i}export function __spreadArray(e,t,s){if(s||arguments.length===2)for(var i=0,n=t.length,r;i<n;i++)(r||!(i in t))&&(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}export function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}export function __asyncGenerator(e,t,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=s.apply(e,t||[]),n,r=[];return n={},a("next"),a("throw"),a("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(p){return function(g){return Promise.resolve(g).then(p,h)}}function a(p,g){i[p]&&(n[p]=function(w){return new Promise(function(b,x){r.push([p,w,b,x])>1||c(p,w)})},g&&(n[p]=g(n[p])))}function c(p,g){try{l(i[p](g))}catch(w){f(r[0][3],w)}}function l(p){p.value instanceof __await?Promise.resolve(p.value.v).then(u,h):f(r[0][2],p)}function u(p){c("next",p)}function h(p){c("throw",p)}function f(p,g){p(g),r.shift(),r.length&&c(r[0][0],r[0][1])}}export function __asyncDelegator(e){var t,s;return t={},i("next"),i("throw",function(n){throw n}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(n,r){t[n]=e[n]?function(o){return(s=!s)?{value:__await(e[n](o)),done:!1}:r?r(o):o}:r}}export function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],s;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),s={},i("next"),i("throw"),i("return"),s[Symbol.asyncIterator]=function(){return this},s);function i(r){s[r]=e[r]&&function(o){return new Promise(function(a,c){o=e[r](o),n(a,c,o.done,o.value)})}}function n(r,o,a,c){Promise.resolve(c).then(function(l){r({value:l,done:a})},o)}}export function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var PA=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};export function __importStar(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)&&__createBinding(t,e,s);return PA(t,e),t}export function __importDefault(e){return e&&e.__esModule?e:{default:e}}export function __classPrivateFieldGet(e,t,s,i){if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?i:s==="a"?i.call(e):i?i.value:t.get(e)}export function __classPrivateFieldSet(e,t,s,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,s):n?n.value=s:t.set(e,s),s}export function __classPrivateFieldIn(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}export function __addDisposableResource(e,t,s){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var i,n;if(s){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],s&&(n=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");n&&(i=function(){try{n.call(this)}catch(r){return Promise.reject(r)}}),e.stack.push({value:t,dispose:i,async:s})}else s&&e.stack.push({async:!0});return t}var IA=typeof SuppressedError=="function"?SuppressedError:function(e,t,s){var i=new Error(s);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};export function __disposeResources(e){function t(i){e.error=e.hasError?new IA(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}function s(){for(;e.stack.length;){var i=e.stack.pop();try{var n=i.dispose&&i.dispose.call(i.value);if(i.async)return Promise.resolve(n).then(s,function(r){return t(r),s()})}catch(r){t(r)}}if(e.hasError)throw e.error}return s()}export default{__extends,__assign,__rest,__decorate,__param,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateObject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources};var DA=Object.create,J1=Object.defineProperty,AA=Object.getOwnPropertyDescriptor,Z1=Object.getOwnPropertyNames,LA=Object.getPrototypeOf,RA=Object.prototype.hasOwnProperty,v=(e,t)=>function(){return e&&(t=(0,e[Z1(e)[0]])(e=0)),t},NA=(e,t)=>function(){return t||(0,e[Z1(e)[0]])((t={exports:{}}).exports,t),t.exports},OA=(e,t)=>{for(var s in t)J1(e,s,{get:t[s],enumerable:!0})},CA=(e,t,s,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Z1(t))!RA.call(e,n)&&n!==s&&J1(e,n,{get:()=>t[n],enumerable:!(i=AA(t,n))||i.enumerable});return e},xb=(e,t,s)=>(s=e!=null?DA(LA(e)):{},CA(t||!e||!e.__esModule?J1(s,"default",{value:e,enumerable:!0}):s,e)),kb=NA({"node_modules/minimist/index.js"(e,t){"use strict";function s(r,o){var a=r;o.slice(0,-1).forEach(function(l){a=a[l]||{}});var c=o[o.length-1];return c in a}function i(r){return typeof r=="number"||/^0x[0-9a-f]+$/i.test(r)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(r)}function n(r,o){return o==="constructor"&&typeof r[o]=="function"||o==="__proto__"}t.exports=function(r,o){o||(o={});var a={bools:{},strings:{},unknownFn:null};typeof o.unknown=="function"&&(a.unknownFn=o.unknown),typeof o.boolean=="boolean"&&o.boolean?a.allBools=!0:[].concat(o.boolean).filter(Boolean).forEach(function(A){a.bools[A]=!0});var c={};function l(A){return c[A].some(function(ee){return a.bools[ee]})}Object.keys(o.alias||{}).forEach(function(A){c[A]=[].concat(o.alias[A]),c[A].forEach(function(ee){c[ee]=[A].concat(c[A].filter(function(Ce){return ee!==Ce}))})}),[].concat(o.string).filter(Boolean).forEach(function(A){a.strings[A]=!0,c[A]&&[].concat(c[A]).forEach(function(ee){a.strings[ee]=!0})});var u=o.default||{},h={_:[]};function f(A,ee){return a.allBools&&/^--[^=]+$/.test(ee)||a.strings[A]||a.bools[A]||c[A]}function p(A,ee,Ce){for(var F=A,Ke=0;Ke<ee.length-1;Ke++){var C=ee[Ke];if(n(F,C))return;F[C]===void 0&&(F[C]={}),(F[C]===Object.prototype||F[C]===Number.prototype||F[C]===String.prototype)&&(F[C]={}),F[C]===Array.prototype&&(F[C]=[]),F=F[C]}var N=ee[ee.length-1];n(F,N)||((F===Object.prototype||F===Number.prototype||F===String.prototype)&&(F={}),F===Array.prototype&&(F=[]),F[N]===void 0||a.bools[N]||typeof F[N]=="boolean"?F[N]=Ce:Array.isArray(F[N])?F[N].push(Ce):F[N]=[F[N],Ce])}function g(A,ee,Ce){if(!(Ce&&a.unknownFn&&!f(A,Ce)&&a.unknownFn(Ce)===!1)){var F=!a.strings[A]&&i(ee)?Number(ee):ee;p(h,A.split("."),F),(c[A]||[]).forEach(function(Ke){p(h,Ke.split("."),F)})}}Object.keys(a.bools).forEach(function(A){g(A,u[A]===void 0?!1:u[A])});var w=[];r.indexOf("--")!==-1&&(w=r.slice(r.indexOf("--")+1),r=r.slice(0,r.indexOf("--")));for(var b=0;b<r.length;b++){var x=r[b],k,I;if(/^--.+=/.test(x)){var M=x.match(/^--([^=]+)=([\s\S]*)$/);k=M[1];var j=M[2];a.bools[k]&&(j=j!=="false"),g(k,j,x)}else if(/^--no-.+/.test(x))k=x.match(/^--no-(.+)/)[1],g(k,!1,x);else if(/^--.+/.test(x))k=x.match(/^--(.+)/)[1],I=r[b+1],I!==void 0&&!/^(-|--)[^-]/.test(I)&&!a.bools[k]&&!a.allBools&&(!c[k]||!l(k))?(g(k,I,x),b+=1):/^(true|false)$/.test(I)?(g(k,I==="true",x),b+=1):g(k,a.strings[k]?"":!0,x);else if(/^-[^-]+/.test(x)){for(var Ee=x.slice(1,-1).split(""),O=!1,z=0;z<Ee.length;z++){if(I=x.slice(z+2),I==="-"){g(Ee[z],I,x);continue}if(/[A-Za-z]/.test(Ee[z])&&I[0]==="="){g(Ee[z],I.slice(1),x),O=!0;break}if(/[A-Za-z]/.test(Ee[z])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(I)){g(Ee[z],I,x),O=!0;break}if(Ee[z+1]&&Ee[z+1].match(/\W/)){g(Ee[z],x.slice(z+2),x),O=!0;break}else g(Ee[z],a.strings[Ee[z]]?"":!0,x)}k=x.slice(-1)[0],!O&&k!=="-"&&(r[b+1]&&!/^(-|--)[^-]/.test(r[b+1])&&!a.bools[k]&&(!c[k]||!l(k))?(g(k,r[b+1],x),b+=1):r[b+1]&&/^(true|false)$/.test(r[b+1])?(g(k,r[b+1]==="true",x),b+=1):g(k,a.strings[k]?"":!0,x))}else if((!a.unknownFn||a.unknownFn(x)!==!1)&&h._.push(a.strings._||!i(x)?x:Number(x)),o.stopEarly){h._.push.apply(h._,r.slice(b+1));break}}return Object.keys(u).forEach(function(A){s(h,A.split("."))||(p(h,A.split("."),u[A]),(c[A]||[]).forEach(function(ee){p(h,ee.split("."),u[A])}))}),o["--"]?h["--"]=w.slice():w.forEach(function(A){h._.push(A)}),h}}});function Y1(e){const t=[];typeof e=="number"&&t.push("code/timeOrigin",e);function s(n,r){t.push(n,r?.startTime??Date.now())}function i(){const n=[];for(let r=0;r<t.length;r+=2)n.push({name:t[r],startTime:t[r+1]});return n}return{mark:s,getMarks:i}}function _A(){if(typeof performance=="object"&&typeof performance.mark=="function"&&!performance.nodeTiming)return typeof performance.timeOrigin!="number"&&!performance.timing?Y1():{mark(e,t){performance.mark(e,t)},getMarks(){let e=performance.timeOrigin;typeof e!="number"&&(e=(performance.timing.navigationStart||performance.timing.redirectStart||performance.timing.fetchStart)??0);const t=[{name:"code/timeOrigin",startTime:Math.round(e)}];for(const s of performance.getEntriesByType("mark"))t.push({name:s.name,startTime:Math.round(e+s.startTime)});return t}};if(typeof process=="object"){const e=performance?.timeOrigin;return Y1(e)}else return console.trace("perf-util loaded in UNKNOWN environment"),Y1()}function MA(e){return e.MonacoPerformanceMarks||(e.MonacoPerformanceMarks=_A()),e.MonacoPerformanceMarks}var Q1,It,$b,Ki=v({"out-build/vs/base/common/performance.js"(){"use strict";Q1=MA(globalThis),It=Q1.mark,$b=Q1.getMarks}});function UA(){return globalThis._VSCODE_NLS_MESSAGES}function Sb(){return globalThis._VSCODE_NLS_LANGUAGE}var Pb=v({"out-build/vs/nls.messages.js"(){"use strict"}});function pu(e,t){let s;return t.length===0?s=e:s=e.replace(/\{(\d+)\}/g,(i,n)=>{const r=n[0],o=t[r];let a=i;return typeof o=="string"?a=o:(typeof o=="number"||typeof o=="boolean"||o===void 0||o===null)&&(a=String(o)),a}),Ab&&(s="\uFF3B"+s.replace(/[aouei]/g,"$&$&")+"\uFF3D"),s}function m(e,t,...s){return pu(typeof e=="number"?Ib(e,t):t,s)}function Ib(e,t){const s=UA()?.[e];if(typeof s!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return s}function Db(e,t,...s){let i;typeof e=="number"?i=Ib(e,t):i=t;const n=pu(i,s);return{value:n,original:t===i?n:pu(t,s)}}var Ab,ce=v({"out-build/vs/nls.js"(){"use strict";Pb(),Pb(),Ab=Sb()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0}});function Lb(e){switch(e){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}var Dn,uo,ho,fo,X1,K1,mu,Rb,ep,Nb,Ob,za,Ha,tp,Cb,Di,Ai,Ss,sp,_b,Mb,Va,me,Cs,ut,Ub,jb,Ps,Tb,Fb,fr,ni,Is,Bb,zb,Hb,Vb,dr,ip,Wb,qb,Gb,jA,te=v({"out-build/vs/base/common/platform.js"(){"use strict";if(ce(),Dn="en",uo=!1,ho=!1,fo=!1,X1=!1,K1=!1,mu=!1,Rb=!1,ep=!1,Nb=!1,Ob=!1,za=void 0,Ha=Dn,tp=Dn,Cb=void 0,Di=void 0,Ai=globalThis,Ss=void 0,typeof Ai.vscode<"u"&&typeof Ai.vscode.process<"u"?Ss=Ai.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Ss=process),sp=typeof Ss?.versions?.electron=="string",_b=sp&&Ss?.type==="renderer",typeof Ss=="object"){uo=Ss.platform==="win32",ho=Ss.platform==="darwin",fo=Ss.platform==="linux",X1=fo&&!!Ss.env.SNAP&&!!Ss.env.SNAP_REVISION,Rb=sp,Nb=!!Ss.env.CI||!!Ss.env.BUILD_ARTIFACTSTAGINGDIRECTORY,za=Dn,Ha=Dn;const e=Ss.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);za=t.userLocale,tp=t.osLocale,Ha=t.resolvedLanguage||Dn,Cb=t.languagePack?.translationsConfigFile}catch{}K1=!0}else typeof navigator=="object"&&!_b?(Di=navigator.userAgent,uo=Di.indexOf("Windows")>=0,ho=Di.indexOf("Macintosh")>=0,ep=(Di.indexOf("Macintosh")>=0||Di.indexOf("iPad")>=0||Di.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,fo=Di.indexOf("Linux")>=0,Ob=Di?.indexOf("Mobi")>=0,mu=!0,Ha=Sb()||Dn,za=navigator.language.toLowerCase(),tp=za):console.error("Unable to resolve platform.");(function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"})(Mb||(Mb={})),Va=0,ho?Va=1:uo?Va=3:fo&&(Va=2),me=uo,Cs=ho,ut=fo,Ub=X1,jb=K1,Ps=mu,Tb=mu&&typeof Ai.importScripts=="function",Fb=Tb?Ai.origin:void 0,fr=Va,ni=Di,Is=Ha,function(e){function t(){return Is}e.value=t;function s(){return Is.length===2?Is==="en":Is.length>=3?Is[0]==="e"&&Is[1]==="n"&&Is[2]==="-":!1}e.isDefaultVariant=s;function i(){return Is==="en"}e.isDefault=i}(Bb||(Bb={})),zb=typeof Ai.postMessage=="function"&&!Ai.importScripts,Hb=(()=>{if(zb){const e=[];Ai.addEventListener("message",s=>{if(s.data&&s.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i<n;i++){const r=e[i];if(r.id===s.data.vscodeScheduleAsyncWork){e.splice(i,1),r.callback();return}}});let t=0;return s=>{const i=++t;e.push({id:i,callback:s}),Ai.postMessage({vscodeScheduleAsyncWork:i},"*")}}return e=>setTimeout(e)})(),function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"}(Vb||(Vb={})),dr=ho||ep?2:uo?1:3,ip=!!(ni&&ni.indexOf("Chrome")>=0),Wb=!!(ni&&ni.indexOf("Firefox")>=0),qb=!!(!ip&&ni&&ni.indexOf("Safari")>=0),Gb=!!(ni&&ni.indexOf("Edg/")>=0),jA=!!(ni&&ni.indexOf("Android")>=0)}}),pr,gu,en,Ds,np,rp,ri=v({"out-build/vs/base/common/process.js"(){"use strict";if(te(),gu=globalThis.vscode,typeof gu<"u"&&typeof gu.process<"u"){const e=gu.process;pr={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?pr={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:pr={get platform(){return me?"win32":Cs?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};en=pr.cwd,Ds=pr.env,np=pr.platform,rp=pr.arch}});function TA(e,t){if(e===null||typeof e!="object")throw new ap(t,"Object",e)}function mt(e,t){if(typeof e!="string")throw new ap(t,"string",e)}function ve(e){return e===Ot||e===us}function op(e){return e===Ot}function tn(e){return e>=Zb&&e<=Qb||e>=Yb&&e<=Xb}function wu(e,t,s,i){let n="",r=0,o=-1,a=0,c=0;for(let l=0;l<=e.length;++l){if(l<e.length)c=e.charCodeAt(l);else{if(i(c))break;c=Ot}if(i(c)){if(!(o===l-1||a===1))if(a===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==An||n.charCodeAt(n.length-2)!==An){if(n.length>2){const u=n.lastIndexOf(s);u===-1?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf(s)),o=l,a=0;continue}else if(n.length!==0){n="",r=0,o=l,a=0;continue}}t&&(n+=n.length>0?`${s}..`:"..",r=2)}else n.length>0?n+=`${s}${e.slice(o+1,l)}`:n=e.slice(o+1,l),r=l-o-1;o=l,a=0}else c===An&&a!==-1?++a:a=-1}return n}function FA(e){return e?`${e[0]==="."?"":"."}${e}`:""}function Jb(e,t){TA(t,"pathObject");const s=t.dir||t.root,i=t.base||`${t.name||""}${FA(t.ext)}`;return s?s===t.root?`${s}${i}`:`${s}${e}${i}`:i}var Zb,Yb,Qb,Xb,An,Ot,us,Li,Kb,ap,hs,gt,ey,$e,Hs,mr,_,oi,po,Ut,ht,gr,BA,zA,HA,qt,Wa,he=v({"out-build/vs/base/common/path.js"(){"use strict";ri(),Zb=65,Yb=97,Qb=90,Xb=122,An=46,Ot=47,us=92,Li=58,Kb=63,ap=class extends Error{constructor(e,t,s){let i;typeof t=="string"&&t.indexOf("not ")===0?(i="must not be",t=t.replace(/^not /,"")):i="must be";const n=e.indexOf(".")!==-1?"property":"argument";let r=`The "${e}" ${n} ${i} of type ${t}`;r+=`. Received type ${typeof s}`,super(r),this.code="ERR_INVALID_ARG_TYPE"}},hs=np==="win32",gt={resolve(...e){let t="",s="",i=!1;for(let n=e.length-1;n>=-1;n--){let r;if(n>=0){if(r=e[n],mt(r,`paths[${n}]`),r.length===0)continue}else t.length===0?r=en():(r=Ds[`=${t}`]||en(),(r===void 0||r.slice(0,2).toLowerCase()!==t.toLowerCase()&&r.charCodeAt(2)===us)&&(r=`${t}\\`));const o=r.length;let a=0,c="",l=!1;const u=r.charCodeAt(0);if(o===1)ve(u)&&(a=1,l=!0);else if(ve(u))if(l=!0,ve(r.charCodeAt(1))){let h=2,f=h;for(;h<o&&!ve(r.charCodeAt(h));)h++;if(h<o&&h!==f){const p=r.slice(f,h);for(f=h;h<o&&ve(r.charCodeAt(h));)h++;if(h<o&&h!==f){for(f=h;h<o&&!ve(r.charCodeAt(h));)h++;(h===o||h!==f)&&(c=`\\\\${p}\\${r.slice(f,h)}`,a=h)}}}else a=1;else tn(u)&&r.charCodeAt(1)===Li&&(c=r.slice(0,2),a=2,o>2&&ve(r.charCodeAt(2))&&(l=!0,a=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(i){if(t.length>0)break}else if(s=`${r.slice(a)}\\${s}`,i=l,l&&t.length>0)break}return s=wu(s,!i,"\\",ve),i?`${t}\\${s}`:`${t}${s}`||"."},normalize(e){mt(e,"path");const t=e.length;if(t===0)return".";let s=0,i,n=!1;const r=e.charCodeAt(0);if(t===1)return op(r)?"\\":e;if(ve(r))if(n=!0,ve(e.charCodeAt(1))){let a=2,c=a;for(;a<t&&!ve(e.charCodeAt(a));)a++;if(a<t&&a!==c){const l=e.slice(c,a);for(c=a;a<t&&ve(e.charCodeAt(a));)a++;if(a<t&&a!==c){for(c=a;a<t&&!ve(e.charCodeAt(a));)a++;if(a===t)return`\\\\${l}\\${e.slice(c)}\\`;a!==c&&(i=`\\\\${l}\\${e.slice(c,a)}`,s=a)}}}else s=1;else tn(r)&&e.charCodeAt(1)===Li&&(i=e.slice(0,2),s=2,t>2&&ve(e.charCodeAt(2))&&(n=!0,s=3));let o=s<t?wu(e.slice(s),!n,"\\",ve):"";if(o.length===0&&!n&&(o="."),o.length>0&&ve(e.charCodeAt(t-1))&&(o+="\\"),!n&&i===void 0&&e.includes(":")){if(o.length>=2&&tn(o.charCodeAt(0))&&o.charCodeAt(1)===Li)return`.\\${o}`;let a=e.indexOf(":");do if(a===t-1||ve(e.charCodeAt(a+1)))return`.\\${o}`;while((a=e.indexOf(":",a+1))!==-1)}return i===void 0?n?`\\${o}`:o:n?`${i}\\${o}`:`${i}${o}`},isAbsolute(e){mt(e,"path");const t=e.length;if(t===0)return!1;const s=e.charCodeAt(0);return ve(s)||t>2&&tn(s)&&e.charCodeAt(1)===Li&&ve(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,s;for(let r=0;r<e.length;++r){const o=e[r];mt(o,"path"),o.length>0&&(t===void 0?t=s=o:t+=`\\${o}`)}if(t===void 0)return".";let i=!0,n=0;if(typeof s=="string"&&ve(s.charCodeAt(0))){++n;const r=s.length;r>1&&ve(s.charCodeAt(1))&&(++n,r>2&&(ve(s.charCodeAt(2))?++n:i=!1))}if(i){for(;n<t.length&&ve(t.charCodeAt(n));)n++;n>=2&&(t=`\\${t.slice(n)}`)}return gt.normalize(t)},relative(e,t){if(mt(e,"from"),mt(t,"to"),e===t)return"";const s=gt.resolve(e),i=gt.resolve(t);if(s===i||(e=s.toLowerCase(),t=i.toLowerCase(),e===t))return"";if(s.length!==e.length||i.length!==t.length){const g=s.split("\\"),w=i.split("\\");g[g.length-1]===""&&g.pop(),w[w.length-1]===""&&w.pop();const b=g.length,x=w.length,k=b<x?b:x;let I;for(I=0;I<k&&g[I].toLowerCase()===w[I].toLowerCase();I++);return I===0?i:I===k?x>k?w.slice(I).join("\\"):b>k?"..\\".repeat(b-1-I)+"..":"":"..\\".repeat(b-I)+w.slice(I).join("\\")}let n=0;for(;n<e.length&&e.charCodeAt(n)===us;)n++;let r=e.length;for(;r-1>n&&e.charCodeAt(r-1)===us;)r--;const o=r-n;let a=0;for(;a<t.length&&t.charCodeAt(a)===us;)a++;let c=t.length;for(;c-1>a&&t.charCodeAt(c-1)===us;)c--;const l=c-a,u=o<l?o:l;let h=-1,f=0;for(;f<u;f++){const g=e.charCodeAt(n+f);if(g!==t.charCodeAt(a+f))break;g===us&&(h=f)}if(f!==u){if(h===-1)return i}else{if(l>u){if(t.charCodeAt(a+f)===us)return i.slice(a+f+1);if(f===2)return i.slice(a+f)}o>u&&(e.charCodeAt(n+f)===us?h=f:f===2&&(h=3)),h===-1&&(h=0)}let p="";for(f=n+h+1;f<=r;++f)(f===r||e.charCodeAt(f)===us)&&(p+=p.length===0?"..":"\\..");return a+=h,p.length>0?`${p}${i.slice(a,c)}`:(i.charCodeAt(a)===us&&++a,i.slice(a,c))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=gt.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===us){if(t.charCodeAt(1)===us){const s=t.charCodeAt(2);if(s!==Kb&&s!==An)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(tn(t.charCodeAt(0))&&t.charCodeAt(1)===Li&&t.charCodeAt(2)===us)return`\\\\?\\${t}`;return t},dirname(e){mt(e,"path");const t=e.length;if(t===0)return".";let s=-1,i=0;const n=e.charCodeAt(0);if(t===1)return ve(n)?e:".";if(ve(n)){if(s=i=1,ve(e.charCodeAt(1))){let a=2,c=a;for(;a<t&&!ve(e.charCodeAt(a));)a++;if(a<t&&a!==c){for(c=a;a<t&&ve(e.charCodeAt(a));)a++;if(a<t&&a!==c){for(c=a;a<t&&!ve(e.charCodeAt(a));)a++;if(a===t)return e;a!==c&&(s=i=a+1)}}}}else tn(n)&&e.charCodeAt(1)===Li&&(s=t>2&&ve(e.charCodeAt(2))?3:2,i=s);let r=-1,o=!0;for(let a=t-1;a>=i;--a)if(ve(e.charCodeAt(a))){if(!o){r=a;break}}else o=!1;if(r===-1){if(s===-1)return".";r=s}return e.slice(0,r)},basename(e,t){t!==void 0&&mt(t,"suffix"),mt(e,"path");let s=0,i=-1,n=!0,r;if(e.length>=2&&tn(e.charCodeAt(0))&&e.charCodeAt(1)===Li&&(s=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(r=e.length-1;r>=s;--r){const c=e.charCodeAt(r);if(ve(c)){if(!n){s=r+1;break}}else a===-1&&(n=!1,a=r+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(i=r):(o=-1,i=a))}return s===i?i=a:i===-1&&(i=e.length),e.slice(s,i)}for(r=e.length-1;r>=s;--r)if(ve(e.charCodeAt(r))){if(!n){s=r+1;break}}else i===-1&&(n=!1,i=r+1);return i===-1?"":e.slice(s,i)},extname(e){mt(e,"path");let t=0,s=-1,i=0,n=-1,r=!0,o=0;e.length>=2&&e.charCodeAt(1)===Li&&tn(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const c=e.charCodeAt(a);if(ve(c)){if(!r){i=a+1;break}continue}n===-1&&(r=!1,n=a+1),c===An?s===-1?s=a:o!==1&&(o=1):s!==-1&&(o=-1)}return s===-1||n===-1||o===0||o===1&&s===n-1&&s===i+1?"":e.slice(s,n)},format:Jb.bind(null,"\\"),parse(e){mt(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const s=e.length;let i=0,n=e.charCodeAt(0);if(s===1)return ve(n)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(ve(n)){if(i=1,ve(e.charCodeAt(1))){let h=2,f=h;for(;h<s&&!ve(e.charCodeAt(h));)h++;if(h<s&&h!==f){for(f=h;h<s&&ve(e.charCodeAt(h));)h++;if(h<s&&h!==f){for(f=h;h<s&&!ve(e.charCodeAt(h));)h++;h===s?i=h:h!==f&&(i=h+1)}}}}else if(tn(n)&&e.charCodeAt(1)===Li){if(s<=2)return t.root=t.dir=e,t;if(i=2,ve(e.charCodeAt(2))){if(s===3)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let r=-1,o=i,a=-1,c=!0,l=e.length-1,u=0;for(;l>=i;--l){if(n=e.charCodeAt(l),ve(n)){if(!c){o=l+1;break}continue}a===-1&&(c=!1,a=l+1),n===An?r===-1?r=l:u!==1&&(u=1):r!==-1&&(u=-1)}return a!==-1&&(r===-1||u===0||u===1&&r===a-1&&r===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,r),t.base=e.slice(o,a),t.ext=e.slice(r,a))),o>0&&o!==i?t.dir=e.slice(0,o-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},ey=(()=>{if(hs){const e=/\\/g;return()=>{const t=en().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>en()})(),$e={resolve(...e){let t="",s=!1;for(let i=e.length-1;i>=0&&!s;i--){const n=e[i];mt(n,`paths[${i}]`),n.length!==0&&(t=`${n}/${t}`,s=n.charCodeAt(0)===Ot)}if(!s){const i=ey();t=`${i}/${t}`,s=i.charCodeAt(0)===Ot}return t=wu(t,!s,"/",op),s?`/${t}`:t.length>0?t:"."},normalize(e){if(mt(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Ot,s=e.charCodeAt(e.length-1)===Ot;return e=wu(e,!t,"/",op),e.length===0?t?"/":s?"./":".":(s&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return mt(e,"path"),e.length>0&&e.charCodeAt(0)===Ot},join(...e){if(e.length===0)return".";const t=[];for(let s=0;s<e.length;++s){const i=e[s];mt(i,"path"),i.length>0&&t.push(i)}return t.length===0?".":$e.normalize(t.join("/"))},relative(e,t){if(mt(e,"from"),mt(t,"to"),e===t||(e=$e.resolve(e),t=$e.resolve(t),e===t))return"";const s=1,i=e.length,n=i-s,r=1,o=t.length-r,a=n<o?n:o;let c=-1,l=0;for(;l<a;l++){const h=e.charCodeAt(s+l);if(h!==t.charCodeAt(r+l))break;h===Ot&&(c=l)}if(l===a)if(o>a){if(t.charCodeAt(r+l)===Ot)return t.slice(r+l+1);if(l===0)return t.slice(r+l)}else n>a&&(e.charCodeAt(s+l)===Ot?c=l:l===0&&(c=0));let u="";for(l=s+c+1;l<=i;++l)(l===i||e.charCodeAt(l)===Ot)&&(u+=u.length===0?"..":"/..");return`${u}${t.slice(r+c)}`},toNamespacedPath(e){return e},dirname(e){if(mt(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Ot;let s=-1,i=!0;for(let n=e.length-1;n>=1;--n)if(e.charCodeAt(n)===Ot){if(!i){s=n;break}}else i=!1;return s===-1?t?"/":".":t&&s===1?"//":e.slice(0,s)},basename(e,t){t!==void 0&&mt(t,"suffix"),mt(e,"path");let s=0,i=-1,n=!0,r;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(r=e.length-1;r>=0;--r){const c=e.charCodeAt(r);if(c===Ot){if(!n){s=r+1;break}}else a===-1&&(n=!1,a=r+1),o>=0&&(c===t.charCodeAt(o)?--o===-1&&(i=r):(o=-1,i=a))}return s===i?i=a:i===-1&&(i=e.length),e.slice(s,i)}for(r=e.length-1;r>=0;--r)if(e.charCodeAt(r)===Ot){if(!n){s=r+1;break}}else i===-1&&(n=!1,i=r+1);return i===-1?"":e.slice(s,i)},extname(e){mt(e,"path");let t=-1,s=0,i=-1,n=!0,r=0;for(let o=e.length-1;o>=0;--o){const a=e[o];if(a==="/"){if(!n){s=o+1;break}continue}i===-1&&(n=!1,i=o+1),a==="."?t===-1?t=o:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||i===-1||r===0||r===1&&t===i-1&&t===s+1?"":e.slice(t,i)},format:Jb.bind(null,"/"),parse(e){mt(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const s=e.charCodeAt(0)===Ot;let i;s?(t.root="/",i=1):i=0;let n=-1,r=0,o=-1,a=!0,c=e.length-1,l=0;for(;c>=i;--c){const u=e.charCodeAt(c);if(u===Ot){if(!a){r=c+1;break}continue}o===-1&&(a=!1,o=c+1),u===An?n===-1?n=c:l!==1&&(l=1):n!==-1&&(l=-1)}if(o!==-1){const u=r===0&&s?1:r;n===-1||l===0||l===1&&n===o-1&&n===r+1?t.base=t.name=e.slice(u,o):(t.name=e.slice(u,n),t.base=e.slice(u,o),t.ext=e.slice(n,o))}return r>0?t.dir=e.slice(0,r-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},$e.win32=gt.win32=gt,$e.posix=gt.posix=$e,Hs=hs?gt.normalize:$e.normalize,mr=hs?gt.isAbsolute:$e.isAbsolute,_=hs?gt.join:$e.join,oi=hs?gt.resolve:$e.resolve,po=hs?gt.relative:$e.relative,Ut=hs?gt.dirname:$e.dirname,ht=hs?gt.basename:$e.basename,gr=hs?gt.extname:$e.extname,BA=hs?gt.format:$e.format,zA=hs?gt.parse:$e.parse,HA=hs?gt.toNamespacedPath:$e.toNamespacedPath,qt=hs?gt.sep:$e.sep,Wa=hs?gt.delimiter:$e.delimiter}});function VA(e,t){const s=Object.create(null);for(const i of e){const n=t(i);let r=s[n];r||(r=s[n]=[]),r.push(i)}return s}var ty,WA,sy=v({"out-build/vs/base/common/collections.js"(){"use strict";WA=class{static{ty=Symbol.toStringTag}constructor(e,t){this.b=t,this.a=new Map,this[ty]="SetWithKey";for(const s of e)this.add(s)}get size(){return this.a.size}add(e){const t=this.b(e);return this.a.set(t,e),this}delete(e){return this.a.delete(this.b(e))}has(e){return this.a.has(this.b(e))}*entries(){for(const e of this.a.values())yield[e,e]}keys(){return this.values()}*values(){for(const e of this.a.values())yield e}clear(){this.a.clear()}forEach(e,t){this.a.forEach(s=>e.call(t,s,s,this))}[Symbol.iterator](){return this.values()}}}});function iy(e){vu.setUnexpectedErrorHandler(e)}function ny(e){if(!e||typeof e!="object")return!1;const t=e;return t.code==="EPIPE"&&t.syscall?.toUpperCase()==="WRITE"}function Gt(e){sn(e)||vu.onUnexpectedError(e)}function sn(e){return e instanceof Dt?!0:e instanceof Error&&e.name===qa&&e.message===qa}function ry(){const e=new Error(qa);return e.name=e.message,e}function Ue(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function oy(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}function de(e){return e?e.message?e.message:e.stack?e.stack.split(`
`)[0]:String(e):"Error"}var ay,vu,qa,Dt,qA,nn,cy,ge=v({"out-build/vs/base/common/errors.js"(){"use strict";ay=class{constructor(){this.b=[],this.a=function(e){setTimeout(()=>{throw e.stack?nn.isErrorNoTelemetry(e)?new nn(e.message+`

`+e.stack):new Error(e.message+`

`+e.stack):e},0)}}addListener(e){return this.b.push(e),()=>{this.d(e)}}c(e){this.b.forEach(t=>{t(e)})}d(e){this.b.splice(this.b.indexOf(e),1)}setUnexpectedErrorHandler(e){this.a=e}getUnexpectedErrorHandler(){return this.a}onUnexpectedError(e){this.a(e),this.c(e)}onUnexpectedExternalError(e){this.a(e)}},vu=new ay,qa="Canceled",Dt=class extends Error{constructor(){super(qa),this.name=this.message}},qA=class A1 extends Error{static{this.a="PendingMigrationError"}static is(t){return t instanceof A1||t instanceof Error&&t.name===A1.a}constructor(t){super(t),this.name=A1.a}},nn=class sb extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof sb)return t;const s=new sb;return s.message=t.message,s.stack=t.stack,s}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},cy=class TD extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,TD.prototype)}}}});function bu(e,t){const s=this;let i=!1,n;return function(){if(i)return n;if(i=!0,t)try{n=e.apply(s,arguments)}finally{t()}else n=e.apply(s,arguments);return n}}var yu=v({"out-build/vs/base/common/functional.js"(){"use strict"}});function GA(e,t,s=0,i=e.length){let n=s,r=i;for(;n<r;){const o=Math.floor((n+r)/2);t(e[o])?n=o+1:r=o}return n-1}var JA,ZA=v({"out-build/vs/base/common/arraysFind.js"(){"use strict";JA=class FD{static{this.assertInvariants=!1}constructor(t){this.e=t,this.c=0}findLastMonotonous(t){if(FD.assertInvariants){if(this.d){for(const i of this.e)if(this.d(i)&&!t(i))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this.d=t}const s=GA(this.e,t,this.c);return this.c=s+1,s===-1?void 0:this.e[s]}}}});function rn(e,t,s=(i,n)=>i===n){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let i=0,n=e.length;i<n;i++)if(!s(e[i],t[i]))return!1;return!0}function YA(e,t,s){return QA(e.length,i=>s(e[i],t))}function QA(e,t){let s=0,i=e-1;for(;s<=i;){const n=(s+i)/2|0,r=t(n);if(r<0)s=n+1;else if(r>0)i=n-1;else return n}return-(s+1)}function ai(e){return e.filter(t=>!!t)}function XA(e){let t=0;for(let s=0;s<e.length;s++)e[s]&&(e[t]=e[s],t+=1);e.length=t}function Eu(e){return Array.isArray(e)&&e.length>0}function Ri(e,t=s=>s){const s=new Set;return e.filter(i=>{const n=t(i);return s.has(n)?!1:(s.add(n),!0)})}function ly(e,t){return e.push(t),()=>KA(e,t)}function KA(e,t){const s=e.indexOf(t);if(s>-1)return e.splice(s,1),t}function uy(e,t){let s;if(typeof t=="number"){let i=t;s=()=>{const n=Math.sin(i++)*179426549;return n-Math.floor(n)}}else s=Math.random;for(let i=e.length-1;i>0;i-=1){const n=Math.floor(s()*(i+1)),r=e[i];e[i]=e[n],e[n]=r}}function hy(e){return Array.isArray(e)?e:[e]}function eL(e){return e[Math.floor(Math.random()*e.length)]}function tL(e,t){return(s,i)=>t(e(s),e(i))}var cp,fy,sL,kt=v({"out-build/vs/base/common/arrays.js"(){"use strict";ZA(),ge(),function(e){function t(r){return r<0}e.isLessThan=t;function s(r){return r<=0}e.isLessThanOrEqual=s;function i(r){return r>0}e.isGreaterThan=i;function n(r){return r===0}e.isNeitherLessOrGreaterThan=n,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(cp||(cp={})),fy=(e,t)=>e-t,sL=class L1{static{this.empty=new L1(t=>{})}constructor(t){this.iterate=t}forEach(t){this.iterate(s=>(t(s),!0))}toArray(){const t=[];return this.iterate(s=>(t.push(s),!0)),t}filter(t){return new L1(s=>this.iterate(i=>t(i)?s(i):!0))}map(t){return new L1(s=>this.iterate(i=>s(t(i))))}some(t){let s=!1;return this.iterate(i=>(s=t(i),!s)),s}findFirst(t){let s;return this.iterate(i=>t(i)?(s=i,!1):!0),s}findLast(t){let s;return this.iterate(i=>(t(i)&&(s=i),!0)),s}findLastMaxBy(t){let s,i=!0;return this.iterate(n=>((i||cp.isGreaterThan(t(n,s)))&&(i=!1,s=n),!0)),s}}}});function iL(e){return Array.isArray(e)}var dy,py,my,gy,wt,xu,wy,vy,by,Ga,yy,Jt=v({"out-build/vs/base/common/map.js"(){"use strict";gy=class{constructor(e,t){this.uri=e,this.value=t}},wt=class tu{static{this.c=t=>t.toString()}constructor(t,s){if(this[dy]="ResourceMap",t instanceof tu)this.d=new Map(t.d),this.e=s??tu.c;else if(iL(t)){this.d=new Map,this.e=s??tu.c;for(const[i,n]of t)this.set(i,n)}else this.d=new Map,this.e=t??tu.c}set(t,s){return this.d.set(this.e(t),new gy(t,s)),this}get(t){return this.d.get(this.e(t))?.value}has(t){return this.d.has(this.e(t))}get size(){return this.d.size}clear(){this.d.clear()}delete(t){return this.d.delete(this.e(t))}forEach(t,s){typeof s<"u"&&(t=t.bind(s));for(const[i,n]of this.d)t(n.value,n.uri,this)}*values(){for(const t of this.d.values())yield t.value}*keys(){for(const t of this.d.values())yield t.uri}*entries(){for(const t of this.d.values())yield[t.uri,t.value]}*[(dy=Symbol.toStringTag,Symbol.iterator)](){for(const[,t]of this.d)yield[t.uri,t.value]}},xu=class{constructor(e,t){this[py]="ResourceSet",!e||typeof e=="function"?this.c=new wt(e):(this.c=new wt(t),e.forEach(this.add,this))}get size(){return this.c.size}add(e){return this.c.set(e,e),this}clear(){this.c.clear()}delete(e){return this.c.delete(e)}forEach(e,t){this.c.forEach((s,i)=>e.call(t,i,i,this))}has(e){return this.c.has(e)}entries(){return this.c.entries()}keys(){return this.c.keys()}values(){return this.c.keys()}[(py=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(wy||(wy={})),vy=class{constructor(){this[my]="LinkedMap",this.c=new Map,this.d=void 0,this.e=void 0,this.f=0,this.g=0}clear(){this.c.clear(),this.d=void 0,this.e=void 0,this.f=0,this.g++}isEmpty(){return!this.d&&!this.e}get size(){return this.f}get first(){return this.d?.value}get last(){return this.e?.value}has(e){return this.c.has(e)}get(e,t=0){const s=this.c.get(e);if(s)return t!==0&&this.n(s,t),s.value}set(e,t,s=0){let i=this.c.get(e);if(i)i.value=t,s!==0&&this.n(i,s);else{switch(i={key:e,value:t,next:void 0,previous:void 0},s){case 0:this.l(i);break;case 1:this.k(i);break;case 2:this.l(i);break;default:this.l(i);break}this.c.set(e,i),this.f++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this.c.get(e);if(t)return this.c.delete(e),this.m(t),this.f--,t.value}shift(){if(!this.d&&!this.e)return;if(!this.d||!this.e)throw new Error("Invalid list");const e=this.d;return this.c.delete(e.key),this.m(e),this.f--,e.value}forEach(e,t){const s=this.g;let i=this.d;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this.g!==s)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this.g;let s=this.d;const i={[Symbol.iterator](){return i},next(){if(e.g!==t)throw new Error("LinkedMap got modified during iteration.");if(s){const n={value:s.key,done:!1};return s=s.next,n}else return{value:void 0,done:!0}}};return i}values(){const e=this,t=this.g;let s=this.d;const i={[Symbol.iterator](){return i},next(){if(e.g!==t)throw new Error("LinkedMap got modified during iteration.");if(s){const n={value:s.value,done:!1};return s=s.next,n}else return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this.g;let s=this.d;const i={[Symbol.iterator](){return i},next(){if(e.g!==t)throw new Error("LinkedMap got modified during iteration.");if(s){const n={value:[s.key,s.value],done:!1};return s=s.next,n}else return{value:void 0,done:!0}}};return i}[(my=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}h(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this.d,s=this.size;for(;t&&s>e;)this.c.delete(t.key),t=t.next,s--;this.d=t,this.f=s,t&&(t.previous=void 0),this.g++}j(e){if(e>=this.size)return;if(e===0){this.clear();return}let t=this.e,s=this.size;for(;t&&s>e;)this.c.delete(t.key),t=t.previous,s--;this.e=t,this.f=s,t&&(t.next=void 0),this.g++}k(e){if(!this.d&&!this.e)this.e=e;else if(this.d)e.next=this.d,this.d.previous=e;else throw new Error("Invalid list");this.d=e,this.g++}l(e){if(!this.d&&!this.e)this.d=e;else if(this.e)e.previous=this.e,this.e.next=e;else throw new Error("Invalid list");this.e=e,this.g++}m(e){if(e===this.d&&e===this.e)this.d=void 0,this.e=void 0;else if(e===this.d){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this.d=e.next}else if(e===this.e){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this.e=e.previous}else{const t=e.next,s=e.previous;if(!t||!s)throw new Error("Invalid list");t.previous=s,s.next=t}e.next=void 0,e.previous=void 0,this.g++}n(e,t){if(!this.d||!this.e)throw new Error("Invalid list");if(!(t!==1&&t!==2)){if(t===1){if(e===this.d)return;const s=e.next,i=e.previous;e===this.e?(i.next=void 0,this.e=i):(s.previous=i,i.next=s),e.previous=void 0,e.next=this.d,this.d.previous=e,this.d=e,this.g++}else if(t===2){if(e===this.e)return;const s=e.next,i=e.previous;e===this.d?(s.previous=void 0,this.d=s):(s.previous=i,i.next=s),e.next=void 0,e.previous=this.e,this.e.next=e,this.e=e,this.g++}}}toJSON(){const e=[];return this.forEach((t,s)=>{e.push([s,t])}),e}fromJSON(e){this.clear();for(const[t,s]of e)this.set(t,s)}},by=class extends vy{constructor(e,t=1){super(),this.o=e,this.p=Math.min(Math.max(0,t),1)}get limit(){return this.o}set limit(e){this.o=e,this.q()}get ratio(){return this.p}set ratio(e){this.p=Math.min(Math.max(0,e),1),this.q()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}q(){this.size>this.o&&this.r(Math.round(this.o*this.p))}},Ga=class extends by{constructor(e,t=1){super(e,t)}r(e){this.h(e)}set(e,t){return super.set(e,t),this.q(),this}},yy=class{constructor(){this.c=new Map}add(e,t){let s=this.c.get(e);s||(s=new Set,this.c.set(e,s)),s.add(t)}delete(e,t){const s=this.c.get(e);s&&(s.delete(t),s.size===0&&this.c.delete(e))}forEach(e,t){const s=this.c.get(e);s&&s.forEach(t)}get(e){const t=this.c.get(e);return t||new Set}}}});function lp(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function up(e,t="Unreachable"){throw new Error(t)}function hp(e,t="unexpected state"){if(!e)throw typeof t=="string"?new cy(`Assertion Failed: ${t}`):t}var Ln=v({"out-build/vs/base/common/assert.js"(){"use strict";ge()}});function ue(e){return typeof e=="string"}function ft(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function nL(e){const t=Object.getPrototypeOf(Uint8Array);return typeof e=="object"&&e instanceof t}function Rn(e){return typeof e=="number"&&!isNaN(e)}function rL(e){return!!e&&typeof e[Symbol.iterator]=="function"}function ci(e){return e===!0||e===!1}function Vs(e){return typeof e>"u"}function ku(e){return!At(e)}function At(e){return Vs(e)||e===null}function fp(e){return hp(e!=null,"Argument is `undefined` or `null`."),e}function dp(e){if(!ft(e))return!1;for(const t in e)if(Ey.call(e,t))return!1;return!0}function $u(e){return typeof e=="function"}function oL(e,t){if(ue(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if($u(t)){try{if(e instanceof t)return}catch{}if(!At(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}var Ey,be=v({"out-build/vs/base/common/types.js"(){"use strict";Ln(),Ey=Object.prototype.hasOwnProperty}}),Ni,wr=v({"out-build/vs/base/common/iterator.js"(){"use strict";be(),function(e){function t(O){return!!O&&typeof O=="object"&&typeof O[Symbol.iterator]=="function"}e.is=t;const s=Object.freeze([]);function i(){return s}e.empty=i;function*n(O){yield O}e.single=n;function r(O){return t(O)?O:n(O)}e.wrap=r;function o(O){return O||s}e.from=o;function*a(O){for(let z=O.length-1;z>=0;z--)yield O[z]}e.reverse=a;function c(O){return!O||O[Symbol.iterator]().next().done===!0}e.isEmpty=c;function l(O){return O[Symbol.iterator]().next().value}e.first=l;function u(O,z){let A=0;for(const ee of O)if(z(ee,A++))return!0;return!1}e.some=u;function h(O,z){let A=0;for(const ee of O)if(!z(ee,A++))return!1;return!0}e.every=h;function f(O,z){for(const A of O)if(z(A))return A}e.find=f;function*p(O,z){for(const A of O)z(A)&&(yield A)}e.filter=p;function*g(O,z){let A=0;for(const ee of O)yield z(ee,A++)}e.map=g;function*w(O,z){let A=0;for(const ee of O)yield*z(ee,A++)}e.flatMap=w;function*b(...O){for(const z of O)rL(z)?yield*z:yield z}e.concat=b;function x(O,z,A){let ee=A;for(const Ce of O)ee=z(ee,Ce);return ee}e.reduce=x;function k(O){let z=0;for(const A of O)z++;return z}e.length=k;function*I(O,z,A=O.length){for(z<-O.length&&(z=0),z<0&&(z+=O.length),A<0?A+=O.length:A>O.length&&(A=O.length);z<A;z++)yield O[z]}e.slice=I;function M(O,z=Number.POSITIVE_INFINITY){const A=[];if(z===0)return[A,O];const ee=O[Symbol.iterator]();for(let Ce=0;Ce<z;Ce++){const F=ee.next();if(F.done)return[A,e.empty()];A.push(F.value)}return[A,{[Symbol.iterator](){return ee}}]}e.consume=M;async function j(O){const z=[];for await(const A of O)z.push(A);return z}e.asyncToArray=j;async function Ee(O){let z=[];for await(const A of O)z=z.concat(A);return z}e.asyncToArrayFlat=Ee}(Ni||(Ni={}))}});function aL(e){vr=e}function Ja(e){return vr?.trackDisposable(e),e}function Za(e){vr?.markAsDisposed(e)}function Ya(e,t){vr?.setParent(e,t)}function cL(e,t){if(vr)for(const s of e)vr.setParent(s,t)}function xy(e){return typeof e=="object"&&e!==null&&typeof e.dispose=="function"&&e.dispose.length===0}function jt(e){if(Ni.is(e)){const t=[];for(const s of e)if(s)try{s.dispose()}catch(i){t.push(i)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function ky(...e){const t=De(()=>jt(e));return cL(e,t),t}function De(e){const t=Ja({dispose:bu(()=>{Za(t),e()})});return t}var $y,vr,lL,rt,W,Qa,Su,V=v({"out-build/vs/base/common/lifecycle.js"(){"use strict";if(kt(),sy(),Jt(),yu(),wr(),$y=!1,vr=null,lL=class BD{constructor(){this.b=new Map}static{this.a=0}c(t){let s=this.b.get(t);return s||(s={parent:null,source:null,isSingleton:!1,value:t,idx:BD.a++},this.b.set(t,s)),s}trackDisposable(t){const s=this.c(t);s.source||(s.source=new Error().stack)}setParent(t,s){const i=this.c(t);i.parent=s}markAsDisposed(t){this.b.delete(t)}markAsSingleton(t){this.c(t).isSingleton=!0}f(t,s){const i=s.get(t);if(i)return i;const n=t.parent?this.f(this.c(t.parent),s):t;return s.set(t,n),n}getTrackedDisposables(){const t=new Map;return[...this.b.entries()].filter(([,i])=>i.source!==null&&!this.f(i,t).isSingleton).flatMap(([i])=>i)}computeLeakingDisposables(t=10,s){let i;if(s)i=s;else{const c=new Map,l=[...this.b.values()].filter(h=>h.source!==null&&!this.f(h,c).isSingleton);if(l.length===0)return;const u=new Set(l.map(h=>h.value));if(i=l.filter(h=>!(h.parent&&u.has(h.parent))),i.length===0)throw new Error("There are cyclic diposable chains!")}if(!i)return;function n(c){function l(h,f){for(;h.length>0&&f.some(p=>typeof p=="string"?p===h[0]:h[0].match(p));)h.shift()}const u=c.source.split(`
`).map(h=>h.trim().replace("at ","")).filter(h=>h!=="");return l(u,["Error",/^trackDisposable \(.*\)$/,/^DisposableTracker.trackDisposable \(.*\)$/]),u.reverse()}const r=new yy;for(const c of i){const l=n(c);for(let u=0;u<=l.length;u++)r.add(l.slice(0,u).join(`
`),c)}i.sort(tL(c=>c.idx,fy));let o="",a=0;for(const c of i.slice(0,t)){a++;const l=n(c),u=[];for(let h=0;h<l.length;h++){let f=l[h];f=`(shared with ${r.get(l.slice(0,h+1).join(`
`)).size}/${i.length} leaks) at ${f}`;const g=r.get(l.slice(0,h).join(`
`)),w=VA([...g].map(b=>n(b)[h]),b=>b);delete w[l[h]];for(const[b,x]of Object.entries(w))u.unshift(`    - stacktraces of ${x.length} other leaks continue with ${b}`);u.unshift(f)}o+=`


==================== Leaking disposable ${a}/${i.length}: ${c.value.constructor.name} ====================
${u.join(`
`)}
============================================================

`}return i.length>t&&(o+=`


... and ${i.length-t} more leaking disposables

`),{leaks:i,details:o}}},$y){const e="__is_disposable_tracked__";aL(new class{trackDisposable(t){const s=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(s)},3e3)}setParent(t,s){if(t&&t!==W.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==W.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}rt=class zD{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this.f=new Set,this.g=!1,Ja(this)}dispose(){this.g||(Za(this),this.g=!0,this.clear())}get isDisposed(){return this.g}clear(){if(this.f.size!==0)try{jt(this.f)}finally{this.f.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return Ya(t,this),this.g?zD.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this.f.add(t),t}delete(t){if(t){if(t===this)throw new Error("Cannot dispose a disposable on itself!");this.f.delete(t),t.dispose()}}deleteAndLeak(t){t&&this.f.has(t)&&(this.f.delete(t),Ya(t,null))}},W=class{static{this.None=Object.freeze({dispose(){}})}constructor(){this.q=new rt,Ja(this),Ya(this.q,this)}dispose(){Za(this),this.q.dispose()}B(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this.q.add(e)}},Qa=class{constructor(){this.b=!1,Ja(this)}get value(){return this.b?void 0:this.a}set value(e){this.b||e===this.a||(this.a?.dispose(),e&&Ya(e,this),this.a=e)}clear(){this.value=void 0}dispose(){this.b=!0,Za(this),this.a?.dispose(),this.a=void 0}clearAndLeak(){const e=this.a;return this.a=void 0,e&&Ya(e,null),e}},Su=class{constructor(){this.a=new Map,this.b=!1,Ja(this)}dispose(){Za(this),this.b=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this.a.size)try{jt(this.a.values())}finally{this.a.clear()}}has(e){return this.a.has(e)}get size(){return this.a.size}get(e){return this.a.get(e)}set(e,t,s=!1){this.b&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),s||this.a.get(e)?.dispose(),this.a.set(e,t)}deleteAndDispose(e){this.a.get(e)?.dispose(),this.a.delete(e)}deleteAndLeak(e){const t=this.a.get(e);return this.a.delete(e),t}keys(){return this.a.keys()}values(){return this.a.values()}[Symbol.iterator](){return this.a[Symbol.iterator]()}}}}),ot,pp,Sy=v({"out-build/vs/base/common/linkedList.js"(){"use strict";ot=class R1{static{this.Undefined=new R1(void 0)}constructor(t){this.element=t,this.next=R1.Undefined,this.prev=R1.Undefined}},pp=class{constructor(){this.a=ot.Undefined,this.b=ot.Undefined,this.c=0}get size(){return this.c}isEmpty(){return this.a===ot.Undefined}clear(){let e=this.a;for(;e!==ot.Undefined;){const t=e.next;e.prev=ot.Undefined,e.next=ot.Undefined,e=t}this.a=ot.Undefined,this.b=ot.Undefined,this.c=0}unshift(e){return this.d(e,!1)}push(e){return this.d(e,!0)}d(e,t){const s=new ot(e);if(this.a===ot.Undefined)this.a=s,this.b=s;else if(t){const n=this.b;this.b=s,s.prev=n,n.next=s}else{const n=this.a;this.a=s,s.next=n,n.prev=s}this.c+=1;let i=!1;return()=>{i||(i=!0,this.e(s))}}shift(){if(this.a!==ot.Undefined){const e=this.a.element;return this.e(this.a),e}}pop(){if(this.b!==ot.Undefined){const e=this.b.element;return this.e(this.b),e}}e(e){if(e.prev!==ot.Undefined&&e.next!==ot.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ot.Undefined&&e.next===ot.Undefined?(this.a=ot.Undefined,this.b=ot.Undefined):e.next===ot.Undefined?(this.b=this.b.prev,this.b.next=ot.Undefined):e.prev===ot.Undefined&&(this.a=this.a.next,this.a.prev=ot.Undefined);this.c-=1}*[Symbol.iterator](){let e=this.a;for(;e!==ot.Undefined;)yield e.element,e=e.next}}}}),Py,on,mo=v({"out-build/vs/base/common/stopwatch.js"(){"use strict";Py=globalThis.performance.now.bind(globalThis.performance),on=class HD{static create(t){return new HD(t)}constructor(t){this.c=t===!1?Date.now:Py,this.a=this.c(),this.b=-1}stop(){this.b=this.c()}reset(){this.a=this.c(),this.b=-1}elapsed(){return this.b!==-1?this.b-this.a:this.c()-this.a}}}}),mp,Iy,B,Dy,gp,Ay,Pu,Ly,Ry,Ny,Xa,Oy,Cy,D,_y,Iu,My,wp,re=v({"out-build/vs/base/common/event.js"(){"use strict";sy(),ge(),yu(),V(),Sy(),mo(),mp=!1,Iy=!1,function(e){e.None=()=>W.None;function t(C){if(Iy){const{onDidAddListener:N}=C,H=Pu.create();let L=0;C.onDidAddListener=()=>{++L===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),H.print()),N?.()}}}function s(C,N){return p(C,()=>{},0,void 0,!0,void 0,N)}e.defer=s;function i(C){return(N,H=null,L)=>{let T=!1,se;return se=C(we=>{if(!T)return se?se.dispose():T=!0,N.call(H,we)},null,L),T&&se.dispose(),se}}e.once=i;function n(C,N){return e.once(e.filter(C,N))}e.onceIf=n;function r(C,N,H){return h((L,T=null,se)=>C(we=>L.call(T,N(we)),null,se),H)}e.map=r;function o(C,N,H){return h((L,T=null,se)=>C(we=>{N(we),L.call(T,we)},null,se),H)}e.forEach=o;function a(C,N,H){return h((L,T=null,se)=>C(we=>N(we)&&L.call(T,we),null,se),H)}e.filter=a;function c(C){return C}e.signal=c;function l(...C){return(N,H=null,L)=>{const T=ky(...C.map(se=>se(we=>N.call(H,we))));return f(T,L)}}e.any=l;function u(C,N,H,L){let T=H;return r(C,se=>(T=N(T,se),T),L)}e.reduce=u;function h(C,N){let H;const L={onWillAddFirstListener(){H=C(T.fire,T)},onDidRemoveLastListener(){H?.dispose()}};N||t(L);const T=new D(L);return N?.add(T),T.event}function f(C,N){return N instanceof Array?N.push(C):N&&N.add(C),C}function p(C,N,H=100,L=!1,T=!1,se,we){let et,lt,Bs,cs=0,Qi;const co={leakWarningThreshold:se,onWillAddFirstListener(){et=C(cu=>{cs++,lt=N(lt,cu),L&&!Bs&&(Pi.fire(lt),lt=void 0),Qi=()=>{const lu=lt;lt=void 0,Bs=void 0,(!L||cs>1)&&Pi.fire(lu),cs=0},typeof H=="number"?(Bs&&clearTimeout(Bs),Bs=setTimeout(Qi,H)):Bs===void 0&&(Bs=null,queueMicrotask(Qi))})},onWillRemoveListener(){T&&cs>0&&Qi?.()},onDidRemoveLastListener(){Qi=void 0,et.dispose()}};we||t(co);const Pi=new D(co);return we?.add(Pi),Pi.event}e.debounce=p;function g(C,N=0,H){return e.debounce(C,(L,T)=>L?(L.push(T),L):[T],N,void 0,!0,void 0,H)}e.accumulate=g;function w(C,N=(L,T)=>L===T,H){let L=!0,T;return a(C,se=>{const we=L||!N(se,T);return L=!1,T=se,we},H)}e.latch=w;function b(C,N,H){return[e.filter(C,N,H),e.filter(C,L=>!N(L),H)]}e.split=b;function x(C,N=!1,H=[],L){let T=H.slice(),se=C(lt=>{T?T.push(lt):et.fire(lt)});L&&L.add(se);const we=()=>{T?.forEach(lt=>et.fire(lt)),T=null},et=new D({onWillAddFirstListener(){se||(se=C(lt=>et.fire(lt)),L&&L.add(se))},onDidAddFirstListener(){T&&(N?setTimeout(we):we())},onDidRemoveLastListener(){se&&se.dispose(),se=null}});return L&&L.add(et),et.event}e.buffer=x;function k(C,N){return(L,T,se)=>{const we=N(new M);return C(function(et){const lt=we.evaluate(et);lt!==I&&L.call(T,lt)},void 0,se)}}e.chain=k;const I=Symbol("HaltChainable");class M{constructor(){this.f=[]}map(N){return this.f.push(N),this}forEach(N){return this.f.push(H=>(N(H),H)),this}filter(N){return this.f.push(H=>N(H)?H:I),this}reduce(N,H){let L=H;return this.f.push(T=>(L=N(L,T),L)),this}latch(N=(H,L)=>H===L){let H=!0,L;return this.f.push(T=>{const se=H||!N(T,L);return H=!1,L=T,se?T:I}),this}evaluate(N){for(const H of this.f)if(N=H(N),N===I)break;return N}}function j(C,N,H=L=>L){const L=(...et)=>we.fire(H(...et)),T=()=>C.on(N,L),se=()=>C.removeListener(N,L),we=new D({onWillAddFirstListener:T,onDidRemoveLastListener:se});return we.event}e.fromNodeEventEmitter=j;function Ee(C,N,H=L=>L){const L=(...et)=>we.fire(H(...et)),T=()=>C.addEventListener(N,L),se=()=>C.removeEventListener(N,L),we=new D({onWillAddFirstListener:T,onDidRemoveLastListener:se});return we.event}e.fromDOMEventEmitter=Ee;function O(C,N){let H;const L=new Promise((T,se)=>{const we=i(C)(T,null,N);H=()=>we.dispose()});return L.cancel=H,L}e.toPromise=O;function z(C){const N=new D;return C.then(H=>{N.fire(H)},()=>{N.fire(void 0)}).finally(()=>{N.dispose()}),N.event}e.fromPromise=z;function A(C,N){return C(H=>N.fire(H))}e.forward=A;function ee(C,N,H){return N(H),C(L=>N(L))}e.runAndSubscribe=ee;class Ce{constructor(N,H){this._observable=N,this.f=0,this.g=!1;const L={onWillAddFirstListener:()=>{N.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{N.removeObserver(this)}};H||t(L),this.emitter=new D(L),H&&H.add(this.emitter)}beginUpdate(N){this.f++}handlePossibleChange(N){}handleChange(N,H){this.g=!0}endUpdate(N){this.f--,this.f===0&&(this._observable.reportChanges(),this.g&&(this.g=!1,this.emitter.fire(this._observable.get())))}}function F(C,N){return new Ce(C,N).emitter.event}e.fromObservable=F;function Ke(C){return(N,H,L)=>{let T=0,se=!1;const we={beginUpdate(){T++},endUpdate(){T--,T===0&&(C.reportChanges(),se&&(se=!1,N.call(H)))},handlePossibleChange(){},handleChange(){se=!0}};C.addObserver(we),C.reportChanges();const et={dispose(){C.removeObserver(we)}};return L instanceof rt?L.add(et):Array.isArray(L)&&L.push(et),et}}e.fromObservableLight=Ke}(B||(B={})),Dy=class ib{static{this.all=new Set}static{this.f=0}constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${ib.f++}`,ib.all.add(this)}start(t){this.g=new on,this.listenerCount=t}stop(){if(this.g){const t=this.g.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this.g=void 0}}},gp=-1,Ay=class VD{static{this.f=1}constructor(t,s,i=(VD.f++).toString(16).padStart(3,"0")){this.j=t,this.threshold=s,this.name=i,this.h=0}dispose(){this.g?.clear()}check(t,s){const i=this.threshold;if(i<=0||s<i)return;this.g||(this.g=new Map);const n=this.g.get(t.value)||0;if(this.g.set(t.value,n+1),this.h-=1,this.h<=0){this.h=i*.5;const[r,o]=this.getMostFrequentStack(),a=`[${this.name}] potential listener LEAK detected, having ${s} listeners already. MOST frequent listener (${o}):`;console.warn(a),console.warn(r);const c=new Ly(a,r);this.j(c)}return()=>{const r=this.g.get(t.value)||0;this.g.set(t.value,r-1)}}getMostFrequentStack(){if(!this.g)return;let t,s=0;for(const[i,n]of this.g)(!t||s<n)&&(t=[i,n],s=n);return t}},Pu=class WD{static create(){const t=new Error;return new WD(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}},Ly=class extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}},Ry=class extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}},Ny=0,Xa=class{constructor(e){this.value=e,this.id=Ny++}},Oy=2,Cy=(e,t)=>{if(e instanceof Xa)t(e);else for(let s=0;s<e.length;s++){const i=e[s];i&&t(i)}},D=class{constructor(e){this.A=0,this.g=e,this.j=gp>0||this.g?.leakWarningThreshold?new Ay(e?.onListenerError??Gt,this.g?.leakWarningThreshold??gp):void 0,this.m=this.g?._profName?new Dy(this.g._profName):void 0,this.z=this.g?.deliveryQueue}dispose(){if(!this.q){if(this.q=!0,this.z?.current===this&&this.z.reset(),this.w){if(mp){const e=this.w;queueMicrotask(()=>{Cy(e,t=>t.stack?.print())})}this.w=void 0,this.A=0}this.g?.onDidRemoveLastListener?.(),this.j?.dispose()}}get event(){return this.u??=(e,t,s)=>{if(this.j&&this.A>this.j.threshold**2){const a=`[${this.j.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this.A} vs ${this.j.threshold})`;console.warn(a);const c=this.j.getMostFrequentStack()??["UNKNOWN stack",-1],l=new Ry(`${a}. HINT: Stack shows most frequent listener (${c[1]}-times)`,c[0]);return(this.g?.onListenerError||Gt)(l),W.None}if(this.q)return W.None;t&&(e=e.bind(t));const i=new Xa(e);let n,r;this.j&&this.A>=Math.ceil(this.j.threshold*.2)&&(i.stack=Pu.create(),n=this.j.check(i.stack,this.A+1)),mp&&(i.stack=r??Pu.create()),this.w?this.w instanceof Xa?(this.z??=new _y,this.w=[this.w,i]):this.w.push(i):(this.g?.onWillAddFirstListener?.(this),this.w=i,this.g?.onDidAddFirstListener?.(this)),this.g?.onDidAddListener?.(this),this.A++;const o=De(()=>{n?.(),this.B(i)});return s instanceof rt?s.add(o):Array.isArray(s)&&s.push(o),o},this.u}B(e){if(this.g?.onWillRemoveListener?.(this),!this.w)return;if(this.A===1){this.w=void 0,this.g?.onDidRemoveLastListener?.(this),this.A=0;return}const t=this.w,s=t.indexOf(e);if(s===-1)throw console.log("disposed?",this.q),console.log("size?",this.A),console.log("arr?",JSON.stringify(this.w)),new Error("Attempted to dispose unknown listener");this.A--,t[s]=void 0;const i=this.z.current===this;if(this.A*Oy<=t.length){let n=0;for(let r=0;r<t.length;r++)t[r]?t[n++]=t[r]:i&&n<this.z.end&&(this.z.end--,n<this.z.i&&this.z.i--);t.length=n}}C(e,t){if(!e)return;const s=this.g?.onListenerError||Gt;if(!s){e.value(t);return}try{e.value(t)}catch(i){s(i)}}D(e){const t=e.current.w;for(;e.i<e.end;)this.C(t[e.i++],e.value);e.reset()}fire(e){if(this.z?.current&&(this.D(this.z),this.m?.stop()),this.m?.start(this.A),this.w)if(this.w instanceof Xa)this.C(this.w,e);else{const t=this.z;t.enqueue(this,e,this.w.length),this.D(t)}this.m?.stop()}hasListeners(){return this.A>0}},_y=class{constructor(){this.i=-1,this.end=0}enqueue(e,t,s){this.i=0,this.end=s,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}},Iu=class extends D{get isPaused(){return this.f!==0}constructor(e){super(e),this.f=0,this.h=new pp,this.s=e?.merge}pause(){this.f++}resume(){if(this.f!==0&&--this.f===0)if(this.s){if(this.h.size>0){const e=Array.from(this.h);this.h.clear(),super.fire(this.s(e))}}else for(;!this.f&&this.h.size!==0;)super.fire(this.h.shift())}fire(e){this.A&&(this.f!==0?this.h.push(e):super.fire(e))}},My=class{constructor(){this.g=!1,this.h=[],this.f=new D({onWillAddFirstListener:()=>this.j(),onDidRemoveLastListener:()=>this.k()})}get event(){return this.f.event}add(e){const t={event:e,listener:null};return this.h.push(t),this.g&&this.m(t),De(bu(()=>{this.g&&this.o(t);const i=this.h.indexOf(t);this.h.splice(i,1)}))}j(){this.g=!0,this.h.forEach(e=>this.m(e))}k(){this.g=!1,this.h.forEach(e=>this.o(e))}m(e){e.listener=e.event(t=>this.f.fire(t))}o(e){e.listener?.dispose(),e.listener=null}dispose(){this.f.dispose();for(const e of this.h)e.listener?.dispose();this.h=[]}},wp=class{constructor(){this.f=!1,this.g=B.None,this.h=W.None,this.j=new D({onDidAddFirstListener:()=>{this.f=!0,this.h=this.g(this.j.fire,this.j)},onDidRemoveLastListener:()=>{this.f=!1,this.h.dispose()}}),this.event=this.j.event}set input(e){this.g=e,this.f&&(this.h.dispose(),this.h=e(this.j.fire,this.j))}dispose(){this.h.dispose(),this.j.dispose()}}}}),vp,Ne,Ka,Oi,Lt=v({"out-build/vs/base/common/cancellation.js"(){"use strict";re(),vp=Object.freeze(function(e,t){const s=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(s)}}}),function(e){function t(s){return s===e.None||s===e.Cancelled||s instanceof Ka?!0:!s||typeof s!="object"?!1:typeof s.isCancellationRequested=="boolean"&&typeof s.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:B.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:vp})}(Ne||(Ne={})),Ka=class{constructor(){this.a=!1,this.b=null}cancel(){this.a||(this.a=!0,this.b&&(this.b.fire(void 0),this.dispose()))}get isCancellationRequested(){return this.a}get onCancellationRequested(){return this.a?vp:(this.b||(this.b=new D),this.b.event)}dispose(){this.b&&(this.b.dispose(),this.b=null)}},Oi=class{constructor(e){this.f=void 0,this.g=void 0,this.g=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this.f||(this.f=new Ka),this.f}cancel(){this.f?this.f instanceof Ka&&this.f.cancel():this.f=Ne.Cancelled}dispose(e=!1){e&&this.cancel(),this.g?.dispose(),this.f?this.f instanceof Ka&&this.f.dispose():this.f=Ne.None}}}});function uL(e){return e}var Uy,hL=v({"out-build/vs/base/common/cache.js"(){"use strict";Lt(),Uy=class{constructor(e,t){this.a=void 0,this.b=void 0,typeof e=="function"?(this.c=e,this.d=uL):(this.c=t,this.d=e.getCacheKey)}get(e){const t=this.d(e);return this.b!==t&&(this.b=t,this.a=this.c(e)),this.a}}}}),Nn,go=v({"out-build/vs/base/common/lazy.js"(){"use strict";Nn=class{constructor(e){this.d=e,this.a=!1}get hasValue(){return this.a}get value(){if(!this.a)try{this.b=this.d()}catch(e){this.c=e}finally{this.a=!0}if(this.c)throw this.c;return this.b}get rawValue(){return this.b}}}});function fL(e){return!e||typeof e!="string"?!0:e.trim().length===0}function wo(e,t){return Object.keys(t).length===0?e:e.replace(By,(s,i)=>t[i]??s)}function On(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function dL(e,t){if(!e||!t)return e;const s=t.length;if(s===0||e.length===0)return e;let i=0;for(;e.indexOf(t,i)===i;)i=i+s;return e.substring(i)}function bp(e,t){if(!e||!t)return e;const s=t.length,i=e.length;if(s===0||i===0)return e;let n=i,r=-1;for(;r=e.lastIndexOf(t,n-1),!(r===-1||r+s!==n);){if(r===0)return"";n=r}return e.substring(0,n)}function pL(e,t,s={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=On(e)),s.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e=e+"\\b"));let i="";return s.global&&(i+="g"),s.matchCase||(i+="i"),s.multiline&&(i+="m"),s.unicode&&(i+="u"),new RegExp(e,i)}function yp(e,t){return e<t?-1:e>t?1:0}function Ep(e,t,s=0,i=e.length,n=0,r=t.length){for(;s<i&&n<r;s++,n++){const c=e.charCodeAt(s),l=t.charCodeAt(n);if(c<l)return-1;if(c>l)return 1}const o=i-s,a=r-n;return o<a?-1:o>a?1:0}function Du(e,t){return ec(e,t,0,e.length,0,t.length)}function ec(e,t,s=0,i=e.length,n=0,r=t.length){for(;s<i&&n<r;s++,n++){let c=e.charCodeAt(s),l=t.charCodeAt(n);if(c===l)continue;if(c>=128||l>=128)return Ep(e.toLowerCase(),t.toLowerCase(),s,i,n,r);jy(c)&&(c-=32),jy(l)&&(l-=32);const u=c-l;if(u!==0)return u}const o=i-s,a=r-n;return o<a?-1:o>a?1:0}function jy(e){return e>=97&&e<=122}function Ty(e){return e>=65&&e<=90}function br(e,t){return e.length===t.length&&ec(e,t)===0}function xp(e,t){const s=t.length;return t.length>e.length?!1:ec(e,t,0,s)===0}function mL(e){return 55296<=e&&e<=56319}function Fy(e){return 56320<=e&&e<=57343}function gL(e,t){return(e-55296<<10)+(t-56320)+65536}function wL(e){return e.charAt(0).toUpperCase()+e.slice(1)}function vL(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}var By,zy,Hy,Vy,bL,yL,Wy,EL,qy,xL,kL,at=v({"out-build/vs/base/common/strings.js"(){"use strict";hL(),go(),By=/{([^}]+)}/g,zy=/(?:\x1b\[|\x9b)[=?>!]?[\d;:]*["$#'* ]?[a-zA-Z@^`{}|~]/,Hy=/(?:\x1b\]|\x9d).*?(?:\x1b\\|\x07|\x9c)/,Vy=/\x1b(?:[ #%\(\)\*\+\-\.\/]?[a-zA-Z0-9\|}~@])/,bL=new RegExp("(?:"+[zy.source,Hy.source,Vy.source].join("|")+")","g"),yL="\uFEFF",function(e){e[e.Other=0]="Other",e[e.Prepend=1]="Prepend",e[e.CR=2]="CR",e[e.LF=3]="LF",e[e.Control=4]="Control",e[e.Extend=5]="Extend",e[e.Regional_Indicator=6]="Regional_Indicator",e[e.SpacingMark=7]="SpacingMark",e[e.L=8]="L",e[e.V=9]="V",e[e.T=10]="T",e[e.LV=11]="LV",e[e.LVT=12]="LVT",e[e.ZWJ=13]="ZWJ",e[e.Extended_Pictographic=14]="Extended_Pictographic"}(Wy||(Wy={})),EL=class su{static{this.c=null}static getInstance(){return su.c||(su.c=new su),su.c}constructor(){this.d=vL()}getGraphemeBreakType(t){if(t<32)return t===10?3:t===13?2:4;if(t<127)return 0;const s=this.d,i=s.length/3;let n=1;for(;n<=i;)if(t<s[3*n])n=2*n;else if(t>s[3*n+1])n=2*n+1;else return s[3*n+2];return 0}},function(e){e[e.zwj=8205]="zwj",e[e.emojiVariantSelector=65039]="emojiVariantSelector",e[e.enclosingKeyCap=8419]="enclosingKeyCap",e[e.space=32]="space"}(qy||(qy={})),xL=class iu{static{this.c=new Nn(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,1523,96,8242,96,1370,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,118002,50,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,118003,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,118004,52,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,118005,53,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,118006,54,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,118007,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,118008,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,118009,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,117974,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,117975,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71913,67,71922,67,65315,67,8557,67,8450,67,8493,67,117976,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,117977,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,117978,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,117979,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,117980,71,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,117981,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,117983,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,117984,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,118001,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,117982,108,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,117985,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,117986,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,117987,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,118000,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,117988,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,117989,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,117990,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,117991,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,117992,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,117993,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,117994,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,117995,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71910,87,71919,87,117996,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,117997,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,117998,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,71909,90,66293,90,65338,90,8484,90,8488,90,117999,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65283,35,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"cs":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"es":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"fr":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"it":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ja":[8211,45,8218,44,65281,33,8216,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65292,44,65297,49,65307,59],"ko":[8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"pt-BR":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"ru":[65374,126,8218,44,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,8218,44,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41,65292,44,65297,49,65307,59,65311,63],"zh-hans":[160,32,65374,126,8218,44,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65297,49],"zh-hant":[8211,45,65374,126,8218,44,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89]}'))}static{this.d=new Uy({getCacheKey:JSON.stringify},t=>{function s(u){const h=new Map;for(let f=0;f<u.length;f+=2)h.set(u[f],u[f+1]);return h}function i(u,h){const f=new Map(u);for(const[p,g]of h)f.set(p,g);return f}function n(u,h){if(!u)return h;const f=new Map;for(const[p,g]of u)h.has(p)&&f.set(p,g);return f}const r=this.c.value;let o=t.filter(u=>!u.startsWith("_")&&u in r);o.length===0&&(o=["_default"]);let a;for(const u of o){const h=s(r[u]);a=n(a,h)}const c=s(r._common),l=i(c,a);return new iu(l)})}static getInstance(t){return iu.d.get(Array.from(t))}static{this.e=new Nn(()=>Object.keys(iu.c.value).filter(t=>!t.startsWith("_")))}static getLocales(){return iu.e.value}constructor(t){this.f=t}isAmbiguous(t){return this.f.has(t)}containsAmbiguousCharacter(t){for(let s=0;s<t.length;s++){const i=t.codePointAt(s);if(typeof i=="number"&&this.isAmbiguous(i))return!0}return!1}getPrimaryConfusable(t){return this.f.get(t)}getConfusableCodePoints(){return new Set(this.f.keys())}},kL=class nu{static c(){return JSON.parse('{"_common":[11,12,13,127,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999],"cs":[173,8203,12288],"de":[173,8203,12288],"es":[8203,12288],"fr":[173,8203,12288],"it":[160,173,12288],"ja":[173],"ko":[173,12288],"pl":[173,8203,12288],"pt-BR":[173,8203,12288],"qps-ploc":[160,173,8203,12288],"ru":[173,12288],"tr":[160,173,8203,12288],"zh-hans":[160,173,8203,12288],"zh-hant":[173,12288]}')}static{this.d=void 0}static e(){return this.d||(this.d=new Set([...Object.values(nu.c())].flat())),this.d}static isInvisibleCharacter(t){return nu.e().has(t)}static containsInvisibleCharacter(t){for(let s=0;s<t.length;s++){const i=t.codePointAt(s);if(typeof i=="number"&&(nu.isInvisibleCharacter(i)||i===32))return!0}return!1}static get codePoints(){return nu.e()}}}});function Cn(e){return e===47||e===92}function Gy(e){return e.replace(/[\\/]/g,$e.sep)}function $L(e){return e.indexOf("/")===-1&&(e=Gy(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function Jy(e,t=$e.sep){if(!e)return"";const s=e.length,i=e.charCodeAt(0);if(Cn(i)){if(Cn(e.charCodeAt(1))&&!Cn(e.charCodeAt(2))){let r=3;const o=r;for(;r<s&&!Cn(e.charCodeAt(r));r++);if(o!==r&&!Cn(e.charCodeAt(r+1))){for(r+=1;r<s;r++)if(Cn(e.charCodeAt(r)))return e.slice(0,r+1).replace(/[\\/]/g,t)}}return t}else if(Zy(i)&&e.charCodeAt(1)===58)return Cn(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let n=e.indexOf("://");if(n!==-1){for(n+=3;n<s;n++)if(Cn(e.charCodeAt(n)))return e.slice(0,n+1)}return""}function Au(e,t,s){const i=e===t;return!s||i?i:!e||!t?!1:br(e,t)}function _n(e,t,s,i=qt){if(e===t)return!0;if(!e||!t||t.length>e.length)return!1;if(s){if(!xp(e,t))return!1;if(t.length===e.length)return!0;let r=t.length;return t.charAt(t.length-1)===i&&r--,e.charAt(r)===i}return t.charAt(t.length-1)!==i&&(t+=i),e.indexOf(t)===0}function Zy(e){return e>=65&&e<=90||e>=97&&e<=122}function SL(e){return me?(e=bp(e,qt),e.endsWith(":")&&(e+=qt)):(e=bp(e,qt),e||(e=qt)),e}function PL(e){const t=Hs(e);return me?e.length>3?!1:Yy(t)&&(e.length===2||t.charCodeAt(2)===92):t===$e.sep}function Yy(e,t=me){return t?Zy(e.charCodeAt(0))&&e.charCodeAt(1)===58:!1}function IL(e,t,s=8){let i="";for(let r=0;r<s;r++){let o;r===0&&me&&!t&&(s===3||s===4)?o=Xy:o=Qy,i+=o.charAt(Math.floor(Math.random()*o.length))}let n;return t?n=`${t}-${i}`:n=i,e?_(e,n):n}var Qy,Xy,an=v({"out-build/vs/base/common/extpath.js"(){"use strict";he(),te(),at(),be(),Qy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Xy="BDEFGHIJKMOQRSTUVWXYZbdefghijkmoqrstuvwxyz0123456789"}});function DL(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s4.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!i4.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(n4.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function AL(e,t){return!e&&!t?"file":e}function LL(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Ws&&(t=Ws+t):t=Ws;break}return t}function Ky(e){return!e||typeof e!="object"?!1:typeof e.scheme=="string"&&(typeof e.authority=="string"||typeof e.authority>"u")&&(typeof e.path=="string"||typeof e.path>"u")&&(typeof e.query=="string"||typeof e.query>"u")&&(typeof e.fragment=="string"||typeof e.fragment>"u")}function e4(e,t,s){let i,n=-1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||t&&o===47||s&&o===91||s&&o===93||s&&o===58)n!==-1&&(i+=encodeURIComponent(e.substring(n,r)),n=-1),i!==void 0&&(i+=e.charAt(r));else{i===void 0&&(i=e.substr(0,r));const a=Sp[o];a!==void 0?(n!==-1&&(i+=encodeURIComponent(e.substring(n,r)),n=-1),i+=a):n===-1&&(n=r)}}return n!==-1&&(i+=encodeURIComponent(e.substring(n))),i!==void 0?i:e}function RL(e){let t;for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);i===35||i===63?(t===void 0&&(t=e.substr(0,s)),t+=Sp[i]):t!==void 0&&(t+=e[s])}return t!==void 0?t:e}function Lu(e,t){let s;return e.authority&&e.path.length>1&&e.scheme==="file"?s=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?s=e.path.substr(1):s=e.path[1].toLowerCase()+e.path.substr(2):s=e.path,me&&(s=s.replace(/\//g,"\\")),s}function kp(e,t){const s=t?RL:e4;let i="",{scheme:n,authority:r,path:o,query:a,fragment:c}=e;if(n&&(i+=n,i+=":"),(r||n==="file")&&(i+=Ws,i+=Ws),r){let l=r.indexOf("@");if(l!==-1){const u=r.substr(0,l);r=r.substr(l+1),l=u.lastIndexOf(":"),l===-1?i+=s(u,!1,!1):(i+=s(u.substr(0,l),!1,!1),i+=":",i+=s(u.substr(l+1),!1,!0)),i+="@"}r=r.toLowerCase(),l=r.lastIndexOf(":"),l===-1?i+=s(r,!1,!0):(i+=s(r.substr(0,l),!1,!0),i+=r.substr(l))}if(o){if(o.length>=3&&o.charCodeAt(0)===47&&o.charCodeAt(2)===58){const l=o.charCodeAt(1);l>=65&&l<=90&&(o=`/${String.fromCharCode(l+32)}:${o.substr(3)}`)}else if(o.length>=2&&o.charCodeAt(1)===58){const l=o.charCodeAt(0);l>=65&&l<=90&&(o=`${String.fromCharCode(l+32)}:${o.substr(2)}`)}i+=s(o,!0,!1)}return a&&(i+="?",i+=s(a,!1,!1)),c&&(i+="#",i+=t?c:e4(c,!1,!1)),i}function t4(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+t4(e.substr(3)):e}}function Ru(e){return e.match(Pp)?e.replace(Pp,t=>t4(t)):e}var s4,i4,n4,We,Ws,r4,y,$p,yr,Sp,Pp,Q=v({"out-build/vs/base/common/uri.js"(){"use strict";he(),te(),s4=/^\w[\w\d+.-]*$/,i4=/^\//,n4=/^\/\//,We="",Ws="/",r4=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,y=class N1{static isUri(t){return t instanceof N1?!0:!t||typeof t!="object"?!1:typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function"}constructor(t,s,i,n,r,o=!1){typeof t=="object"?(this.scheme=t.scheme||We,this.authority=t.authority||We,this.path=t.path||We,this.query=t.query||We,this.fragment=t.fragment||We):(this.scheme=AL(t,o),this.authority=s||We,this.path=LL(this.scheme,i||We),this.query=n||We,this.fragment=r||We,DL(this,o))}get fsPath(){return Lu(this,!1)}with(t){if(!t)return this;let{scheme:s,authority:i,path:n,query:r,fragment:o}=t;return s===void 0?s=this.scheme:s===null&&(s=We),i===void 0?i=this.authority:i===null&&(i=We),n===void 0?n=this.path:n===null&&(n=We),r===void 0?r=this.query:r===null&&(r=We),o===void 0?o=this.fragment:o===null&&(o=We),s===this.scheme&&i===this.authority&&n===this.path&&r===this.query&&o===this.fragment?this:new yr(s,i,n,r,o)}static parse(t,s=!1){const i=r4.exec(t);return i?new yr(i[2]||We,Ru(i[4]||We),Ru(i[5]||We),Ru(i[7]||We),Ru(i[9]||We),s):new yr(We,We,We,We,We)}static file(t){let s=We;if(me&&(t=t.replace(/\\/g,Ws)),t[0]===Ws&&t[1]===Ws){const i=t.indexOf(Ws,2);i===-1?(s=t.substring(2),t=Ws):(s=t.substring(2,i),t=t.substring(i)||Ws)}return new yr("file",s,t,We,We)}static from(t,s){return new yr(t.scheme,t.authority,t.path,t.query,t.fragment,s)}static joinPath(t,...s){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return me&&t.scheme==="file"?i=N1.file(gt.join(Lu(t,!0),...s)).path:i=$e.join(t.path,...s),t.with({path:i})}toString(t=!1){return kp(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof N1)return t;{const s=new yr(t);return s._formatted=t.external??null,s._fsPath=t._sep===$p?t.fsPath??null:null,s}}else return t}[Symbol.for("debug.description")](){return`URI(${this.toString()})`}},$p=me?1:void 0,yr=class extends y{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Lu(this,!1)),this._fsPath}toString(e=!1){return e?kp(this,!0):(this._formatted||(this._formatted=kp(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=$p),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}},Sp={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"},Pp=/(%[0-9A-Za-z][0-9A-Za-z])+/g}});function o4(e){return`${e.quality??"oss"}-${e.commit??"dev"}`}var Y,Nu,vo,a4,c4,l4,u4,h4,Ip,f4,Ct,NL,OL,d4,Se=v({"out-build/vs/base/common/network.js"(){"use strict";ge(),te(),at(),Q(),he(),function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.vscodeChatInput="chatSessionInput",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output",e.accessibleView="accessible-view"}(Y||(Y={})),Nu="vscode-tkn",vo="tkn",a4=class{constructor(){this.a=Object.create(null),this.b=Object.create(null),this.c=Object.create(null),this.d="http",this.e=null,this.f="/"}setPreferredWebSchema(e){this.d=e}setDelegate(e){this.e=e}setServerRootPath(e,t){this.f=$e.join(t??"/",o4(e))}getServerRootPath(){return this.f}get g(){return $e.join(this.f,Y.vscodeRemoteResource)}set(e,t,s){this.a[e]=t,this.b[e]=s}setConnectionToken(e,t){this.c[e]=t}getPreferredWebSchema(){return this.d}rewrite(e){if(this.e)try{return this.e(e)}catch(o){return Gt(o),e}const t=e.authority;let s=this.a[t];s&&s.indexOf(":")!==-1&&s.indexOf("[")===-1&&(s=`[${s}]`);const i=this.b[t],n=this.c[t];let r=`path=${encodeURIComponent(e.path)}`;return typeof n=="string"&&(r+=`&${vo}=${encodeURIComponent(n)}`),y.from({scheme:Ps?this.d:Y.vscodeRemoteResource,authority:`${s}:${i}`,path:Ps?(window.location.pathname+"/"+this.g).replace(/\/\/+/g,"/"):this.g,query:r})}},c4=new a4,l4="vs/../../extensions",u4="vs/../../node_modules",h4="vs/../../node_modules.asar",Ip="vscode-app",f4=class O1{static{this.a=Ip}asBrowserUri(t){const s=this.b(t);return this.uriToBrowserUri(s)}uriToBrowserUri(t){return t.scheme===Y.vscodeRemote?c4.rewrite(t):t.scheme===Y.file&&(jb||Fb===`${Y.vscodeFileResource}://${O1.a}`)?t.with({scheme:Y.vscodeFileResource,authority:t.authority||O1.a,query:null,fragment:null}):t}asFileUri(t){const s=this.b(t);return this.uriToFileUri(s)}uriToFileUri(t){return t.scheme===Y.vscodeFileResource?t.with({scheme:Y.file,authority:t.authority!==O1.a?t.authority:null,query:null,fragment:null}):t}b(t){if(y.isUri(t))return t;if(globalThis._VSCODE_FILE_ROOT){const s=globalThis._VSCODE_FILE_ROOT;if(/^\w[\w\d+.-]*:\/\//.test(s))return y.joinPath(y.parse(s,!0),t);const i=_(s,t);return y.file(i)}throw new Error("Cannot determine URI for module id!")}},Ct=new f4,NL=Object.freeze({"Cache-Control":"no-cache, no-store"}),OL=Object.freeze({"Document-Policy":"include-js-call-stacks-in-crash-reports"}),function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const s="vscode-coi";function i(r){let o;typeof r=="string"?o=new URL(r).searchParams:r instanceof URL?o=r.searchParams:y.isUri(r)&&(o=new URL(r.toString(!0)).searchParams);const a=o?.get(s);if(a)return t.get(a)}e.getHeadersFromQuery=i;function n(r,o,a){if(!globalThis.crossOriginIsolated)return;const c=o&&a?"3":a?"2":"1";r instanceof URLSearchParams?r.set(s,c):r[s]=c}e.addSearchParam=n}(d4||(d4={}))}});function cn(e){return Lu(e,!0)}var tc,Pe,Ou,p4,Dp,Ap,CL,_L,ln,m4,Lp,oe,g4,ML,UL,w4,Rp,Np,jL,TL,v4,ct=v({"out-build/vs/base/common/resources.js"(){"use strict";an(),Se(),he(),te(),at(),Q(),tc=class{constructor(e){this.a=e}compare(e,t,s=!1){return e===t?0:yp(this.getComparisonKey(e,s),this.getComparisonKey(t,s))}isEqual(e,t,s=!1){return e===t?!0:!e||!t?!1:this.getComparisonKey(e,s)===this.getComparisonKey(t,s)}getComparisonKey(e,t=!1){return e.with({path:this.a(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}ignorePathCasing(e){return this.a(e)}isEqualOrParent(e,t,s=!1){if(e.scheme===t.scheme){if(e.scheme===Y.file)return _n(cn(e),cn(t),this.a(e))&&e.query===t.query&&(s||e.fragment===t.fragment);if(Rp(e.authority,t.authority))return _n(e.path,t.path,this.a(e),"/")&&e.query===t.query&&(s||e.fragment===t.fragment)}return!1}joinPath(e,...t){return y.joinPath(e,...t)}basenameOrAuthority(e){return ln(e)||e.authority}basename(e){return $e.basename(e.path)}extname(e){return $e.extname(e.path)}dirname(e){if(e.path.length===0)return e;let t;return e.scheme===Y.file?t=y.file(Ut(cn(e))).path:(t=$e.dirname(e.path),e.authority&&t.length&&t.charCodeAt(0)!==47&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return e.scheme===Y.file?t=y.file(Hs(cn(e))).path:t=$e.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!Rp(e.authority,t.authority))return;if(e.scheme===Y.file){const n=po(cn(e),cn(t));return me?Gy(n):n}let s=e.path||"/";const i=t.path||"/";if(this.a(e)){let n=0;for(const r=Math.min(s.length,i.length);n<r&&!(s.charCodeAt(n)!==i.charCodeAt(n)&&s.charAt(n).toLowerCase()!==i.charAt(n).toLowerCase());n++);s=i.substr(0,n)+s.substr(n)}return $e.relative(s,i)}resolvePath(e,t){if(e.scheme===Y.file){const s=y.file(oi(cn(e),t));return e.with({authority:s.authority,path:s.path})}return t=$L(t),e.with({path:$e.resolve(e.path,t)})}isAbsolutePath(e){return!!e.path&&e.path[0]==="/"}isEqualAuthority(e,t){return e===t||e!==void 0&&t!==void 0&&br(e,t)}hasTrailingPathSeparator(e,t=qt){if(e.scheme===Y.file){const s=cn(e);return s.length>Jy(s).length&&s[s.length-1]===t}else{const s=e.path;return s.length>1&&s.charCodeAt(s.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=qt){return Np(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=qt){let s=!1;if(e.scheme===Y.file){const i=cn(e);s=i!==void 0&&i.length===Jy(i).length&&i[i.length-1]===t}else{t="/";const i=e.path;s=i.length===1&&i.charCodeAt(i.length-1)===47}return!s&&!Np(e,t)?e.with({path:e.path+"/"}):e}},Pe=new tc(()=>!1),Ou=new tc(e=>e.scheme===Y.file?!ut:!0),p4=new tc(e=>!0),Dp=Pe.isEqual.bind(Pe),Ap=Pe.isEqualOrParent.bind(Pe),CL=Pe.getComparisonKey.bind(Pe),_L=Pe.basenameOrAuthority.bind(Pe),ln=Pe.basename.bind(Pe),m4=Pe.extname.bind(Pe),Lp=Pe.dirname.bind(Pe),oe=Pe.joinPath.bind(Pe),g4=Pe.normalizePath.bind(Pe),ML=Pe.relativePath.bind(Pe),UL=Pe.resolvePath.bind(Pe),w4=Pe.isAbsolutePath.bind(Pe),Rp=Pe.isEqualAuthority.bind(Pe),Np=Pe.hasTrailingPathSeparator.bind(Pe),jL=Pe.removeTrailingPathSeparator.bind(Pe),TL=Pe.addTrailingPathSeparator.bind(Pe),function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime";function t(s){const i=new Map;s.path.substring(s.path.indexOf(";")+1,s.path.lastIndexOf(";")).split(";").forEach(o=>{const[a,c]=o.split(":");a&&c&&i.set(a,c)});const r=s.path.substring(0,s.path.indexOf(";"));return r&&i.set(e.META_DATA_MIME,r),i}e.parseMetaData=t}(v4||(v4={}))}}),b4,FL=v({"out-build/vs/base/common/symbols.js"(){"use strict";b4=Symbol("MicrotaskDelay")}});function Op(e){return!!e&&typeof e.then=="function"}function un(e){const t=new Oi,s=e(t.token);let i=!1;const n=new Promise((r,o)=>{const a=t.token.onCancellationRequested(()=>{i=!0,a.dispose(),o(new Dt)});Promise.resolve(s).then(c=>{a.dispose(),t.dispose(),i?xy(c)&&c.dispose():r(c)},c=>{a.dispose(),t.dispose(),o(c)})});return new class{cancel(){t.cancel(),t.dispose()}then(r,o){return n.then(r,o)}catch(r){return this.then(void 0,r)}finally(r){return n.finally(r)}}}function BL(){let e,t;return{promise:new Promise((i,n)=>{e=i,t=n}),resolve:e,reject:t}}function bo(e,t){return t?new Promise((s,i)=>{const n=setTimeout(()=>{r.dispose(),s()},e),r=t.onCancellationRequested(()=>{clearTimeout(n),r.dispose(),i(new Dt)})}):un(s=>bo(e,s))}async function zL(e,t,s){let i;for(let n=0;n<s;n++)try{return await e()}catch(r){i=r,await bo(t)}throw i}var y4,E4,x4,k4,Cp,Er,Cu,_p,xr,Mp,kr,Up,$4,jp,S4,_u,P4,I4,D4,Mu,is,A4,HL,Ae=v({"out-build/vs/base/common/async.js"(){"use strict";Lt(),ge(),re(),V(),ct(),te(),FL(),go(),y4=class{constructor(){this.f=!1,this.a=null,this.b=null,this.d=null}queue(e){if(this.f)return Promise.reject(new Error("Throttler is disposed"));if(this.a){if(this.d=e,!this.b){const t=()=>{if(this.b=null,this.f)return;const s=this.queue(this.d);return this.d=null,s};this.b=new Promise(s=>{this.a.then(t,t).then(s)})}return new Promise((t,s)=>{this.b.then(t,s)})}return this.a=e(),new Promise((t,s)=>{this.a.then(i=>{this.a=null,t(i)},i=>{this.a=null,s(i)})})}dispose(){this.f=!0}},E4=class{constructor(){this.d=Promise.resolve(null)}queue(e){return this.d=this.d.then(()=>e(),()=>e())}},x4=(e,t)=>{let s=!0;const i=setTimeout(()=>{s=!1,t()},e);return{isTriggered:()=>s,dispose:()=>{clearTimeout(i),s=!1}}},k4=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}},Cp=class{constructor(e){this.defaultDelay=e,this.a=null,this.b=null,this.d=null,this.f=null,this.g=null}trigger(e,t=this.defaultDelay){this.g=e,this.h(),this.b||(this.b=new Promise((i,n)=>{this.d=i,this.f=n}).then(()=>{if(this.b=null,this.d=null,this.g){const i=this.g;return this.g=null,i()}}));const s=()=>{this.a=null,this.d?.(null)};return this.a=t===b4?k4(s):x4(t,s),this.b}isTriggered(){return!!this.a?.isTriggered()}cancel(){this.h(),this.b&&(this.f?.(new Dt),this.b=null)}h(){this.a?.dispose(),this.a=null}dispose(){this.cancel()}},Er=class{constructor(e){this.a=new Cp(e),this.b=new y4}trigger(e,t){return this.a.trigger(()=>this.b.queue(e),t)}isTriggered(){return this.a.isTriggered()}cancel(){this.a.cancel()}dispose(){this.a.dispose(),this.b.dispose()}},Cu=class{constructor(){this.a=!1,this.b=new Promise((e,t)=>{this.d=e})}isOpen(){return this.a}open(){this.a=!0,this.d(!0)}wait(){return this.b}},_p=class{constructor(e){this.a=0,this.b=!1,this.f=e,this.g=[],this.d=0,this.h=new D}whenIdle(){return this.size>0?B.toPromise(this.onDrained):Promise.resolve()}get onDrained(){return this.h.event}get size(){return this.a}queue(e){if(this.b)throw new Error("Object has been disposed");return this.a++,new Promise((t,s)=>{this.g.push({factory:e,c:t,e:s}),this.j()})}j(){for(;this.g.length&&this.d<this.f;){const e=this.g.shift();this.d++;const t=e.factory();t.then(e.c,e.e),t.then(()=>this.k(),()=>this.k())}}k(){this.b||(this.d--,--this.a===0&&this.h.fire(),this.g.length>0&&this.j())}clear(){if(this.b)throw new Error("Object has been disposed");this.g.length=0,this.a=this.d}dispose(){this.b=!0,this.g.length=0,this.a=0,this.h.dispose()}},xr=class extends _p{constructor(){super(1)}},Mp=class{constructor(){this.a=new Map,this.b=new Set,this.d=void 0,this.f=0}async whenDrained(){if(this.g())return;const e=new Mu;return this.b.add(e),e.p}g(){for(const[,e]of this.a)if(e.size>0)return!1;return!0}queueSize(e,t=Pe){const s=t.getComparisonKey(e);return this.a.get(s)?.size??0}queueFor(e,t,s=Pe){const i=s.getComparisonKey(e);let n=this.a.get(i);if(!n){n=new xr;const r=this.f++,o=B.once(n.onDrained)(()=>{n?.dispose(),this.a.delete(i),this.h(),this.d?.deleteAndDispose(r),this.d?.size===0&&(this.d.dispose(),this.d=void 0)});this.d||(this.d=new Su),this.d.set(r,o),this.a.set(i,n)}return n.queue(t)}h(){this.g()&&this.j()}j(){for(const e of this.b)e.complete();this.b.clear()}dispose(){for(const[,e]of this.a)e.dispose();this.a.clear(),this.j(),this.d?.dispose()}},kr=class{constructor(e,t){this.b=void 0,this.a=e,this.d=t,this.f=this.g.bind(this)}dispose(){this.cancel(),this.a=null}cancel(){this.isScheduled()&&(clearTimeout(this.b),this.b=void 0)}schedule(e=this.d){this.cancel(),this.b=setTimeout(this.f,e)}get delay(){return this.d}set delay(e){this.d=e}isScheduled(){return this.b!==void 0}flush(){this.isScheduled()&&(this.cancel(),this.h())}g(){this.b=void 0,this.a&&this.h()}h(){this.a?.()}},Up=class{constructor(e,t){t%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${t}ms is not a multiple of 1000ms.`),this.a=e,this.b=t,this.d=0,this.f=void 0,this.g=this.h.bind(this)}dispose(){this.cancel(),this.a=null}cancel(){this.isScheduled()&&(clearInterval(this.f),this.f=void 0)}schedule(e=this.b){e%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${e}ms is not a multiple of 1000ms.`),this.cancel(),this.d=Math.ceil(e/1e3),this.f=setInterval(this.g,1e3)}isScheduled(){return this.f!==void 0}h(){this.d--,!(this.d>0)&&(clearInterval(this.f),this.f=void 0,this.a?.())}},$4=class extends kr{constructor(e,t){super(e,t),this.j=[]}work(e){this.j.push(e),this.isScheduled()||this.schedule()}h(){const e=this.j;this.j=[],this.a?.(e)}dispose(){this.j=[],super.dispose()}},jp=class extends W{constructor(e,t){super(),this.h=e,this.j=t,this.a=[],this.b=this.B(new Qa),this.f=!1,this.g=0}get pending(){return this.a.length}work(e){if(this.f)return!1;if(typeof this.h.maxBufferedWork=="number"){if(this.b.value){if(this.pending+e.length>this.h.maxBufferedWork)return!1}else if(this.pending+e.length-this.h.maxWorkChunkSize>this.h.maxBufferedWork)return!1}for(const s of e)this.a.push(s);const t=Date.now()-this.g;return!this.b.value&&(!this.h.waitThrottleDelayBetweenWorkUnits||t>=this.h.throttleDelay)?this.m():!this.b.value&&this.h.waitThrottleDelayBetweenWorkUnits&&this.r(Math.max(this.h.throttleDelay-t,0)),!0}m(){this.g=Date.now(),this.j(this.a.splice(0,this.h.maxWorkChunkSize)),this.a.length>0&&this.r()}r(e=this.h.throttleDelay){this.b.value=new kr(()=>{this.b.clear(),this.m()},e),this.b.value.schedule()}dispose(){super.dispose(),this.a.length=0,this.f=!0}},function(){const e=globalThis;typeof e.requestIdleCallback!="function"||typeof e.cancelIdleCallback!="function"?_u=(t,s,i)=>{Hb(()=>{if(n)return;const r=Date.now()+15;s(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,r-Date.now())}}))});let n=!1;return{dispose(){n||(n=!0)}}}:_u=(t,s,i)=>{const n=t.requestIdleCallback(s,typeof i=="number"?{timeout:i}:void 0);let r=!1;return{dispose(){r||(r=!0,t.cancelIdleCallback(n))}}},S4=(t,s)=>_u(globalThis,t,s)}(),P4=class{constructor(e,t){this.l=!1,this.g=()=>{try{this.m=t()}catch(s){this.o=s}finally{this.l=!0}},this.j=_u(e,()=>this.g())}dispose(){this.j.dispose()}get value(){if(this.l||(this.j.dispose(),this.g()),this.o)throw this.o;return this.m}get isInitialized(){return this.l}},I4=class extends P4{constructor(e){super(globalThis,e)}},function(e){e[e.Resolved=0]="Resolved",e[e.Rejected=1]="Rejected"}(D4||(D4={})),Mu=class{get isRejected(){return this.d?.outcome===1}get isResolved(){return this.d?.outcome===0}get isSettled(){return!!this.d}get value(){return this.d?.outcome===0?this.d?.value:void 0}constructor(){this.p=new Promise((e,t)=>{this.a=e,this.b=t})}complete(e){return new Promise(t=>{this.a(e),this.d={outcome:0,value:e},t()})}error(e){return new Promise(t=>{this.b(e),this.d={outcome:1,value:e},t()})}settleWith(e){return e.then(t=>this.complete(t),t=>this.error(t))}cancel(){return this.error(new Dt)}},function(e){async function t(i){let n;const r=await Promise.all(i.map(o=>o.then(a=>a,a=>{n||(n=a)})));if(typeof n<"u")throw n;return r}e.settled=t;function s(i){return new Promise(async(n,r)=>{try{await i(n,r)}catch(o){r(o)}})}e.withAsyncBody=s}(is||(is={})),function(e){e[e.Initial=0]="Initial",e[e.DoneOK=1]="DoneOK",e[e.DoneError=2]="DoneError"}(A4||(A4={})),HL=class Fs{static fromArray(t){return new Fs(s=>{s.emitMany(t)})}static fromPromise(t){return new Fs(async s=>{s.emitMany(await t)})}static fromPromisesResolveOrder(t){return new Fs(async s=>{await Promise.all(t.map(async i=>s.emitOne(await i)))})}static merge(t){return new Fs(async s=>{await Promise.all(t.map(async i=>{for await(const n of i)s.emitOne(n)}))})}static{this.EMPTY=Fs.fromArray([])}constructor(t,s){this.a=0,this.b=[],this.d=null,this.f=s,this.g=new D,queueMicrotask(async()=>{const i={emitOne:n=>this.h(n),emitMany:n=>this.j(n),reject:n=>this.l(n)};try{await Promise.resolve(t(i)),this.k()}catch(n){this.l(n)}finally{i.emitOne=void 0,i.emitMany=void 0,i.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this.a===2)throw this.d;if(t<this.b.length)return{done:!1,value:this.b[t++]};if(this.a===1)return{done:!0,value:void 0};await B.toPromise(this.g.event)}while(!0)},return:async()=>(this.f?.(),{done:!0,value:void 0})}}static map(t,s){return new Fs(async i=>{for await(const n of t)i.emitOne(s(n))})}map(t){return Fs.map(this,t)}static filter(t,s){return new Fs(async i=>{for await(const n of t)s(n)&&i.emitOne(n)})}filter(t){return Fs.filter(this,t)}static coalesce(t){return Fs.filter(t,s=>!!s)}coalesce(){return Fs.coalesce(this)}static async toPromise(t){const s=[];for await(const i of t)s.push(i);return s}toPromise(){return Fs.toPromise(this)}h(t){this.a===0&&(this.b.push(t),this.g.fire())}j(t){this.a===0&&(this.b=this.b.concat(t),this.g.fire())}k(){this.a===0&&(this.a=1,this.g.fire())}l(t){this.a===0&&(this.a=2,this.d=t,this.g.fire())}}}});function Tp(e){return VL(e,"NFC",L4)}function VL(e,t,s){if(!e)return e;const i=s.get(e);if(i)return i;let n;return R4.test(e)?n=e.normalize(t):n=e,s.set(e,n),n}var L4,WL,R4,N4=v({"out-build/vs/base/common/normalization.js"(){"use strict";Jt(),L4=new Ga(1e4),WL=new Ga(1e4),R4=/[^\u0000-\u0080]/}});import*as je from"fs";import{tmpdir as qL}from"os";import{promisify as sc}from"util";async function O4(e,t=yo.UNLINK,s){if(PL(e))throw new Error("rimraf - will refuse to recursively delete root");return t===yo.UNLINK?Fp(e):GL(e,s)}async function GL(e,t=IL(qL())){try{try{await je.promises.rename(e,t)}catch(s){return s.code==="ENOENT"?void 0:Fp(e)}Fp(t).catch(s=>{})}catch(s){if(s.code!=="ENOENT")throw s}}async function Fp(e){return je.promises.rm(e,{recursive:!0,force:!0,maxRetries:3})}async function Uu(e,t){return ZL(await(t?JL(e):je.promises.readdir(e)))}async function JL(e){try{return await je.promises.readdir(e,{withFileTypes:!0})}catch(i){console.warn("[node.js fs] readdir with filetypes failed with error: ",i)}const t=[],s=await Uu(e);for(const i of s){let n=!1,r=!1,o=!1;try{const a=await je.promises.lstat(_(e,i));n=a.isFile(),r=a.isDirectory(),o=a.isSymbolicLink()}catch(a){console.warn("[node.js fs] unexpected error from lstat after readdir: ",a)}t.push({name:i,isFile:()=>n,isDirectory:()=>r,isSymbolicLink:()=>o})}return t}function ZL(e){return e.map(t=>typeof t=="string"?Cs?Tp(t):t:(t.name=Cs?Tp(t.name):t.name,t))}async function YL(e){const t=await Uu(e),s=[];for(const i of t)await fs.existsDirectory(_(e,i))&&s.push(i);return s}function QL(e,t,s){return U4.queueFor(y.file(e),()=>{const i=eR(s);return new Promise((n,r)=>KL(e,t,i,o=>o?r(o):n()))},Ou)}function XL(e){Bp=e}function KL(e,t,s,i){if(!Bp)return je.writeFile(e,t,{mode:s.mode,flag:s.flag},i);je.open(e,s.flag,s.mode,(n,r)=>{if(n)return i(n);je.writeFile(r,t,o=>{if(o)return je.close(r,()=>i(o));je.fdatasync(r,a=>(a&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",a),XL(!1)),je.close(r,c=>i(c))))})})}function eR(e){return e?{mode:typeof e.mode=="number"?e.mode:438,flag:typeof e.flag=="string"?e.flag:"w"}:{mode:438,flag:"w"}}async function tR(e,t,s=6e4){if(e!==t)try{me&&typeof s=="number"?await C4(e,t,Date.now(),s):await je.promises.rename(e,t)}catch(i){if(e.toLowerCase()!==t.toLowerCase()&&i.code==="EXDEV"||e.endsWith("."))await _4(e,t,{preserveSymlinks:!1}),await O4(e,yo.MOVE);else throw i}}async function C4(e,t,s,i,n=0){try{return await je.promises.rename(e,t)}catch(r){if(r.code!=="EACCES"&&r.code!=="EPERM"&&r.code!=="EBUSY")throw r;if(Date.now()-s>=i)throw console.error(`[node.js fs] rename failed after ${n} retries with error: ${r}`),r;if(n===0){let o=!1;try{const{stat:a}=await fs.stat(t);a.isFile()||(o=!0)}catch{}if(o)throw r}return await bo(Math.min(100,n*10)),C4(e,t,s,i,n+1)}}async function _4(e,t,s){return M4(e,t,{root:{source:e,target:t},options:s,handledSourcePaths:new Set})}async function M4(e,t,s){if(s.handledSourcePaths.has(e))return;s.handledSourcePaths.add(e);const{stat:i,symbolicLink:n}=await fs.stat(e);if(n){if(s.options.preserveSymlinks)try{return await nR(e,t,s)}catch{}if(n.dangling)return}return i.isDirectory()?sR(e,t,i.mode&zp,s):iR(e,t,i.mode&zp)}async function sR(e,t,s,i){await je.promises.mkdir(t,{recursive:!0,mode:s});const n=await Uu(e);for(const r of n)await M4(_(e,r),_(t,r),i)}async function iR(e,t,s){await je.promises.copyFile(e,t),await je.promises.chmod(t,s)}async function nR(e,t,s){let i=await je.promises.readlink(e);_n(i,s.root.source,!ut)&&(i=_(s.root.target,i.substr(s.root.source.length+1))),await je.promises.symlink(i,t)}async function rR(e){try{return await sc(je.realpath)(e)}catch{const s=oR(e);return await je.promises.access(s,je.constants.R_OK),s}}function oR(e){return bp(Hs(e),qt)}var yo,fs,U4,Bp,zp,ke,ds=v({"out-build/vs/base/node/pfs.js"(){"use strict";Ae(),an(),N4(),he(),te(),ct(),Q(),at(),function(e){e[e.UNLINK=0]="UNLINK",e[e.MOVE=1]="MOVE"}(yo||(yo={})),function(e){async function t(n){let r;try{if(r=await je.promises.lstat(n),!r.isSymbolicLink())return{stat:r}}catch{}try{return{stat:await je.promises.stat(n),symbolicLink:r?.isSymbolicLink()?{dangling:!1}:void 0}}catch(o){if(o.code==="ENOENT"&&r)return{stat:r,symbolicLink:{dangling:!0}};if(me&&o.code==="EACCES")try{return{stat:await je.promises.stat(await je.promises.readlink(n)),symbolicLink:{dangling:!1}}}catch(a){if(a.code==="ENOENT"&&r)return{stat:r,symbolicLink:{dangling:!0}};throw a}throw o}}e.stat=t;async function s(n){try{const{stat:r,symbolicLink:o}=await e.stat(n);return r.isFile()&&o?.dangling!==!0}catch{}return!1}e.existsFile=s;async function i(n){try{const{stat:r,symbolicLink:o}=await e.stat(n);return r.isDirectory()&&o?.dangling!==!0}catch{}return!1}e.existsDirectory=i}(fs||(fs={})),U4=new Mp,Bp=!0,zp=511,ke=new class{get read(){return(e,t,s,i,n)=>new Promise((r,o)=>{je.read(e,t,s,i,n,(a,c,l)=>a?o(a):r({bytesRead:c,buffer:l}))})}get write(){return(e,t,s,i,n)=>new Promise((r,o)=>{je.write(e,t,s,i,n,(a,c,l)=>a?o(a):r({bytesWritten:c,buffer:l}))})}get fdatasync(){return sc(je.fdatasync)}get open(){return sc(je.open)}get close(){return sc(je.close)}get ftruncate(){return sc(je.ftruncate)}async exists(e){try{return await je.promises.access(e),!0}catch{return!1}}get readdir(){return Uu}get readDirsInDir(){return YL}get writeFile(){return QL}get rm(){return O4}get rename(){return tR}get copy(){return _4}get realpath(){return rR}}}});import{promises as hn}from"fs";async function Hp({userLocale:e,osLocale:t,userDataPath:s,commit:i,nlsMetadataPath:n}){if(It("code/willGenerateNls"),process.env.VSCODE_DEV||e==="pseudo"||e.startsWith("en")||!i||!s)return ic(e,t,n);try{const r=await aR(s);if(!r)return ic(e,t,n);const o=cR(r,e);if(!o)return ic(e,t,n);const a=r[o],c=a?.translations?.vscode;if(!a||typeof a.hash!="string"||!a.translations||typeof c!="string"||!await ke.exists(c))return ic(e,t,n);const l=`${a.hash}.${o}`,u=_(s,"clp",l),h=_(u,i),f=_(h,"nls.messages.json"),p=_(u,"tcf.json"),g=_(u,"corrupted.info");await ke.exists(g)&&await hn.rm(u,{recursive:!0,force:!0,maxRetries:3});const w={userLocale:e,osLocale:t,resolvedLanguage:o,defaultMessagesFile:_(n,"nls.messages.json"),languagePack:{translationsConfigFile:p,messagesFile:f,corruptMarkerFile:g},locale:e,availableLanguages:{"*":o},_languagePackId:l,_languagePackSupport:!0,_translationsConfigFile:p,_cacheRoot:u,_resolvedLanguagePackCoreLocation:h,_corruptedFile:g};if(await ke.exists(f))return lR(h).catch(()=>{}),It("code/didGenerateNls"),w;const[b,x,k]=await Promise.all([hn.readFile(_(n,"nls.keys.json"),"utf-8").then(j=>JSON.parse(j)),hn.readFile(_(n,"nls.messages.json"),"utf-8").then(j=>JSON.parse(j)),hn.readFile(c,"utf-8").then(j=>JSON.parse(j))]),I=[];let M=0;for(const[j,Ee]of b){const O=k.contents[j];for(const z of Ee)I.push(O?.[z]||x[M]),M++}return await hn.mkdir(h,{recursive:!0}),await Promise.all([hn.writeFile(f,JSON.stringify(I),"utf-8"),hn.writeFile(p,JSON.stringify(a.translations),"utf-8")]),It("code/didGenerateNls"),w}catch(r){console.error("Generating translation files failed.",r)}return ic(e,t,n)}async function aR(e){const t=_(e,"languagepacks.json");try{return JSON.parse(await hn.readFile(t,"utf-8"))}catch{return}}function cR(e,t){try{for(;t;){if(e[t])return t;const s=t.lastIndexOf("-");if(s>0)t=t.substring(0,s);else return}}catch(s){console.error("Resolving language pack configuration failed.",s)}}function ic(e,t,s){return It("code/didGenerateNls"),{userLocale:e,osLocale:t,resolvedLanguage:"en",defaultMessagesFile:_(s,"nls.messages.json"),locale:e,availableLanguages:{}}}function lR(e){const t=new Date;return hn.utimes(e,t,t)}var j4=v({"out-build/vs/base/node/nls.js"(){"use strict";he(),Ki(),ds()}}),ju,Vp=v({"out-build/vs/platform/instantiation/common/serviceCollection.js"(){"use strict";ju=class{constructor(...e){this.a=new Map;for(const[t,s]of e)this.set(t,s)}set(e,t){const s=this.a.get(e);return this.a.set(e,t),s}has(e){return this.a.has(e)}get(e){return this.a.get(e)}}}});function Wp(e,t){return t&&(e.stack||e.stacktrace)?m(110,null,F4(e),T4(e.stack)||T4(e.stacktrace)):F4(e)}function T4(e){return Array.isArray(e)?e.join(`
`):e}function F4(e){return e.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof e.code=="string"&&typeof e.errno=="number"&&typeof e.syscall=="string"?m(111,null,e.message):e.message||m(112,null)}function $r(e=null,t=!1){if(!e)return m(113,null);if(Array.isArray(e)){const s=ai(e),i=$r(s[0],t);return s.length>1?m(114,null,i,s.length):i}if(ue(e))return e;if(e.detail){const s=e.detail;if(s.error)return Wp(s.error,t);if(s.exception)return Wp(s.exception,t)}return e.stack?Wp(e,t):e.message?e.message:m(115,null)}var Eo=v({"out-build/vs/base/common/errorMessage.js"(){"use strict";kt(),be(),ce()}});function Tu(e){const t=e;return t?[t.on,t.pause,t.resume,t.destroy].every(s=>typeof s=="function"):!1}function qp(e){const t=e;return t?Tu(t.stream)&&Array.isArray(t.buffer)&&typeof t.ended=="boolean":!1}function Fu(e,t){return new H4(e,t)}function uR(e,t){const s=[];let i;for(;(i=e.read())!==null;)s.push(i);return t(s)}function hR(e,t,s){const i=[];let n;for(;(n=e.read())!==null&&i.length<s;)i.push(n);return n===null&&i.length>0?t(i):{read:()=>{if(i.length>0)return i.shift();if(typeof n<"u"){const r=n;return n=void 0,r}return e.read()}}}function B4(e,t){return new Promise((s,i)=>{const n=[];Bu(e,{onData:r=>{t&&n.push(r)},onError:r=>{t?i(r):s(void 0)},onEnd:()=>{s(t?t(n):void 0)}})})}function Bu(e,t,s){e.on("error",i=>{s?.isCancellationRequested||t.onError(i)}),e.on("end",()=>{s?.isCancellationRequested||t.onEnd()}),e.on("data",i=>{s?.isCancellationRequested||t.onData(i)})}function fR(e,t){return new Promise((s,i)=>{const n=new rt,r=[],o=l=>{if(r.push(l),r.length>t)return n.dispose(),e.pause(),s({stream:e,buffer:r,ended:!1})},a=l=>(n.dispose(),i(l)),c=()=>(n.dispose(),s({stream:e,buffer:r,ended:!0}));n.add(De(()=>e.removeListener("error",a))),e.on("error",a),n.add(De(()=>e.removeListener("end",c))),e.on("end",c),n.add(De(()=>e.removeListener("data",o))),e.on("data",o)})}function dR(e){let t=!1;return{read:()=>t?null:(t=!0,e)}}function z4(e,t,s){const i=Fu(s);return Bu(e,{onData:n=>i.write(t.data(n)),onError:n=>i.error(t.error?t.error(n):n),onEnd:()=>i.end()}),i}var H4,nc=v({"out-build/vs/base/common/stream.js"(){"use strict";ge(),V(),H4=class{constructor(e,t){this.e=e,this.f=t,this.a={flowing:!1,ended:!1,destroyed:!1},this.b={data:[],error:[]},this.c={data:[],error:[],end:[]},this.d=[]}pause(){this.a.destroyed||(this.a.flowing=!1)}resume(){this.a.destroyed||this.a.flowing||(this.a.flowing=!0,this.j(),this.k(),this.l())}write(e){if(!this.a.destroyed){if(this.a.flowing)this.g(e);else if(this.b.data.push(e),typeof this.f?.highWaterMark=="number"&&this.b.data.length>this.f.highWaterMark)return new Promise(t=>this.d.push(t))}}error(e){this.a.destroyed||(this.a.flowing?this.h(e):this.b.error.push(e))}end(e){this.a.destroyed||(typeof e<"u"&&this.write(e),this.a.flowing?(this.i(),this.destroy()):this.a.ended=!0)}g(e){this.c.data.slice(0).forEach(t=>t(e))}h(e){this.c.error.length===0?Gt(e):this.c.error.slice(0).forEach(t=>t(e))}i(){this.c.end.slice(0).forEach(e=>e())}on(e,t){if(!this.a.destroyed)switch(e){case"data":this.c.data.push(t),this.resume();break;case"end":this.c.end.push(t),this.a.flowing&&this.l()&&this.destroy();break;case"error":this.c.error.push(t),this.a.flowing&&this.k();break}}removeListener(e,t){if(this.a.destroyed)return;let s;switch(e){case"data":s=this.c.data;break;case"end":s=this.c.end;break;case"error":s=this.c.error;break}if(s){const i=s.indexOf(t);i>=0&&s.splice(i,1)}}j(){if(this.b.data.length===0)return;if(typeof this.e=="function"){const t=this.e(this.b.data);this.g(t)}else for(const t of this.b.data)this.g(t);this.b.data.length=0;const e=[...this.d];this.d.length=0,e.forEach(t=>t())}k(){if(this.c.error.length>0){for(const e of this.b.error)this.h(e);this.b.error.length=0}}l(){return this.a.ended?(this.i(),this.c.end.length>0):!1}destroy(){this.a.destroyed||(this.a.destroyed=!0,this.a.ended=!0,this.b.data.length=0,this.b.error.length=0,this.c.data.length=0,this.c.error.length=0,this.c.end.length=0,this.d.length=0)}}}});function pR(e,t,s=0){const i=t.byteLength,n=e.byteLength;if(i===0)return 0;if(i===1)return e.indexOf(t[0]);if(i>n-s)return-1;const r=G4.value;r.fill(t.length);for(let l=0;l<t.length;l++)r[t[l]]=t.length-l-1;let o=s+t.length-1,a=o,c=-1;for(;o<n;)if(e[o]===t[a]){if(a===0){c=o;break}o--,a--}else o+=Math.max(t.length-a,r[e[o]]),a=t.length-1;return c}function mR(e,t){return e[t]*2**24+e[t+1]*2**16+e[t+2]*2**8+e[t+3]}function gR(e,t,s){e[s+3]=t,t=t>>>8,e[s+2]=t,t=t>>>8,e[s+1]=t,t=t>>>8,e[s]=t}function wR(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0|e[t+2]<<16>>>0|e[t+3]<<24>>>0}function vR(e,t,s){e[s+0]=t&255,t=t>>>8,e[s+1]=t&255,t=t>>>8,e[s+2]=t&255,t=t>>>8,e[s+3]=t&255}function bR(e,t){return e[t]}function yR(e,t,s){e[s]=t}function ER(e){return uR(e,t=>R.concat(t))}function xR(e){return dR(e)}function fn(e){return B4(e,t=>R.concat(t))}async function kR(e){return e.ended?R.concat(e.buffer):R.concat([...e.buffer,await fn(e.stream)])}function $R(e){return z4(e,{data:t=>typeof t=="string"?R.fromString(t):R.wrap(t)},t=>R.concat(t))}function SR(e){return Fu(t=>R.concat(t),e)}function V4(e){let t=0,s=0,i=0;const n=new Uint8Array(Math.floor(e.length/4*3)),r=a=>{switch(s){case 3:n[i++]=t|a,s=0;break;case 2:n[i++]=t|a>>>2,t=a<<6,s=3;break;case 1:n[i++]=t|a>>>4,t=a<<4,s=2;break;default:t=a<<2,s=1}};for(let a=0;a<e.length;a++){const c=e.charCodeAt(a);if(c>=65&&c<=90)r(c-65);else if(c>=97&&c<=122)r(c-97+26);else if(c>=48&&c<=57)r(c-48+52);else if(c===43||c===45)r(62);else if(c===47||c===95)r(63);else{if(c===61)break;throw new SyntaxError(`Unexpected base64 character ${e[a]}`)}}const o=i;for(;s>0;)r(0);return R.wrap(n).slice(0,o)}function Gp({buffer:e},t=!0,s=!1){const i=s?Z4:J4;let n="";const r=e.byteLength%3;let o=0;for(;o<e.byteLength-r;o+=3){const a=e[o+0],c=e[o+1],l=e[o+2];n+=i[a>>>2],n+=i[(a<<4|c>>>4)&63],n+=i[(c<<2|l>>>6)&63],n+=i[l&63]}if(r===1){const a=e[o+0];n+=i[a>>>2],n+=i[a<<4&63],t&&(n+="==")}else if(r===2){const a=e[o+0],c=e[o+1];n+=i[a>>>2],n+=i[(a<<4|c>>>4)&63],n+=i[c<<2&63],t&&(n+="=")}return n}function W4({buffer:e}){let t="";for(let s=0;s<e.length;s++){const i=e[s];t+=Yp[i>>>4],t+=Yp[i&15]}return t}function PR(e){if(e.length%2!==0)throw new SyntaxError("Hex string must have an even length");const t=new Uint8Array(e.length>>1);for(let s=0;s<e.length;)t[s>>1]=q4(e,s++)<<4|q4(e,s++);return R.wrap(t)}function q4(e,t){const s=e.charCodeAt(t);if(s>=48&&s<=57)return s-48;if(s>=97&&s<=102)return s-87;if(s>=65&&s<=70)return s-55;throw new SyntaxError(`Invalid hex character at position ${t}`)}var xo,G4,Jp,Zp,R,J4,Z4,Yp,Le=v({"out-build/vs/base/common/buffer.js"(){"use strict";go(),nc(),xo=typeof Buffer<"u",G4=new Nn(()=>new Uint8Array(256)),R=class ti{static alloc(t){return xo?new ti(Buffer.allocUnsafe(t)):new ti(new Uint8Array(t))}static wrap(t){return xo&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new ti(t)}static fromString(t,s){return!(s?.dontUseNodeBuffer||!1)&&xo?new ti(Buffer.from(t)):(Jp||(Jp=new TextEncoder),new ti(Jp.encode(t)))}static fromByteArray(t){const s=ti.alloc(t.length);for(let i=0,n=t.length;i<n;i++)s.buffer[i]=t[i];return s}static concat(t,s){if(typeof s>"u"){s=0;for(let r=0,o=t.length;r<o;r++)s+=t[r].byteLength}const i=ti.alloc(s);let n=0;for(let r=0,o=t.length;r<o;r++){const a=t[r];i.set(a,n),n+=a.byteLength}return i}static isNativeBuffer(t){return xo&&Buffer.isBuffer(t)}constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}clone(){const t=ti.alloc(this.byteLength);return t.set(this),t}toString(){return xo?this.buffer.toString():(Zp||(Zp=new TextDecoder),Zp.decode(this.buffer))}slice(t,s){return new ti(this.buffer.subarray(t,s))}set(t,s){if(t instanceof ti)this.buffer.set(t.buffer,s);else if(t instanceof Uint8Array)this.buffer.set(t,s);else if(t instanceof ArrayBuffer)this.buffer.set(new Uint8Array(t),s);else if(ArrayBuffer.isView(t))this.buffer.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),s);else throw new Error("Unknown argument 'array'")}readUInt32BE(t){return mR(this.buffer,t)}writeUInt32BE(t,s){gR(this.buffer,t,s)}readUInt32LE(t){return wR(this.buffer,t)}writeUInt32LE(t,s){vR(this.buffer,t,s)}readUInt8(t){return bR(this.buffer,t)}writeUInt8(t,s){yR(this.buffer,t,s)}indexOf(t,s=0){return pR(this.buffer,t instanceof ti?t.buffer:t,s)}equals(t){return this===t?!0:this.byteLength!==t.byteLength?!1:this.buffer.every((s,i)=>s===t.buffer[i])}},J4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Z4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Yp="0123456789abcdef"}});function ko(e){return Qp(e,0)}function Qp(e,t){switch(typeof e){case"object":return e===null?dn(349,t):Array.isArray(e)?DR(e,t):AR(e,t);case"string":return Y4(e,t);case"boolean":return IR(e,t);case"number":return dn(e,t);case"undefined":return dn(937,t);default:return dn(617,t)}}function dn(e,t){return(t<<5)-t+e|0}function IR(e,t){return dn(e?433:863,t)}function Y4(e,t){t=dn(149417,t);for(let s=0,i=e.length;s<i;s++)t=dn(e.charCodeAt(s),t);return t}function DR(e,t){return t=dn(104579,t),e.reduce((s,i)=>Qp(i,s),t)}function AR(e,t){return t=dn(181387,t),Object.keys(e).sort().reduce((s,i)=>(s=Y4(i,s),Qp(e[i],s)),t)}function Xp(e,t,s=32){const i=s-t,n=~((1<<i)-1);return(e<<t|(n&e)>>>i)>>>0}function rc(e,t=32){return e instanceof ArrayBuffer?W4(R.wrap(new Uint8Array(e))):(e>>>0).toString(16).padStart(t/4,"0")}var Q4,LR,oc=v({"out-build/vs/base/common/hash.js"(){"use strict";Le(),at(),function(e){e[e.BLOCK_SIZE=64]="BLOCK_SIZE",e[e.UNICODE_REPLACEMENT=65533]="UNICODE_REPLACEMENT"}(Q4||(Q4={})),LR=class qD{static{this.g=new DataView(new ArrayBuffer(320))}constructor(){this.h=1732584193,this.l=4023233417,this.m=2562383102,this.n=271733878,this.o=3285377520,this.p=new Uint8Array(67),this.q=new DataView(this.p.buffer),this.r=0,this.t=0,this.u=0,this.v=!1}update(t){const s=t.length;if(s===0)return;const i=this.p;let n=this.r,r=this.u,o,a;for(r!==0?(o=r,a=-1,r=0):(o=t.charCodeAt(0),a=0);;){let c=o;if(mL(o))if(a+1<s){const l=t.charCodeAt(a+1);Fy(l)?(a++,c=gL(o,l)):c=65533}else{r=o;break}else Fy(o)&&(c=65533);if(n=this.w(i,n,c),a++,a<s)o=t.charCodeAt(a);else break}this.r=n,this.u=r}w(t,s,i){return i<128?t[s++]=i:i<2048?(t[s++]=192|(i&1984)>>>6,t[s++]=128|(i&63)>>>0):i<65536?(t[s++]=224|(i&61440)>>>12,t[s++]=128|(i&4032)>>>6,t[s++]=128|(i&63)>>>0):(t[s++]=240|(i&1835008)>>>18,t[s++]=128|(i&258048)>>>12,t[s++]=128|(i&4032)>>>6,t[s++]=128|(i&63)>>>0),s>=64&&(this.y(),s-=64,this.t+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),s}digest(){return this.v||(this.v=!0,this.u&&(this.u=0,this.r=this.w(this.p,this.r,65533)),this.t+=this.r,this.x()),rc(this.h)+rc(this.l)+rc(this.m)+rc(this.n)+rc(this.o)}x(){this.p[this.r++]=128,this.p.subarray(this.r).fill(0),this.r>56&&(this.y(),this.p.fill(0));const t=8*this.t;this.q.setUint32(56,Math.floor(t/4294967296),!1),this.q.setUint32(60,t%4294967296,!1),this.y()}y(){const t=qD.g,s=this.q;for(let h=0;h<64;h+=4)t.setUint32(h,s.getUint32(h,!1),!1);for(let h=64;h<320;h+=4)t.setUint32(h,Xp(t.getUint32(h-12,!1)^t.getUint32(h-32,!1)^t.getUint32(h-56,!1)^t.getUint32(h-64,!1),1),!1);let i=this.h,n=this.l,r=this.m,o=this.n,a=this.o,c,l,u;for(let h=0;h<80;h++)h<20?(c=n&r|~n&o,l=1518500249):h<40?(c=n^r^o,l=1859775393):h<60?(c=n&r|n&o|r&o,l=2400959708):(c=n^r^o,l=3395469782),u=Xp(i,5)+c+a+l+t.getUint32(h*4,!1)&4294967295,a=o,o=r,r=Xp(n,30),n=i,i=u;this.h=this.h+i&4294967295,this.l=this.l+n&4294967295,this.m=this.m+r&4294967295,this.n=this.n+o&4294967295,this.o=this.o+a&4294967295}}}});function Kp(...e){switch(e.length){case 1:return m(1830,null,e[0]);case 2:return m(1831,null,e[0],e[1]);case 3:return m(1832,null,e[0],e[1],e[2]);default:return}}var X4,K4,e5,$o,RR=v({"out-build/vs/platform/contextkey/common/scanner.js"(){"use strict";ge(),ce(),function(e){e[e.LParen=0]="LParen",e[e.RParen=1]="RParen",e[e.Neg=2]="Neg",e[e.Eq=3]="Eq",e[e.NotEq=4]="NotEq",e[e.Lt=5]="Lt",e[e.LtEq=6]="LtEq",e[e.Gt=7]="Gt",e[e.GtEq=8]="GtEq",e[e.RegexOp=9]="RegexOp",e[e.RegexStr=10]="RegexStr",e[e.True=11]="True",e[e.False=12]="False",e[e.In=13]="In",e[e.Not=14]="Not",e[e.And=15]="And",e[e.Or=16]="Or",e[e.Str=17]="Str",e[e.QuotedStr=18]="QuotedStr",e[e.Error=19]="Error",e[e.EOF=20]="EOF"}(X4||(X4={})),K4=m(1833,null),e5=m(1834,null),$o=class nb{constructor(){this.c="",this.d=0,this.e=0,this.f=[],this.g=[],this.m=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(t){switch(t.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return t.isTripleEq?"===":"==";case 4:return t.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return t.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return t.lexeme;case 18:return t.lexeme;case 19:return t.lexeme;case 20:return"EOF";default:throw oy(`unhandled token type: ${JSON.stringify(t)}; have you forgotten to add a case?`)}}static{this.a=new Set(["i","g","s","m","y","u"].map(t=>t.charCodeAt(0)))}static{this.b=new Map([["not",14],["in",13],["false",12],["true",11]])}get errors(){return this.g}reset(t){return this.c=t,this.d=0,this.e=0,this.f=[],this.g=[],this}scan(){for(;!this.r();)switch(this.d=this.e,this.i()){case 40:this.k(0);break;case 41:this.k(1);break;case 33:if(this.h(61)){const s=this.h(61);this.f.push({type:4,offset:this.d,isTripleEq:s})}else this.k(2);break;case 39:this.o();break;case 47:this.q();break;case 61:if(this.h(61)){const s=this.h(61);this.f.push({type:3,offset:this.d,isTripleEq:s})}else this.h(126)?this.k(9):this.l(Kp("==","=~"));break;case 60:this.k(this.h(61)?6:5);break;case 62:this.k(this.h(61)?8:7);break;case 38:this.h(38)?this.k(15):this.l(Kp("&&"));break;case 124:this.h(124)?this.k(16):this.l(Kp("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this.n()}return this.d=this.e,this.k(20),Array.from(this.f)}h(t){return this.r()||this.c.charCodeAt(this.e)!==t?!1:(this.e++,!0)}i(){return this.c.charCodeAt(this.e++)}j(){return this.r()?0:this.c.charCodeAt(this.e)}k(t){this.f.push({type:t,offset:this.d})}l(t){const s=this.d,i=this.c.substring(this.d,this.e),n={type:19,offset:this.d,lexeme:i};this.g.push({offset:s,lexeme:i,additionalInfo:t}),this.f.push(n)}n(){this.m.lastIndex=this.d;const t=this.m.exec(this.c);if(t){this.e=this.d+t[0].length;const s=this.c.substring(this.d,this.e),i=nb.b.get(s);i?this.k(i):this.f.push({type:17,lexeme:s,offset:this.d})}}o(){for(;this.j()!==39&&!this.r();)this.i();if(this.r()){this.l(K4);return}this.i(),this.f.push({type:18,lexeme:this.c.substring(this.d+1,this.e-1),offset:this.d+1})}q(){let t=this.e,s=!1,i=!1;for(;;){if(t>=this.c.length){this.e=t,this.l(e5);return}const r=this.c.charCodeAt(t);if(s)s=!1;else if(r===47&&!i){t++;break}else r===91?i=!0:r===92?s=!0:r===93&&(i=!1);t++}for(;t<this.c.length&&nb.a.has(this.c.charCodeAt(t));)t++;this.e=t;const n=this.c.substring(this.d,this.e);this.f.push({type:10,lexeme:n,offset:this.d})}r(){return this.e>=this.c.length}}}});function NR(e,t,s){t[li.DI_TARGET]===t?t[li.DI_DEPENDENCIES].push({id:e,index:s}):(t[li.DI_DEPENDENCIES]=[{id:e,index:s}],t[li.DI_TARGET]=t)}function X(e){if(li.serviceIds.has(e))return li.serviceIds.get(e);const t=function(s,i,n){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");NR(t,s,n)};return t.toString=()=>e,li.serviceIds.set(e,t),t}function AB(e){return e}var li,Mn,ie=v({"out-build/vs/platform/instantiation/common/instantiation.js"(){"use strict";(function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies";function t(s){return s[e.DI_DEPENDENCIES]||[]}e.getServiceDependencies=t})(li||(li={})),Mn=X("instantiationService")}});function ac(e,t){return e.cmp(t)}function zu(e,t){if(typeof e=="string"){const s=parseFloat(e);isNaN(s)||(e=s)}return typeof e=="string"||typeof e=="number"?t(e):ns.INSTANCE}function t5(e){let t=null;for(let s=0,i=e.length;s<i;s++){const n=e[s].substituteConstants();if(e[s]!==n&&t===null){t=[];for(let r=0;r<s;r++)t[r]=e[r]}t!==null&&(t[s]=n)}return t===null?e:t}function s5(e,t){return e<t?-1:e>t?1:0}function Sr(e,t,s,i){return e<s?-1:e>s?1:t<i?-1:t>i?1:0}function i5(e){return e.type===9?e.expr:[e]}var Rt,n5,r5,o5,a5,c5,l5,em,u5,h5,f5,d5,p5,Tt,ns,ps,Pr,So,Hu,Vu,Po,Ir,Io,cc,lc,uc,Do,m5,tm,Wu,Dr,OR,hc=v({"out-build/vs/platform/contextkey/common/contextkey.js"(){"use strict";te(),at(),RR(),ie(),ce(),ge(),Rt=new Map,Rt.set("false",!1),Rt.set("true",!0),Rt.set("isMac",Cs),Rt.set("isLinux",ut),Rt.set("isWindows",me),Rt.set("isWeb",Ps),Rt.set("isMacNative",Cs&&!Ps),Rt.set("isEdge",Gb),Rt.set("isFirefox",Wb),Rt.set("isChrome",ip),Rt.set("isSafari",qb),n5=Object.prototype.hasOwnProperty,function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Defined=2]="Defined",e[e.Not=3]="Not",e[e.Equals=4]="Equals",e[e.NotEquals=5]="NotEquals",e[e.And=6]="And",e[e.Regex=7]="Regex",e[e.NotRegex=8]="NotRegex",e[e.Or=9]="Or",e[e.In=10]="In",e[e.NotIn=11]="NotIn",e[e.Greater=12]="Greater",e[e.GreaterEquals=13]="GreaterEquals",e[e.Smaller=14]="Smaller",e[e.SmallerEquals=15]="SmallerEquals"}(r5||(r5={})),o5={regexParsingWithErrorRecovery:!0},a5=m(1810,null),c5=m(1811,null),l5=m(1812,null),em=m(1813,null),u5=m(1814,null),h5=m(1815,null),f5=m(1816,null),d5=m(1817,null),p5=class ru{static{this.c=new Error}get lexingErrors(){return this.d.errors}get parsingErrors(){return this.h}constructor(t=o5){this.k=t,this.d=new $o,this.f=[],this.g=0,this.h=[],this.v=/g|y/g}parse(t){if(t===""){this.h.push({message:a5,offset:0,lexeme:"",additionalInfo:c5});return}this.f=this.d.reset(t).scan(),this.g=0,this.h=[];try{const s=this.l();if(!this.E()){const i=this.D(),n=i.type===17?h5:void 0;throw this.h.push({message:u5,offset:i.offset,lexeme:$o.getLexeme(i),additionalInfo:n}),ru.c}return s}catch(s){if(s!==ru.c)throw s;return}}l(){return this.m()}m(){const t=[this.o()];for(;this.y(16);){const s=this.o();t.push(s)}return t.length===1?t[0]:Tt.or(...t)}o(){const t=[this.s()];for(;this.y(15);){const s=this.s();t.push(s)}return t.length===1?t[0]:Tt.and(...t)}s(){if(this.y(2)){const t=this.D();switch(t.type){case 11:return this.z(),ns.INSTANCE;case 12:return this.z(),ps.INSTANCE;case 0:{this.z();const s=this.l();return this.A(1,em),s?.negate()}case 17:return this.z(),Ir.create(t.lexeme);default:throw this.B("KEY | true | false | '(' expression ')'",t)}}return this.t()}t(){const t=this.D();switch(t.type){case 11:return this.z(),Tt.true();case 12:return this.z(),Tt.false();case 0:{this.z();const s=this.l();return this.A(1,em),s}case 17:{const s=t.lexeme;if(this.z(),this.y(9)){const n=this.D();if(!this.k.regexParsingWithErrorRecovery){if(this.z(),n.type!==10)throw this.B("REGEX",n);const r=n.lexeme,o=r.lastIndexOf("/"),a=o===r.length-1?void 0:this.w(r.substring(o+1));let c;try{c=new RegExp(r.substring(1,o),a)}catch{throw this.B("REGEX",n)}return Do.create(s,c)}switch(n.type){case 10:case 19:{const r=[n.lexeme];this.z();let o=this.D(),a=0;for(let f=0;f<n.lexeme.length;f++)n.lexeme.charCodeAt(f)===40?a++:n.lexeme.charCodeAt(f)===41&&a--;for(;!this.E()&&o.type!==15&&o.type!==16;){switch(o.type){case 0:a++;break;case 1:a--;break;case 10:case 18:for(let f=0;f<o.lexeme.length;f++)o.lexeme.charCodeAt(f)===40?a++:n.lexeme.charCodeAt(f)===41&&a--}if(a<0)break;r.push($o.getLexeme(o)),this.z(),o=this.D()}const c=r.join(""),l=c.lastIndexOf("/"),u=l===c.length-1?void 0:this.w(c.substring(l+1));let h;try{h=new RegExp(c.substring(1,l),u)}catch{throw this.B("REGEX",n)}return Tt.regex(s,h)}case 18:{const r=n.lexeme;this.z();let o=null;if(!fL(r)){const a=r.indexOf("/"),c=r.lastIndexOf("/");if(a!==c&&a>=0){const l=r.slice(a+1,c),u=r[c+1]==="i"?"i":"";try{o=new RegExp(l,u)}catch{throw this.B("REGEX",n)}}}if(o===null)throw this.B("REGEX",n);return Do.create(s,o)}default:throw this.B("REGEX",this.D())}}if(this.y(14)){this.A(13,l5);const n=this.u();return Tt.notIn(s,n)}switch(this.D().type){case 3:{this.z();const n=this.u();if(this.x().type===18)return Tt.equals(s,n);switch(n){case"true":return Tt.has(s);case"false":return Tt.not(s);default:return Tt.equals(s,n)}}case 4:{this.z();const n=this.u();if(this.x().type===18)return Tt.notEquals(s,n);switch(n){case"true":return Tt.not(s);case"false":return Tt.has(s);default:return Tt.notEquals(s,n)}}case 5:return this.z(),lc.create(s,this.u());case 6:return this.z(),uc.create(s,this.u());case 7:return this.z(),Io.create(s,this.u());case 8:return this.z(),cc.create(s,this.u());case 13:return this.z(),Tt.in(s,this.u());default:return Tt.has(s)}}case 20:throw this.h.push({message:f5,offset:t.offset,lexeme:"",additionalInfo:d5}),ru.c;default:throw this.B(`true | false | KEY 
	| KEY '=~' REGEX 
	| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this.D())}}u(){const t=this.D();switch(t.type){case 17:case 18:return this.z(),t.lexeme;case 11:return this.z(),"true";case 12:return this.z(),"false";case 13:return this.z(),"in";default:return""}}w(t){return t.replaceAll(this.v,"")}x(){return this.f[this.g-1]}y(t){return this.C(t)?(this.z(),!0):!1}z(){return this.E()||this.g++,this.x()}A(t,s){if(this.C(t))return this.z();throw this.B(s,this.D())}B(t,s,i){const n=m(1818,null,t,$o.getLexeme(s)),r=s.offset,o=$o.getLexeme(s);return this.h.push({message:n,offset:r,lexeme:o,additionalInfo:i}),ru.c}C(t){return this.D().type===t}D(){return this.f[this.g]}E(){return this.D().type===20}},Tt=class{static false(){return ns.INSTANCE}static true(){return ps.INSTANCE}static has(e){return Pr.create(e)}static equals(e,t){return So.create(e,t)}static notEquals(e,t){return Po.create(e,t)}static regex(e,t){return Do.create(e,t)}static in(e,t){return Hu.create(e,t)}static notIn(e,t){return Vu.create(e,t)}static not(e){return Ir.create(e)}static and(...e){return tm.create(e,null,!0)}static or(...e){return Wu.create(e,null,!0)}static greater(e,t){return Io.create(e,t)}static greaterEquals(e,t){return cc.create(e,t)}static smaller(e,t){return lc.create(e,t)}static smallerEquals(e,t){return uc.create(e,t)}static{this.c=new p5({regexParsingWithErrorRecovery:!1})}static deserialize(e){return e==null?void 0:this.c.parse(e)}},ns=class GD{static{this.INSTANCE=new GD}constructor(){this.type=0}cmp(t){return this.type-t.type}equals(t){return t.type===this.type}substituteConstants(){return this}evaluate(t){return!1}serialize(){return"false"}keys(){return[]}map(t){return this}negate(){return ps.INSTANCE}},ps=class JD{static{this.INSTANCE=new JD}constructor(){this.type=1}cmp(t){return this.type-t.type}equals(t){return t.type===this.type}substituteConstants(){return this}evaluate(t){return!0}serialize(){return"true"}keys(){return[]}map(t){return this}negate(){return ns.INSTANCE}},Pr=class ZD{static create(t,s=null){const i=Rt.get(t);return typeof i=="boolean"?i?ps.INSTANCE:ns.INSTANCE:new ZD(t,s)}constructor(t,s){this.key=t,this.c=s,this.type=2}cmp(t){return t.type!==this.type?this.type-t.type:s5(this.key,t.key)}equals(t){return t.type===this.type?this.key===t.key:!1}substituteConstants(){const t=Rt.get(this.key);return typeof t=="boolean"?t?ps.INSTANCE:ns.INSTANCE:this}evaluate(t){return!!t.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(t){return t.mapDefined(this.key)}negate(){return this.c||(this.c=Ir.create(this.key,this)),this.c}},So=class YD{static create(t,s,i=null){if(typeof s=="boolean")return s?Pr.create(t,i):Ir.create(t,i);const n=Rt.get(t);return typeof n=="boolean"?s===(n?"true":"false")?ps.INSTANCE:ns.INSTANCE:new YD(t,s,i)}constructor(t,s,i){this.c=t,this.d=s,this.f=i,this.type=4}cmp(t){return t.type!==this.type?this.type-t.type:Sr(this.c,this.d,t.c,t.d)}equals(t){return t.type===this.type?this.c===t.c&&this.d===t.d:!1}substituteConstants(){const t=Rt.get(this.c);if(typeof t=="boolean"){const s=t?"true":"false";return this.d===s?ps.INSTANCE:ns.INSTANCE}return this}evaluate(t){return t.getValue(this.c)==this.d}serialize(){return`${this.c} == '${this.d}'`}keys(){return[this.c]}map(t){return t.mapEquals(this.c,this.d)}negate(){return this.f||(this.f=Po.create(this.c,this.d,this)),this.f}},Hu=class QD{static create(t,s){return new QD(t,s)}constructor(t,s){this.d=t,this.f=s,this.type=10,this.c=null}cmp(t){return t.type!==this.type?this.type-t.type:Sr(this.d,this.f,t.d,t.f)}equals(t){return t.type===this.type?this.d===t.d&&this.f===t.f:!1}substituteConstants(){return this}evaluate(t){const s=t.getValue(this.f),i=t.getValue(this.d);return Array.isArray(s)?s.includes(i):typeof i=="string"&&typeof s=="object"&&s!==null?n5.call(s,i):!1}serialize(){return`${this.d} in '${this.f}'`}keys(){return[this.d,this.f]}map(t){return t.mapIn(this.d,this.f)}negate(){return this.c||(this.c=Vu.create(this.d,this.f)),this.c}},Vu=class XD{static create(t,s){return new XD(t,s)}constructor(t,s){this.d=t,this.f=s,this.type=11,this.c=Hu.create(t,s)}cmp(t){return t.type!==this.type?this.type-t.type:this.c.cmp(t.c)}equals(t){return t.type===this.type?this.c.equals(t.c):!1}substituteConstants(){return this}evaluate(t){return!this.c.evaluate(t)}serialize(){return`${this.d} not in '${this.f}'`}keys(){return this.c.keys()}map(t){return t.mapNotIn(this.d,this.f)}negate(){return this.c}},Po=class KD{static create(t,s,i=null){if(typeof s=="boolean")return s?Ir.create(t,i):Pr.create(t,i);const n=Rt.get(t);return typeof n=="boolean"?s===(n?"true":"false")?ns.INSTANCE:ps.INSTANCE:new KD(t,s,i)}constructor(t,s,i){this.c=t,this.d=s,this.f=i,this.type=5}cmp(t){return t.type!==this.type?this.type-t.type:Sr(this.c,this.d,t.c,t.d)}equals(t){return t.type===this.type?this.c===t.c&&this.d===t.d:!1}substituteConstants(){const t=Rt.get(this.c);if(typeof t=="boolean"){const s=t?"true":"false";return this.d===s?ns.INSTANCE:ps.INSTANCE}return this}evaluate(t){return t.getValue(this.c)!=this.d}serialize(){return`${this.c} != '${this.d}'`}keys(){return[this.c]}map(t){return t.mapNotEquals(this.c,this.d)}negate(){return this.f||(this.f=So.create(this.c,this.d,this)),this.f}},Ir=class eA{static create(t,s=null){const i=Rt.get(t);return typeof i=="boolean"?i?ns.INSTANCE:ps.INSTANCE:new eA(t,s)}constructor(t,s){this.c=t,this.d=s,this.type=3}cmp(t){return t.type!==this.type?this.type-t.type:s5(this.c,t.c)}equals(t){return t.type===this.type?this.c===t.c:!1}substituteConstants(){const t=Rt.get(this.c);return typeof t=="boolean"?t?ns.INSTANCE:ps.INSTANCE:this}evaluate(t){return!t.getValue(this.c)}serialize(){return`!${this.c}`}keys(){return[this.c]}map(t){return t.mapNot(this.c)}negate(){return this.d||(this.d=Pr.create(this.c,this)),this.d}},Io=class tA{static create(t,s,i=null){return zu(s,n=>new tA(t,n,i))}constructor(t,s,i){this.c=t,this.d=s,this.f=i,this.type=12}cmp(t){return t.type!==this.type?this.type-t.type:Sr(this.c,this.d,t.c,t.d)}equals(t){return t.type===this.type?this.c===t.c&&this.d===t.d:!1}substituteConstants(){return this}evaluate(t){return typeof this.d=="string"?!1:parseFloat(t.getValue(this.c))>this.d}serialize(){return`${this.c} > ${this.d}`}keys(){return[this.c]}map(t){return t.mapGreater(this.c,this.d)}negate(){return this.f||(this.f=uc.create(this.c,this.d,this)),this.f}},cc=class sA{static create(t,s,i=null){return zu(s,n=>new sA(t,n,i))}constructor(t,s,i){this.c=t,this.d=s,this.f=i,this.type=13}cmp(t){return t.type!==this.type?this.type-t.type:Sr(this.c,this.d,t.c,t.d)}equals(t){return t.type===this.type?this.c===t.c&&this.d===t.d:!1}substituteConstants(){return this}evaluate(t){return typeof this.d=="string"?!1:parseFloat(t.getValue(this.c))>=this.d}serialize(){return`${this.c} >= ${this.d}`}keys(){return[this.c]}map(t){return t.mapGreaterEquals(this.c,this.d)}negate(){return this.f||(this.f=lc.create(this.c,this.d,this)),this.f}},lc=class iA{static create(t,s,i=null){return zu(s,n=>new iA(t,n,i))}constructor(t,s,i){this.c=t,this.d=s,this.f=i,this.type=14}cmp(t){return t.type!==this.type?this.type-t.type:Sr(this.c,this.d,t.c,t.d)}equals(t){return t.type===this.type?this.c===t.c&&this.d===t.d:!1}substituteConstants(){return this}evaluate(t){return typeof this.d=="string"?!1:parseFloat(t.getValue(this.c))<this.d}serialize(){return`${this.c} < ${this.d}`}keys(){return[this.c]}map(t){return t.mapSmaller(this.c,this.d)}negate(){return this.f||(this.f=cc.create(this.c,this.d,this)),this.f}},uc=class nA{static create(t,s,i=null){return zu(s,n=>new nA(t,n,i))}constructor(t,s,i){this.c=t,this.d=s,this.f=i,this.type=15}cmp(t){return t.type!==this.type?this.type-t.type:Sr(this.c,this.d,t.c,t.d)}equals(t){return t.type===this.type?this.c===t.c&&this.d===t.d:!1}substituteConstants(){return this}evaluate(t){return typeof this.d=="string"?!1:parseFloat(t.getValue(this.c))<=this.d}serialize(){return`${this.c} <= ${this.d}`}keys(){return[this.c]}map(t){return t.mapSmallerEquals(this.c,this.d)}negate(){return this.f||(this.f=Io.create(this.c,this.d,this)),this.f}},Do=class rA{static create(t,s){return new rA(t,s)}constructor(t,s){this.d=t,this.f=s,this.type=7,this.c=null}cmp(t){if(t.type!==this.type)return this.type-t.type;if(this.d<t.d)return-1;if(this.d>t.d)return 1;const s=this.f?this.f.source:"",i=t.f?t.f.source:"";return s<i?-1:s>i?1:0}equals(t){if(t.type===this.type){const s=this.f?this.f.source:"",i=t.f?t.f.source:"";return this.d===t.d&&s===i}return!1}substituteConstants(){return this}evaluate(t){const s=t.getValue(this.d);return this.f?this.f.test(s):!1}serialize(){const t=this.f?`/${this.f.source}/${this.f.flags}`:"/invalid/";return`${this.d} =~ ${t}`}keys(){return[this.d]}map(t){return t.mapRegex(this.d,this.f)}negate(){return this.c||(this.c=m5.create(this)),this.c}},m5=class rb{static create(t){return new rb(t)}constructor(t){this.c=t,this.type=8}cmp(t){return t.type!==this.type?this.type-t.type:this.c.cmp(t.c)}equals(t){return t.type===this.type?this.c.equals(t.c):!1}substituteConstants(){return this}evaluate(t){return!this.c.evaluate(t)}serialize(){return`!(${this.c.serialize()})`}keys(){return this.c.keys()}map(t){return new rb(this.c.map(t))}negate(){return this.c}},tm=class Ua{static create(t,s,i){return Ua.d(t,s,i)}constructor(t,s){this.expr=t,this.c=s,this.type=6}cmp(t){if(t.type!==this.type)return this.type-t.type;if(this.expr.length<t.expr.length)return-1;if(this.expr.length>t.expr.length)return 1;for(let s=0,i=this.expr.length;s<i;s++){const n=ac(this.expr[s],t.expr[s]);if(n!==0)return n}return 0}equals(t){if(t.type===this.type){if(this.expr.length!==t.expr.length)return!1;for(let s=0,i=this.expr.length;s<i;s++)if(!this.expr[s].equals(t.expr[s]))return!1;return!0}return!1}substituteConstants(){const t=t5(this.expr);return t===this.expr?this:Ua.create(t,this.c,!1)}evaluate(t){for(let s=0,i=this.expr.length;s<i;s++)if(!this.expr[s].evaluate(t))return!1;return!0}static d(t,s,i){const n=[];let r=!1;for(const o of t)if(o){if(o.type===1){r=!0;continue}if(o.type===0)return ns.INSTANCE;if(o.type===6){n.push(...o.expr);continue}n.push(o)}if(n.length===0&&r)return ps.INSTANCE;if(n.length!==0){if(n.length===1)return n[0];n.sort(ac);for(let o=1;o<n.length;o++)n[o-1].equals(n[o])&&(n.splice(o,1),o--);if(n.length===1)return n[0];for(;n.length>1;){const o=n[n.length-1];if(o.type!==9)break;n.pop();const a=n.pop(),c=n.length===0,l=Wu.create(o.expr.map(u=>Ua.create([u,a],null,i)),null,c);l&&(n.push(l),n.sort(ac))}if(n.length===1)return n[0];if(i){for(let o=0;o<n.length;o++)for(let a=o+1;a<n.length;a++)if(n[o].negate().equals(n[a]))return ns.INSTANCE;if(n.length===1)return n[0]}return new Ua(n,s)}}serialize(){return this.expr.map(t=>t.serialize()).join(" && ")}keys(){const t=[];for(const s of this.expr)t.push(...s.keys());return t}map(t){return new Ua(this.expr.map(s=>s.map(t)),null)}negate(){if(!this.c){const t=[];for(const s of this.expr)t.push(s.negate());this.c=Wu.create(t,this,!0)}return this.c}},Wu=class ro{static create(t,s,i){return ro.d(t,s,i)}constructor(t,s){this.expr=t,this.c=s,this.type=9}cmp(t){if(t.type!==this.type)return this.type-t.type;if(this.expr.length<t.expr.length)return-1;if(this.expr.length>t.expr.length)return 1;for(let s=0,i=this.expr.length;s<i;s++){const n=ac(this.expr[s],t.expr[s]);if(n!==0)return n}return 0}equals(t){if(t.type===this.type){if(this.expr.length!==t.expr.length)return!1;for(let s=0,i=this.expr.length;s<i;s++)if(!this.expr[s].equals(t.expr[s]))return!1;return!0}return!1}substituteConstants(){const t=t5(this.expr);return t===this.expr?this:ro.create(t,this.c,!1)}evaluate(t){for(let s=0,i=this.expr.length;s<i;s++)if(this.expr[s].evaluate(t))return!0;return!1}static d(t,s,i){let n=[],r=!1;if(t){for(let o=0,a=t.length;o<a;o++){const c=t[o];if(c){if(c.type===0){r=!0;continue}if(c.type===1)return ps.INSTANCE;if(c.type===9){n=n.concat(c.expr);continue}n.push(c)}}if(n.length===0&&r)return ns.INSTANCE;n.sort(ac)}if(n.length!==0){if(n.length===1)return n[0];for(let o=1;o<n.length;o++)n[o-1].equals(n[o])&&(n.splice(o,1),o--);if(n.length===1)return n[0];if(i){for(let o=0;o<n.length;o++)for(let a=o+1;a<n.length;a++)if(n[o].negate().equals(n[a]))return ps.INSTANCE;if(n.length===1)return n[0]}return new ro(n,s)}}serialize(){return this.expr.map(t=>t.serialize()).join(" || ")}keys(){const t=[];for(const s of this.expr)t.push(...s.keys());return t}map(t){return new ro(this.expr.map(s=>s.map(t)),null)}negate(){if(!this.c){const t=[];for(const s of this.expr)t.push(s.negate());for(;t.length>1;){const s=t.shift(),i=t.shift(),n=[];for(const r of i5(s))for(const o of i5(i))n.push(tm.create([r,o],null,!1));t.unshift(ro.create(n,null,!1))}this.c=ro.create(t,this,!0)}return this.c}},Dr=class C1 extends Pr{static{this.d=[]}static all(){return C1.d.values()}constructor(t,s,i){super(t,null),this.f=s,typeof i=="object"?C1.d.push({...i,key:t}):i!==!0&&C1.d.push({key:t,description:i,type:s!=null?typeof s:void 0})}bindTo(t){return t.createKey(this.key,this.f)}getValue(t){return t.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(t){return So.create(this.key,t)}notEqualsTo(t){return Po.create(this.key,t)}greater(t){return Io.create(this.key,t)}},OR=X("contextKeyService")}});function g5(e){return Rn(e)}function CR(e,t){return e!==G.Off&&e<=t}function _R(e,t,s){switch(t){case G.Trace:e.trace(s);break;case G.Debug:e.debug(s);break;case G.Info:e.info(s);break;case G.Warning:e.warn(s);break;case G.Error:e.error(s);break;case G.Off:break;default:throw new Error(`Invalid log level ${t}`)}}function Ao(e,t=!1){let s="";for(let i=0;i<e.length;i++){let n=e[i];if(n instanceof Error&&(n=$r(n,t)),typeof n=="object")try{n=JSON.stringify(n)}catch{}s+=(i>0?" ":"")+n}return s}function sm(e){if(e.verbose)return G.Trace;if(typeof e.logLevel=="string"){const t=MR(e.logLevel.toLowerCase());if(t!==void 0)return t}return fc}function w5(e){switch(e){case G.Trace:return"trace";case G.Debug:return"debug";case G.Info:return"info";case G.Warning:return"warn";case G.Error:return"error";case G.Off:return"off"}}function MR(e){switch(e){case"trace":return G.Trace;case"debug":return G.Debug;case"info":return G.Info;case"warn":return G.Warning;case"error":return G.Error;case"critical":return G.Error;case"off":return G.Off}}var fe,Lo,G,fc,dc,v5,b5,y5,E5,x5,k5,UR,Ie=v({"out-build/vs/platform/log/common/log.js"(){"use strict";ce(),Eo(),re(),oc(),V(),Jt(),te(),ct(),be(),Q(),hc(),ie(),fe=X("logService"),Lo=X("loggerService"),function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(G||(G={})),fc=G.Info,dc=class extends W{constructor(){super(...arguments),this.b=fc,this.c=this.B(new D),this.onDidChangeLogLevel=this.c.event}setLevel(e){this.b!==e&&(this.b=e,this.c.fire(this.b))}getLevel(){return this.b}f(e){return CR(this.b,e)}g(e){return this.q.isDisposed?!1:this.f(e)}},v5=class extends dc{constructor(e){super(),this.h=e}f(e){return this.h||super.f(e)}trace(e,...t){this.g(G.Trace)&&this.m(G.Trace,Ao([e,...t],!0))}debug(e,...t){this.g(G.Debug)&&this.m(G.Debug,Ao([e,...t]))}info(e,...t){this.g(G.Info)&&this.m(G.Info,Ao([e,...t]))}warn(e,...t){this.g(G.Warning)&&this.m(G.Warning,Ao([e,...t]))}error(e,...t){if(this.g(G.Error))if(e instanceof Error){const s=Array.prototype.slice.call(arguments);s[0]=e.stack,this.m(G.Error,Ao(s))}else this.m(G.Error,Ao([e,...t]))}flush(){}},b5=class extends dc{constructor(e=fc,t=!0){super(),this.h=t,this.setLevel(e)}trace(e,...t){this.g(G.Trace)&&(this.h?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.g(G.Debug)&&(this.h?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.g(G.Info)&&(this.h?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.g(G.Warning)&&(this.h?console.warn("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.g(G.Error)&&(this.h?console.error("%c  ERR","color: #f33",e,...t):console.error(e,...t))}flush(){}},y5=class extends dc{constructor(e){super(),this.h=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.h)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const s of this.h)s.trace(e,...t)}debug(e,...t){for(const s of this.h)s.debug(e,...t)}info(e,...t){for(const s of this.h)s.info(e,...t)}warn(e,...t){for(const s of this.h)s.warn(e,...t)}error(e,...t){for(const s of this.h)s.error(e,...t)}flush(){for(const e of this.h)e.flush()}dispose(){for(const e of this.h)e.dispose();super.dispose()}},E5=class extends W{constructor(e,t,s){if(super(),this.j=e,this.m=t,this.b=new wt,this.f=this.B(new D),this.onDidChangeLoggers=this.f.event,this.g=this.B(new D),this.onDidChangeLogLevel=this.g.event,this.h=this.B(new D),this.onDidChangeVisibility=this.h.event,s)for(const i of s)this.b.set(i.resource,{logger:void 0,info:i})}n(e){return ue(e)?[...this.b.values()].find(t=>t.info.id===e):this.b.get(e)}getLogger(e){return this.n(e)?.logger}createLogger(e,t){const s=this.s(e),i=ue(e)?e:t?.id??ko(s.toString()).toString(16);let n=this.b.get(s)?.logger;const r=t?.logLevel==="always"?G.Trace:t?.logLevel;n||(n=this.t(s,r??this.getLogLevel(s)??this.j,{...t,id:i}));const o={logger:n,info:{resource:s,id:i,logLevel:r,name:t?.name,hidden:t?.hidden,group:t?.group,extensionId:t?.extensionId,when:t?.when}};return this.registerLogger(o.info),this.b.set(s,o),n}s(e){return ue(e)?oe(this.m,`${e}.log`):e}setLogLevel(e,t){if(y.isUri(e)){const s=e,i=t,n=this.b.get(s);n&&i!==n.info.logLevel&&(n.info.logLevel=i===this.j?void 0:i,n.logger?.setLevel(i),this.b.set(n.info.resource,n),this.g.fire([s,i]))}else{this.j=e;for(const[s,i]of this.b.entries())this.b.get(s)?.info.logLevel===void 0&&i.logger?.setLevel(this.j);this.g.fire(this.j)}}setVisibility(e,t){const s=this.n(e);s&&t!==!s.info.hidden&&(s.info.hidden=!t,this.b.set(s.info.resource,s),this.h.fire([s.info.resource,t]))}getLogLevel(e){let t;return e&&(t=this.b.get(e)?.info.logLevel),t??this.j}registerLogger(e){const t=this.b.get(e.resource);t?t.info.hidden!==e.hidden&&this.setVisibility(e.resource,!e.hidden):(this.b.set(e.resource,{info:e,logger:void 0}),this.f.fire({added:[e],removed:[]}))}deregisterLogger(e){const t=this.s(e),s=this.b.get(t);s&&(s.logger&&s.logger.dispose(),this.b.delete(t),this.f.fire({added:[],removed:[s.info]}))}*getRegisteredLoggers(){for(const e of this.b.values())yield e.info}getRegisteredLogger(e){return this.b.get(e)?.info}dispose(){this.b.forEach(e=>e.logger?.dispose()),this.b.clear(),super.dispose()}},x5=class{constructor(){this.onDidChangeLogLevel=new D().event}setLevel(e){}getLevel(){return G.Info}trace(e,...t){}debug(e,...t){}info(e,...t){}warn(e,...t){}error(e,...t){}critical(e,...t){}dispose(){}flush(){}},k5=class extends x5{},UR=new Dr("logLevel",w5(G.Info))}}),Te,qu=v({"out-build/vs/platform/instantiation/common/descriptors.js"(){"use strict";Te=class{constructor(e,t=[],s=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=s}}}});function $5(e,t=!1){let s=0;const i=e.length;let n="",r=0,o=16,a=0;function c(w){let b=0,x=0;for(;b<w;){const k=e.charCodeAt(s);if(k>=48&&k<=57)x=x*16+k-48;else if(k>=65&&k<=70)x=x*16+k-65+10;else if(k>=97&&k<=102)x=x*16+k-97+10;else break;s++,b++}return b<w&&(x=-1),x}function l(w){s=w,n="",r=0,o=16,a=0}function u(){const w=s;if(e.charCodeAt(s)===48)s++;else for(s++;s<e.length&&Ro(e.charCodeAt(s));)s++;if(s<e.length&&e.charCodeAt(s)===46)if(s++,s<e.length&&Ro(e.charCodeAt(s)))for(s++;s<e.length&&Ro(e.charCodeAt(s));)s++;else return a=3,e.substring(w,s);let b=s;if(s<e.length&&(e.charCodeAt(s)===69||e.charCodeAt(s)===101))if(s++,(s<e.length&&e.charCodeAt(s)===43||e.charCodeAt(s)===45)&&s++,s<e.length&&Ro(e.charCodeAt(s))){for(s++;s<e.length&&Ro(e.charCodeAt(s));)s++;b=s}else a=3;return e.substring(w,b)}function h(){let w="",b=s;for(;;){if(s>=i){w+=e.substring(b,s),a=2;break}const x=e.charCodeAt(s);if(x===34){w+=e.substring(b,s),s++;break}if(x===92){if(w+=e.substring(b,s),s++,s>=i){a=2;break}switch(e.charCodeAt(s++)){case 34:w+='"';break;case 92:w+="\\";break;case 47:w+="/";break;case 98:w+="\b";break;case 102:w+="\f";break;case 110:w+=`
`;break;case 114:w+="\r";break;case 116:w+="	";break;case 117:{const I=c(4);I>=0?w+=String.fromCharCode(I):a=4;break}default:a=5}b=s;continue}if(x>=0&&x<=31)if(Gu(x)){w+=e.substring(b,s),a=2;break}else a=6;s++}return w}function f(){if(n="",a=0,r=s,s>=i)return r=i,o=17;let w=e.charCodeAt(s);if(im(w)){do s++,n+=String.fromCharCode(w),w=e.charCodeAt(s);while(im(w));return o=15}if(Gu(w))return s++,n+=String.fromCharCode(w),w===13&&e.charCodeAt(s)===10&&(s++,n+=`
`),o=14;switch(w){case 123:return s++,o=1;case 125:return s++,o=2;case 91:return s++,o=3;case 93:return s++,o=4;case 58:return s++,o=6;case 44:return s++,o=5;case 34:return s++,n=h(),o=10;case 47:{const b=s-1;if(e.charCodeAt(s+1)===47){for(s+=2;s<i&&!Gu(e.charCodeAt(s));)s++;return n=e.substring(b,s),o=12}if(e.charCodeAt(s+1)===42){s+=2;const x=i-1;let k=!1;for(;s<x;){if(e.charCodeAt(s)===42&&e.charCodeAt(s+1)===47){s+=2,k=!0;break}s++}return k||(s++,a=1),n=e.substring(b,s),o=13}return n+=String.fromCharCode(w),s++,o=16}case 45:if(n+=String.fromCharCode(w),s++,s===i||!Ro(e.charCodeAt(s)))return o=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n+=u(),o=11;default:for(;s<i&&p(w);)s++,w=e.charCodeAt(s);if(r!==s){switch(n=e.substring(r,s),n){case"true":return o=8;case"false":return o=9;case"null":return o=7}return o=16}return n+=String.fromCharCode(w),s++,o=16}}function p(w){if(im(w)||Gu(w))return!1;switch(w){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function g(){let w;do w=f();while(w>=12&&w<=15);return w}return{setPosition:l,getPosition:()=>s,scan:t?g:f,getToken:()=>o,getTokenValue:()=>n,getTokenOffset:()=>r,getTokenLength:()=>s-r,getTokenError:()=>a}}function im(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Gu(e){return e===10||e===13||e===8232||e===8233}function Ro(e){return e>=48&&e<=57}function Un(e,t=[],s=pc.DEFAULT){let i=null,n=[];const r=[];function o(c){Array.isArray(n)?n.push(c):i!==null&&(n[i]=c)}return Ju(e,{onObjectBegin:()=>{const c={};o(c),r.push(n),n=c,i=null},onObjectProperty:c=>{i=c},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const c=[];o(c),r.push(n),n=c,i=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:o,onError:(c,l,u)=>{t.push({error:c,offset:l,length:u})}},s),n[0]}function jR(e,t=[],s=pc.DEFAULT){let i={type:"array",offset:-1,length:-1,children:[],parent:void 0};function n(c){i.type==="property"&&(i.length=c-i.offset,i=i.parent)}function r(c){return i.children.push(c),c}Ju(e,{onObjectBegin:c=>{i=r({type:"object",offset:c,length:-1,parent:i,children:[]})},onObjectProperty:(c,l,u)=>{i=r({type:"property",offset:l,length:-1,parent:i,children:[]}),i.children.push({type:"string",value:c,offset:l,length:u,parent:i})},onObjectEnd:(c,l)=>{i.length=c+l-i.offset,i=i.parent,n(c+l)},onArrayBegin:(c,l)=>{i=r({type:"array",offset:c,length:-1,parent:i,children:[]})},onArrayEnd:(c,l)=>{i.length=c+l-i.offset,i=i.parent,n(c+l)},onLiteralValue:(c,l,u)=>{r({type:No(c),offset:l,length:u,parent:i,value:c}),n(l+u)},onSeparator:(c,l,u)=>{i.type==="property"&&(c===":"?i.colonOffset=l:c===","&&n(l))},onError:(c,l,u)=>{t.push({error:c,offset:l,length:u})}},s);const a=i.children[0];return a&&delete a.parent,a}function S5(e,t){if(!e)return;let s=e;for(const i of t)if(typeof i=="string"){if(s.type!=="object"||!Array.isArray(s.children))return;let n=!1;for(const r of s.children)if(Array.isArray(r.children)&&r.children[0].value===i){s=r.children[1],n=!0;break}if(!n)return}else{const n=i;if(s.type!=="array"||n<0||!Array.isArray(s.children)||n>=s.children.length)return;s=s.children[n]}return s}function Ju(e,t,s=pc.DEFAULT){const i=$5(e,!1);function n(A){return A?()=>A(i.getTokenOffset(),i.getTokenLength()):()=>!0}function r(A){return A?ee=>A(ee,i.getTokenOffset(),i.getTokenLength()):()=>!0}const o=n(t.onObjectBegin),a=r(t.onObjectProperty),c=n(t.onObjectEnd),l=n(t.onArrayBegin),u=n(t.onArrayEnd),h=r(t.onLiteralValue),f=r(t.onSeparator),p=n(t.onComment),g=r(t.onError),w=s&&s.disallowComments,b=s&&s.allowTrailingComma;function x(){for(;;){const A=i.scan();switch(i.getTokenError()){case 4:k(14);break;case 5:k(15);break;case 3:k(13);break;case 1:w||k(11);break;case 2:k(12);break;case 6:k(16);break}switch(A){case 12:case 13:w?k(10):p();break;case 16:k(1);break;case 15:case 14:break;default:return A}}}function k(A,ee=[],Ce=[]){if(g(A),ee.length+Ce.length>0){let F=i.getToken();for(;F!==17;){if(ee.indexOf(F)!==-1){x();break}else if(Ce.indexOf(F)!==-1)break;F=x()}}}function I(A){const ee=i.getTokenValue();return A?h(ee):a(ee),x(),!0}function M(){switch(i.getToken()){case 11:{let A=0;try{A=JSON.parse(i.getTokenValue()),typeof A!="number"&&(k(2),A=0)}catch{k(2)}h(A);break}case 7:h(null);break;case 8:h(!0);break;case 9:h(!1);break;default:return!1}return x(),!0}function j(){return i.getToken()!==10?(k(3,[],[2,5]),!1):(I(!1),i.getToken()===6?(f(":"),x(),z()||k(4,[],[2,5])):k(5,[],[2,5]),!0)}function Ee(){o(),x();let A=!1;for(;i.getToken()!==2&&i.getToken()!==17;){if(i.getToken()===5){if(A||k(4,[],[]),f(","),x(),i.getToken()===2&&b)break}else A&&k(6,[],[]);j()||k(4,[],[2,5]),A=!0}return c(),i.getToken()!==2?k(7,[2],[]):x(),!0}function O(){l(),x();let A=!1;for(;i.getToken()!==4&&i.getToken()!==17;){if(i.getToken()===5){if(A||k(4,[],[]),f(","),x(),i.getToken()===4&&b)break}else A&&k(6,[],[]);z()||k(4,[],[4,5]),A=!0}return u(),i.getToken()!==4?k(8,[4],[]):x(),!0}function z(){switch(i.getToken()){case 3:return O();case 1:return Ee();case 10:return I(!0);default:return M()}}return x(),i.getToken()===17?s.allowEmptyContent?!0:(k(4,[],[]),!1):z()?(i.getToken()!==17&&k(9,[],[]),!0):(k(4,[],[]),!1)}function No(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}var P5,I5,D5,pc,A5,jn=v({"out-build/vs/base/common/json.js"(){"use strict";(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(P5||(P5={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(I5||(I5={})),function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(D5||(D5={})),function(e){e.DEFAULT={allowTrailingComma:!0}}(pc||(pc={})),function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(A5||(A5={}))}});function TR(e,t,s){let i,n,r,o,a;if(t){for(o=t.offset,a=o+t.length,r=o;r>0&&!Zu(e,r-1);)r--;let I=a;for(;I<e.length&&!Zu(e,I);)I++;n=e.substring(r,I),i=FR(n,s)}else n=e,i=0,r=0,o=0,a=e.length;const c=BR(s,e);let l=!1,u=0,h;s.insertSpaces?h=nm(" ",s.tabSize||4):h="	";const f=$5(n,!1);let p=!1;function g(){return c+nm(h,i+u)}function w(){let I=f.scan();for(l=!1;I===15||I===14;)l=l||I===14,I=f.scan();return p=I===16||f.getTokenError()!==0,I}const b=[];function x(I,M,j){!p&&M<a&&j>o&&e.substring(M,j)!==I&&b.push({offset:M,length:j-M,content:I})}let k=w();if(k!==17){const I=f.getTokenOffset()+r,M=nm(h,i);x(M,r,I)}for(;k!==17;){let I=f.getTokenOffset()+f.getTokenLength()+r,M=w(),j="";for(;!l&&(M===12||M===13);){const O=f.getTokenOffset()+r;x(" ",I,O),I=f.getTokenOffset()+f.getTokenLength()+r,j=M===12?g():"",M=w()}if(M===2)k!==1&&(u--,j=g());else if(M===4)k!==3&&(u--,j=g());else{switch(k){case 3:case 1:u++,j=g();break;case 5:case 12:j=g();break;case 13:l?j=g():j=" ";break;case 6:j=" ";break;case 10:if(M===6){j="";break}case 7:case 8:case 9:case 11:case 2:case 4:M===12||M===13?j=" ":M!==5&&M!==17&&(p=!0);break;case 16:p=!0;break}l&&(M===12||M===13)&&(j=g())}const Ee=f.getTokenOffset()+r;x(j,I,Ee),k=M}return b}function nm(e,t){let s="";for(let i=0;i<t;i++)s+=e;return s}function FR(e,t){let s=0,i=0;const n=t.tabSize||4;for(;s<e.length;){const r=e.charAt(s);if(r===" ")i++;else if(r==="	")i+=n;else break;s++}return Math.floor(i/n)}function BR(e,t){for(let s=0;s<t.length;s++){const i=t.charAt(s);if(i==="\r")return s+1<t.length&&t.charAt(s+1)===`
`?`\r
`:"\r";if(i===`
`)return`
`}return e&&e.eol||`
`}function Zu(e,t){return`\r
`.indexOf(e.charAt(t))!==-1}var zR=v({"out-build/vs/base/common/jsonFormatter.js"(){"use strict";jn()}});function HR(e,t,s,i,n){const r=t.slice(),a=jR(e,[]);let c,l;for(;r.length>0&&(l=r.pop(),c=S5(a,r),c===void 0&&s!==void 0);)typeof l=="string"?s={[l]:s}:s=[s];if(c)if(c.type==="object"&&typeof l=="string"&&Array.isArray(c.children)){const u=S5(c,[l]);if(u!==void 0)if(s===void 0){if(!u.parent)throw new Error("Malformed AST");const h=c.children.indexOf(u.parent);let f,p=u.parent.offset+u.parent.length;if(h>0){const g=c.children[h-1];f=g.offset+g.length}else f=c.offset+1,c.children.length>1&&(p=c.children[1].offset);return Oo(e,{offset:f,length:p-f,content:""},i)}else return Oo(e,{offset:u.offset,length:u.length,content:JSON.stringify(s)},i);else{if(s===void 0)return[];const h=`${JSON.stringify(l)}: ${JSON.stringify(s)}`,f=n?n(c.children.map(g=>g.children[0].value)):c.children.length;let p;if(f>0){const g=c.children[f-1];p={offset:g.offset+g.length,length:0,content:","+h}}else c.children.length===0?p={offset:c.offset+1,length:0,content:h}:p={offset:c.offset+1,length:0,content:h+","};return Oo(e,p,i)}}else if(c.type==="array"&&typeof l=="number"&&Array.isArray(c.children))if(s!==void 0){const u=`${JSON.stringify(s)}`;let h;if(c.children.length===0||l===0)h={offset:c.offset+1,length:0,content:c.children.length===0?u:u+","};else{const f=l===-1||l>c.children.length?c.children.length:l,p=c.children[f-1];h={offset:p.offset+p.length,length:0,content:","+u}}return Oo(e,h,i)}else{const u=l,h=c.children[u];let f;if(c.children.length===1)f={offset:c.offset+1,length:c.length-2,content:""};else if(c.children.length-1===u){const p=c.children[u-1],g=p.offset+p.length,w=c.offset+c.length;f={offset:g,length:w-2-g,content:""}}else f={offset:h.offset,length:c.children[u+1].offset-h.offset,content:""};return Oo(e,f,i)}else throw new Error(`Can not add ${typeof l!="number"?"index":"property"} to parent of type ${c.type}`);else return s===void 0?[]:Oo(e,{offset:a?a.offset:0,length:a?a.length:0,content:JSON.stringify(s)},i)}function Oo(e,t,s){let i=rm(e,t),n=t.offset,r=t.offset+t.content.length;if(t.length===0||t.content.length===0){for(;n>0&&!Zu(i,n-1);)n--;for(;r<i.length&&!Zu(i,r);)r++}const o=TR(i,{offset:n,length:r-n},s);for(let c=o.length-1;c>=0;c--){const l=o[c];i=rm(i,l),n=Math.min(n,l.offset),r=Math.max(r,l.offset+l.length),r+=l.content.length-l.length}const a=e.length-(i.length-r)-n;return[{offset:n,length:a,content:i.substring(n,r)}]}function rm(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}function VR(e,t){const s=t.slice(0).sort((n,r)=>{const o=n.offset-r.offset;return o===0?n.length-r.length:o});let i=e.length;for(let n=s.length-1;n>=0;n--){const r=s[n];if(r.offset+r.length<=i)e=rm(e,r);else throw new Error("Overlapping edit");i=r.offset}return e}var WR=v({"out-build/vs/base/common/jsonEdit.js"(){"use strict";jn(),zR()}});function pn(e){if(!e||typeof e!="object"||e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach(([s,i])=>{t[s]=i&&typeof i=="object"?pn(i):i}),t}function qR(e){if(!e||typeof e!="object")return e;const t=[e];for(;t.length>0;){const s=t.shift();Object.freeze(s);for(const i in s)if(cm.call(s,i)){const n=s[i];typeof n=="object"&&!Object.isFrozen(n)&&!nL(n)&&t.push(n)}}return e}function Ci(e,t){return om(e,t,new Set)}function om(e,t,s){if(At(e))return e;const i=t(e);if(typeof i<"u")return i;if(Array.isArray(e)){const n=[];for(const r of e)n.push(om(r,t,s));return n}if(ft(e)){if(s.has(e))throw new Error("Cannot clone recursive data-structure");s.add(e);const n={};for(const r in e)cm.call(e,r)&&(n[r]=om(e[r],t,s));return s.delete(e),n}return e}function Co(e,t,s=!0){return ft(e)?(ft(t)&&Object.keys(t).forEach(i=>{i in e?s&&(ft(e[i])&&ft(t[i])?Co(e[i],t[i],s):e[i]=t[i]):e[i]=t[i]}),e):t}function ms(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;let s,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(s=0;s<e.length;s++)if(!ms(e[s],t[s]))return!1}else{const n=[];for(i in e)n.push(i);n.sort();const r=[];for(i in t)r.push(i);if(r.sort(),!ms(n,r))return!1;for(s=0;s<n.length;s++)if(!ms(e[n[s]],t[n[s]]))return!1}return!0}function am(e){const t=new Set;return JSON.stringify(e,(s,i)=>{if(ft(i)||Array.isArray(i)){if(t.has(i))return"[Circular]";t.add(i)}return typeof i=="bigint"?`[BigInt ${i.toString()}]`:i})}function L5(e,t){const s=t.toLowerCase(),i=Object.keys(e).find(n=>n.toLowerCase()===s);return i?e[i]:e[t]}var cm,Ft=v({"out-build/vs/base/common/objects.js"(){"use strict";be(),cm=Object.prototype.hasOwnProperty}});function lm(e){return e&&typeof e=="object"&&(!e.overrideIdentifier||typeof e.overrideIdentifier=="string")&&(!e.resource||e.resource instanceof y)}function GR(e){return e&&typeof e=="object"&&(!e.overrideIdentifiers||Array.isArray(e.overrideIdentifiers))&&!e.overrideIdentifier&&(!e.resource||e.resource instanceof y)}function JR(e){switch(e){case 1:return"APPLICATION";case 2:return"USER";case 3:return"USER_LOCAL";case 4:return"USER_REMOTE";case 5:return"WORKSPACE";case 6:return"WORKSPACE_FOLDER";case 7:return"DEFAULT";case 8:return"MEMORY"}}function um(e,t){const s=Object.create(null);for(const i in e)R5(s,i,e[i],t);return s}function R5(e,t,s,i){const n=t.split("."),r=n.pop();let o=e;for(let a=0;a<n.length;a++){const c=n[a];let l=o[c];switch(typeof l){case"undefined":l=o[c]=Object.create(null);break;case"object":if(l===null){i(`Ignoring ${t} as ${n.slice(0,a+1).join(".")} is null`);return}break;default:i(`Ignoring ${t} as ${n.slice(0,a+1).join(".")} is ${JSON.stringify(l)}`);return}o=l}if(typeof o=="object"&&o!==null)try{o[r]=s}catch{i(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}else i(`Ignoring ${t} as ${n.join(".")} is ${JSON.stringify(o)}`)}function ZR(e,t){const s=t.split(".");N5(e,s)}function N5(e,t){if(!e)return;const s=t.shift();if(t.length===0){delete e[s];return}if(Object.keys(e).indexOf(s)!==-1){const i=e[s];typeof i=="object"&&!Array.isArray(i)&&(N5(i,t),Object.keys(i).length===0&&delete e[s])}}function Yu(e,t,s){function i(o,a){let c=o;for(const l of a){if(typeof c!="object"||c===null)return;c=c[l]}return c}const n=t.split("."),r=i(e,n);return typeof r>"u"?s:r}function YR(e){return e.replace(/^\[/,"").replace(/]$/g,"").replace(/\]\[/g,", ")}var Zt,O5,Yt=v({"out-build/vs/platform/configuration/common/configuration.js"(){"use strict";Ln(),be(),Q(),ie(),Zt=X("configurationService"),function(e){e[e.APPLICATION=1]="APPLICATION",e[e.USER=2]="USER",e[e.USER_LOCAL=3]="USER_LOCAL",e[e.USER_REMOTE=4]="USER_REMOTE",e[e.WORKSPACE=5]="WORKSPACE",e[e.WORKSPACE_FOLDER=6]="WORKSPACE_FOLDER",e[e.DEFAULT=7]="DEFAULT",e[e.MEMORY=8]="MEMORY"}(O5||(O5={}))}});function QR(e){let t=!1;const s=new Map,i=new Map;if(XR(e,u=>{if(e===u)return!0;const h=JSON.stringify(u);if(h.length<30)return!0;const f=s.get(h);if(!f){const p={schemas:[u]};return s.set(h,p),i.set(u,p),!0}return f.schemas.push(u),i.set(u,f),t=!0,!1}),s.clear(),!t)return JSON.stringify(e);let r="$defs";for(;e.hasOwnProperty(r);)r+="_";const o=[];function a(u){return JSON.stringify(u,(h,f)=>{if(f!==u){const p=i.get(f);if(p&&p.schemas.length>1)return p.id||(p.id=`_${o.length}`,o.push(p.schemas[0])),{$ref:`#/${r}/${p.id}`}}return f})}const c=a(e),l=[];for(let u=0;u<o.length;u++)l.push(`"_${u}":${a(o[u])}`);return l.length?`${c.substring(0,c.length-1)},"${r}":{${l.join(",")}}}`:c}function _o(e){return typeof e=="object"&&e!==null}function XR(e,t){if(!e||typeof e!="object")return;const s=(...c)=>{for(const l of c)_o(l)&&o.push(l)},i=(...c)=>{for(const l of c)if(_o(l))for(const u in l){const h=l[u];_o(h)&&o.push(h)}},n=(...c)=>{for(const l of c)if(Array.isArray(l))for(const u of l)_o(u)&&o.push(u)},r=c=>{if(Array.isArray(c))for(const l of c)_o(l)&&o.push(l);else _o(c)&&o.push(c)},o=[e];let a=o.pop();for(;a;)t(a)&&(s(a.additionalItems,a.additionalProperties,a.not,a.contains,a.propertyNames,a.if,a.then,a.else,a.unevaluatedItems,a.unevaluatedProperties),i(a.definitions,a.$defs,a.properties,a.patternProperties,a.dependencies,a.dependentSchemas),n(a.anyOf,a.allOf,a.oneOf,a.prefixItems),r(a.items)),a=o.pop()}var KR=v({"out-build/vs/base/common/jsonSchema.js"(){"use strict"}}),C5,Bt,ui=v({"out-build/vs/platform/registry/common/platform.js"(){"use strict";Ln(),be(),C5=class{constructor(){this.a=new Map}add(e,t){lp(ue(e)),lp(ft(t)),lp(!this.a.has(e),"There is already an extension with this id"),this.a.set(e,t)}knows(e){return this.a.has(e)}as(e){return this.a.get(e)||null}dispose(){this.a.forEach(e=>{$u(e.dispose)&&e.dispose()}),this.a.clear()}},Bt=new C5}});function _5(e){return e.length>0&&e.charAt(e.length-1)==="#"?e.substring(0,e.length-1):e}var Qu,M5,U5,j5=v({"out-build/vs/platform/jsonschemas/common/jsonContributionRegistry.js"(){"use strict";re(),KR(),V(),ui(),Qu={JSONContribution:"base.contributions.json"},M5=class extends W{constructor(){super(...arguments),this.a={},this.b={},this.c=this.B(new D),this.onDidChangeSchema=this.c.event,this.f=this.B(new D),this.onDidChangeSchemaAssociations=this.f.event}registerSchema(e,t,s){const i=_5(e);this.a[i]=t,this.c.fire(e),s&&s.add(De(()=>{delete this.a[i],this.c.fire(e)}))}registerSchemaAssociation(e,t){const s=_5(e);return this.b[s]||(this.b[s]=[]),this.b[s].includes(t)||(this.b[s].push(t),this.f.fire()),De(()=>{const i=this.b[s];if(i){const n=i.indexOf(t);n!==-1&&(i.splice(n,1),i.length===0&&delete this.b[s],this.f.fire())}})}notifySchemaChanged(e){this.c.fire(e)}getSchemaContributions(){return{schemas:this.a}}getSchemaContent(e){const t=this.a[e];return t?QR(t):void 0}hasSchemaContent(e){return!!this.a[e]}getSchemaAssociations(){return this.b}},U5=new M5,Bt.add(Qu.JSONContribution,U5)}});function mc(e){const t=[];if(_i.test(e)){let s=fm.exec(e);for(;s?.length;){const i=s[1].trim();i&&t.push(i),s=fm.exec(e)}}return Ri(t)}function eN(e){return e.reduce((t,s)=>`${t}[${s}]`,"")}function tN(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}function sN(e,t){return e.trim()?_i.test(e)?m(1806,null,e):kc.getConfigurationProperties()[e]!==void 0?m(1807,null,e):t.policy?.name&&kc.getPolicyConfigurations().get(t.policy?.name)!==void 0?m(1808,null,e,t.policy?.name,kc.getPolicyConfigurations().get(t.policy?.name)):null:m(1805,null)}var T5,qs,F5,gc,wc,vc,bc,yc,Ec,Mo,Tn,xc,B5,hm,fm,mn,_i,kc,Ar=v({"out-build/vs/platform/configuration/common/configurationRegistry.js"(){"use strict";kt(),re(),be(),ce(),Yt(),j5(),ui(),V(),function(e){e.Multiline="multilineText",e.Singleline="singlelineText"}(T5||(T5={})),qs={Configuration:"base.contributions.configuration"},function(e){e[e.APPLICATION=1]="APPLICATION",e[e.MACHINE=2]="MACHINE",e[e.APPLICATION_MACHINE=3]="APPLICATION_MACHINE",e[e.WINDOW=4]="WINDOW",e[e.RESOURCE=5]="RESOURCE",e[e.LANGUAGE_OVERRIDABLE=6]="LANGUAGE_OVERRIDABLE",e[e.MACHINE_OVERRIDABLE=7]="MACHINE_OVERRIDABLE"}(F5||(F5={})),gc={properties:{},patternProperties:{}},wc={properties:{},patternProperties:{}},vc={properties:{},patternProperties:{}},bc={properties:{},patternProperties:{}},yc={properties:{},patternProperties:{}},Ec={properties:{},patternProperties:{}},Mo={properties:{},patternProperties:{}},Tn="vscode://schemas/settings/resourceLanguage",xc=Bt.as(Qu.JSONContribution),B5=class extends W{constructor(){super(),this.a=[],this.n=new Set,this.r=this.B(new D),this.onDidSchemaChange=this.r.event,this.s=this.B(new D),this.onDidUpdateConfiguration=this.s.event,this.b=new Map,this.c={id:"defaultOverrides",title:m(1799,null),properties:{}},this.f=[this.c],this.m={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.g={},this.h=new Map,this.j={},xc.registerSchema(Tn,this.m),this.N()}registerConfiguration(e,t=!0){return this.registerConfigurations([e],t),e}registerConfigurations(e,t=!0){const s=new Set;this.F(e,t,s),xc.registerSchema(Tn,this.m),this.r.fire(),this.s.fire({properties:s})}deregisterConfigurations(e){const t=new Set;this.G(e,t),xc.registerSchema(Tn,this.m),this.r.fire(),this.s.fire({properties:t})}updateConfigurations({add:e,remove:t}){const s=new Set;this.G(t,s),this.F(e,!1,s),xc.registerSchema(Tn,this.m),this.r.fire(),this.s.fire({properties:s})}registerDefaultConfigurations(e){const t=new Set;this.u(e,t),this.r.fire(),this.s.fire({properties:t,defaultsOverrides:!0})}u(e,t){this.a.push(...e);const s=[];for(const{overrides:i,source:n}of e)for(const r in i){t.add(r);const o=this.b.get(r)??this.b.set(r,{configurationDefaultOverrides:[]}).get(r),a=i[r];if(o.configurationDefaultOverrides.push({value:a,source:n}),_i.test(r)){const c=this.z(r,a,n,o.configurationDefaultOverrideValue);if(!c)continue;o.configurationDefaultOverrideValue=c,this.y(r,c,n),s.push(...mc(r))}else{const c=this.C(r,a,n,o.configurationDefaultOverrideValue);if(!c)continue;o.configurationDefaultOverrideValue=c;const l=this.g[r];l&&(this.O(r,l),this.J(r,l))}}this.D(s)}deregisterDefaultConfigurations(e){const t=new Set;this.w(e,t),this.r.fire(),this.s.fire({properties:t,defaultsOverrides:!0})}w(e,t){for(const s of e){const i=this.a.indexOf(s);i!==-1&&this.a.splice(i,1)}for(const{overrides:s,source:i}of e)for(const n in s){const r=this.b.get(n);if(!r)continue;const o=r.configurationDefaultOverrides.findIndex(a=>i?a.source?.id===i.id:a.value===s[n]);if(o!==-1){if(r.configurationDefaultOverrides.splice(o,1),r.configurationDefaultOverrides.length===0&&this.b.delete(n),_i.test(n)){let a;for(const c of r.configurationDefaultOverrides)a=this.z(n,c.value,c.source,a);a&&!dp(a.value)?(r.configurationDefaultOverrideValue=a,this.y(n,a,i)):(this.b.delete(n),delete this.g[n],delete this.c.properties[n])}else{let a;for(const l of r.configurationDefaultOverrides)a=this.C(n,l.value,l.source,a);r.configurationDefaultOverrideValue=a;const c=this.g[n];c&&(this.O(n,c),this.J(n,c))}t.add(n)}}this.M()}y(e,t,s){const i={type:"object",default:t.value,description:m(1800,null,YR(e)),$ref:Tn,defaultDefaultValue:t.value,source:s,defaultValueSource:s};this.g[e]=i,this.c.properties[e]=i}z(e,t,s,i){const n=i?.value||{},r=i?.source??new Map;if(!(r instanceof Map)){console.error("objectConfigurationSources is not a Map");return}for(const o of Object.keys(t)){const a=t[o];if(ft(a)&&(Vs(n[o])||ft(n[o]))){if(n[o]={...n[o]??{},...a},s)for(const l in a)r.set(`${o}.${l}`,s)}else n[o]=a,s?r.set(o,s):r.delete(o)}return{value:n,source:r}}C(e,t,s,i){const n=this.g[e],r=i?.value??n?.defaultDefaultValue;let o=s;if(ft(t)&&(n!==void 0&&n.type==="object"||n===void 0&&(Vs(r)||ft(r)))){if(o=i?.source??new Map,!(o instanceof Map)){console.error("defaultValueSource is not a Map");return}for(const c in t)s&&o.set(`${e}.${c}`,s);t={...ft(r)?r:{},...t}}return{value:t,source:o}}deltaConfiguration(e){let t=!1;const s=new Set;e.removedDefaults&&(this.w(e.removedDefaults,s),t=!0),e.addedDefaults&&(this.u(e.addedDefaults,s),t=!0),e.removedConfigurations&&this.G(e.removedConfigurations,s),e.addedConfigurations&&this.F(e.addedConfigurations,!1,s),this.r.fire(),this.s.fire({properties:s,defaultsOverrides:t})}notifyConfigurationSchemaUpdated(...e){this.r.fire()}registerOverrideIdentifiers(e){this.D(e),this.r.fire()}D(e){for(const t of e)this.n.add(t);this.M()}F(e,t,s){e.forEach(i=>{this.H(i,t,i.extensionInfo,i.restrictedProperties,void 0,s),this.f.push(i),this.I(i)})}G(e,t){const s=i=>{if(i.properties)for(const n in i.properties){t.add(n);const r=this.g[n];r?.policy?.name&&this.h.delete(r.policy.name),delete this.g[n],this.L(n,i.properties[n])}i.allOf?.forEach(n=>s(n))};for(const i of e){s(i);const n=this.f.indexOf(i);n!==-1&&this.f.splice(n,1)}}H(e,t=!0,s,i,n=4,r){n=At(e.scope)?n:e.scope;const o=e.properties;if(o)for(const c in o){const l=o[c];if(t&&sN(c,l)){delete o[c];continue}l.source=s,l.defaultDefaultValue=o[c].default,this.O(c,l),_i.test(c)?l.scope=void 0:(l.scope=At(l.scope)?n:l.scope,l.restricted=At(l.restricted)?!!i?.includes(c):l.restricted);const u=o[c].hasOwnProperty("included")&&!o[c].included,h=o[c].policy?.name;u?(this.j[c]=o[c],h&&(this.h.set(h,c),r.add(c)),delete o[c]):(r.add(c),h&&this.h.set(h,c),this.g[c]=o[c],!o[c].deprecationMessage&&o[c].markdownDeprecationMessage&&(o[c].deprecationMessage=o[c].markdownDeprecationMessage))}const a=e.allOf;if(a)for(const c of a)this.H(c,t,s,i,n,r)}getConfigurations(){return this.f}getConfigurationProperties(){return this.g}getPolicyConfigurations(){return this.h}getExcludedConfigurationProperties(){return this.j}getRegisteredDefaultConfigurations(){return[...this.a]}getConfigurationDefaultsOverrides(){const e=new Map;for(const[t,s]of this.b)s.configurationDefaultOverrideValue&&e.set(t,s.configurationDefaultOverrideValue);return e}I(e){const t=s=>{const i=s.properties;if(i)for(const r in i)this.J(r,i[r]);s.allOf?.forEach(t)};t(e)}J(e,t){switch(gc.properties[e]=t,t.scope){case 1:wc.properties[e]=t;break;case 2:bc.properties[e]=t;break;case 3:vc.properties[e]=t;break;case 7:yc.properties[e]=t;break;case 4:Ec.properties[e]=t;break;case 5:Mo.properties[e]=t;break;case 6:Mo.properties[e]=t,this.m.properties[e]=t;break}}L(e,t){switch(delete gc.properties[e],t.scope){case 1:delete wc.properties[e];break;case 2:delete bc.properties[e];break;case 3:delete vc.properties[e];break;case 7:delete yc.properties[e];break;case 4:delete Ec.properties[e];break;case 5:case 6:delete Mo.properties[e],delete this.m.properties[e];break}}M(){for(const e of this.n.values()){const t=`[${e}]`,s={type:"object",description:m(1801,null),errorMessage:m(1802,null),$ref:Tn};this.O(t,s),gc.properties[t]=s,wc.properties[t]=s,vc.properties[t]=s,bc.properties[t]=s,yc.properties[t]=s,Ec.properties[t]=s,Mo.properties[t]=s}}N(){const e={type:"object",description:m(1803,null),errorMessage:m(1804,null),$ref:Tn};gc.patternProperties[mn]=e,wc.patternProperties[mn]=e,vc.patternProperties[mn]=e,bc.patternProperties[mn]=e,yc.patternProperties[mn]=e,Ec.patternProperties[mn]=e,Mo.patternProperties[mn]=e,this.r.fire()}O(e,t){const s=this.b.get(e)?.configurationDefaultOverrideValue;let i,n;s&&(!t.disallowConfigurationDefault||!s.source)&&(i=s.value,n=s.source),Vs(i)&&(i=t.defaultDefaultValue,n=void 0),Vs(i)&&(i=tN(t.type)),t.default=i,t.defaultValueSource=n}},hm="\\[([^\\]]+)\\]",fm=new RegExp(hm,"g"),mn=`^(${hm})+$`,_i=new RegExp(mn),kc=new B5,Bt.add(qs.Configuration,kc)}});function $c(e){return Object.isFrozen(e)?e:qR(e)}function Fn(e,t){const{added:s,removed:i,updated:n}=z5(t?.rawConfiguration,e?.rawConfiguration),r=[],o=e?.getAllOverrideIdentifiers()||[],a=t?.getAllOverrideIdentifiers()||[];if(t){const c=a.filter(l=>!o.includes(l));for(const l of c)r.push([l,t.getKeysForOverrideIdentifier(l)])}if(e){const c=o.filter(l=>!a.includes(l));for(const l of c)r.push([l,e.getKeysForOverrideIdentifier(l)])}if(t&&e){for(const c of o)if(a.includes(c)){const l=z5({contents:e.getOverrideValue(void 0,c)||{},keys:e.getKeysForOverrideIdentifier(c)},{contents:t.getOverrideValue(void 0,c)||{},keys:t.getKeysForOverrideIdentifier(c)});r.push([c,[...l.added,...l.removed,...l.updated]])}}return{added:s,removed:i,updated:n,overrides:r}}function z5(e,t){const s=e?t?e.keys.filter(r=>t.keys.indexOf(r)===-1):[...e.keys]:[],i=t?e?t.keys.filter(r=>e.keys.indexOf(r)===-1):[...t.keys]:[],n=[];if(e&&t){for(const r of t.keys)if(e.keys.indexOf(r)!==-1){const o=Yu(t.contents,r),a=Yu(e.contents,r);ms(o,a)||n.push(r)}}return{added:s,removed:i,updated:n}}var vt,dm,H5,V5,Xu,W5,q5=v({"out-build/vs/platform/configuration/common/configurationModels.js"(){"use strict";kt(),re(),jn(),V(),Jt(),Ft(),be(),Q(),Yt(),Ar(),ui(),vt=class oo{static createEmptyModel(t){return new oo({},[],[],void 0,t)}constructor(t,s,i,n,r){this.b=t,this.c=s,this.d=i,this.raw=n,this.f=r,this.a=new Map}get rawConfiguration(){if(!this.g)if(this.raw){const t=(Array.isArray(this.raw)?this.raw:[this.raw]).map(s=>{if(s instanceof oo)return s;const i=new dm("",this.f);return i.parseRaw(s),i.configurationModel});this.g=t.reduce((s,i)=>i===s?i:s.merge(i),t[0])}else this.g=this;return this.g}get contents(){return this.b}get overrides(){return this.d}get keys(){return this.c}isEmpty(){return this.c.length===0&&Object.keys(this.b).length===0&&this.d.length===0}getValue(t){return t?Yu(this.contents,t):this.contents}inspect(t,s){const i=this;return{get value(){return $c(i.rawConfiguration.getValue(t))},get override(){return s?$c(i.rawConfiguration.getOverrideValue(t,s)):void 0},get merged(){return $c(s?i.rawConfiguration.override(s).getValue(t):i.rawConfiguration.getValue(t))},get overrides(){const n=[];for(const{contents:r,identifiers:o,keys:a}of i.rawConfiguration.overrides){const c=new oo(r,a,[],void 0,i.f).getValue(t);c!==void 0&&n.push({identifiers:o,value:c})}return n.length?$c(n):void 0}}}getOverrideValue(t,s){const i=this.j(s);return i?t?Yu(i,t):i:void 0}getKeysForOverrideIdentifier(t){const s=[];for(const i of this.overrides)i.identifiers.includes(t)&&s.push(...i.keys);return Ri(s)}getAllOverrideIdentifiers(){const t=[];for(const s of this.overrides)t.push(...s.identifiers);return Ri(t)}override(t){let s=this.a.get(t);return s||(s=this.h(t),this.a.set(t,s)),s}merge(...t){const s=pn(this.contents),i=pn(this.overrides),n=[...this.keys],r=this.raw?Array.isArray(this.raw)?[...this.raw]:[this.raw]:[this];for(const o of t)if(r.push(...o.raw?Array.isArray(o.raw)?o.raw:[o.raw]:[o]),!o.isEmpty()){this.i(s,o.contents);for(const a of o.overrides){const[c]=i.filter(l=>rn(l.identifiers,a.identifiers));c?(this.i(c.contents,a.contents),c.keys.push(...a.keys),c.keys=Ri(c.keys)):i.push(pn(a))}for(const a of o.keys)n.indexOf(a)===-1&&n.push(a)}return new oo(s,n,i,!r.length||r.every(o=>o instanceof oo)?void 0:r,this.f)}h(t){const s=this.j(t);if(!s||typeof s!="object"||!Object.keys(s).length)return this;const i={};for(const n of Ri([...Object.keys(this.contents),...Object.keys(s)])){let r=this.contents[n];const o=s[n];o&&(typeof r=="object"&&typeof o=="object"?(r=pn(r),this.i(r,o)):r=o),i[n]=r}return new oo(i,this.keys,this.overrides,void 0,this.f)}i(t,s){for(const i of Object.keys(s)){if(i in t&&ft(t[i])&&ft(s[i])){this.i(t[i],s[i]);continue}t[i]=pn(s[i])}}j(t){let s=null,i=null;const n=r=>{r&&(i?this.i(i,r):i=pn(r))};for(const r of this.overrides)r.identifiers.length===1&&r.identifiers[0]===t?s=r.contents:r.identifiers.includes(t)&&n(r.contents);return n(s),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(t,s){this.k(t,s,!0)}setValue(t,s){this.k(t,s,!1)}removeValue(t){const s=this.keys.indexOf(t);s!==-1&&(this.keys.splice(s,1),ZR(this.contents,t),_i.test(t)&&this.overrides.splice(this.overrides.findIndex(i=>rn(i.identifiers,mc(t))),1))}k(t,s,i){if(R5(this.contents,t,s,n=>this.f.error(n)),i=i||this.keys.indexOf(t)===-1,i&&this.keys.push(t),_i.test(t)){const n=mc(t),r={identifiers:n,keys:Object.keys(this.contents[t]),contents:um(this.contents[t],a=>this.f.error(a))},o=this.overrides.findIndex(a=>rn(a.identifiers,n));o!==-1?this.overrides[o]=r:this.overrides.push(r)}}},dm=class{constructor(e,t){this.f=e,this.g=t,this.a=null,this.b=null,this.c=[],this.d=[]}get configurationModel(){return this.b||vt.createEmptyModel(this.g)}get restrictedConfigurations(){return this.c}get errors(){return this.d}parse(e,t){if(!At(e)){const s=this.h(e);this.parseRaw(s,t)}}reparse(e){this.a&&this.parseRaw(this.a,e)}parseRaw(e,t){this.a=e;const{contents:s,keys:i,overrides:n,restricted:r,hasExcludedProperties:o}=this.i(e,t);this.b=new vt(s,i,n,o?[e]:void 0,this.g),this.c=r||[]}h(e){let t={},s=null,i=[];const n=[],r=[];function o(c){Array.isArray(i)?i.push(c):s!==null&&(i[s]=c)}const a={onObjectBegin:()=>{const c={};o(c),n.push(i),i=c,s=null},onObjectProperty:c=>{s=c},onObjectEnd:()=>{i=n.pop()},onArrayBegin:()=>{const c=[];o(c),n.push(i),i=c,s=null},onArrayEnd:()=>{i=n.pop()},onLiteralValue:o,onError:(c,l,u)=>{r.push({error:c,offset:l,length:u})}};if(e)try{Ju(e,a),t=i[0]||{}}catch(c){this.g.error(`Error while parsing settings file ${this.f}: ${c}`),this.d=[c]}return t}i(e,t){const s=Bt.as(qs.Configuration).getConfigurationProperties(),i=this.j(e,s,!0,t);e=i.raw;const n=um(e,a=>this.g.error(`Conflict in settings file ${this.f}: ${a}`)),r=Object.keys(e),o=this.m(e,a=>this.g.error(`Conflict in settings file ${this.f}: ${a}`));return{contents:n,keys:r,overrides:o,restricted:i.restricted,hasExcludedProperties:i.hasExcludedProperties}}j(e,t,s,i){let n=!1;if(!i?.scopes&&!i?.skipRestricted&&!i?.exclude?.length)return{raw:e,restricted:[],hasExcludedProperties:n};const r={},o=[];for(const a in e)if(_i.test(a)&&s){const c=this.j(e[a],t,!1,i);r[a]=c.raw,n=n||c.hasExcludedProperties,o.push(...c.restricted)}else{const c=t[a];c?.restricted&&o.push(a),this.l(a,c,i)?r[a]=e[a]:n=!0}return{raw:r,restricted:o,hasExcludedProperties:n}}l(e,t,s){if(s.exclude?.includes(e))return!1;if(s.include?.includes(e))return!0;if(s.skipRestricted&&t?.restricted||s.skipUnregistered&&!t)return!1;const i=t?typeof t.scope<"u"?t.scope:4:void 0;return i===void 0||s.scopes===void 0?!0:s.scopes.includes(i)}m(e,t){const s=[];for(const i of Object.keys(e))if(_i.test(i)){const n={};for(const r in e[i])n[r]=e[i][r];s.push({identifiers:mc(i),keys:Object.keys(n),contents:um(n,t)})}return s}},H5=class extends W{constructor(e,t,s,i,n){super(),this.c=e,this.f=t,this.g=i,this.h=n,this.b=this.B(new D),this.onDidChange=this.b.event,this.a=new dm(this.c.toString(),n),this.B(this.g.watch(s.dirname(this.c))),this.B(this.g.watch(this.c)),this.B(B.any(B.filter(this.g.onDidFilesChange,r=>r.contains(this.c)),B.filter(this.g.onDidRunOperation,r=>(r.isOperation(0)||r.isOperation(3)||r.isOperation(1)||r.isOperation(4))&&s.isEqual(r.resource,e)))(()=>this.b.fire()))}async loadConfiguration(){try{const e=await this.g.readFile(this.c);return this.a.parse(e.value.toString()||"{}",this.f),this.a.configurationModel}catch{return vt.createEmptyModel(this.h)}}reparse(e){return e&&(this.f=e),this.a.reparse(this.f),this.a.configurationModel}getRestrictedSettings(){return this.a.restrictedConfigurations}},V5=class{constructor(e,t,s,i,n,r,o,a,c,l,u,h,f){this.a=e,this.b=t,this.c=s,this.overrideIdentifiers=i,this.d=n,this.f=r,this.g=o,this.h=a,this.i=c,this.j=l,this.k=u,this.l=h,this.m=f}get value(){return $c(this.c)}n(e){return e?.value!==void 0||e?.override!==void 0||e?.overrides!==void 0?e:void 0}get q(){return this.p||(this.p=this.d.inspect(this.a,this.b.overrideIdentifier)),this.p}get defaultValue(){return this.q.merged}get default(){return this.n(this.q)}get s(){return this.r===void 0&&(this.r=this.f?this.f.inspect(this.a):null),this.r}get policyValue(){return this.s?.merged}get policy(){return this.s?.value!==void 0?{value:this.s.value}:void 0}get u(){return this.t===void 0&&(this.t=this.g?this.g.inspect(this.a):null),this.t}get applicationValue(){return this.u?.merged}get application(){return this.n(this.u)}get w(){return this.v||(this.v=this.h.inspect(this.a,this.b.overrideIdentifier)),this.v}get userValue(){return this.w.merged}get user(){return this.n(this.w)}get y(){return this.x||(this.x=this.i.inspect(this.a,this.b.overrideIdentifier)),this.x}get userLocalValue(){return this.y.merged}get userLocal(){return this.n(this.y)}get A(){return this.z||(this.z=this.j.inspect(this.a,this.b.overrideIdentifier)),this.z}get userRemoteValue(){return this.A.merged}get userRemote(){return this.n(this.A)}get D(){return this.B===void 0&&(this.B=this.k?this.k.inspect(this.a,this.b.overrideIdentifier):null),this.B}get workspaceValue(){return this.D?.merged}get workspace(){return this.n(this.D)}get F(){return this.E===void 0&&(this.E=this.l?this.l.inspect(this.a,this.b.overrideIdentifier):null),this.E}get workspaceFolderValue(){return this.F?.merged}get workspaceFolder(){return this.n(this.F)}get H(){return this.G===void 0&&(this.G=this.m.inspect(this.a,this.b.overrideIdentifier)),this.G}get memoryValue(){return this.H.merged}get memory(){return this.n(this.H)}},Xu=class oA{constructor(t,s,i,n,r,o,a,c,l,u){this.j=t,this.l=s,this.m=i,this.n=n,this.p=r,this.q=o,this.r=a,this.s=c,this.t=l,this.u=u,this.h=null,this.i=new wt,this.v=null}getValue(t,s,i){return this.w(t,s,i).getValue(t)}updateValue(t,s,i={}){let n;i.resource?(n=this.t.get(i.resource),n||(n=vt.createEmptyModel(this.u),this.t.set(i.resource,n))):n=this.s,s===void 0?n.removeValue(t):n.setValue(t,s),i.resource||(this.h=null)}inspect(t,s,i){const n=this.w(t,s,i),r=this.A(s.resource,i),o=s.resource?this.t.get(s.resource)||this.s:this.s,a=new Set;for(const c of n.overrides)for(const l of c.identifiers)n.getOverrideValue(t,l)!==void 0&&a.add(l);return new V5(t,s,n.getValue(t),a.size?[...a]:void 0,this.j,this.l.isEmpty()?void 0:this.l,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this.q:void 0,r||void 0,o)}keys(t){const s=this.A(void 0,t);return{default:this.j.keys.slice(0),user:this.userConfiguration.keys.slice(0),workspace:this.q.keys.slice(0),workspaceFolder:s?s.keys.slice(0):[]}}updateDefaultConfiguration(t){this.j=t,this.h=null,this.i.clear()}updatePolicyConfiguration(t){this.l=t}updateApplicationConfiguration(t){this.m=t,this.h=null,this.i.clear()}updateLocalUserConfiguration(t){this.n=t,this.v=null,this.h=null,this.i.clear()}updateRemoteUserConfiguration(t){this.p=t,this.v=null,this.h=null,this.i.clear()}updateWorkspaceConfiguration(t){this.q=t,this.h=null,this.i.clear()}updateFolderConfiguration(t,s){this.r.set(t,s),this.i.delete(t)}deleteFolderConfiguration(t){this.folderConfigurations.delete(t),this.i.delete(t)}compareAndUpdateDefaultConfiguration(t,s){const i=[];if(!s){const{added:n,updated:r,removed:o}=Fn(this.j,t);s=[...n,...r,...o]}for(const n of s)for(const r of mc(n)){const o=this.j.getKeysForOverrideIdentifier(r),a=t.getKeysForOverrideIdentifier(r),c=[...a.filter(l=>o.indexOf(l)===-1),...o.filter(l=>a.indexOf(l)===-1),...o.filter(l=>!ms(this.j.override(r).getValue(l),t.override(r).getValue(l)))];i.push([r,c])}return this.updateDefaultConfiguration(t),{keys:s,overrides:i}}compareAndUpdatePolicyConfiguration(t){const{added:s,updated:i,removed:n}=Fn(this.l,t),r=[...s,...i,...n];return r.length&&this.updatePolicyConfiguration(t),{keys:r,overrides:[]}}compareAndUpdateApplicationConfiguration(t){const{added:s,updated:i,removed:n,overrides:r}=Fn(this.applicationConfiguration,t),o=[...s,...i,...n];return o.length&&this.updateApplicationConfiguration(t),{keys:o,overrides:r}}compareAndUpdateLocalUserConfiguration(t){const{added:s,updated:i,removed:n,overrides:r}=Fn(this.localUserConfiguration,t),o=[...s,...i,...n];return o.length&&this.updateLocalUserConfiguration(t),{keys:o,overrides:r}}compareAndUpdateRemoteUserConfiguration(t){const{added:s,updated:i,removed:n,overrides:r}=Fn(this.remoteUserConfiguration,t),o=[...s,...i,...n];return o.length&&this.updateRemoteUserConfiguration(t),{keys:o,overrides:r}}compareAndUpdateWorkspaceConfiguration(t){const{added:s,updated:i,removed:n,overrides:r}=Fn(this.workspaceConfiguration,t),o=[...s,...i,...n];return o.length&&this.updateWorkspaceConfiguration(t),{keys:o,overrides:r}}compareAndUpdateFolderConfiguration(t,s){const i=this.folderConfigurations.get(t),{added:n,updated:r,removed:o,overrides:a}=Fn(i,s),c=[...n,...r,...o];return(c.length||!i)&&this.updateFolderConfiguration(t,s),{keys:c,overrides:a}}compareAndDeleteFolderConfiguration(t){const s=this.folderConfigurations.get(t);if(!s)throw new Error("Unknown folder");this.deleteFolderConfiguration(t);const{added:i,updated:n,removed:r,overrides:o}=Fn(s,void 0);return{keys:[...i,...n,...r],overrides:o}}get defaults(){return this.j}get applicationConfiguration(){return this.m}get userConfiguration(){if(!this.v)if(this.p.isEmpty())this.v=this.n;else{const t=this.n.merge(this.p);this.v=new vt(t.contents,t.keys,t.overrides,void 0,this.u)}return this.v}get localUserConfiguration(){return this.n}get remoteUserConfiguration(){return this.p}get workspaceConfiguration(){return this.q}get folderConfigurations(){return this.r}w(t,s,i){let n=this.x(s,i);if(s.overrideIdentifier&&(n=n.override(s.overrideIdentifier)),!this.l.isEmpty()&&this.l.getValue(t)!==void 0){n=n.merge();for(const r of this.l.keys)n.setValue(r,this.l.getValue(r))}return n}x({resource:t},s){let i=this.y();if(s&&t){const n=s.getFolder(t);n&&(i=this.z(n.uri)||i);const r=this.t.get(t);r&&(i=i.merge(r))}return i}y(){return this.h||(this.h=this.j.merge(this.applicationConfiguration,this.userConfiguration,this.q,this.s)),this.h}z(t){let s=this.i.get(t);if(!s){const i=this.y(),n=this.r.get(t);n?(s=i.merge(n),this.i.set(t,s)):s=i}return s}A(t,s){if(s&&t){const i=s.getFolder(t);if(i)return this.r.get(i.uri)}}toData(){return{defaults:{contents:this.j.contents,overrides:this.j.overrides,keys:this.j.keys},policy:{contents:this.l.contents,overrides:this.l.overrides,keys:this.l.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys,raw:Array.isArray(this.applicationConfiguration.raw)?void 0:this.applicationConfiguration.raw},userLocal:{contents:this.localUserConfiguration.contents,overrides:this.localUserConfiguration.overrides,keys:this.localUserConfiguration.keys,raw:Array.isArray(this.localUserConfiguration.raw)?void 0:this.localUserConfiguration.raw},userRemote:{contents:this.remoteUserConfiguration.contents,overrides:this.remoteUserConfiguration.overrides,keys:this.remoteUserConfiguration.keys,raw:Array.isArray(this.remoteUserConfiguration.raw)?void 0:this.remoteUserConfiguration.raw},workspace:{contents:this.q.contents,overrides:this.q.overrides,keys:this.q.keys},folders:[...this.r.keys()].reduce((t,s)=>{const{contents:i,overrides:n,keys:r}=this.r.get(s);return t.push([s,{contents:i,overrides:n,keys:r}]),t},[])}}allKeys(){const t=new Set;return this.j.keys.forEach(s=>t.add(s)),this.userConfiguration.keys.forEach(s=>t.add(s)),this.q.keys.forEach(s=>t.add(s)),this.r.forEach(s=>s.keys.forEach(i=>t.add(i))),[...t.values()]}B(){const t=new Set;return this.j.getAllOverrideIdentifiers().forEach(s=>t.add(s)),this.userConfiguration.getAllOverrideIdentifiers().forEach(s=>t.add(s)),this.q.getAllOverrideIdentifiers().forEach(s=>t.add(s)),this.r.forEach(s=>s.getAllOverrideIdentifiers().forEach(i=>t.add(i))),[...t.values()]}D(t){const s=new Set;return this.j.getKeysForOverrideIdentifier(t).forEach(i=>s.add(i)),this.userConfiguration.getKeysForOverrideIdentifier(t).forEach(i=>s.add(i)),this.q.getKeysForOverrideIdentifier(t).forEach(i=>s.add(i)),this.r.forEach(i=>i.getKeysForOverrideIdentifier(t).forEach(n=>s.add(n))),[...s.values()]}static parse(t,s){const i=this.E(t.defaults,s),n=this.E(t.policy,s),r=this.E(t.application,s),o=this.E(t.userLocal,s),a=this.E(t.userRemote,s),c=this.E(t.workspace,s),l=t.folders.reduce((u,h)=>(u.set(y.revive(h[0]),this.E(h[1],s)),u),new wt);return new oA(i,n,r,o,a,c,l,vt.createEmptyModel(s),new wt,s)}static E(t,s){return new vt(t.contents,t.keys,t.overrides,t.raw,s)}},W5=class{constructor(e,t,s,i,n){this.change=e,this.f=t,this.g=s,this.h=i,this.i=n,this.a=`
`,this.b=this.a.charCodeAt(0),this.c=46,this.affectedKeys=new Set,this.j=void 0;for(const r of e.keys)this.affectedKeys.add(r);for(const[,r]of e.overrides)for(const o of r)this.affectedKeys.add(o);this.d=this.a;for(const r of this.affectedKeys)this.d+=r+this.a}get previousConfiguration(){return!this.j&&this.f&&(this.j=Xu.parse(this.f.data,this.i)),this.j}affectsConfiguration(e,t){const s=this.a+e,i=this.d.indexOf(s);if(i<0)return!1;const n=i+s.length;if(n>=this.d.length)return!1;const r=this.d.charCodeAt(n);if(r!==this.b&&r!==this.c)return!1;if(t){const o=this.previousConfiguration?this.previousConfiguration.getValue(e,t,this.f?.workspace):void 0,a=this.g.getValue(e,t,this.h);return!ms(o,a)}return!0}}}}),G5,Ku,eh=v({"out-build/vs/platform/policy/common/policy.js"(){"use strict";re(),wr(),V(),ie(),G5=X("policy"),Ku=class{constructor(){this.onDidChange=B.None,this.policyDefinitions={}}async updatePolicyDefinitions(){return{}}getPolicyValue(){}serialize(){}}}}),J5,Z5,th,iN=v({"out-build/vs/platform/configuration/common/configurations.js"(){"use strict";kt(),re(),V(),Ft(),be(),q5(),Ar(),Ie(),eh(),ui(),ge(),jn(),J5=class extends W{get configurationModel(){return this.b}constructor(e){super(),this.c=e,this.a=this.B(new D),this.onDidChangeConfiguration=this.a.event,this.b=vt.createEmptyModel(e)}async initialize(){return this.h(),this.B(Bt.as(qs.Configuration).onDidUpdateConfiguration(({properties:e,defaultsOverrides:t})=>this.f(Array.from(e),t))),this.configurationModel}reload(){return this.h(),this.configurationModel}f(e,t){this.j(e,Bt.as(qs.Configuration).getConfigurationProperties()),this.a.fire({defaults:this.configurationModel,properties:e})}g(){return{}}h(){this.b=vt.createEmptyModel(this.c);const e=Bt.as(qs.Configuration).getConfigurationProperties();this.j(Object.keys(e),e)}j(e,t){const s=this.g();for(const i of e){const n=s[i],r=t[i];n!==void 0?this.b.setValue(i,n):r?this.b.setValue(i,pn(r.default)):this.b.removeValue(i)}}},Z5=class{constructor(){this.onDidChangeConfiguration=B.None,this.configurationModel=vt.createEmptyModel(new k5)}async initialize(){return this.configurationModel}},th=class extends W{get configurationModel(){return this.c}constructor(t,s,i){super(),this.f=t,this.g=s,this.h=i,this.a=this.B(new D),this.onDidChangeConfiguration=this.a.event,this.c=vt.createEmptyModel(this.h),this.b=Bt.as(qs.Configuration)}async initialize(){return this.h.trace("PolicyConfiguration#initialize"),this.n(await this.j(this.f.configurationModel.keys),!1),this.n(await this.j(Object.keys(this.b.getExcludedConfigurationProperties())),!1),this.B(this.g.onDidChange(t=>this.m(t))),this.B(this.f.onDidChangeConfiguration(async({properties:t})=>this.n(await this.j(t),!0))),this.c}async j(t){this.h.trace("PolicyConfiguration#updatePolicyDefinitions",t);const s={},i=[],n=this.b.getConfigurationProperties(),r=this.b.getExcludedConfigurationProperties();for(const o of t){const a=n[o]??r[o];if(!a){i.push(o);continue}if(a.policy){if(a.type!=="string"&&a.type!=="number"&&a.type!=="array"&&a.type!=="object"&&a.type!=="boolean"){this.h.warn(`Policy ${a.policy.name} has unsupported type ${a.type}`);continue}const{defaultValue:c,previewFeature:l}=a.policy;i.push(o),s[a.policy.name]={type:a.type==="number"?"number":a.type==="boolean"?"boolean":"string",previewFeature:l,defaultValue:c}}}return dp(s)||await this.g.updatePolicyDefinitions(s),i}m(t){this.h.trace("PolicyConfiguration#onDidChangePolicies",t);const s=this.b.getPolicyConfigurations(),i=ai(t.map(n=>s.get(n)));this.n(i,!0)}n(t,s){this.h.trace("PolicyConfiguration#update",t);const i=this.b.getConfigurationProperties(),n=this.b.getExcludedConfigurationProperties(),r=[],o=this.c.isEmpty();for(const a of t){const c=i[a]??n[a],l=c?.policy?.name;if(l){let u=this.g.getPolicyValue(l);if(ue(u)&&c.type!=="string")try{u=this.r(u)}catch(h){this.h.error(`Error parsing policy value ${l}:`,de(h));continue}(o?u!==void 0:!ms(this.c.getValue(a),u))&&r.push([a,u])}else this.c.getValue(a)!==void 0&&r.push([a,void 0])}if(r.length){this.h.trace("PolicyConfiguration#changed",r);const a=this.c;this.c=vt.createEmptyModel(this.h);for(const c of a.keys)this.c.setValue(c,a.getValue(c));for(const[c,l]of r)l===void 0?this.c.removeValue(c):this.c.setValue(c,l);s&&this.a.fire(this.c)}}r(t){let s={},i=null,n=[];const r=[],o=[];function a(l){if(Array.isArray(n))n.push(l);else if(i!==null){if(n[i]!==void 0)throw new Error(`Duplicate property found: ${i}`);n[i]=l}}if(t&&(Ju(t,{onObjectBegin:()=>{const l={};a(l),r.push(n),n=l,i=null},onObjectProperty:l=>{i=l},onObjectEnd:()=>{n=r.pop()},onArrayBegin:()=>{const l=[];a(l),r.push(n),n=l,i=null},onArrayEnd:()=>{n=r.pop()},onLiteralValue:a,onError:(l,u,h)=>{o.push({error:l,offset:u,length:h})}}),s=n[0]||{}),o.length>0)throw new Error(o.map(l=>de(l.error)).join(`
`));return s}},th=__decorate([__param(1,G5),__param(2,fe)],th)}}),pm,Y5,Q5=v({"out-build/vs/platform/configuration/common/configurationService.js"(){"use strict";kt(),Ae(),Le(),re(),jn(),WR(),V(),Jt(),Ft(),te(),ct(),Yt(),q5(),Ar(),iN(),eh(),pm=class extends W{constructor(e,t,s,i){super(),this.m=e,this.n=i,this.h=this.B(new D),this.onDidChangeConfiguration=this.h.event,this.b=this.B(new J5(i)),this.c=s instanceof Ku?new Z5:this.B(new th(this.b,s,i)),this.f=this.B(new H5(this.m,{},Ou,t,i)),this.a=new Xu(this.b.configurationModel,this.c.configurationModel,vt.createEmptyModel(i),vt.createEmptyModel(i),vt.createEmptyModel(i),vt.createEmptyModel(i),new wt,vt.createEmptyModel(i),new wt,i),this.j=new Y5(e,t,this),this.g=this.B(new kr(()=>this.reloadConfiguration(),50)),this.B(this.b.onDidChangeConfiguration(({defaults:n,properties:r})=>this.s(n,r))),this.B(this.c.onDidChangeConfiguration(n=>this.t(n))),this.B(this.f.onDidChange(()=>this.g.schedule()))}async initialize(){const[e,t,s]=await Promise.all([this.b.initialize(),this.c.initialize(),this.f.loadConfiguration()]);this.a=new Xu(e,t,vt.createEmptyModel(this.n),s,vt.createEmptyModel(this.n),vt.createEmptyModel(this.n),new wt,vt.createEmptyModel(this.n),new wt,this.n)}getConfigurationData(){return this.a.toData()}getValue(e,t){const s=typeof e=="string"?e:void 0,i=lm(e)?e:lm(t)?t:{};return this.a.getValue(s,i,void 0)}async updateValue(e,t,s,i,n){const r=GR(s)?s:lm(s)?{resource:s.resource,overrideIdentifiers:s.overrideIdentifier?[s.overrideIdentifier]:void 0}:void 0,o=r?i:s;if(o!==void 0&&o!==3&&o!==2)throw new Error(`Unable to write ${e} to target ${o}.`);r?.overrideIdentifiers&&(r.overrideIdentifiers=Ri(r.overrideIdentifiers),r.overrideIdentifiers=r.overrideIdentifiers.length?r.overrideIdentifiers:void 0);const a=this.inspect(e,{resource:r?.resource,overrideIdentifier:r?.overrideIdentifiers?r.overrideIdentifiers[0]:void 0});if(a.policyValue!==void 0)throw new Error(`Unable to write ${e} because it is configured in system policy.`);if(ms(t,a.defaultValue)&&(t=void 0),r?.overrideIdentifiers?.length&&r.overrideIdentifiers.length>1){const l=r.overrideIdentifiers.sort(),u=this.a.localUserConfiguration.overrides.find(h=>rn([...h.identifiers].sort(),l));u&&(r.overrideIdentifiers=u.identifiers)}const c=r?.overrideIdentifiers?.length?[eN(r.overrideIdentifiers),e]:[e];await this.j.write(c,t),await this.reloadConfiguration()}inspect(e,t={}){return this.a.inspect(e,t,void 0)}keys(){return this.a.keys(void 0)}async reloadConfiguration(){const e=await this.f.loadConfiguration();this.r(e)}r(e){const t=this.a.toData(),s=this.a.compareAndUpdateLocalUserConfiguration(e);this.u(s,t,2)}s(e,t){const s=this.a.toData(),i=this.a.compareAndUpdateDefaultConfiguration(e,t);this.u(i,s,7)}t(e){const t=this.a.toData(),s=this.a.compareAndUpdatePolicyConfiguration(e);this.u(s,t,7)}u(e,t,s){const i=new W5(e,{data:t},this.a,void 0,this.n);i.source=s,this.h.fire(i)}},Y5=class{constructor(e,t,s){this.b=e,this.c=t,this.d=s,this.a=new xr}write(e,t){return this.a.queue(()=>this.e(e,t))}async e(e,t){let s;try{s=(await this.c.readFile(this.b)).value.toString()}catch(r){if(r.fileOperationResult===1)s="{}";else throw r}const i=[];if(Un(s,i,{allowTrailingComma:!0,allowEmptyContent:!0}),i.length>0)throw new Error("Unable to write into the settings file. Please open the file to correct errors/warnings in the file and try again.");const n=this.f(s,e,t);s=VR(s,n),await this.c.writeFile(this.b,R.fromString(s))}f(e,t,s){const{tabSize:i,insertSpaces:n,eol:r}=this.h;if(!t.length){const o=JSON.stringify(s,null,n?" ".repeat(i):"	");return[{content:o,length:o.length,offset:0}]}return HR(e,t,s,{tabSize:i,insertSpaces:n,eol:r})}get h(){if(!this.g){let e=dr===3||dr===2?`
`:`\r
`;const t=this.d.getValue("files.eol",{overrideIdentifier:"jsonc"});t&&typeof t=="string"&&t!=="auto"&&(e=t),this.g={eol:e,insertSpaces:!!this.d.getValue("editor.insertSpaces",{overrideIdentifier:"jsonc"}),tabSize:this.d.getValue("editor.tabSize",{overrideIdentifier:"jsonc"})}}return this.g}}}});function mm(e){return e.res.statusCode&&e.res.statusCode>=200&&e.res.statusCode<300||e.res.statusCode===1223}function X5(e){return e.res.statusCode===204}async function K5(e){return X5(e)?null:(await fn(e.stream)).toString()}async function Lr(e){if(!mm(e))throw new Error("Server returned "+e.res.statusCode);return K5(e)}async function Uo(e){if(!mm(e))throw new Error("Server returned "+e.res.statusCode);if(X5(e))return null;const s=(await fn(e.stream)).toString();try{return JSON.parse(s)}catch(i){throw i.message+=`:
`+s,i}}function nN(e=!0,t=!0){if(gm===e&&wm===t)return;gm=e,wm=t;const s=Bt.as(qs.Configuration),i=sh;sh=[{id:"http",order:15,title:m(2236,null),type:"object",scope:2,properties:{"http.useLocalProxyConfiguration":{type:"boolean",default:t,markdownDescription:m(2237,null),restricted:!0}}},{id:"http",order:15,title:m(2238,null),type:"object",scope:1,properties:{"http.electronFetch":{type:"boolean",default:!1,description:m(2239,null),restricted:!0}}},{id:"http",order:15,title:m(2240,null),type:"object",scope:e?1:2,properties:{"http.proxy":{type:"string",pattern:"^(https?|socks|socks4a?|socks5h?)://([^:]*(:[^@]*)?@)?([^:]+|\\[[:0-9a-fA-F]+\\])(:\\d+)?/?$|^$",markdownDescription:m(2241,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.proxyStrictSSL":{type:"boolean",default:!0,markdownDescription:m(2242,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.proxyKerberosServicePrincipal":{type:"string",markdownDescription:m(2243,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.noProxy":{type:"array",items:{type:"string"},markdownDescription:m(2244,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.proxyAuthorization":{type:["null","string"],default:null,markdownDescription:m(2245,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.proxySupport":{type:"string",enum:["off","on","fallback","override"],enumDescriptions:[m(2246,null),m(2247,null),m(2248,null),m(2249,null)],default:"override",markdownDescription:m(2250,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.systemCertificates":{type:"boolean",default:!0,markdownDescription:m(2251,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.experimental.systemCertificatesV2":{type:"boolean",tags:["experimental"],default:!1,markdownDescription:m(2252,null,"`#http.useLocalProxyConfiguration#`"),restricted:!0},"http.fetchAdditionalSupport":{type:"boolean",default:!0,markdownDescription:m(2253,null,"`#http.useLocalProxyConfiguration#`","`#http.proxySupport#`","`#http.systemCertificates#`"),restricted:!0}}}],s.updateConfigurations({add:sh,remove:i})}var Mi,e9,t9,sh,gm,wm,Rr=v({"out-build/vs/platform/request/common/request.js"(){"use strict";Le(),ge(),V(),ce(),Ar(),ie(),ui(),Mi=X("requestService"),e9=class{constructor(e){this.b=e}toJSON(){if(!this.a){const e=Object.create(null);for(const t in this.b)t.toLowerCase()==="authorization"||t.toLowerCase()==="proxy-authorization"?e[t]="*****":e[t]=this.b[t];this.a=e}return this.a}},t9=class extends W{constructor(e){super(),this.b=e,this.a=0}async c(e,t){const s=`#${++this.a}: ${e.url}`;this.b.trace(`${s} - begin`,e.type,new e9(e.headers??{}));try{const i=await t();return this.b.trace(`${s} - end`,e.type,i.res.statusCode,i.res.headers),i}catch(i){throw this.b.error(`${s} - error`,e.type,de(i)),i}}},sh=[],gm=void 0,wm=void 0,nN()}}),rs,Gs,Qt=v({"out-build/vs/platform/environment/common/environment.js"(){"use strict";ie(),rs=X("environmentService"),Gs=rs}});function rN(e){return s9.test(e)}var s9,Ve,zt=v({"out-build/vs/base/common/uuid.js"(){"use strict";s9=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Ve=function(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);const e=new Uint8Array(16),t=[];for(let s=0;s<256;s++)t.push(s.toString(16).padStart(2,"0"));return function(){crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128;let i=0,n="";return n+=t[e[i++]],n+=t[e[i++]],n+=t[e[i++]],n+=t[e[i++]],n+="-",n+=t[e[i++]],n+=t[e[i++]],n+="-",n+=t[e[i++]],n+=t[e[i++]],n+="-",n+=t[e[i++]],n+=t[e[i++]],n+="-",n+=t[e[i++]],n+=t[e[i++]],n+=t[e[i++]],n+=t[e[i++]],n+=t[e[i++]],n+=t[e[i++]],n}}()}});import*as i9 from"os";function oN({useAlternateBitness:e=!1}={}){return e?Sc===0?process.env["ProgramFiles(x86)"]||null:jo===0&&process.env.ProgramW6432||null:process.env.ProgramFiles||null}async function ih({useAlternateBitness:e=!1,findPreview:t=!1}={}){const s=oN({useAlternateBitness:e});if(!s)return null;const i=_(s,"PowerShell");if(!await fs.existsDirectory(i))return null;let n=-1,r=null;for(const c of await ke.readdir(i)){let l=-1;if(t){const h=c.indexOf("-");if(h<0)continue;const f=c.substring(0,h);if(!vm.test(f)||c.substring(h+1)!=="preview")continue;l=parseInt(f,10)}else{if(!vm.test(c))continue;l=parseInt(c,10)}if(l<=n)continue;const u=_(i,c,"pwsh.exe");await fs.existsFile(u)&&(r=u,n=l)}if(!r)return null;const o=s.includes("x86")?" (x86)":"",a=t?" Preview":"";return new To(r,`PowerShell${a}${o}`,!0)}async function n9({findPreview:e}={}){if(!process.env.LOCALAPPDATA)return null;const t=_(process.env.LOCALAPPDATA,"Microsoft","WindowsApps");if(!await fs.existsDirectory(t))return null;const{pwshMsixDirRegex:s,pwshMsixName:i}=e?{pwshMsixDirRegex:a9,pwshMsixName:"PowerShell Preview (Store)"}:{pwshMsixDirRegex:o9,pwshMsixName:"PowerShell (Store)"};for(const n of await ke.readdir(t))if(s.test(n)){const r=_(t,n,"pwsh.exe");return new To(r,i)}return null}function aN(){const e=_(i9.homedir(),".dotnet","tools","pwsh.exe");return new To(e,".NET Core PowerShell Global Tool")}function cN(){const e=_(i9.homedir(),"scoop","apps"),t=_(e,"pwsh","current","pwsh.exe");return new To(t,"PowerShell (Scoop)")}function lN(){const e=_(process.env.windir,Sc===1&&jo!==1?"SysNative":"System32","WindowsPowerShell","v1.0","powershell.exe");return new To(e,"Windows PowerShell",!0)}async function*uN(){let e=await ih();e&&(yield e),e=await ih({useAlternateBitness:!0}),e&&(yield e),e=await n9(),e&&(yield e),e=aN(),e&&(yield e),e=await ih({findPreview:!0}),e&&(yield e),e=await n9({findPreview:!0}),e&&(yield e),e=await ih({useAlternateBitness:!0,findPreview:!0}),e&&(yield e),e=await cN(),e&&(yield e),e=lN(),e&&(yield e)}async function*r9(){for await(const e of uN())await e.exists()&&(yield e)}async function hN(){for await(const e of r9())return e;return null}var vm,o9,a9,c9,Sc,jo,To,l9=v({"out-build/vs/base/node/powershell.js"(){"use strict";switch(he(),ds(),vm=/^\d+$/,o9=/^Microsoft.PowerShell_.*/,a9=/^Microsoft.PowerShellPreview_.*/,function(e){e[e.x64=0]="x64",e[e.x86=1]="x86",e[e.ARM=2]="ARM"}(c9||(c9={})),process.arch){case"ia32":Sc=1;break;case"arm":case"arm64":Sc=2;break;default:Sc=0;break}process.env.PROCESSOR_ARCHITEW6432?jo=process.env.PROCESSOR_ARCHITEW6432==="ARM64"?2:0:process.env.PROCESSOR_ARCHITECTURE==="ARM64"?jo=2:process.env.PROCESSOR_ARCHITECTURE==="X86"?jo=1:jo=0,To=class{constructor(e,t,s){this.exePath=e,this.displayName=t,this.a=s}async exists(){return this.a===void 0&&(this.a=await fs.existsFile(this.exePath)),this.a}}}});function fN(e,...t){const s=t.reduce((r,o)=>(r[o]=!0,r),{}),i=[/^ELECTRON_.+$/,/^VSCODE_(?!(PORTABLE|SHELL_LOGIN|ENV_REPLACE|ENV_APPEND|ENV_PREPEND)).+$/,/^SNAP(|_.*)$/,/^GDK_PIXBUF_.+$/,/^CODE_SERVER_.+$/,/^CS_.+$/];Object.keys(e).filter(r=>!s[r]).forEach(r=>{for(let o=0;o<i.length;o++)if(r.search(i[o])!==-1){delete e[r];break}})}function u9(e){e&&(delete e.DEBUG,ut&&delete e.LD_PRELOAD)}var h9,f9,nh=v({"out-build/vs/base/common/processes.js"(){"use strict";te(),function(e){e[e.stdout=0]="stdout",e[e.stderr=1]="stderr"}(h9||(h9={})),function(e){e[e.Success=0]="Success",e[e.Unknown=1]="Unknown",e[e.AccessDenied=2]="AccessDenied",e[e.ProcessNotFound=3]="ProcessNotFound"}(f9||(f9={}))}});import"child_process";import{promises as d9}from"fs";function dN(e=Ds){return e.comspec||"cmd.exe"}function pN(e){let t=[],s=!1;const i=function(n){if(s){t.push(n);return}(!e.send(n,o=>{if(o&&console.error(o),s=!1,t.length>0){const a=t.slice(0);t=[],a.forEach(c=>i(c))}})||me)&&(s=!0)};return{send:i}}async function mN(e){if(await ke.exists(e)){let t;try{t=await d9.stat(e)}catch(s){s.message.startsWith("EACCES")&&(t=await d9.lstat(e))}return t?!t.isDirectory():!1}return!1}async function p9(e,t,s,i=Ds,n=mN){if(mr(e))return await n(e)?e:void 0;if(t===void 0&&(t=en()),Ut(e)!=="."){const c=_(t,e);return await n(c)?c:void 0}const o=L5(i,"PATH");if(s===void 0&&ue(o)&&(s=o.split(Wa)),s===void 0||s.length===0){const c=_(t,e);return await n(c)?c:void 0}for(const c of s){let l;if(mr(c)?l=_(c,e):l=_(t,c,e),me){const h=(L5(i,"PATHEXT")||".COM;.EXE;.BAT;.CMD").split(";").map(async f=>{const p=l+f;return await n(p)?p:void 0});for(const f of h){const p=await f;if(p)return p}}if(await n(l))return l}const a=_(t,e);return await n(a)?a:void 0}var bm=v({"out-build/vs/base/node/processes.js"(){"use strict";Ft(),he(),te(),ri(),nh(),be(),ds(),Se()}});import{userInfo as gN}from"os";async function m9(e,t){return e===1?me?vN():dN(t):wN(e,t)}function wN(e,t){if(ut&&e===2||Cs&&e===3)return"/bin/bash";if(!rh){let s;if(me)s="/bin/bash";else{if(s=t.SHELL,!s)try{s=gN().shell}catch{}s||(s="sh"),s==="/bin/false"&&(s="/bin/bash")}rh=s}return rh}async function vN(){return oh||(oh=(await hN()).exePath),oh}var rh,oh,g9=v({"out-build/vs/base/node/shell.js"(){"use strict";te(),l9(),bm(),rh=null,oh=null}});function w9(e,t,s=x9){const i=e.find((f,p)=>f.length>0&&f[0]!=="-"&&t.hasOwnProperty(f)&&t[f].type==="subcommand"),n={},r=["_"],o=[],a={};let c;for(const f in t){const p=t[f];p.type==="subcommand"?f===i&&(c=p):(p.alias&&(n[f]=p.alias),p.type==="string"||p.type==="string[]"?(r.push(f),p.deprecates&&r.push(...p.deprecates)):p.type==="boolean"&&(o.push(f),p.deprecates&&o.push(...p.deprecates)),p.global&&(a[f]=p))}if(c&&i){const f=a;for(const b in c.options)f[b]=c.options[b];const p=e.filter(b=>b!==i),g=s.getSubcommandReporter?s.getSubcommandReporter(i):void 0,w=w9(p,f,g);return{[i]:w,_:[]}}const l=(0,y9.default)(e,{string:r,boolean:o,alias:n}),u={},h=l;u._=l._.map(f=>String(f)).filter(f=>f.length>0),delete h._;for(const f in t){const p=t[f];if(p.type==="subcommand")continue;p.alias&&delete h[p.alias];let g=h[f];if(p.deprecates)for(const w of p.deprecates)h.hasOwnProperty(w)&&(g||(g=h[w],g&&s.onDeprecatedOption(w,p.deprecationMessage||m(1902,null,f))),delete h[w]);if(typeof g<"u"){if(p.type==="string[]"){if(Array.isArray(g)||(g=[g]),!p.allowEmptyValue){const w=g.filter(b=>b.length>0);w.length!==g.length&&(s.onEmptyValue(f),g=w.length>0?w:void 0)}}else p.type==="string"&&(Array.isArray(g)?(g=g.pop(),s.onMultipleValues(f,g)):!g&&!p.allowEmptyValue&&(s.onEmptyValue(f),g=void 0));u[f]=g,p.deprecationMessage&&s.onDeprecatedOption(f,p.deprecationMessage)}delete h[f]}for(const f in h)s.onUnknownOption(f);return u}function bN(e,t){let s="";return t.args&&(Array.isArray(t.args)?s=` <${t.args.join("> <")}>`:s=` <${t.args}>`),t.alias?`-${t.alias} --${e}${s}`:`--${e}${s}`}function yN(e,t){const s=[];for(const i in e){const n=e[i],r=bN(i,n);s.push([r,n.description])}return v9(s,t)}function v9(e,t){const i=e.reduce((o,a)=>Math.max(o,a[0].length),12)+2+1;if(t-i<25)return e.reduce((o,a)=>o.concat([`  ${a[0]}`,`      ${a[1]}`]),[]);const n=t-i-1,r=[];for(const o of e){const a=o[0],c=EN(o[1],n),l=b9(i-a.length-2);r.push("  "+a+l+c[0]);for(let u=1;u<c.length;u++)r.push(b9(i)+c[u])}return r}function b9(e){return" ".repeat(e)}function EN(e,t){const s=[];for(;e.length;){let i=e.length<t?e.length:e.lastIndexOf(" ",t);i===0&&(i=t);const n=e.slice(0,i).trim();e=e.slice(i).trimStart(),s.push(n)}return s}function xN(e,t,s,i,n){const r=process.stdout.isTTY&&process.stdout.columns||80,o=n?.noInputFiles?"":n?.isChat?` [${m(1903,null)}]`:` [${m(1904,null)}...]`,a=n?.isChat?" chat":"",c=[`${e} ${s}`];c.push(""),c.push(`${m(1905,null)}: ${t}${a} [${m(1906,null)}]${o}`),c.push(""),n?.noPipe!==!0&&(c.push(kN(t,n?.isChat)),c.push(""));const l={},u=[];for(const h in i){const f=i[h];if(f.type==="subcommand")f.description&&u.push({command:h,description:f.description});else if(f.description&&f.cat){let p=l[f.cat];p||(l[f.cat]=p={}),p[h]=f}}for(const h in l){const f=h,p=l[f];p&&(c.push(E9[f]),c.push(...yN(p,r)),c.push(""))}return u.length&&(c.push(m(1907,null)),c.push(...v9(u.map(h=>[h.command,h.description]),r)),c.push("")),c.join(`
`)}function kN(e,t){let s;return me?t?s=`echo Hello World | ${e} chat <prompt> -`:s=`echo Hello World | ${e} -`:t?s=`ps aux | grep code | ${e} chat <prompt> -`:s=`ps aux | grep code | ${e} -`,m(1908,null,s)}function $N(e,t){return`${e||m(1909,null)}
${t||m(1910,null)}
${process.arch}`}var y9,E9,qe,x9,ah=v({"out-build/vs/platform/environment/node/argv.js"(){"use strict";y9=xb(kb(),1),te(),ce(),E9={o:m(1850,null),e:m(1851,null),t:m(1852,null),m:m(1853,null)},qe={chat:{type:"subcommand",description:"Pass in a prompt to run in a chat session in the current working directory.",options:{_:{type:"string[]",description:m(1854,null)},mode:{type:"string",cat:"o",alias:"m",args:"mode",description:m(1855,null)},"add-file":{type:"string[]",cat:"o",alias:"a",args:"path",description:m(1856,null)},maximize:{type:"boolean",cat:"o",description:m(1857,null)},"reuse-window":{type:"boolean",cat:"o",alias:"r",description:m(1858,null)},"new-window":{type:"boolean",cat:"o",alias:"n",description:m(1859,null)},help:{type:"boolean",alias:"h",description:m(1860,null)}}},"serve-web":{type:"subcommand",description:"Run a server that displays the editor UI in browsers.",options:{"cli-data-dir":{type:"string",args:"dir",description:m(1861,null)},"disable-telemetry":{type:"boolean"},"telemetry-level":{type:"string"}}},tunnel:{type:"subcommand",description:"Make the current machine accessible from vscode.dev or other machines through a secure tunnel.",options:{"cli-data-dir":{type:"string",args:"dir",description:m(1862,null)},"disable-telemetry":{type:"boolean"},"telemetry-level":{type:"string"},user:{type:"subcommand",options:{login:{type:"subcommand",options:{provider:{type:"string"},"access-token":{type:"string"}}}}}}},diff:{type:"boolean",cat:"o",alias:"d",args:["file","file"],description:m(1863,null)},merge:{type:"boolean",cat:"o",alias:"m",args:["path1","path2","base","result"],description:m(1864,null)},add:{type:"boolean",cat:"o",alias:"a",args:"folder",description:m(1865,null)},remove:{type:"boolean",cat:"o",args:"folder",description:m(1866,null)},goto:{type:"boolean",cat:"o",alias:"g",args:"file:line[:character]",description:m(1867,null)},"new-window":{type:"boolean",cat:"o",alias:"n",description:m(1868,null)},"reuse-window":{type:"boolean",cat:"o",alias:"r",description:m(1869,null)},wait:{type:"boolean",cat:"o",alias:"w",description:m(1870,null)},waitMarkerFilePath:{type:"string"},locale:{type:"string",cat:"o",args:"locale",description:m(1871,null)},"user-data-dir":{type:"string",cat:"o",args:"dir",description:m(1872,null)},profile:{type:"string",cat:"o",args:"profileName",description:m(1873,null)},help:{type:"boolean",cat:"o",alias:"h",description:m(1874,null)},"stdin-to-clipboard":{type:"boolean",cat:"o",alias:"c",description:m(1875,null)},"extensions-dir":{type:"string",deprecates:["extensionHomePath"],cat:"e",args:"dir",description:m(1876,null)},"extensions-download-dir":{type:"string"},"builtin-extensions-dir":{type:"string"},"list-extensions":{type:"boolean",cat:"e",description:m(1877,null)},"show-versions":{type:"boolean",cat:"e",description:m(1878,null)},category:{type:"string",allowEmptyValue:!0,cat:"e",description:m(1879,null),args:"category"},"install-extension":{type:"string[]",cat:"e",args:"ext-id | path",description:m(1880,null)},"pre-release":{type:"boolean",cat:"e",description:m(1881,null)},"uninstall-extension":{type:"string[]",cat:"e",args:"ext-id",description:m(1882,null)},"update-extensions":{type:"boolean",cat:"e",description:m(1883,null)},"enable-proposed-api":{type:"string[]",allowEmptyValue:!0,cat:"e",args:"ext-id",description:m(1884,null)},"add-mcp":{type:"string[]",cat:"m",args:"json",description:m(1885,null)},version:{type:"boolean",cat:"t",alias:"v",description:m(1886,null)},verbose:{type:"boolean",cat:"t",global:!0,description:m(1887,null)},log:{type:"string[]",cat:"t",args:"level",global:!0,description:m(1888,null)},status:{type:"boolean",alias:"s",cat:"t",description:m(1889,null)},"prof-startup":{type:"boolean",cat:"t",description:m(1890,null)},"prof-append-timers":{type:"string"},"prof-duration-markers":{type:"string[]"},"prof-duration-markers-file":{type:"string"},"no-cached-data":{type:"boolean"},"prof-startup-prefix":{type:"string"},"prof-v8-extensions":{type:"boolean"},"disable-extensions":{type:"boolean",deprecates:["disableExtensions"],cat:"t",description:m(1891,null)},"disable-extension":{type:"string[]",cat:"t",args:"ext-id",description:m(1892,null)},sync:{type:"string",cat:"t",description:m(1893,null),args:["on | off"]},"inspect-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugPluginHost"],args:"port",cat:"t",description:m(1894,null)},"inspect-brk-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugBrkPluginHost"],args:"port",cat:"t",description:m(1895,null)},"disable-lcd-text":{type:"boolean",cat:"t",description:m(1896,null)},"disable-gpu":{type:"boolean",cat:"t",description:m(1897,null)},"disable-chromium-sandbox":{type:"boolean",cat:"t",description:m(1898,null)},sandbox:{type:"boolean"},"locate-shell-integration-path":{type:"string",cat:"t",args:["shell"],description:m(1899,null)},telemetry:{type:"boolean",cat:"t",description:m(1900,null)},remote:{type:"string",allowEmptyValue:!0},"folder-uri":{type:"string[]",cat:"o",args:"uri"},"file-uri":{type:"string[]",cat:"o",args:"uri"},"locate-extension":{type:"string[]"},extensionDevelopmentPath:{type:"string[]"},extensionDevelopmentKind:{type:"string[]"},extensionTestsPath:{type:"string"},extensionEnvironment:{type:"string"},debugId:{type:"string"},debugRenderer:{type:"boolean"},"inspect-ptyhost":{type:"string",allowEmptyValue:!0},"inspect-brk-ptyhost":{type:"string",allowEmptyValue:!0},"inspect-search":{type:"string",deprecates:["debugSearch"],allowEmptyValue:!0},"inspect-brk-search":{type:"string",deprecates:["debugBrkSearch"],allowEmptyValue:!0},"inspect-sharedprocess":{type:"string",allowEmptyValue:!0},"inspect-brk-sharedprocess":{type:"string",allowEmptyValue:!0},"export-default-configuration":{type:"string"},"install-source":{type:"string"},"enable-smoke-test-driver":{type:"boolean"},logExtensionHostCommunication:{type:"boolean"},"skip-release-notes":{type:"boolean"},"skip-welcome":{type:"boolean"},"disable-telemetry":{type:"boolean"},"disable-updates":{type:"boolean"},"use-inmemory-secretstorage":{type:"boolean",deprecates:["disable-keytar"]},"password-store":{type:"string"},"disable-workspace-trust":{type:"boolean"},"disable-crash-reporter":{type:"boolean"},"crash-reporter-directory":{type:"string"},"crash-reporter-id":{type:"string"},"skip-add-to-recently-opened":{type:"boolean"},"open-url":{type:"boolean"},"file-write":{type:"boolean"},"file-chmod":{type:"boolean"},"install-builtin-extension":{type:"string[]"},force:{type:"boolean"},"do-not-sync":{type:"boolean"},"do-not-include-pack-dependencies":{type:"boolean"},trace:{type:"boolean"},"trace-memory-infra":{type:"boolean"},"trace-category-filter":{type:"string"},"trace-options":{type:"string"},"preserve-env":{type:"boolean"},"force-user-env":{type:"boolean"},"force-disable-user-env":{type:"boolean"},"open-devtools":{type:"boolean"},"disable-gpu-sandbox":{type:"boolean"},logsPath:{type:"string"},"__enable-file-policy":{type:"boolean"},editSessionId:{type:"string"},continueOn:{type:"string"},"enable-coi":{type:"boolean"},"unresponsive-sample-interval":{type:"string"},"unresponsive-sample-period":{type:"string"},"enable-rdp-display-tracking":{type:"boolean"},"disable-layout-restore":{type:"boolean"},"startup-experiment-group":{type:"string",cat:"t",args:"control|maximizedChat|splitEmptyEditorChat|splitWelcomeChat",description:m(1901,null)},"no-proxy-server":{type:"boolean"},"no-sandbox":{type:"boolean",alias:"sandbox"},"proxy-server":{type:"string"},"proxy-bypass-list":{type:"string"},"proxy-pac-url":{type:"string"},"js-flags":{type:"string"},inspect:{type:"string",allowEmptyValue:!0},"inspect-brk":{type:"string",allowEmptyValue:!0},nolazy:{type:"boolean"},"force-device-scale-factor":{type:"string"},"force-renderer-accessibility":{type:"boolean"},"ignore-certificate-errors":{type:"boolean"},"allow-insecure-localhost":{type:"boolean"},"log-net-log":{type:"string"},vmodule:{type:"string"},_urls:{type:"string[]"},"disable-dev-shm-usage":{type:"boolean"},"profile-temp":{type:"boolean"},"ozone-platform":{type:"string"},"enable-tracing":{type:"string"},"trace-startup-format":{type:"string"},"trace-startup-file":{type:"string"},"trace-startup-duration":{type:"string"},"xdg-portal-required-version":{type:"string"},_:{type:"string[]"}},x9={onUnknownOption:()=>{},onMultipleValues:()=>{},onEmptyValue:()=>{},onDeprecatedOption:()=>{}}}});import"assert";function k9(e){return e.VSCODE_CLI==="1"}var SN=v({"out-build/vs/platform/environment/node/argvHelper.js"(){"use strict";ce(),ah()}});function PN(e,t,s){return Math.min(Math.max(e,t),s)}var IN=v({"out-build/vs/base/common/numbers.js"(){"use strict";Ln()}});import{spawn as DN}from"child_process";async function ym(e,t,s,i){return s["force-disable-user-env"]?(t.trace("resolveShellEnv(): skipped (--force-disable-user-env)"),{}):me?(t.trace("resolveShellEnv(): skipped (Windows)"),{}):k9(i)&&!s["force-user-env"]?(t.trace("resolveShellEnv(): skipped (VSCODE_CLI is set)"),{}):(k9(i)?t.trace("resolveShellEnv(): running (--force-user-env)"):t.trace("resolveShellEnv(): running (macOS/Linux)"),ch||(ch=is.withAsyncBody(async(n,r)=>{const o=new Oi;let a=1e4;const c=e.getValue("application.shellEnvironmentResolutionTimeout");typeof c=="number"&&(a=PN(c,1,120)*1e3);const l=setTimeout(()=>{o.dispose(!0),r(new Error(m(2254,null)))},a);try{n(await AN(t,o.token))}catch(u){!sn(u)&&!o.token.isCancellationRequested?r(new Error(m(2255,null,$r(u)))):n({})}finally{clearTimeout(l),o.dispose()}})),ch)}async function AN(e,t){const s=process.env.ELECTRON_RUN_AS_NODE;e.trace("getUnixShellEnvironment#runAsNode",s);const i=process.env.ELECTRON_NO_ATTACH_CONSOLE;e.trace("getUnixShellEnvironment#noAttach",i);const n=Ve().replace(/-/g,"").substr(0,12),r=new RegExp(n+"({.*})"+n),o={...process.env,ELECTRON_RUN_AS_NODE:"1",ELECTRON_NO_ATTACH_CONSOLE:"1",VSCODE_RESOLVING_ENVIRONMENT:"1"};e.trace("getUnixShellEnvironment#env",o);const a=await m9(dr,o);return e.trace("getUnixShellEnvironment#shell",a),new Promise((c,l)=>{if(t.isCancellationRequested)return l(new Dt);const u=ht(a);let h,f;const p="";/^(?:pwsh|powershell)(?:-preview)?$/.test(u)?(h=`& '${process.execPath}' ${p} -p '''${n}'' + JSON.stringify(process.env) + ''${n}'''`,f=["-Login","-Command"]):u==="nu"?(h=`^'${process.execPath}' ${p} -p '"${n}" + JSON.stringify(process.env) + "${n}"'`,f=["-i","-l","-c"]):u==="xonsh"?(h=`import os, json; print("${n}", json.dumps(dict(os.environ)), "${n}")`,f=["-i","-l","-c"]):(h=`'${process.execPath}' ${p} -p '"${n}" + JSON.stringify(process.env) + "${n}"'`,u==="tcsh"||u==="csh"?f=["-ic"]:f=["-i","-l","-c"]),e.trace("getUnixShellEnvironment#spawn",JSON.stringify(f),h);const g=DN(a,[...f,h],{detached:!0,stdio:["ignore","pipe","pipe"],env:o});t.onCancellationRequested(()=>(g.kill(),l(new Dt))),g.on("error",x=>{e.error("getUnixShellEnvironment#errorChildProcess",$r(x)),l(x)});const w=[];g.stdout.on("data",x=>w.push(x));const b=[];g.stderr.on("data",x=>b.push(x)),g.on("close",(x,k)=>{const I=Buffer.concat(w).toString("utf8");e.trace("getUnixShellEnvironment#raw",I);const M=Buffer.concat(b).toString("utf8");if(M.trim()&&e.trace("getUnixShellEnvironment#stderr",M),x||k)return l(new Error(m(2256,null,x,k)));const j=r.exec(I),Ee=j?j[1]:"{}";try{const O=JSON.parse(Ee);s?O.ELECTRON_RUN_AS_NODE=s:delete O.ELECTRON_RUN_AS_NODE,i?O.ELECTRON_NO_ATTACH_CONSOLE=i:delete O.ELECTRON_NO_ATTACH_CONSOLE,delete O.VSCODE_RESOLVING_ENVIRONMENT,delete O.XDG_RUNTIME_DIR,e.trace("getUnixShellEnvironment#result",O),c(O)}catch(O){e.error("getUnixShellEnvironment#errorCaught",$r(O)),l(O)}})})}var ch,Em=v({"out-build/vs/platform/shell/node/shellEnv.js"(){"use strict";he(),ce(),Lt(),Eo(),ge(),te(),zt(),g9(),SN(),Ae(),IN(),ch=void 0}});import{parse as $9}from"url";function LN(e,t){return e.protocol==="http:"?t.HTTP_PROXY||t.http_proxy||null:e.protocol==="https:"&&(t.HTTPS_PROXY||t.https_proxy||t.HTTP_PROXY||t.http_proxy)||null}async function RN(e,t,s={}){const i=$9(e),n=s.proxyUrl||LN(i,t);if(!n)return null;const r=$9(n);if(!/^https?:$/.test(r.protocol||""))return null;const o={host:r.hostname||"",port:(r.port?+r.port:0)||(r.protocol==="https"?443:80),auth:r.auth,rejectUnauthorized:ci(s.strictSSL)?s.strictSSL:!0,keepAlive:!0};if(i.protocol==="http:"){const{default:a}=await import("http-proxy-agent");return new a.HttpProxyAgent(n,o)}else{const{default:a}=await import("https-proxy-agent");return new a.HttpsProxyAgent(n,o)}}var NN=v({"out-build/vs/platform/request/node/proxy.js"(){"use strict";be()}});import{parse as S9}from"url";import{createGunzip as ON}from"zlib";async function CN(e,t,s,i){const n=await import("kerberos"),r=n.default||n,o=new URL(e),a=t||(process.platform==="win32"?`HTTP/${o.hostname}`:`HTTP@${o.hostname}`);return s.debug(`${i} Kerberos authentication lookup`,`proxyURL:${o}`,`spn:${a}`),(await r.initializeClient(a)).step("")}async function _N(e){return(S9(e.url).protocol==="https:"?await import("https"):await import("http")).request}async function P9(e,t){return is.withAsyncBody(async(s,i)=>{const n=S9(e.url),r=e.getRawRequest?e.getRawRequest(e):await _N(e),o={hostname:n.hostname,port:n.port?parseInt(n.port):n.protocol==="https:"?443:80,protocol:n.protocol,path:n.path,method:e.type||"GET",headers:e.headers,agent:e.agent,rejectUnauthorized:ci(e.strictSSL)?e.strictSSL:!0};e.user&&e.password&&(o.auth=e.user+":"+e.password),e.disableCache&&(o.cache="no-store");const a=r(o,c=>{const l=Rn(e.followRedirects)?e.followRedirects:3;if(c.statusCode&&c.statusCode>=300&&c.statusCode<400&&l>0&&c.headers.location)P9({...e,url:c.headers.location,followRedirects:l-1},t).then(s,i);else{let u=c;!e.isChromiumNetwork&&c.headers["content-encoding"]==="gzip"&&(u=c.pipe(ON())),s({res:c,stream:$R(u)})}});if(a.on("error",i),e.timeout)if(e.isChromiumNetwork){const c=setTimeout(()=>{a.abort(),i(new Error(`Request timeout after ${e.timeout}ms`))},e.timeout);a.on("response",()=>clearTimeout(c)),a.on("error",()=>clearTimeout(c)),a.on("abort",()=>clearTimeout(c))}else a.setTimeout(e.timeout);e.isChromiumNetwork&&a.removeHeader("Content-Length"),e.data&&typeof e.data=="string"&&a.write(e.data),a.end(),t.onCancellationRequested(()=>{a.abort(),i(new Dt)})})}var Pc,I9=v({"out-build/vs/platform/request/node/requestService.js"(){"use strict";Ae(),Le(),ge(),be(),Yt(),Qt(),Em(),Ie(),Rr(),NN(),Pc=class extends t9{constructor(t,s,i,n){super(n),this.m=t,this.n=s,this.r=i,this.s(),this.B(s.onDidChangeConfiguration(r=>{r.affectsConfiguration("http")&&this.s()}))}s(){this.f=this.t("http.proxy"),this.g=!!this.t("http.proxyStrictSSL"),this.h=this.t("http.proxyAuthorization")}async request(t,s){const{f:i,g:n}=this;let r;try{r=await ym(this.n,this.b,this.r.args,process.env)}catch(c){this.j||(this.j=!0,this.b.error("resolving shell environment failed",de(c)))}const o={...process.env,...r},a=t.agent?t.agent:await RN(t.url||"",o,{proxyUrl:i,strictSSL:n});return t.agent=a,t.strictSSL=n,this.h&&(t.headers={...t.headers||{},"Proxy-Authorization":this.h}),this.c(t,()=>P9(t,s))}async resolveProxy(t){}async lookupAuthorization(t){}async lookupKerberosAuthorization(t){try{const s=this.t("http.proxyKerberosServicePrincipal");return"Negotiate "+await CN(t,s,this.b,"RequestService#lookupKerberosAuthorization")}catch(s){this.b.debug("RequestService#lookupKerberosAuthorization Kerberos authentication failed",s);return}}async loadCertificates(){return(await import("@vscode/proxy-agent")).loadSystemCertificates({log:this.b})}t(t){if(this.m==="remote")return this.n.getValue(t);const s=this.n.inspect(t);return s.userLocalValue||s.defaultValue}},Pc=__decorate([__param(1,Zt),__param(2,Gs),__param(3,fe)],Pc)}});function D9(e){if(!e)return;const t=e.indexOf("+");return t<0?e:e.substr(0,t)}var xm=v({"out-build/vs/platform/remote/common/remoteHosts.js"(){"use strict";Se()}});function MN(e){if(fr===2&&/^penguin(\.|$)/i.test(e))return"chromebook"}function UN(e,t,s,i,n,r,o,a,c,l,u){const h=Object.create(null);h["common.machineId"]=r,h["common.sqmId"]=o,h["common.devDeviceId"]=a,h.sessionID=Ve()+Date.now(),h.commitHash=i,h.version=n,h["common.releaseDate"]=l,h["common.platformVersion"]=(e||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),h["common.platform"]=Lb(fr),h["common.nodePlatform"]=np,h["common.nodeArch"]=s,h["common.product"]=u||"desktop",c&&(h["common.msftInternal"]=c);let f=0;const p=Date.now();Object.defineProperties(h,{timestamp:{get:()=>new Date,enumerable:!0},"common.timesincesessionstart":{get:()=>Date.now()-p,enumerable:!0},"common.sequence":{get:()=>f++,enumerable:!0}}),Ub&&(h["common.snap"]="true");const g=MN(t);return g&&(h["common.platformDetail"]=g),h}function jN(e){const t=Ds.USERDNSDOMAIN;if(!t)return!1;const s=t.toLowerCase();return e.some(i=>s===i)}var A9=v({"out-build/vs/platform/telemetry/common/commonProperties.js"(){"use strict";te(),ri(),zt()}}),gs,TN,L9,Ic,km,lh,R9,N9,Js=v({"out-build/vs/platform/telemetry/common/telemetry.js"(){"use strict";ie(),gs=X("telemetryService"),TN=X("customEndpointTelemetryService"),L9="telemetry",Ic="telemetry.telemetryLevel",km="telemetry.enableCrashReporter",lh="telemetry.enableTelemetry",function(e){e[e.NONE=0]="NONE",e[e.CRASH=1]="CRASH",e[e.ERROR=2]="ERROR",e[e.USAGE=3]="USAGE"}(R9||(R9={})),function(e){e.OFF="off",e.CRASH="crash",e.ERROR="error",e.ON="all"}(N9||(N9={}))}});function O9(e,t){return!t.isBuilt&&!t.disableTelemetry?!0:!(t.disableTelemetry||!e.enableTelemetry)}function C9(e,t){return t.extensionTestsLocationURI?!0:!(t.isBuilt||t.disableTelemetry||e.enableTelemetry&&e.aiConfig?.ariaKey)}function _9(e){const t=e.getValue(Ic),s=e.getValue(km);if(e.getValue(lh)===!1||s===!1)return 0;switch(t??"all"){case"all":return 3;case"error":return 2;case"crash":return 1;case"off":return 0}}function M9(e){const t={},s={},i={};U9(e,i);for(let n in i){n=n.length>150?n.substr(n.length-149):n;const r=i[n];typeof r=="number"?s[n]=r:typeof r=="boolean"?s[n]=r?1:0:typeof r=="string"?(r.length>8192&&console.warn(`Telemetry property: ${n} has been trimmed to 8192, the original length is ${r.length}`),t[n]=r.substring(0,8191)):typeof r<"u"&&r!==null&&(t[n]=r)}return{properties:t,measurements:s}}function FN(e){if(!e)return"none";const t=D9(e);return F9.has(t)?t:"other"}function U9(e,t,s=0,i){if(e)for(const n of Object.getOwnPropertyNames(e)){const r=e[n],o=i?i+n:n;Array.isArray(r)?t[o]=am(r):r instanceof Date?t[o]=r.toISOString():ft(r)?s<2?U9(r,t,s+1,o+"."):t[o]=am(r):t[o]=r}}function BN(e,t){const s=e.msftInternalDomains||[],i=t.getValue("telemetry.internalTesting");return jN(s)||i}function zN(e){return[e.appRoot,e.extensionsPath,e.userHome.fsPath,e.tmpDir.fsPath,e.userDataPath]}function HN(e,t){if(!e||!e.includes("/")&&!e.includes("\\"))return e;let s=e;const i=[];for(const a of t)for(;;){const c=a.exec(e);if(!c)break;i.push([c.index,a.lastIndex])}const n=/^[\\\/]?(node_modules|node_modules\.asar)[\\\/]/,r=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-\._]+(\\\\|\\|\/))+[\w-\._]*/g;let o=0;for(s="";;){const a=r.exec(e);if(!a)break;const c=i.some(([l,u])=>a.index<u&&l<r.lastIndex);!n.test(a[0])&&!c&&(s+=e.substring(o,a.index)+"<REDACTED: user-file-path>",o=r.lastIndex)}return o<e.length&&(s+=e.substr(o)),s}function VN(e){if(!e)return e;const t=[{label:"Google API Key",regex:/AIza[A-Za-z0-9_\\\-]{35}/},{label:"JWT",regex:/eyJ[0eXAiOiJKV1Qi|hbGci|a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+/},{label:"Slack Token",regex:/xox[pbar]\-[A-Za-z0-9]/},{label:"GitHub Token",regex:/(gh[psuro]_[a-zA-Z0-9]{36}|github_pat_[a-zA-Z0-9]{22}_[a-zA-Z0-9]{59})/},{label:"Generic Secret",regex:/(key|token|sig|secret|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/i},{label:"CLI Credentials",regex:/((login|psexec|(certutil|psexec)\.exe).{1,50}(\s-u(ser(name)?)?\s+.{3,100})?\s-(admin|user|vm|root)?p(ass(word)?)?\s+["']?[^$\-\/\s]|(^|[\s\r\n\\])net(\.exe)?.{1,5}(user\s+|share\s+\/user:| user -? secrets ? set) \s + [^ $\s \/])/},{label:"Microsoft Entra ID",regex:/eyJ(?:0eXAiOiJKV1Qi|hbGci|[a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+\.)/},{label:"Email",regex:/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/}];for(const s of t)if(s.regex.test(e))return`<REDACTED: ${s.label}>`;return e}function $m(e,t){return Ci(e,s=>{if(s instanceof Fo||Object.hasOwnProperty.call(s,"isTrustedTelemetryValue"))return s.value;if(typeof s=="string"){let i=s.replaceAll("%20"," ");i=HN(i,t);for(const n of t)i=i.replace(n,"");return i=VN(i),i}})}var Fo,Sm,j9,Pm,Im,T9,F9,hi=v({"out-build/vs/platform/telemetry/common/telemetryUtils.js"(){"use strict";Ft(),be(),ce(),xm(),A9(),Js(),Fo=class{constructor(e){this.value=e,this.isTrustedTelemetryValue=!0}},Sm=class{constructor(){this.telemetryLevel=0,this.sessionId="someValue.sessionId",this.machineId="someValue.machineId",this.sqmId="someValue.sqmId",this.devDeviceId="someValue.devDeviceId",this.firstSessionDate="someValue.firstSessionDate",this.sendErrorTelemetry=!1}publicLog(){}publicLog2(){}publicLogError(){}publicLogError2(){}setExperimentProperty(){}},j9=new Sm,Pm="telemetry",Im={id:Pm,name:m(2277,null)},T9={log:()=>null,flush:()=>Promise.resolve(void 0)},F9=new Set(["ssh-remote","dev-container","attached-container","wsl","tunnel","codespaces","amlext"])}});function B9(e){switch(e){case"win32-x64":return"Windows 64 bit";case"win32-arm64":return"Windows ARM";case"linux-x64":return"Linux 64 bit";case"linux-arm64":return"Linux ARM 64";case"linux-armhf":return"Linux ARM";case"alpine-x64":return"Alpine Linux 64 bit";case"alpine-arm64":return"Alpine ARM 64";case"darwin-x64":return"Mac";case"darwin-arm64":return"Mac Silicon";case"web":return"Web";case"universal":return"universal";case"unknown":return"unknown";case"undefined":return"undefined"}}function WN(e){switch(e){case"win32-x64":return"win32-x64";case"win32-arm64":return"win32-arm64";case"linux-x64":return"linux-x64";case"linux-arm64":return"linux-arm64";case"linux-armhf":return"linux-armhf";case"alpine-x64":return"alpine-x64";case"alpine-arm64":return"alpine-arm64";case"darwin-x64":return"darwin-x64";case"darwin-arm64":return"darwin-arm64";case"web":return"web";case"universal":return"universal";default:return"unknown"}}function z9(e,t){switch(e){case 3:return t==="x64"?"win32-x64":t==="arm64"?"win32-arm64":"unknown";case 2:return t==="x64"?"linux-x64":t==="arm64"?"linux-arm64":t==="arm"?"linux-armhf":"unknown";case"alpine":return t==="x64"?"alpine-x64":t==="arm64"?"alpine-arm64":"unknown";case 1:return t==="x64"?"darwin-x64":t==="arm64"?"darwin-arm64":"unknown";case 0:return"web"}}function Bo(e,t){return t==="web"&&!e.includes("web")}function H9(e,t,s){return Bo(t,s)?!1:e==="undefined"||e==="universal"?!0:e==="unknown"?!1:e===s}function qN(e){return e&&typeof e=="object"&&typeof e.id=="string"&&(!e.uuid||typeof e.uuid=="string")}async function Dm(e,t){let s;try{s=await t.resolve(e)}catch(i){if(i.fileOperationResult===1)return 0;throw i}return s.children?(await Promise.all(s.children.map(n=>Dm(n.resource,t)))).reduce((n,r)=>n+r,0):s.size??0}function GN(e,t){return e?t?.capabilities.signing?.allPrivateRepositorySigned===!0:t?.capabilities.signing?.allPublicRepositorySigned===!0}var V9,uh,W9,Am,q9,G9,J9,Z9,Y9,Q9,X9,K9,fi,e7,Dc,t7,$t,tt,hh,JN,ZN,gn,YN,QN,Ac,As=v({"out-build/vs/platform/extensionManagement/common/extensionManagement.js"(){"use strict";ce(),Ar(),ie(),ui(),V9="^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$",uh=new RegExp(V9),W9="__web_extension",Am="extensionInstallSource",q9="dependecyOrPackExtensionInstall",G9="clientTargetPlatform",function(e){e.COMMAND="command",e.SETTINGS_SYNC="settingsSync"}(J9||(J9={})),function(e){e.NoneOrRelevance="NoneOrRelevance",e.LastUpdatedDate="LastUpdatedDate",e.Title="Title",e.PublisherName="PublisherName",e.InstallCount="InstallCount",e.PublishedDate="PublishedDate",e.AverageRating="AverageRating",e.WeightedRating="WeightedRating"}(Z9||(Z9={})),function(e){e[e.Default=0]="Default",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"}(Y9||(Y9={})),function(e){e.Category="Category",e.ExtensionId="ExtensionId",e.ExtensionName="ExtensionName",e.ExcludeWithFlags="ExcludeWithFlags",e.Featured="Featured",e.SearchText="SearchText",e.Tag="Tag",e.Target="Target"}(Q9||(Q9={})),function(e){e.Install="install",e.Uninstall="uninstall"}(X9||(X9={})),function(e){e[e.None=1]="None",e[e.Install=2]="Install",e[e.Update=3]="Update",e[e.Migrate=4]="Migrate"}(K9||(K9={})),fi=X("extensionGalleryService"),function(e){e.Timeout="Timeout",e.Cancelled="Cancelled",e.Failed="Failed",e.DownloadFailedWriting="DownloadFailedWriting",e.Offline="Offline"}(e7||(e7={})),Dc=class extends Error{constructor(e,t){super(e),this.code=t,this.name=t}},function(e){e.NotFound="NotFound",e.Unsupported="Unsupported",e.Deprecated="Deprecated",e.Malicious="Malicious",e.Incompatible="Incompatible",e.IncompatibleApi="IncompatibleApi",e.IncompatibleTargetPlatform="IncompatibleTargetPlatform",e.ReleaseVersionNotFound="ReleaseVersionNotFound",e.Invalid="Invalid",e.Download="Download",e.DownloadSignature="DownloadSignature",e.DownloadFailedWriting="DownloadFailedWriting",e.UpdateMetadata="UpdateMetadata",e.Extract="Extract",e.Scanning="Scanning",e.ScanningExtension="ScanningExtension",e.ReadRemoved="ReadRemoved",e.UnsetRemoved="UnsetRemoved",e.Delete="Delete",e.Rename="Rename",e.IntializeDefaultProfile="IntializeDefaultProfile",e.AddToProfile="AddToProfile",e.InstalledExtensionNotFound="InstalledExtensionNotFound",e.PostInstall="PostInstall",e.CorruptZip="CorruptZip",e.IncompleteZip="IncompleteZip",e.PackageNotSigned="PackageNotSigned",e.SignatureVerificationInternal="SignatureVerificationInternal",e.SignatureVerificationFailed="SignatureVerificationFailed",e.NotAllowed="NotAllowed",e.Gallery="Gallery",e.Cancelled="Cancelled",e.Unknown="Unknown",e.Internal="Internal"}(t7||(t7={})),function(e){e.NotSigned="NotSigned",e.Success="Success",e.RequiredArgumentMissing="RequiredArgumentMissing",e.InvalidArgument="InvalidArgument",e.PackageIsUnreadable="PackageIsUnreadable",e.UnhandledException="UnhandledException",e.SignatureManifestIsMissing="SignatureManifestIsMissing",e.SignatureManifestIsUnreadable="SignatureManifestIsUnreadable",e.SignatureIsMissing="SignatureIsMissing",e.SignatureIsUnreadable="SignatureIsUnreadable",e.CertificateIsUnreadable="CertificateIsUnreadable",e.SignatureArchiveIsUnreadable="SignatureArchiveIsUnreadable",e.FileAlreadyExists="FileAlreadyExists",e.SignatureArchiveIsInvalidZip="SignatureArchiveIsInvalidZip",e.SignatureArchiveHasSameSignatureFile="SignatureArchiveHasSameSignatureFile",e.PackageIntegrityCheckFailed="PackageIntegrityCheckFailed",e.SignatureIsInvalid="SignatureIsInvalid",e.SignatureManifestIsInvalid="SignatureManifestIsInvalid",e.SignatureIntegrityCheckFailed="SignatureIntegrityCheckFailed",e.EntryIsMissing="EntryIsMissing",e.EntryIsTampered="EntryIsTampered",e.Untrusted="Untrusted",e.CertificateRevoked="CertificateRevoked",e.SignatureIsNotValid="SignatureIsNotValid",e.UnknownError="UnknownError",e.PackageIsInvalidZip="PackageIsInvalidZip",e.SignatureArchiveHasTooManyEntries="SignatureArchiveHasTooManyEntries"}($t||($t={})),tt=class extends Error{constructor(e,t){super(e),this.code=t,this.name=t}},hh=X("extensionManagementService"),JN=X("IGlobalExtensionEnablementService"),ZN=X("IExtensionTipsService"),gn=X("IAllowedExtensionsService"),YN=Db(1955,"Extensions"),QN=Db(1956,"Preferences"),Ac="extensions.allowed",Bt.as(qs.Configuration).registerConfiguration({id:"extensions",order:30,title:m(1938,null),type:"object",properties:{[Ac]:{type:"object",markdownDescription:m(1939,null),default:"*",defaultSnippets:[{body:{},description:m(1940,null)},{body:{"*":!0},description:m(1941,null)}],scope:1,policy:{name:"AllowedExtensions",minimumVersion:"1.96",description:m(1942,null)},additionalProperties:!1,patternProperties:{"([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$":{anyOf:[{type:["boolean","string"],enum:[!0,!1,"stable"],description:m(1943,null),enumDescriptions:[m(1944,null),m(1945,null),m(1946,null)]},{type:"array",items:{type:"string"},description:m(1947,null)}]},"([a-z0-9A-Z][a-z0-9-A-Z]*)$":{type:["boolean","string"],enum:[!0,!1,"stable"],description:m(1948,null),enumDescriptions:[m(1949,null),m(1950,null),m(1951,null)]},"\\*":{type:"boolean",enum:[!0,!1],description:m(1952,null),enumDescriptions:[m(1953,null),m(1954,null)]}}}}})}}),Lc,ye,XN,KN,s7,eO,tO,sO,iO,nO,rO,oO,fh,i7,aO,cO,n7,lO,uO,hO,Lm,fO,dO,pO,mO,gO,wO,vO,r7,bO,yO,EO,xO,kO,$O,SO,PO,IO,DO,Nr=v({"out-build/vs/base/common/semver/semver.js"(){"use strict";Lc={},ye={exports:Lc},function(e,t){if(typeof Lc=="object"&&typeof ye=="object")ye.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var s=t();for(var i in s)(typeof Lc=="object"?Lc:e)[i]=s[i]}}(typeof self<"u"?self:void 0,function(){return function(e){var t={};function s(i){if(t[i])return t[i].exports;var n=t[i]={i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,s),n.l=!0,n.exports}return s.m=e,s.c=t,s.d=function(i,n,r){s.o(i,n)||Object.defineProperty(i,n,{enumerable:!0,get:r})},s.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},s.t=function(i,n){if(1&n&&(i=s(i)),8&n||4&n&&typeof i=="object"&&i&&i.__esModule)return i;var r=Object.create(null);if(s.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:i}),2&n&&typeof i!="string")for(var o in i)s.d(r,o,function(a){return i[a]}.bind(null,o));return r},s.n=function(i){var n=i&&i.__esModule?function(){return i.default}:function(){return i};return s.d(n,"a",n),n},s.o=function(i,n){return Object.prototype.hasOwnProperty.call(i,n)},s.p="",s(s.s=0)}([function(e,t,s){(function(i){var n;t=e.exports=_e,n=typeof i=="object"&&i.env&&i.env.NODE_DEBUG&&/\bsemver\b/i.test(i.env.NODE_DEBUG)?function(){var E=Array.prototype.slice.call(arguments,0);E.unshift("SEMVER"),console.log.apply(console,E)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],c=t.src=[],l=0,u=l++;c[u]="0|[1-9]\\d*";var h=l++;c[h]="[0-9]+";var f=l++;c[f]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=l++;c[p]="("+c[u]+")\\.("+c[u]+")\\.("+c[u]+")";var g=l++;c[g]="("+c[h]+")\\.("+c[h]+")\\.("+c[h]+")";var w=l++;c[w]="(?:"+c[u]+"|"+c[f]+")";var b=l++;c[b]="(?:"+c[h]+"|"+c[f]+")";var x=l++;c[x]="(?:-("+c[w]+"(?:\\."+c[w]+")*))";var k=l++;c[k]="(?:-?("+c[b]+"(?:\\."+c[b]+")*))";var I=l++;c[I]="[0-9A-Za-z-]+";var M=l++;c[M]="(?:\\+("+c[I]+"(?:\\."+c[I]+")*))";var j=l++,Ee="v?"+c[p]+c[x]+"?"+c[M]+"?";c[j]="^"+Ee+"$";var O="[v=\\s]*"+c[g]+c[k]+"?"+c[M]+"?",z=l++;c[z]="^"+O+"$";var A=l++;c[A]="((?:<|>)?=?)";var ee=l++;c[ee]=c[h]+"|x|X|\\*";var Ce=l++;c[Ce]=c[u]+"|x|X|\\*";var F=l++;c[F]="[v=\\s]*("+c[Ce]+")(?:\\.("+c[Ce]+")(?:\\.("+c[Ce]+")(?:"+c[x]+")?"+c[M]+"?)?)?";var Ke=l++;c[Ke]="[v=\\s]*("+c[ee]+")(?:\\.("+c[ee]+")(?:\\.("+c[ee]+")(?:"+c[k]+")?"+c[M]+"?)?)?";var C=l++;c[C]="^"+c[A]+"\\s*"+c[F]+"$";var N=l++;c[N]="^"+c[A]+"\\s*"+c[Ke]+"$";var H=l++;c[H]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var L=l++;c[L]="(?:~>?)";var T=l++;c[T]="(\\s*)"+c[L]+"\\s+",a[T]=new RegExp(c[T],"g");var se=l++;c[se]="^"+c[L]+c[F]+"$";var we=l++;c[we]="^"+c[L]+c[Ke]+"$";var et=l++;c[et]="(?:\\^)";var lt=l++;c[lt]="(\\s*)"+c[et]+"\\s+",a[lt]=new RegExp(c[lt],"g");var Bs=l++;c[Bs]="^"+c[et]+c[F]+"$";var cs=l++;c[cs]="^"+c[et]+c[Ke]+"$";var Qi=l++;c[Qi]="^"+c[A]+"\\s*("+O+")$|^$";var co=l++;c[co]="^"+c[A]+"\\s*("+Ee+")$|^$";var Pi=l++;c[Pi]="(\\s*)"+c[A]+"\\s*("+O+"|"+c[F]+")",a[Pi]=new RegExp(c[Pi],"g");var cu=l++;c[cu]="^\\s*("+c[F]+")\\s+-\\s+("+c[F]+")\\s*$";var lu=l++;c[lu]="^\\s*("+c[Ke]+")\\s+-\\s+("+c[Ke]+")\\s*$";var vb=l++;c[vb]="(<|>)?=?\\s*\\*";for(var ur=0;ur<35;ur++)n(ur,c[ur]),a[ur]||(a[ur]=new RegExp(c[ur]));function hr(E,$){if(E instanceof _e)return E;if(typeof E!="string"||E.length>r||!($?a[z]:a[j]).test(E))return null;try{return new _e(E,$)}catch{return null}}function _e(E,$){if(E instanceof _e){if(E.loose===$)return E;E=E.version}else if(typeof E!="string")throw new TypeError("Invalid Version: "+E);if(E.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof _e))return new _e(E,$);n("SemVer",E,$),this.loose=$;var P=E.trim().match($?a[z]:a[j]);if(!P)throw new TypeError("Invalid Version: "+E);if(this.raw=E,this.major=+P[1],this.minor=+P[2],this.patch=+P[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");P[4]?this.prerelease=P[4].split(".").map(function(Z){if(/^[0-9]+$/.test(Z)){var ae=+Z;if(ae>=0&&ae<o)return ae}return Z}):this.prerelease=[],this.build=P[5]?P[5].split("."):[],this.format()}t.parse=hr,t.valid=function(E,$){var P=hr(E,$);return P?P.version:null},t.clean=function(E,$){var P=hr(E.trim().replace(/^[=v]+/,""),$);return P?P.version:null},t.SemVer=_e,_e.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},_e.prototype.toString=function(){return this.version},_e.prototype.compare=function(E){return n("SemVer.compare",this.version,this.loose,E),E instanceof _e||(E=new _e(E,this.loose)),this.compareMain(E)||this.comparePre(E)},_e.prototype.compareMain=function(E){return E instanceof _e||(E=new _e(E,this.loose)),lo(this.major,E.major)||lo(this.minor,E.minor)||lo(this.patch,E.patch)},_e.prototype.comparePre=function(E){if(E instanceof _e||(E=new _e(E,this.loose)),this.prerelease.length&&!E.prerelease.length)return-1;if(!this.prerelease.length&&E.prerelease.length)return 1;if(!this.prerelease.length&&!E.prerelease.length)return 0;var $=0;do{var P=this.prerelease[$],Z=E.prerelease[$];if(n("prerelease compare",$,P,Z),P===void 0&&Z===void 0)return 0;if(Z===void 0)return 1;if(P===void 0)return-1;if(P!==Z)return lo(P,Z)}while(++$)},_e.prototype.inc=function(E,$){switch(E){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",$);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",$);break;case"prepatch":this.prerelease.length=0,this.inc("patch",$),this.inc("pre",$);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",$),this.inc("pre",$);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var P=this.prerelease.length;--P>=0;)typeof this.prerelease[P]=="number"&&(this.prerelease[P]++,P=-2);P===-1&&this.prerelease.push(0)}$&&(this.prerelease[0]===$?isNaN(this.prerelease[1])&&(this.prerelease=[$,0]):this.prerelease=[$,0]);break;default:throw new Error("invalid increment argument: "+E)}return this.format(),this.raw=this.version,this},t.inc=function(E,$,P,Z){typeof P=="string"&&(Z=P,P=void 0);try{return new _e(E,P).inc($,Z).version}catch{return null}},t.diff=function(E,$){if(H1(E,$))return null;var P=hr(E),Z=hr($);if(P.prerelease.length||Z.prerelease.length){for(var ae in P)if((ae==="major"||ae==="minor"||ae==="patch")&&P[ae]!==Z[ae])return"pre"+ae;return"prerelease"}for(var ae in P)if((ae==="major"||ae==="minor"||ae==="patch")&&P[ae]!==Z[ae])return ae},t.compareIdentifiers=lo;var bb=/^[0-9]+$/;function lo(E,$){var P=bb.test(E),Z=bb.test($);return P&&Z&&(E=+E,$=+$),P&&!Z?-1:Z&&!P?1:E<$?-1:E>$?1:0}function Xi(E,$,P){return new _e(E,P).compare(new _e($,P))}function uu(E,$,P){return Xi(E,$,P)>0}function hu(E,$,P){return Xi(E,$,P)<0}function H1(E,$,P){return Xi(E,$,P)===0}function yb(E,$,P){return Xi(E,$,P)!==0}function V1(E,$,P){return Xi(E,$,P)>=0}function W1(E,$,P){return Xi(E,$,P)<=0}function fu(E,$,P,Z){var ae;switch($){case"===":typeof E=="object"&&(E=E.version),typeof P=="object"&&(P=P.version),ae=E===P;break;case"!==":typeof E=="object"&&(E=E.version),typeof P=="object"&&(P=P.version),ae=E!==P;break;case"":case"=":case"==":ae=H1(E,P,Z);break;case"!=":ae=yb(E,P,Z);break;case">":ae=uu(E,P,Z);break;case">=":ae=V1(E,P,Z);break;case"<":ae=hu(E,P,Z);break;case"<=":ae=W1(E,P,Z);break;default:throw new TypeError("Invalid operator: "+$)}return ae}function zs(E,$){if(E instanceof zs){if(E.loose===$)return E;E=E.value}if(!(this instanceof zs))return new zs(E,$);n("comparator",E,$),this.loose=$,this.parse(E),this.semver===Ta?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(E,$){return lo($,E)},t.major=function(E,$){return new _e(E,$).major},t.minor=function(E,$){return new _e(E,$).minor},t.patch=function(E,$){return new _e(E,$).patch},t.compare=Xi,t.compareLoose=function(E,$){return Xi(E,$,!0)},t.rcompare=function(E,$,P){return Xi($,E,P)},t.sort=function(E,$){return E.sort(function(P,Z){return t.compare(P,Z,$)})},t.rsort=function(E,$){return E.sort(function(P,Z){return t.rcompare(P,Z,$)})},t.gt=uu,t.lt=hu,t.eq=H1,t.neq=yb,t.gte=V1,t.lte=W1,t.cmp=fu,t.Comparator=zs;var Ta={};function pt(E,$){if(E instanceof pt)return E.loose===$?E:new pt(E.raw,$);if(E instanceof zs)return new pt(E.value,$);if(!(this instanceof pt))return new pt(E,$);if(this.loose=$,this.raw=E,this.set=E.split(/\s*\|\|\s*/).map(function(P){return this.parseRange(P.trim())},this).filter(function(P){return P.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+E);this.format()}function ls(E){return!E||E.toLowerCase()==="x"||E==="*"}function $A(E,$,P,Z,ae,Mt,Me,ks,Et,ss,Ii,xt,Vt){return(($=ls(P)?"":ls(Z)?">="+P+".0.0":ls(ae)?">="+P+"."+Z+".0":">="+$)+" "+(ks=ls(Et)?"":ls(ss)?"<"+(+Et+1)+".0.0":ls(Ii)?"<"+Et+"."+(+ss+1)+".0":xt?"<="+Et+"."+ss+"."+Ii+"-"+xt:"<="+ks)).trim()}function SA(E,$){for(var P=0;P<E.length;P++)if(!E[P].test($))return!1;if($.prerelease.length){for(P=0;P<E.length;P++)if(n(E[P].semver),E[P].semver!==Ta&&E[P].semver.prerelease.length>0){var Z=E[P].semver;if(Z.major===$.major&&Z.minor===$.minor&&Z.patch===$.patch)return!0}return!1}return!0}function du(E,$,P){try{$=new pt($,P)}catch{return!1}return $.test(E)}function q1(E,$,P,Z){var ae,Mt,Me,ks,Et;switch(E=new _e(E,Z),$=new pt($,Z),P){case">":ae=uu,Mt=W1,Me=hu,ks=">",Et=">=";break;case"<":ae=hu,Mt=V1,Me=uu,ks="<",Et="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(du(E,$,Z))return!1;for(var ss=0;ss<$.set.length;++ss){var Ii=$.set[ss],xt=null,Vt=null;if(Ii.forEach(function($s){$s.semver===Ta&&($s=new zs(">=0.0.0")),xt=xt||$s,Vt=Vt||$s,ae($s.semver,xt.semver,Z)?xt=$s:Me($s.semver,Vt.semver,Z)&&(Vt=$s)}),xt.operator===ks||xt.operator===Et||(!Vt.operator||Vt.operator===ks)&&Mt(E,Vt.semver)||Vt.operator===Et&&Me(E,Vt.semver))return!1}return!0}zs.prototype.parse=function(E){var $=this.loose?a[Qi]:a[co],P=E.match($);if(!P)throw new TypeError("Invalid comparator: "+E);this.operator=P[1],this.operator==="="&&(this.operator=""),P[2]?this.semver=new _e(P[2],this.loose):this.semver=Ta},zs.prototype.toString=function(){return this.value},zs.prototype.test=function(E){return n("Comparator.test",E,this.loose),this.semver===Ta||(typeof E=="string"&&(E=new _e(E,this.loose)),fu(E,this.operator,this.semver,this.loose))},zs.prototype.intersects=function(E,$){if(!(E instanceof zs))throw new TypeError("a Comparator is required");var P;if(this.operator==="")return P=new pt(E.value,$),du(this.value,P,$);if(E.operator==="")return P=new pt(this.value,$),du(E.semver,P,$);var Z=!(this.operator!==">="&&this.operator!==">"||E.operator!==">="&&E.operator!==">"),ae=!(this.operator!=="<="&&this.operator!=="<"||E.operator!=="<="&&E.operator!=="<"),Mt=this.semver.version===E.semver.version,Me=!(this.operator!==">="&&this.operator!=="<="||E.operator!==">="&&E.operator!=="<="),ks=fu(this.semver,"<",E.semver,$)&&(this.operator===">="||this.operator===">")&&(E.operator==="<="||E.operator==="<"),Et=fu(this.semver,">",E.semver,$)&&(this.operator==="<="||this.operator==="<")&&(E.operator===">="||E.operator===">");return Z||ae||Mt&&Me||ks||Et},t.Range=pt,pt.prototype.format=function(){return this.range=this.set.map(function(E){return E.join(" ").trim()}).join("||").trim(),this.range},pt.prototype.toString=function(){return this.range},pt.prototype.parseRange=function(E){var $=this.loose;E=E.trim(),n("range",E,$);var P=$?a[lu]:a[cu];E=E.replace(P,$A),n("hyphen replace",E),E=E.replace(a[Pi],"$1$2$3"),n("comparator trim",E,a[Pi]),E=(E=(E=E.replace(a[T],"$1~")).replace(a[lt],"$1^")).split(/\s+/).join(" ");var Z=$?a[Qi]:a[co],ae=E.split(" ").map(function(Mt){return function(Me,ks){return n("comp",Me),Me=function(Et,ss){return Et.trim().split(/\s+/).map(function(Ii){return function(xt,Vt){n("caret",xt,Vt);var $s=Vt?a[cs]:a[Bs];return xt.replace($s,function(ii,le,xe,Ze,nt){var Wt;return n("caret",xt,ii,le,xe,Ze,nt),ls(le)?Wt="":ls(xe)?Wt=">="+le+".0.0 <"+(+le+1)+".0.0":ls(Ze)?Wt=le==="0"?">="+le+"."+xe+".0 <"+le+"."+(+xe+1)+".0":">="+le+"."+xe+".0 <"+(+le+1)+".0.0":nt?(n("replaceCaret pr",nt),nt.charAt(0)!=="-"&&(nt="-"+nt),Wt=le==="0"?xe==="0"?">="+le+"."+xe+"."+Ze+nt+" <"+le+"."+xe+"."+(+Ze+1):">="+le+"."+xe+"."+Ze+nt+" <"+le+"."+(+xe+1)+".0":">="+le+"."+xe+"."+Ze+nt+" <"+(+le+1)+".0.0"):(n("no pr"),Wt=le==="0"?xe==="0"?">="+le+"."+xe+"."+Ze+" <"+le+"."+xe+"."+(+Ze+1):">="+le+"."+xe+"."+Ze+" <"+le+"."+(+xe+1)+".0":">="+le+"."+xe+"."+Ze+" <"+(+le+1)+".0.0"),n("caret return",Wt),Wt})}(Ii,ss)}).join(" ")}(Me,ks),n("caret",Me),Me=function(Et,ss){return Et.trim().split(/\s+/).map(function(Ii){return function(xt,Vt){var $s=Vt?a[we]:a[se];return xt.replace($s,function(ii,le,xe,Ze,nt){var Wt;return n("tilde",xt,ii,le,xe,Ze,nt),ls(le)?Wt="":ls(xe)?Wt=">="+le+".0.0 <"+(+le+1)+".0.0":ls(Ze)?Wt=">="+le+"."+xe+".0 <"+le+"."+(+xe+1)+".0":nt?(n("replaceTilde pr",nt),nt.charAt(0)!=="-"&&(nt="-"+nt),Wt=">="+le+"."+xe+"."+Ze+nt+" <"+le+"."+(+xe+1)+".0"):Wt=">="+le+"."+xe+"."+Ze+" <"+le+"."+(+xe+1)+".0",n("tilde return",Wt),Wt})}(Ii,ss)}).join(" ")}(Me,ks),n("tildes",Me),Me=function(Et,ss){return n("replaceXRanges",Et,ss),Et.split(/\s+/).map(function(Ii){return function(xt,Vt){xt=xt.trim();var $s=Vt?a[N]:a[C];return xt.replace($s,function(ii,le,xe,Ze,nt,Wt){n("xRange",xt,ii,le,xe,Ze,nt,Wt);var Eb=ls(xe),Fa=Eb||ls(Ze),Ba=Fa||ls(nt);return le==="="&&Ba&&(le=""),Eb?ii=le===">"||le==="<"?"<0.0.0":"*":le&&Ba?(Fa&&(Ze=0),Ba&&(nt=0),le===">"?(le=">=",Fa?(xe=+xe+1,Ze=0,nt=0):Ba&&(Ze=+Ze+1,nt=0)):le==="<="&&(le="<",Fa?xe=+xe+1:Ze=+Ze+1),ii=le+xe+"."+Ze+"."+nt):Fa?ii=">="+xe+".0.0 <"+(+xe+1)+".0.0":Ba&&(ii=">="+xe+"."+Ze+".0 <"+xe+"."+(+Ze+1)+".0"),n("xRange return",ii),ii})}(Ii,ss)}).join(" ")}(Me,ks),n("xrange",Me),Me=function(Et,ss){return n("replaceStars",Et,ss),Et.trim().replace(a[vb],"")}(Me,ks),n("stars",Me),Me}(Mt,$)}).join(" ").split(/\s+/);return this.loose&&(ae=ae.filter(function(Mt){return!!Mt.match(Z)})),ae=ae.map(function(Mt){return new zs(Mt,$)})},pt.prototype.intersects=function(E,$){if(!(E instanceof pt))throw new TypeError("a Range is required");return this.set.some(function(P){return P.every(function(Z){return E.set.some(function(ae){return ae.every(function(Mt){return Z.intersects(Mt,$)})})})})},t.toComparators=function(E,$){return new pt(E,$).set.map(function(P){return P.map(function(Z){return Z.value}).join(" ").trim().split(" ")})},pt.prototype.test=function(E){if(!E)return!1;typeof E=="string"&&(E=new _e(E,this.loose));for(var $=0;$<this.set.length;$++)if(SA(this.set[$],E))return!0;return!1},t.satisfies=du,t.maxSatisfying=function(E,$,P){var Z=null,ae=null;try{var Mt=new pt($,P)}catch{return null}return E.forEach(function(Me){Mt.test(Me)&&(Z&&ae.compare(Me)!==-1||(ae=new _e(Z=Me,P)))}),Z},t.minSatisfying=function(E,$,P){var Z=null,ae=null;try{var Mt=new pt($,P)}catch{return null}return E.forEach(function(Me){Mt.test(Me)&&(Z&&ae.compare(Me)!==1||(ae=new _e(Z=Me,P)))}),Z},t.validRange=function(E,$){try{return new pt(E,$).range||"*"}catch{return null}},t.ltr=function(E,$,P){return q1(E,$,"<",P)},t.gtr=function(E,$,P){return q1(E,$,">",P)},t.outside=q1,t.prerelease=function(E,$){var P=hr(E,$);return P&&P.prerelease.length?P.prerelease:null},t.intersects=function(E,$,P){return E=new pt(E,P),$=new pt($,P),E.intersects($)},t.coerce=function(E){if(E instanceof _e)return E;if(typeof E!="string")return null;var $=E.match(a[H]);return $==null?null:hr(($[1]||"0")+"."+($[2]||"0")+"."+($[3]||"0"))}}).call(this,s(1))},function(e,t){var s,i,n=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(b){if(s===setTimeout)return setTimeout(b,0);if((s===r||!s)&&setTimeout)return s=setTimeout,setTimeout(b,0);try{return s(b,0)}catch{try{return s.call(null,b,0)}catch{return s.call(this,b,0)}}}(function(){try{s=typeof setTimeout=="function"?setTimeout:r}catch{s=r}try{i=typeof clearTimeout=="function"?clearTimeout:o}catch{i=o}})();var c,l=[],u=!1,h=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&p())}function p(){if(!u){var b=a(f);u=!0;for(var x=l.length;x;){for(c=l,l=[];++h<x;)c&&c[h].run();h=-1,x=l.length}c=null,u=!1,function(k){if(i===clearTimeout)return clearTimeout(k);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(k);try{i(k)}catch{try{return i.call(null,k)}catch{return i.call(this,k)}}}(b)}}function g(b,x){this.fun=b,this.array=x}function w(){}n.nextTick=function(b){var x=new Array(arguments.length-1);if(arguments.length>1)for(var k=1;k<arguments.length;k++)x[k-1]=arguments[k];l.push(new g(b,x)),l.length!==1||u||a(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=w,n.addListener=w,n.once=w,n.off=w,n.removeListener=w,n.removeAllListeners=w,n.emit=w,n.prependListener=w,n.prependOnceListener=w,n.listeners=function(b){return[]},n.binding=function(b){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(b){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}])}),XN=ye.exports.SEMVER_SPEC_VERSION,KN=ye.exports.parse,s7=ye.exports.valid,eO=ye.exports.coerce,tO=ye.exports.clean,sO=ye.exports.inc,iO=ye.exports.major,nO=ye.exports.minor,rO=ye.exports.patch,oO=ye.exports.prerelease,fh=ye.exports.gt,i7=ye.exports.gte,aO=ye.exports.lt,cO=ye.exports.lte,n7=ye.exports.eq,lO=ye.exports.neq,uO=ye.exports.cmp,hO=ye.exports.compare,Lm=ye.exports.rcompare,fO=ye.exports.compareIdentifiers,dO=ye.exports.rcompareIdentifiers,pO=ye.exports.compareBuild,mO=ye.exports.sort,gO=ye.exports.rsort,wO=ye.exports.diff,vO=ye.exports.validRange,r7=ye.exports.satisfies,bO=ye.exports.maxSatisfying,yO=ye.exports.minSatisfying,EO=ye.exports.minVersion,xO=ye.exports.gtr,kO=ye.exports.ltr,$O=ye.exports.outside,SO=ye.exports.intersects,PO=ye.exports.SemVer,IO=ye.exports.Comparator,DO=ye.exports.Range}});function o7(e){return e instanceof a7?!0:e instanceof Error&&e.name===dh&&e.message===dh}var dh,a7,AO=v({"out-build/vs/base/parts/request/common/request.js"(){"use strict";dh="Offline",a7=class extends Error{constructor(){super(dh),this.name=this.message}}}});function c7(e){return LO(e)}function LO(e){return e.contributes&&e.contributes.localizations?e.contributes.localizations.length>0:!1}function RO(e){return e.map(t=>{const[s,i]=t.split("@");return{proposalName:s,version:i?parseInt(i):void 0}})}function NO(e){return e.map(t=>t.split("@")[0])}var Rm,l7,Nm,u7,h7,f7,di,Om,OO,Zs=v({"out-build/vs/platform/extensions/common/extensions.js"(){"use strict";at(),ie(),xm(),Rm="extensions.user.cache",l7="extensions.builtin.cache",Nm="undefined_publisher",u7=["AI","Azure","Chat","Data Science","Debuggers","Extension Packs","Education","Formatters","Keymaps","Language Packs","Linters","Machine Learning","Notebooks","Programming Languages","SCM Providers","Snippets","Testing","Themes","Visualization","Other"],function(e){e[e.System=0]="System",e[e.User=1]="User"}(h7||(h7={})),function(e){e.WIN32_X64="win32-x64",e.WIN32_ARM64="win32-arm64",e.LINUX_X64="linux-x64",e.LINUX_ARM64="linux-arm64",e.LINUX_ARMHF="linux-armhf",e.ALPINE_X64="alpine-x64",e.ALPINE_ARM64="alpine-arm64",e.DARWIN_X64="darwin-x64",e.DARWIN_ARM64="darwin-arm64",e.WEB="web",e.UNIVERSAL="universal",e.UNKNOWN="unknown",e.UNDEFINED="undefined"}(f7||(f7={})),di=class{constructor(e){this.value=e,this._lower=e.toLowerCase()}static equals(e,t){if(typeof e>"u"||e===null)return typeof t>"u"||t===null;if(typeof t>"u"||t===null)return!1;if(typeof e=="string"||typeof t=="string"){const s=typeof e=="string"?e:e.value,i=typeof t=="string"?t:t.value;return br(s,i)}return e._lower===t._lower}static toKey(e){return typeof e=="string"?e.toLowerCase():e._lower}},Om=class{constructor(){this.c=new Map}clear(){this.c.clear()}delete(e){this.c.delete(di.toKey(e))}get(e){return this.c.get(di.toKey(e))}has(e){return this.c.has(di.toKey(e))}set(e,t){this.c.set(di.toKey(e),t)}values(){return this.c.values()}forEach(e){this.c.forEach(e)}[Symbol.iterator](){return this.c[Symbol.iterator]()}},OO=X("IBuiltinExtensionsScannerService")}});function pe(e,t){return e.uuid&&t.uuid?e.uuid===t.uuid:e.id===t.id?!0:Du(e.id,t.id)===0}function Cm(e){const t=g7.exec(e);return t&&t[1]?[ph(t[1]),t[2]]:[ph(e),void 0]}function _m(e,t){return`${e}.${t}`}function ph(e){return e.toLowerCase()}function pi(e,t){return ph(_m(e??Nm,t))}function d7(e,t){const s=[],i=n=>{for(const r of s)if(r.some(o=>pe(t(o),t(n))))return r;return null};for(const n of e){const r=i(n);r?r.push(n):s.push([n])}return s}function CO(e){return{id:e.identifier.id,name:e.manifest.name,galleryId:null,publisherId:e.publisherId,publisherName:e.manifest.publisher,publisherDisplayName:e.publisherDisplayName,dependencies:e.manifest.extensionDependencies&&e.manifest.extensionDependencies.length>0}}function Mm(e){return{id:new Fo(e.identifier.id),name:new Fo(e.name),extensionVersion:e.version,galleryId:e.identifier.uuid,publisherId:e.publisherId,publisherName:e.publisher,publisherDisplayName:e.publisherDisplayName,isPreReleaseVersion:e.properties.isPreReleaseVersion,dependencies:!!(e.properties.dependencies&&e.properties.dependencies.length>0),isSigned:e.isSigned,...e.telemetryData}}async function _O(e,t){if(!ut)return!1;let s;try{s=(await e.readFile(y.file("/etc/os-release"))).value.toString()}catch{try{s=(await e.readFile(y.file("/usr/lib/os-release"))).value.toString()}catch(n){t.debug("Error while getting the os-release file.",de(n))}}return!!s&&(s.match(/^ID=([^\u001b\r\n]*)/m)||[])[1]==="alpine"}async function p7(e,t){const s=await _O(e,t),i=z9(s?"alpine":fr,rp);return t.debug("ComputeTargetPlatform:",i),i}function MO(e,t){return UO(e,t)!==void 0}function UO(e,t){return t.find(({extensionOrPublisher:s})=>ue(s)?Du(e.id.split(".")[0],s)===0:pe(e,s))}var m7,ws,g7,jO,mi=v({"out-build/vs/platform/extensionManagement/common/extensionManagementUtil.js"(){"use strict";at(),As(),Zs(),te(),Q(),ge(),ri(),hi(),be(),m7=/^([^.]+\..+)-(\d+\.\d+\.\d+)(-(.+))?$/,ws=class _1{static create(t){const s=t.manifest?t.manifest.version:t.version,i=t.manifest?t.targetPlatform:t.properties.targetPlatform;return new _1(t.identifier,s,i)}static parse(t){const s=m7.exec(t);return s&&s[1]&&s[2]?new _1({id:s[1]},s[2],s[4]||void 0):null}constructor(t,s,i="undefined"){this.identifier=t,this.version=s,this.targetPlatform=i,this.id=t.id}toString(){return`${this.id}-${this.version}${this.targetPlatform!=="undefined"?`-${this.targetPlatform}`:""}`}equals(t){return t instanceof _1?pe(this,t)&&this.version===t.version&&this.targetPlatform===t.targetPlatform:!1}},g7=/^([^.]+\..+)@((prerelease)|(\d+\.\d+\.\d+(-.*)?))$/,jO=new di("pprice.better-merge")}}),Rc,Ye,mh=v({"out-build/vs/base/common/severity.js"(){"use strict";at(),function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(Rc||(Rc={})),function(e){const t="error",s="warning",i="warn",n="info",r="ignore";function o(c){return c?br(t,c)?e.Error:br(s,c)||br(i,c)?e.Warning:br(n,c)?e.Info:e.Ignore:e.Ignore}e.fromValue=o;function a(c){switch(c){case e.Error:return t;case e.Warning:return s;case e.Info:return n;default:return r}}e.toString=a}(Rc||(Rc={})),Ye=Rc}}),w7,v7,TO=v({"out-build/vs/platform/extensions/common/extensionsApiProposals.js"(){"use strict";w7={activeComment:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.activeComment.d.ts"},aiRelatedInformation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts"},aiSettingsSearch:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.aiSettingsSearch.d.ts"},aiTextSearchProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts",version:2},authIssuers:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.authIssuers.d.ts"},authLearnMore:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.authLearnMore.d.ts"},authProviderSpecific:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.authProviderSpecific.d.ts"},authSession:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.authSession.d.ts"},canonicalUriProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.canonicalUriProvider.d.ts"},chatEditing:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatEditing.d.ts"},chatParticipantAdditions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts"},chatParticipantPrivate:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts",version:9},chatProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatProvider.d.ts"},chatReferenceBinaryData:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts"},chatReferenceDiagnostic:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatReferenceDiagnostic.d.ts"},chatStatusItem:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatStatusItem.d.ts"},chatTab:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.chatTab.d.ts"},codeActionAI:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.codeActionAI.d.ts"},codeActionRanges:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.codeActionRanges.d.ts"},codiconDecoration:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.codiconDecoration.d.ts"},commentReactor:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentReactor.d.ts"},commentReveal:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentReveal.d.ts"},commentThreadApplicability:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts"},commentingRangeHint:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentingRangeHint.d.ts"},commentsDraftState:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.commentsDraftState.d.ts"},contribAccessibilityHelpContent:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribAccessibilityHelpContent.d.ts"},contribCommentEditorActionsMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentEditorActionsMenu.d.ts"},contribCommentPeekContext:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentPeekContext.d.ts"},contribCommentThreadAdditionalMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts"},contribCommentsViewThreadMenus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribCommentsViewThreadMenus.d.ts"},contribDebugCreateConfiguration:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribDebugCreateConfiguration.d.ts"},contribDiffEditorGutterToolBarMenus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribDiffEditorGutterToolBarMenus.d.ts"},contribEditSessions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribEditSessions.d.ts"},contribEditorContentMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribEditorContentMenu.d.ts"},contribLabelFormatterWorkspaceTooltip:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribLabelFormatterWorkspaceTooltip.d.ts"},contribLanguageModelToolSets:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribLanguageModelToolSets.d.ts"},contribMenuBarHome:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribMenuBarHome.d.ts"},contribMergeEditorMenus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribMergeEditorMenus.d.ts"},contribMultiDiffEditorMenus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribMultiDiffEditorMenus.d.ts"},contribNotebookStaticPreloads:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribNotebookStaticPreloads.d.ts"},contribRemoteHelp:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribRemoteHelp.d.ts"},contribShareMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribShareMenu.d.ts"},contribSourceControlHistoryItemMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts"},contribSourceControlHistoryTitleMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribSourceControlHistoryTitleMenu.d.ts"},contribSourceControlInputBoxMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribSourceControlInputBoxMenu.d.ts"},contribSourceControlTitleMenu:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribSourceControlTitleMenu.d.ts"},contribStatusBarItems:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribStatusBarItems.d.ts"},contribViewContainerTitle:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribViewContainerTitle.d.ts"},contribViewsRemote:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribViewsRemote.d.ts"},contribViewsWelcome:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.contribViewsWelcome.d.ts"},customEditorMove:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.customEditorMove.d.ts"},debugVisualization:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.debugVisualization.d.ts"},defaultChatParticipant:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts",version:4},diffCommand:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.diffCommand.d.ts"},diffContentOptions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.diffContentOptions.d.ts"},documentFiltersExclusive:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.documentFiltersExclusive.d.ts"},editSessionIdentityProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.editSessionIdentityProvider.d.ts"},editorHoverVerbosityLevel:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts"},editorInsets:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.editorInsets.d.ts"},embeddings:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.embeddings.d.ts"},extensionRuntime:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.extensionRuntime.d.ts"},extensionsAny:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.extensionsAny.d.ts"},externalUriOpener:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.externalUriOpener.d.ts"},fileSearchProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.fileSearchProvider.d.ts"},fileSearchProvider2:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.fileSearchProvider2.d.ts"},findFiles2:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.findFiles2.d.ts",version:2},findTextInFiles:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.findTextInFiles.d.ts"},findTextInFiles2:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.findTextInFiles2.d.ts"},fsChunks:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.fsChunks.d.ts"},idToken:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.idToken.d.ts"},inlineCompletionsAdditions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts"},interactive:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.interactive.d.ts"},interactiveWindow:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.interactiveWindow.d.ts"},ipc:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.ipc.d.ts"},languageModelCapabilities:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageModelCapabilities.d.ts"},languageModelDataPart:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageModelDataPart.d.ts",version:3},languageModelSystem:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageModelSystem.d.ts"},languageStatusText:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.languageStatusText.d.ts"},mappedEditsProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts"},multiDocumentHighlightProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts"},nativeWindowHandle:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.nativeWindowHandle.d.ts"},newSymbolNamesProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts"},notebookCellExecution:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookCellExecution.d.ts"},notebookControllerAffinityHidden:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts"},notebookDeprecated:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookDeprecated.d.ts"},notebookExecution:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookExecution.d.ts"},notebookKernelSource:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookKernelSource.d.ts"},notebookLiveShare:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookLiveShare.d.ts"},notebookMessaging:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookMessaging.d.ts"},notebookMime:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookMime.d.ts"},notebookReplDocument:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookReplDocument.d.ts"},notebookVariableProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts"},portsAttributes:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.portsAttributes.d.ts"},profileContentHandlers:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.profileContentHandlers.d.ts"},quickDiffProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickDiffProvider.d.ts"},quickInputButtonLocation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickInputButtonLocation.d.ts"},quickPickItemTooltip:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts"},quickPickSortByLabel:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts"},remoteCodingAgents:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.remoteCodingAgents.d.ts"},resolvers:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.resolvers.d.ts"},scmActionButton:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmActionButton.d.ts"},scmHistoryProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts"},scmMultiDiffEditor:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmMultiDiffEditor.d.ts"},scmSelectedProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmSelectedProvider.d.ts"},scmTextDocument:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmTextDocument.d.ts"},scmValidation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.scmValidation.d.ts"},shareProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.shareProvider.d.ts"},speech:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.speech.d.ts"},statusBarItemTooltip:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.statusBarItemTooltip.d.ts"},tabInputMultiDiff:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tabInputMultiDiff.d.ts"},tabInputTextMerge:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tabInputTextMerge.d.ts"},taskPresentationGroup:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.taskPresentationGroup.d.ts"},taskProblemMatcherStatus:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.taskProblemMatcherStatus.d.ts"},telemetry:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.telemetry.d.ts"},terminalCompletionProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts"},terminalDataWriteEvent:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalDataWriteEvent.d.ts"},terminalDimensions:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalDimensions.d.ts"},terminalExecuteCommandEvent:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts"},terminalQuickFixProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts"},terminalSelection:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalSelection.d.ts"},terminalShellEnv:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.terminalShellEnv.d.ts"},testObserver:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.testObserver.d.ts"},testRelatedCode:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.testRelatedCode.d.ts"},textDocumentChangeReason:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textDocumentChangeReason.d.ts"},textEditorDiffInformation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textEditorDiffInformation.d.ts"},textSearchComplete2:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textSearchComplete2.d.ts"},textSearchProvider:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textSearchProvider.d.ts"},textSearchProvider2:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.textSearchProvider2.d.ts"},timeline:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.timeline.d.ts"},tokenInformation:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tokenInformation.d.ts"},toolProgress:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.toolProgress.d.ts"},treeViewActiveItem:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.treeViewActiveItem.d.ts"},treeViewMarkdownMessage:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.treeViewMarkdownMessage.d.ts"},treeViewReveal:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.treeViewReveal.d.ts"},tunnelFactory:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tunnelFactory.d.ts"},tunnels:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.tunnels.d.ts"},valueSelectionInQuickPick:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.valueSelectionInQuickPick.d.ts"},workspaceTrust:{proposal:"https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.workspaceTrust.d.ts"}},v7=Object.freeze(w7)}});function FO(e){return e=e.trim(),e==="*"||Bm.test(e)}function Um(e){if(!FO(e))return null;if(e=e.trim(),e==="*")return{hasCaret:!1,hasGreaterEquals:!1,majorBase:0,majorMustEqual:!1,minorBase:0,minorMustEqual:!1,patchBase:0,patchMustEqual:!1,preRelease:null};const t=e.match(Bm);return t?{hasCaret:t[1]==="^",hasGreaterEquals:t[1]===">=",majorBase:t[2]==="x"?0:parseInt(t[2],10),majorMustEqual:t[2]!=="x",minorBase:t[4]==="x"?0:parseInt(t[4],10),minorMustEqual:t[4]!=="x",patchBase:t[6]==="x"?0:parseInt(t[6],10),patchMustEqual:t[6]!=="x",preRelease:t[8]||null}:null}function jm(e){if(!e)return null;const t=e.majorBase,s=e.majorMustEqual,i=e.minorBase;let n=e.minorMustEqual;const r=e.patchBase;let o=e.patchMustEqual;e.hasCaret&&(t===0||(n=!1),o=!1);let a=0;if(e.preRelease){const c=E7.exec(e.preRelease);if(c){const[,l,u,h]=c;a=Date.UTC(Number(l),Number(u)-1,Number(h))}}return{majorBase:t,majorMustEqual:s,minorBase:i,minorMustEqual:n,patchBase:r,patchMustEqual:o,isMinimum:e.hasGreaterEquals,notBefore:a}}function BO(e,t,s){let i;typeof e=="string"?i=jm(Um(e)):i=e;let n;t instanceof Date?n=t.getTime():typeof t=="string"&&(n=new Date(t).getTime());let r;if(typeof s=="string"?r=jm(Um(s)):r=s,!i||!r)return!1;const o=i.majorBase,a=i.minorBase,c=i.patchBase;let l=r.majorBase,u=r.minorBase,h=r.patchBase;const f=r.notBefore;let p=r.majorMustEqual,g=r.minorMustEqual,w=r.patchMustEqual;return r.isMinimum?o>l?!0:o<l?!1:a>u?!0:a<u||n&&n<f?!1:c>=h:(o===1&&l===0&&(!p||!g||!w)&&(l=1,u=0,h=0,p=!0,g=!1,w=!1),o<l?!1:o>l?!p:a<u?!1:a>u?!g:c<h?!1:c>h?!w:!(n&&n<f))}function zO(e,t,s,i,n,r){const o=[];if(typeof i.publisher<"u"&&typeof i.publisher!="string")return o.push([Ye.Error,m(2008,null)]),o;if(typeof i.name!="string")return o.push([Ye.Error,m(2009,null,"name")]),o;if(typeof i.version!="string")return o.push([Ye.Error,m(2010,null,"version")]),o;if(!i.engines)return o.push([Ye.Error,m(2011,null,"engines")]),o;if(typeof i.engines.vscode!="string")return o.push([Ye.Error,m(2012,null,"engines.vscode")]),o;if(typeof i.extensionDependencies<"u"&&!y7(i.extensionDependencies))return o.push([Ye.Error,m(2013,null,"extensionDependencies")]),o;if(typeof i.activationEvents<"u"){if(!y7(i.activationEvents))return o.push([Ye.Error,m(2014,null,"activationEvents")]),o;if(typeof i.main>"u"&&typeof i.browser>"u")return o.push([Ye.Error,m(2015,null,"activationEvents","main","browser")]),o}if(typeof i.extensionKind<"u"&&typeof i.main>"u"&&o.push([Ye.Warning,m(2016,null,"extensionKind")]),typeof i.main<"u"){if(typeof i.main!="string")return o.push([Ye.Error,m(2017,null,"main")]),o;{const l=oe(s,i.main);Ap(l,s)||o.push([Ye.Warning,m(2018,null,l.path,s.path)])}}if(typeof i.browser<"u"){if(typeof i.browser!="string")return o.push([Ye.Error,m(2019,null,"browser")]),o;{const l=oe(s,i.browser);Ap(l,s)||o.push([Ye.Warning,m(2020,null,l.path,s.path)])}}if(!s7(i.version))return o.push([Ye.Error,m(2021,null)]),o;const a=[];if(!HO(e,t,i,n,a))for(const l of a)o.push([Ye.Error,l]);if(r&&i.enabledApiProposals?.length){const l=[];if(!Fm([...i.enabledApiProposals],l))for(const u of l)o.push([Ye.Error,u])}return o}function HO(e,t,s,i,n){return i||typeof s.main>"u"&&typeof s.browser>"u"?!0:b7(e,t,s.engines.vscode,n)}function Tm(e,t,s){return e==="*"||b7(t,s,e)}function Fm(e,t){if(e.length===0)return!0;const s=Array.isArray(t)?t:void 0,i=(s?void 0:t)??v7,n=[],r=RO(e);for(const{proposalName:o,version:a}of r){if(!a)continue;i[o]?.version!==a&&n.push(o)}return n.length?(s&&(n.length===1?s.push(m(2022,null,n[0])):s.push(m(2023,null,n.slice(0,n.length-1).map(o=>`'${o}'`).join(", "),n[n.length-1]))),!1):!0}function b7(e,t,s,i=[]){const n=jm(Um(s));if(!n)return i.push(m(2024,null,s)),!1;if(n.majorBase===0){if(!n.majorMustEqual||!n.minorMustEqual)return i.push(m(2025,null,s)),!1}else if(!n.majorMustEqual)return i.push(m(2026,null,s)),!1;return BO(e,t,n)?!0:(i.push(m(2027,null,e,s)),!1)}function y7(e){if(!Array.isArray(e))return!1;for(let t=0,s=e.length;t<s;t++)if(typeof e[t]!="string")return!1;return!0}var Bm,E7,gh=v({"out-build/vs/platform/extensions/common/extensionValidator.js"(){"use strict";ct(),mh(),ce(),Nr(),Zs(),TO(),Bm=/^(\^|>=)?((\d+)|x)\.((\d+)|x)\.((\d+)|x)(\-.*)?$/,E7=/^-(\d{4})(\d{2})(\d{2})$/}}),x7,k7,zm,$7,S7,Bn,Nc,P7,zo,wh=v({"out-build/vs/base/common/ternarySearchTree.js"(){"use strict";kt(),Ln(),at(),x7=class{constructor(){this.b="",this.c=0}reset(e){return this.b=e,this.c=0,this}next(){return this.c+=1,this}hasNext(){return this.c<this.b.length-1}cmp(e){const t=e.charCodeAt(0),s=this.b.charCodeAt(this.c);return t-s}value(){return this.b[this.c]}},k7=class{constructor(e=!0){this.e=e}reset(e){return this.b=e,this.c=0,this.d=0,this.next()}hasNext(){return this.d<this.b.length}next(){this.c=this.d;let e=!0;for(;this.d<this.b.length;this.d++)if(this.b.charCodeAt(this.d)===46)if(e)this.c++;else break;else e=!1;return this}cmp(e){return this.e?Ep(e,this.b,0,e.length,this.c,this.d):ec(e,this.b,0,e.length,this.c,this.d)}value(){return this.b.substring(this.c,this.d)}},zm=class{constructor(e=!0,t=!0){this.f=e,this.g=t}reset(e){this.d=0,this.e=0,this.b=e,this.c=e.length;for(let t=e.length-1;t>=0;t--,this.c--){const s=this.b.charCodeAt(t);if(!(s===47||this.f&&s===92))break}return this.next()}hasNext(){return this.e<this.c}next(){this.d=this.e;let e=!0;for(;this.e<this.c;this.e++){const t=this.b.charCodeAt(this.e);if(t===47||this.f&&t===92)if(e)this.d++;else break;else e=!1}return this}cmp(e){return this.g?Ep(e,this.b,0,e.length,this.d,this.e):ec(e,this.b,0,e.length,this.d,this.e)}value(){return this.b.substring(this.d,this.e)}},function(e){e[e.Scheme=1]="Scheme",e[e.Authority=2]="Authority",e[e.Path=3]="Path",e[e.Query=4]="Query",e[e.Fragment=5]="Fragment"}($7||($7={})),S7=class{constructor(e,t){this.f=e,this.g=t,this.d=[],this.e=0}reset(e){return this.c=e,this.d=[],this.c.scheme&&this.d.push(1),this.c.authority&&this.d.push(2),this.c.path&&(this.b=new zm(!1,!this.f(e)),this.b.reset(e.path),this.b.value()&&this.d.push(3)),this.g(e)||(this.c.query&&this.d.push(4),this.c.fragment&&this.d.push(5)),this.e=0,this}next(){return this.d[this.e]===3&&this.b.hasNext()?this.b.next():this.e+=1,this}hasNext(){return this.d[this.e]===3&&this.b.hasNext()||this.e<this.d.length-1}cmp(e){if(this.d[this.e]===1)return Du(e,this.c.scheme);if(this.d[this.e]===2)return Du(e,this.c.authority);if(this.d[this.e]===3)return this.b.cmp(e);if(this.d[this.e]===4)return yp(e,this.c.query);if(this.d[this.e]===5)return yp(e,this.c.fragment);throw new Error}value(){if(this.d[this.e]===1)return this.c.scheme;if(this.d[this.e]===2)return this.c.authority;if(this.d[this.e]===3)return this.b.value();if(this.d[this.e]===4)return this.c.query;if(this.d[this.e]===5)return this.c.fragment;throw new Error}},Bn=class ob{static{this.Val=Symbol("undefined_placeholder")}static wrap(t){return t===void 0?ob.Val:t}static unwrap(t){return t===ob.Val?void 0:t}},Nc=class{constructor(){this.height=1,this.value=void 0,this.key=void 0,this.left=void 0,this.mid=void 0,this.right=void 0}isEmpty(){return!this.left&&!this.mid&&!this.right&&this.value===void 0}rotateLeft(){const e=this.right;return this.right=e.left,e.left=this,this.updateHeight(),e.updateHeight(),e}rotateRight(){const e=this.left;return this.left=e.right,e.right=this,this.updateHeight(),e.updateHeight(),e}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}},function(e){e[e.Left=-1]="Left",e[e.Mid=0]="Mid",e[e.Right=1]="Right"}(P7||(P7={})),zo=class ou{static forUris(t=()=>!1,s=()=>!1){return new ou(new S7(t,s))}static forPaths(t=!1){return new ou(new zm(void 0,!t))}static forStrings(){return new ou(new x7)}static forConfigKeys(){return new ou(new k7)}constructor(t){this.b=t}clear(){this.c=void 0}fill(t,s){if(s){const i=s.slice(0);uy(i);for(const n of i)this.set(n,t)}else{const i=t.slice(0);uy(i);for(const n of i)this.set(n[0],n[1])}}set(t,s){const i=this.b.reset(t);let n;this.c||(this.c=new Nc,this.c.segment=i.value());const r=[];for(n=this.c;;){const a=i.cmp(n.segment);if(a>0)n.left||(n.left=new Nc,n.left.segment=i.value()),r.push([-1,n]),n=n.left;else if(a<0)n.right||(n.right=new Nc,n.right.segment=i.value()),r.push([1,n]),n=n.right;else if(i.hasNext())i.next(),n.mid||(n.mid=new Nc,n.mid.segment=i.value()),r.push([0,n]),n=n.mid;else break}const o=Bn.unwrap(n.value);n.value=Bn.wrap(s),n.key=t;for(let a=r.length-1;a>=0;a--){const c=r[a][1];c.updateHeight();const l=c.balanceFactor();if(l<-1||l>1){const u=r[a][0],h=r[a+1][0];if(u===1&&h===1)r[a][1]=c.rotateLeft();else if(u===-1&&h===-1)r[a][1]=c.rotateRight();else if(u===1&&h===-1)c.right=r[a+1][1]=r[a+1][1].rotateRight(),r[a][1]=c.rotateLeft();else if(u===-1&&h===1)c.left=r[a+1][1]=r[a+1][1].rotateLeft(),r[a][1]=c.rotateRight();else throw new Error;if(a>0)switch(r[a-1][0]){case-1:r[a-1][1].left=r[a][1];break;case 1:r[a-1][1].right=r[a][1];break;case 0:r[a-1][1].mid=r[a][1];break}else this.c=r[0][1]}}return o}get(t){return Bn.unwrap(this.d(t)?.value)}d(t){const s=this.b.reset(t);let i=this.c;for(;i;){const n=s.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else if(s.hasNext())s.next(),i=i.mid;else break}return i}has(t){const s=this.d(t);return!(s?.value===void 0&&s?.mid===void 0)}delete(t){return this.e(t,!1)}deleteSuperstr(t){return this.e(t,!0)}e(t,s){const i=this.b.reset(t),n=[];let r=this.c;for(;r;){const o=i.cmp(r.segment);if(o>0)n.push([-1,r]),r=r.left;else if(o<0)n.push([1,r]),r=r.right;else if(i.hasNext())i.next(),n.push([0,r]),r=r.mid;else break}if(r){if(s?(r.left=void 0,r.mid=void 0,r.right=void 0,r.height=1):(r.key=void 0,r.value=void 0),!r.mid&&!r.value)if(r.left&&r.right){const o=[[1,r]],a=this.f(r.right,o);if(a.key){r.key=a.key,r.value=a.value,r.segment=a.segment;const c=a.right;if(o.length>1){const[u,h]=o[o.length-1];switch(u){case-1:h.left=c;break;case 0:hp(!1);case 1:hp(!1)}}else r.right=c;const l=this.g(o);if(n.length>0){const[u,h]=n[n.length-1];switch(u){case-1:h.left=l;break;case 0:h.mid=l;break;case 1:h.right=l;break}}else this.c=l}}else{const o=r.left??r.right;if(n.length>0){const[a,c]=n[n.length-1];switch(a){case-1:c.left=o;break;case 0:c.mid=o;break;case 1:c.right=o;break}}else this.c=o}this.c=this.g(n)??this.c}}f(t,s){for(;t.left;)s.push([-1,t]),t=t.left;return t}g(t){for(let s=t.length-1;s>=0;s--){const i=t[s][1];i.updateHeight();const n=i.balanceFactor();if(n>1?(i.right.balanceFactor()>=0||(i.right=i.right.rotateRight()),t[s][1]=i.rotateLeft()):n<-1&&(i.left.balanceFactor()<=0||(i.left=i.left.rotateLeft()),t[s][1]=i.rotateRight()),s>0)switch(t[s-1][0]){case-1:t[s-1][1].left=t[s][1];break;case 1:t[s-1][1].right=t[s][1];break;case 0:t[s-1][1].mid=t[s][1];break}else return t[0][1]}}findSubstr(t){const s=this.b.reset(t);let i=this.c,n;for(;i;){const r=s.cmp(i.segment);if(r>0)i=i.left;else if(r<0)i=i.right;else if(s.hasNext())s.next(),n=Bn.unwrap(i.value)||n,i=i.mid;else break}return i&&Bn.unwrap(i.value)||n}findSuperstr(t){return this.h(t,!1)}h(t,s){const i=this.b.reset(t);let n=this.c;for(;n;){const r=i.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else if(i.hasNext())i.next(),n=n.mid;else return n.mid?this.j(n.mid):s?Bn.unwrap(n.value):void 0}}hasElementOrSubtree(t){return this.h(t,!0)!==void 0}forEach(t){for(const[s,i]of this)t(i,s)}*[Symbol.iterator](){yield*this.j(this.c)}j(t){const s=[];return this.l(t,s),s[Symbol.iterator]()}l(t,s){t&&(t.left&&this.l(t.left,s),t.value!==void 0&&s.push([t.key,Bn.unwrap(t.value)]),t.mid&&this.l(t.mid,s),t.right&&this.l(t.right,s))}_isBalanced(){const t=s=>{if(!s)return!0;const i=s.balanceFactor();return i<-1||i>1?!1:t(s.left)&&t(s.right)};return t(this.c)}}}});function Ho(e){return e.create===!0}function Ys(e){return!!(e.capabilities&2)}function I7(e){return!!(e.capabilities&8)}function VO(e){return!!(e.capabilities&131072)}function WO(e){return!!(e.capabilities&262144)}function zn(e){return!!(e.capabilities&4)}function Hm(e){return!!(e.capabilities&16)}function Vm(e){return Ys(e)?!!(e.capabilities&16384):!1}function D7(e){return Ys(e)?!!(e.capabilities&32768):!1}function qO(e){return!!(e.capabilities&65536)}function wn(e,t){return bh.create(e,t)}function Or(e){return e||wn(m(2042,null),ne.Unknown)}function A7(e,t){return e.name=t?`${t} (FileSystemError)`:"FileSystemError",e}function vh(e){if(!e)return ne.Unknown;if(e instanceof bh)return e.code;const t=/^(.+) \(FileSystemError\)$/.exec(e.name);if(!t)return ne.Unknown;switch(t[1]){case ne.FileExists:return ne.FileExists;case ne.FileIsADirectory:return ne.FileIsADirectory;case ne.FileNotADirectory:return ne.FileNotADirectory;case ne.FileNotFound:return ne.FileNotFound;case ne.FileTooLarge:return ne.FileTooLarge;case ne.FileWriteLocked:return ne.FileWriteLocked;case ne.NoPermissions:return ne.NoPermissions;case ne.Unavailable:return ne.Unavailable}return ne.Unknown}function St(e){if(e instanceof Xt)return e.fileOperationResult;switch(vh(e)){case ne.FileNotFound:return 1;case ne.FileIsADirectory:return 0;case ne.FileNotADirectory:return 9;case ne.FileWriteLocked:return 5;case ne.NoPermissions:return 6;case ne.FileExists:return 4;case ne.FileTooLarge:return 7;default:return 10}}function GO(e,t,s){return!e||!t||e===t||t.length>e.length?!1:(t.charAt(t.length-1)!==qt&&(t+=qt),s?xp(e,t):e.indexOf(t)===0)}function L7(e){if(!(typeof e.size!="number"||typeof e.mtime!="number"))return e.mtime.toString(29)+e.size.toString(31)}var Xe,Ls,Vo,R7,N7,ne,bh,O7,Cr,C7,_7,Xt,yh,Eh,M7,U7,xh,_r,Ge=v({"out-build/vs/platform/files/common/files.js"(){"use strict";wh(),he(),at(),be(),Q(),ce(),ie(),te(),Se(),go(),Xe=X("fileService"),function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(Ls||(Ls={})),function(e){e[e.Readonly=1]="Readonly",e[e.Locked=2]="Locked"}(Vo||(Vo={})),function(e){e[e.UPDATED=2]="UPDATED",e[e.ADDED=4]="ADDED",e[e.DELETED=8]="DELETED"}(R7||(R7={})),function(e){e[e.None=0]="None",e[e.FileReadWrite=2]="FileReadWrite",e[e.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",e[e.FileReadStream=16]="FileReadStream",e[e.FileFolderCopy=8]="FileFolderCopy",e[e.PathCaseSensitive=1024]="PathCaseSensitive",e[e.Readonly=2048]="Readonly",e[e.Trash=4096]="Trash",e[e.FileWriteUnlock=8192]="FileWriteUnlock",e[e.FileAtomicRead=16384]="FileAtomicRead",e[e.FileAtomicWrite=32768]="FileAtomicWrite",e[e.FileAtomicDelete=65536]="FileAtomicDelete",e[e.FileClone=131072]="FileClone",e[e.FileRealpath=262144]="FileRealpath"}(N7||(N7={})),function(e){e.FileExists="EntryExists",e.FileNotFound="EntryNotFound",e.FileNotADirectory="EntryNotADirectory",e.FileIsADirectory="EntryIsADirectory",e.FileExceedsStorageQuota="EntryExceedsStorageQuota",e.FileTooLarge="EntryTooLarge",e.FileWriteLocked="EntryWriteLocked",e.NoPermissions="NoPermissions",e.Unavailable="Unavailable",e.Unknown="Unknown"}(ne||(ne={})),bh=class aA extends Error{static create(t,s){const i=new aA(t.toString(),s);return A7(i,s),i}constructor(t,s){super(t),this.code=s}},function(e){e[e.CREATE=0]="CREATE",e[e.DELETE=1]="DELETE",e[e.MOVE=2]="MOVE",e[e.COPY=3]="COPY",e[e.WRITE=4]="WRITE"}(O7||(O7={})),Cr=class{constructor(e,t,s){this.resource=e,this.operation=t,this.target=s}isOperation(e){return this.operation===e}},function(e){e[e.UPDATED=0]="UPDATED",e[e.ADDED=1]="ADDED",e[e.DELETED=2]="DELETED"}(C7||(C7={})),_7=class M1{static{this.a=null}constructor(t,s){this.c=s,this.b=void 0,this.d=new Nn(()=>{const i=zo.forUris(()=>this.c);return i.fill(this.rawAdded.map(n=>[n,!0])),i}),this.f=new Nn(()=>{const i=zo.forUris(()=>this.c);return i.fill(this.rawUpdated.map(n=>[n,!0])),i}),this.g=new Nn(()=>{const i=zo.forUris(()=>this.c);return i.fill(this.rawDeleted.map(n=>[n,!0])),i}),this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[];for(const i of t){switch(i.type){case 1:this.rawAdded.push(i.resource);break;case 0:this.rawUpdated.push(i.resource);break;case 2:this.rawDeleted.push(i.resource);break}this.b!==M1.a&&(typeof i.cId=="number"?this.b===void 0?this.b=i.cId:this.b!==i.cId&&(this.b=M1.a):this.b!==void 0&&(this.b=M1.a))}}contains(t,...s){return this.h(t,{includeChildren:!1},...s)}affects(t,...s){return this.h(t,{includeChildren:!0},...s)}h(t,s,...i){if(!t)return!1;const n=i.length>0;return!!((!n||i.includes(1))&&(this.d.value.get(t)||s.includeChildren&&this.d.value.findSuperstr(t))||(!n||i.includes(0))&&(this.f.value.get(t)||s.includeChildren&&this.f.value.findSuperstr(t))||(!n||i.includes(2))&&(this.g.value.findSubstr(t)||s.includeChildren&&this.g.value.findSuperstr(t)))}gotAdded(){return this.rawAdded.length>0}gotDeleted(){return this.rawDeleted.length>0}gotUpdated(){return this.rawUpdated.length>0}correlates(t){return this.b===t}hasCorrelation(){return typeof this.b=="number"}},Xt=class extends Error{constructor(e,t,s){super(e),this.fileOperationResult=t,this.options=s}},yh=class extends Xt{constructor(e,t,s,i){super(e,t,i),this.fileOperationResult=t,this.size=s}},Eh=class extends Xt{constructor(e,t,s){super(e,2,s),this.stat=t}},function(e){e[e.FILE_IS_DIRECTORY=0]="FILE_IS_DIRECTORY",e[e.FILE_NOT_FOUND=1]="FILE_NOT_FOUND",e[e.FILE_NOT_MODIFIED_SINCE=2]="FILE_NOT_MODIFIED_SINCE",e[e.FILE_MODIFIED_SINCE=3]="FILE_MODIFIED_SINCE",e[e.FILE_MOVE_CONFLICT=4]="FILE_MOVE_CONFLICT",e[e.FILE_WRITE_LOCKED=5]="FILE_WRITE_LOCKED",e[e.FILE_PERMISSION_DENIED=6]="FILE_PERMISSION_DENIED",e[e.FILE_TOO_LARGE=7]="FILE_TOO_LARGE",e[e.FILE_INVALID_PATH=8]="FILE_INVALID_PATH",e[e.FILE_NOT_DIRECTORY=9]="FILE_NOT_DIRECTORY",e[e.FILE_OTHER_ERROR=10]="FILE_OTHER_ERROR"}(M7||(M7={})),function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(U7||(U7={})),xh="",_r=class xs{static{this.KB=1024}static{this.MB=xs.KB*xs.KB}static{this.GB=xs.MB*xs.KB}static{this.TB=xs.GB*xs.KB}static formatSize(t){return Rn(t)||(t=0),t<xs.KB?m(2043,null,t.toFixed(0)):t<xs.MB?m(2044,null,(t/xs.KB).toFixed(2)):t<xs.GB?m(2045,null,(t/xs.MB).toFixed(2)):t<xs.TB?m(2046,null,(t/xs.GB).toFixed(2)):m(2047,null,(t/xs.TB).toFixed(2))}}}}),dt,Kt=v({"out-build/vs/platform/product/common/productService.js"(){"use strict";ie(),dt=X("productService")}});async function JO(e,t,s){let i=s&&s.get("storage.serviceMachineId",-1)||null;if(i)return i;try{const r=(await t.readFile(e.serviceMachineIdResource)).value.toString();i=rN(r)?r:null}catch{i=null}if(!i){i=Ve();try{await t.writeFile(e.serviceMachineIdResource,R.fromString(i))}catch{}}return s?.store("storage.serviceMachineId",i,-1,1),i}var ZO=v({"out-build/vs/platform/externalServices/common/serviceMachineId.js"(){"use strict";Le(),zt()}});async function YO(e,t,s,i,n,r,o){const a={"X-Market-Client-Id":`VSCode ${e}`,"User-Agent":`VSCode ${e} (${t.nameShort})`};if(O9(t,s)&&_9(i)===3){const c=await JO(s,n,r);a["X-Market-User-Id"]=c,a["VSCode-SessionId"]=o.machineId||c}return a}var QO=v({"out-build/vs/platform/externalServices/common/marketplace.js"(){"use strict";ZO(),hi()}});function XO(e){return JSON.stringify(e,KO)}function j7(e){let t=JSON.parse(e);return t=Qs(t),t}function KO(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function Qs(e,t=0){if(!e||t>200)return e;if(typeof e=="object"){switch(e.$mid){case 1:return y.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof R||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let s=0;s<e.length;++s)e[s]=Qs(e[s],t+1);else for(const s in e)Object.hasOwnProperty.call(e,s)&&(e[s]=Qs(e[s],t+1))}return e}var Oc=v({"out-build/vs/base/common/marshalling.js"(){"use strict";Le(),Q()}}),Cc,gi,eC,tC=v({"out-build/vs/base/parts/storage/common/storage.js"(){"use strict";Ae(),re(),V(),Oc(),be(),function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(Cc||(Cc={})),function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(gi||(gi={})),eC=class cA extends W{static{this.a=100}constructor(t,s=Object.create(null)){super(),this.r=t,this.s=s,this.b=this.B(new Iu),this.onDidChangeStorage=this.b.event,this.c=gi.None,this.f=new Map,this.g=this.B(new Er(cA.a)),this.h=new Set,this.j=new Map,this.m=void 0,this.n=[],this.t()}t(){this.B(this.r.onDidChangeItemsExternal(t=>this.u(t)))}u(t){this.b.pause();try{t.changed?.forEach((s,i)=>this.w(i,s)),t.deleted?.forEach(s=>this.w(s,void 0))}finally{this.b.resume()}}w(t,s){if(this.c===gi.Closed)return;let i=!1;At(s)?i=this.f.delete(t):this.f.get(t)!==s&&(this.f.set(t,s),i=!0),i&&this.b.fire({key:t,external:!0})}get items(){return this.f}get size(){return this.f.size}async init(){this.c===gi.None&&(this.c=gi.Initialized,this.s.hint!==Cc.STORAGE_DOES_NOT_EXIST&&(this.f=await this.r.getItems()))}get(t,s){const i=this.f.get(t);return At(i)?s:i}getBoolean(t,s){const i=this.get(t);return At(i)?s:i==="true"}getNumber(t,s){const i=this.get(t);return At(i)?s:parseInt(i,10)}getObject(t,s){const i=this.get(t);return At(i)?s:j7(i)}async set(t,s,i=!1){if(this.c===gi.Closed)return;if(At(s))return this.delete(t,i);const n=ft(s)||Array.isArray(s)?XO(s):String(s);if(this.f.get(t)!==n)return this.f.set(t,n),this.j.set(t,n),this.h.delete(t),this.b.fire({key:t,external:i}),this.D()}async delete(t,s=!1){if(!(this.c===gi.Closed||!this.f.delete(t)))return this.h.has(t)||this.h.add(t),this.j.delete(t),this.b.fire({key:t,external:s}),this.D()}async optimize(){if(this.c!==gi.Closed)return await this.flush(0),this.r.optimize()}async close(){return this.m||(this.m=this.y()),this.m}async y(){this.c=gi.Closed;try{await this.D(0)}catch{}await this.r.close(()=>this.f)}get z(){return this.j.size>0||this.h.size>0}async C(){if(!this.z)return;const t={insert:this.j,delete:this.h};return this.h=new Set,this.j=new Map,this.r.updateItems(t).finally(()=>{if(!this.z)for(;this.n.length;)this.n.pop()?.()})}async flush(t){if(!(this.c===gi.Closed||this.m))return this.D(t)}async D(t){return this.s.hint===Cc.STORAGE_IN_MEMORY?this.C():this.g.trigger(()=>this.C(),t)}async whenFlushed(){if(this.z)return new Promise(t=>this.n.push(t))}isInMemory(){return this.s.hint===Cc.STORAGE_IN_MEMORY}}}});function sC(e){const t=e;return typeof t?.id=="string"&&y.isUri(t.uri)}function iC(e){const t=e;return typeof t?.id=="string"&&y.isUri(t.configPath)}function nC(e){return(typeof e=="string"?gr(e):m4(e))===B7}var T7,F7,Wm,B7,rC,qm=v({"out-build/vs/platform/workspace/common/workspace.js"(){"use strict";ce(),he(),wh(),ct(),Q(),ie(),Se(),T7=X("contextService"),function(e){e[e.EMPTY=1]="EMPTY",e[e.FOLDER=2]="FOLDER",e[e.WORKSPACE=3]="WORKSPACE"}(F7||(F7={})),Wm="code-workspace",B7=`.${Wm}`,rC=[{name:m(2693,null),extensions:[Wm]}]}}),bt,Rs=v({"out-build/vs/platform/uriIdentity/common/uriIdentity.js"(){"use strict";ie(),bt=X("IUriIdentityService")}});function oC(e){const t=e;return!!(t&&typeof t=="object"&&typeof t.id=="string"&&typeof t.isDefault=="boolean"&&typeof t.name=="string"&&y.isUri(t.location)&&y.isUri(t.globalStorageHome)&&y.isUri(t.settingsResource)&&y.isUri(t.keybindingsResource)&&y.isUri(t.tasksResource)&&y.isUri(t.snippetsHome)&&y.isUri(t.promptsHome)&&y.isUri(t.extensionsResource)&&y.isUri(t.mcpResource))}function z7(e,t){return{id:e.id,isDefault:e.isDefault,name:e.name,icon:e.icon,location:y.revive(e.location).with({scheme:t}),globalStorageHome:y.revive(e.globalStorageHome).with({scheme:t}),settingsResource:y.revive(e.settingsResource).with({scheme:t}),keybindingsResource:y.revive(e.keybindingsResource).with({scheme:t}),tasksResource:y.revive(e.tasksResource).with({scheme:t}),snippetsHome:y.revive(e.snippetsHome).with({scheme:t}),promptsHome:y.revive(e.promptsHome).with({scheme:t}),extensionsResource:y.revive(e.extensionsResource).with({scheme:t}),mcpResource:y.revive(e.mcpResource).with({scheme:t}),cacheHome:y.revive(e.cacheHome).with({scheme:t}),useDefaultFlags:e.useDefaultFlags,isTransient:e.isTransient,workspaces:e.workspaces?.map(s=>y.revive(s))}}function kh(e,t,s,i,n,r){return{id:e,name:t,location:s,isDefault:!1,icon:n?.icon,globalStorageHome:r&&n?.useDefaultFlags?.globalState?r.globalStorageHome:oe(s,"globalStorage"),settingsResource:r&&n?.useDefaultFlags?.settings?r.settingsResource:oe(s,"settings.json"),keybindingsResource:r&&n?.useDefaultFlags?.keybindings?r.keybindingsResource:oe(s,"keybindings.json"),tasksResource:r&&n?.useDefaultFlags?.tasks?r.tasksResource:oe(s,"tasks.json"),snippetsHome:r&&n?.useDefaultFlags?.snippets?r.snippetsHome:oe(s,"snippets"),promptsHome:r&&n?.useDefaultFlags?.prompts?r.promptsHome:oe(s,"prompts"),extensionsResource:r&&n?.useDefaultFlags?.extensions?r.extensionsResource:oe(s,"extensions.json"),mcpResource:r&&n?.useDefaultFlags?.mcp?r.mcpResource:oe(s,"mcp.json"),cacheHome:oe(i,e),useDefaultFlags:n?.useDefaultFlags,isTransient:n?.transient,workspaces:n?.workspaces}}var H7,_s,$h,Ms=v({"out-build/vs/platform/userDataProfile/common/userDataProfile.js"(){"use strict";oc(),re(),V(),ct(),Q(),ce(),Qt(),Ge(),ie(),Ie(),qm(),Rs(),Ae(),zt(),at(),be(),function(e){e.Settings="settings",e.Keybindings="keybindings",e.Snippets="snippets",e.Prompts="prompts",e.Tasks="tasks",e.Extensions="extensions",e.GlobalState="globalState",e.Mcp="mcp"}(H7||(H7={})),_s=X("IUserDataProfilesService"),$h=class extends W{static{this.b="userDataProfiles"}static{this.c="profileAssociations"}get defaultProfile(){return this.profiles[0]}get profiles(){return[...this.C.profiles,...this.r.profiles]}constructor(t,s,i,n){super(),this.s=t,this.t=s,this.u=i,this.y=n,this.g=this.B(new D),this.onDidChangeProfiles=this.g.event,this.h=this.B(new D),this.onWillCreateProfile=this.h.event,this.j=this.B(new D),this.onWillRemoveProfile=this.j.event,this.m=this.B(new D),this.onDidResetWorkspaces=this.m.event,this.n=new Map,this.r={profiles:[],emptyWindows:new Map},this.profilesHome=oe(this.s.userRoamingDataHome,"profiles"),this.f=oe(this.s.cacheHome,"CachedProfilesData")}init(){this.z=void 0}get C(){if(!this.z){const t=this.D(),s=[t];try{for(const n of this.N()){if(!n.name||!ue(n.name)||!n.location){this.y.warn("Skipping the invalid stored profile",n.location||n.name);continue}s.push(kh(ln(n.location),n.name,n.location,this.f,{icon:n.icon,useDefaultFlags:n.useDefaultFlags},t))}}catch(n){this.y.error(n)}const i=new Map;if(s.length)try{const n=this.P();if(n.workspaces)for(const[r,o]of Object.entries(n.workspaces)){const a=y.parse(r),c=s.find(l=>l.id===o);if(c){const l=c.workspaces?c.workspaces.slice(0):[];l.push(a),c.workspaces=l}}if(n.emptyWindows)for(const[r,o]of Object.entries(n.emptyWindows)){const a=s.find(c=>c.id===o);a&&i.set(r,a)}}catch(n){this.y.error(n)}this.z={profiles:s,emptyWindows:i}}return this.z}D(){const t=kh("__default__profile__",m(2646,null),this.s.userRoamingDataHome,this.f);return{...t,extensionsResource:this.R()??t.extensionsResource,isDefault:!0}}async createTransientProfile(t){const s="Temp",i=new RegExp(`${On(s)}\\s(\\d+)`);let n=0;for(const o of this.profiles){const a=i.exec(o.name),c=a?parseInt(a[1]):0;n=c>n?c:n}const r=`${s} ${n+1}`;return this.createProfile(ko(Ve()).toString(16),r,{transient:!0},t)}async createNamedProfile(t,s,i){return this.createProfile(ko(Ve()).toString(16),t,s,i)}async createProfile(t,s,i,n){return await this.F(t,s,i,n)}async F(t,s,i,n){if(!ue(s)||!s)throw new Error("Name of the profile is mandatory and must be of type `string`");let r=this.n.get(s);return r||(r=(async()=>{try{if(this.profiles.find(u=>u.id===t||!u.isTransient&&!i?.transient&&u.name===s))throw new Error(`Profile with ${s} name already exists`);const a=n?this.G(n):void 0;y.isUri(a)&&(i={...i,workspaces:[a]});const c=kh(t,s,oe(this.profilesHome,t),this.f,i,this.defaultProfile);await this.t.createFolder(c.location);const l=[];return this.h.fire({profile:c,join(u){l.push(u)}}),await is.settled(l),a&&!y.isUri(a)&&this.L(a,c,!!c.isTransient),this.I([c],[],[]),c}finally{this.n.delete(s)}})(),this.n.set(s,r)),r}async updateProfile(t,s){const i=[];for(const r of this.profiles){let o;if(t.id===r.id)r.isDefault?s.workspaces&&(o=r,o.workspaces=s.workspaces):o=kh(r.id,s.name??r.name,r.location,this.f,{icon:s.icon===null?void 0:s.icon??r.icon,transient:s.transient??r.isTransient,useDefaultFlags:s.useDefaultFlags??r.useDefaultFlags,workspaces:s.workspaces??r.workspaces},this.defaultProfile);else if(s.workspaces){const a=r.workspaces?.filter(c=>!s.workspaces?.some(l=>this.u.extUri.isEqual(c,l)));r.workspaces?.length!==a?.length&&(o=r,o.workspaces=a)}o&&i.push(o)}if(!i.length)throw t.isDefault?new Error("Cannot update default profile"):new Error(`Profile '${t.name}' does not exist`);this.I([],[],i);const n=this.profiles.find(r=>r.id===t.id);if(!n)throw new Error(`Profile '${t.name}' was not updated`);return n}async removeProfile(t){if(t.isDefault)throw new Error("Cannot remove default profile");const s=this.profiles.find(n=>n.id===t.id);if(!s)throw new Error(`Profile '${t.name}' does not exist`);const i=[];this.j.fire({profile:s,join(n){i.push(n)}});try{await Promise.allSettled(i)}catch(n){this.y.error(n)}this.I([],[s],[]);try{await this.t.del(s.cacheHome,{recursive:!0})}catch(n){St(n)!==1&&this.y.error(n)}}async setProfileForWorkspace(t,s){const i=this.profiles.find(r=>r.id===s.id);if(!i)throw new Error(`Profile '${s.name}' does not exist`);const n=this.G(t);if(y.isUri(n)){const r=i.workspaces?[...i.workspaces]:[];r.some(o=>this.u.extUri.isEqual(o,n))||(r.push(n),await this.updateProfile(i,{workspaces:r}))}else this.L(n,i,!1),this.M(this.profiles)}unsetWorkspace(t,s=!1){const i=this.G(t);if(y.isUri(i)){const n=this.getProfileForWorkspace(t);n&&this.updateProfile(n,{workspaces:n.workspaces?.filter(r=>!this.u.extUri.isEqual(r,i))})}else this.L(i,void 0,s),this.M(this.profiles)}async resetWorkspaces(){this.r.emptyWindows.clear(),this.C.emptyWindows.clear();for(const t of this.profiles)t.workspaces=void 0;this.I([],[],this.profiles),this.m.fire()}async cleanUp(){if(await this.t.exists(this.profilesHome)){const t=await this.t.resolve(this.profilesHome);await Promise.all((t.children||[]).filter(s=>s.isDirectory&&this.profiles.every(i=>!this.u.extUri.isEqual(i.location,s.resource))).map(s=>this.t.del(s.resource,{recursive:!0})))}}async cleanUpTransientProfiles(){const t=this.r.profiles.filter(s=>!this.H(s));await Promise.allSettled(t.map(s=>this.removeProfile(s)))}getProfileForWorkspace(t){const s=this.G(t);return y.isUri(s)?this.profiles.find(i=>i.workspaces?.some(n=>this.u.extUri.isEqual(n,s))):this.C.emptyWindows.get(s)??this.r.emptyWindows.get(s)}G(t){return sC(t)?t.uri:iC(t)?t.configPath:t.id}H(t){return!!(t.workspaces?.length||[...this.C.emptyWindows.values()].some(s=>this.u.extUri.isEqual(s.location,t.location))||[...this.r.emptyWindows.values()].some(s=>this.u.extUri.isEqual(s.location,t.location)))}I(t,s,i){const n=[...this.profiles,...t],r=this.r.profiles;this.r.profiles=[];const o=[];for(let a of n){if(s.some(c=>a.id===c.id)){for(const c of[...this.C.emptyWindows.keys()])a.id===this.C.emptyWindows.get(c)?.id&&this.C.emptyWindows.delete(c);continue}if(!a.isDefault){a=i.find(l=>a.id===l.id)??a;const c=r.find(l=>a.id===l.id);if(a.isTransient)this.r.profiles.push(a);else if(c){for(const[l,u]of this.r.emptyWindows.entries())if(a.id===u.id){this.r.emptyWindows.delete(l),this.C.emptyWindows.set(l,a);break}}}a.workspaces?.length===0&&(a.workspaces=void 0),o.push(a)}this.M(o),this.J(t,s,i)}J(t,s,i){this.g.fire({added:t,removed:s,updated:i,all:this.profiles})}L(t,s,i){i=s?.isTransient?!0:i,i?s?this.r.emptyWindows.set(t,s):this.r.emptyWindows.delete(t):(this.r.emptyWindows.delete(t),s?this.C.emptyWindows.set(t,s):this.C.emptyWindows.delete(t))}M(t){const s=[],i={},n={};for(const r of t)if(!r.isTransient&&(r.isDefault||s.push({location:r.location,name:r.name,icon:r.icon,useDefaultFlags:r.useDefaultFlags}),r.workspaces))for(const o of r.workspaces)i[o.toString()]=r.id;for(const[r,o]of this.C.emptyWindows.entries())n[r.toString()]=o.id;this.Q({workspaces:i,emptyWindows:n}),this.O(s),this.z=void 0}N(){return[]}O(t){throw new Error("not implemented")}P(){return{}}Q(t){throw new Error("not implemented")}R(){}},$h=__decorate([__param(0,rs),__param(1,Xe),__param(2,bt),__param(3,fe)],$h)}});function aC(e){const t=e.get(_c);if(t)try{return JSON.parse(t)}catch{}return Object.create(null)}function V7(e){return e.isDefault||!!e.useDefaultFlags?.globalState}async function cC(e,t,s,i,n,r){const o=w=>{try{return JSON.parse(w)}catch{return w}},a=new Map,c=new Map;e.forEach((w,b)=>{a.set(b,w),c.set(b,o(w))});const l=new Map,u=new Map;t.forEach((w,b)=>{l.set(b,w),u.set(b,o(w))});const h=new Map,f=new Map;s.forEach((w,b)=>{h.set(b,w),f.set(b,o(w))}),console.group(i!==n?`Storage: Application (path: ${i})`:`Storage: Application & Profile (path: ${i}, default profile)`);const p=[];if(a.forEach((w,b)=>{p.push({key:b,value:w})}),console.table(p),console.groupEnd(),console.log(c),i!==n){console.group(`Storage: Profile (path: ${n}, profile specific)`);const w=[];l.forEach((b,x)=>{w.push({key:x,value:b})}),console.table(w),console.groupEnd(),console.log(u)}console.group(`Storage: Workspace (path: ${r})`);const g=[];h.forEach((w,b)=>{g.push({key:b,value:w})}),console.table(g),console.groupEnd(),console.log(f)}var W7,_c,q7,Wo,G7,J7,lC,uC=v({"out-build/vs/platform/storage/common/storage.js"(){"use strict";Ae(),re(),V(),Ki(),be(),tC(),ie(),Ms(),W7="__$__isNewStorageMarker",_c="__$__targetStorageMarker",q7=X("storageService"),function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(Wo||(Wo={})),function(e){e[e.APPLICATION=-1]="APPLICATION",e[e.PROFILE=0]="PROFILE",e[e.WORKSPACE=1]="WORKSPACE"}(G7||(G7={})),function(e){e[e.USER=0]="USER",e[e.MACHINE=1]="MACHINE"}(J7||(J7={})),lC=class lA extends W{static{this.a=60*1e3}constructor(t={flushInterval:lA.a}){super(),this.b=this.B(new Iu),this.f=this.B(new Iu),this.onDidChangeTarget=this.f.event,this.g=this.B(new D),this.onWillSaveState=this.g.event,this.m=this.B(new Qa),this.C=void 0,this.F=void 0,this.H=void 0,this.j=this.B(new kr(()=>this.n(),t.flushInterval))}onDidChangeValue(t,s,i){return B.filter(this.b.event,n=>n.scope===t&&(s===void 0||n.key===s),i)}n(){this.m.value=S4(()=>{this.r()&&this.flush(),this.j.schedule()})}r(){return!0}t(){jt([this.m,this.j])}initialize(){return this.h||(this.h=(async()=>{It("code/willInitStorage");try{await this.O()}finally{It("code/didInitStorage")}this.j.schedule()})()),this.h}u(t,s){const{key:i,external:n}=s;if(i===_c){switch(t){case-1:this.H=void 0;break;case 0:this.F=void 0;break;case 1:this.C=void 0;break}this.f.fire({scope:t})}else this.b.fire({scope:t,key:i,target:this.J(t)[i],external:n})}w(t){this.g.fire({reason:t})}get(t,s,i){return this.P(s)?.get(t,i)}getBoolean(t,s,i){return this.P(s)?.getBoolean(t,i)}getNumber(t,s,i){return this.P(s)?.getNumber(t,i)}getObject(t,s,i){return this.P(s)?.getObject(t,i)}storeAll(t,s){this.y(()=>{for(const i of t)this.store(i.key,i.value,i.scope,i.target,s)})}store(t,s,i,n,r=!1){if(At(s)){this.remove(t,i,r);return}this.y(()=>{this.z(t,i,n),this.P(i)?.set(t,s,r)})}remove(t,s,i=!1){this.y(()=>{this.z(t,s,void 0),this.P(s)?.delete(t,i)})}y(t){this.b.pause(),this.f.pause();try{t()}finally{this.b.resume(),this.f.resume()}}keys(t,s){const i=[],n=this.J(t);for(const r of Object.keys(n))n[r]===s&&i.push(r);return i}z(t,s,i,n=!1){const r=this.J(s);typeof i=="number"?r[t]!==i&&(r[t]=i,this.P(s)?.set(_c,JSON.stringify(r),n)):typeof r[t]=="number"&&(delete r[t],this.P(s)?.set(_c,JSON.stringify(r),n))}get D(){return this.C||(this.C=this.L(1)),this.C}get G(){return this.F||(this.F=this.L(0)),this.F}get I(){return this.H||(this.H=this.L(-1)),this.H}J(t){switch(t){case-1:return this.I;case 0:return this.G;default:return this.D}}L(t){const s=this.P(t);return s?aC(s):Object.create(null)}isNew(t){return this.getBoolean(W7,t)===!0}async flush(t=Wo.NONE){this.g.fire({reason:t});const s=this.P(-1),i=this.P(0),n=this.P(1);switch(t){case Wo.NONE:await is.settled([s?.whenFlushed()??Promise.resolve(),i?.whenFlushed()??Promise.resolve(),n?.whenFlushed()??Promise.resolve()]);break;case Wo.SHUTDOWN:await is.settled([s?.flush(0)??Promise.resolve(),i?.flush(0)??Promise.resolve(),n?.flush(0)??Promise.resolve()]);break}}async log(){const t=this.P(-1)?.items??new Map,s=this.P(0)?.items??new Map,i=this.P(1)?.items??new Map;return cC(t,s,i,this.Q(-1)??"",this.Q(0)??"",this.Q(1)??"")}async optimize(t){return await this.flush(),this.P(t)?.optimize()}async switch(t,s){return this.w(Wo.NONE),oC(t)?this.R(t,s):this.S(t,s)}M(t,s){return!(t.id===s.id||V7(s)&&V7(t))}N(t,s,i){this.y(()=>{const n=new Set;for(const[r,o]of t)n.add(r),s.get(r)!==o&&this.u(i,{key:r,external:!0});for(const[r]of s.items)n.has(r)||this.u(i,{key:r,external:!0})})}}}});function Mr(e,t){const[s,i]=t.split("/");for(const n of e.resources){const[r,o]=n.type.split("/");if(r===s){if(!i||o===i)return n.id;break}}}var Z7,Y7,Ur,Sh=v({"out-build/vs/platform/extensionManagement/common/extensionGalleryManifest.js"(){"use strict";ie(),function(e){e.ExtensionQueryService="ExtensionQueryService",e.ExtensionLatestVersionUri="ExtensionLatestVersionUriTemplate",e.ExtensionStatisticsUri="ExtensionStatisticsUriTemplate",e.WebExtensionStatisticsUri="WebExtensionStatisticsUriTemplate",e.PublisherViewUri="PublisherViewUriTemplate",e.ExtensionDetailsViewUri="ExtensionDetailsViewUriTemplate",e.ExtensionRatingViewUri="ExtensionRatingViewUriTemplate",e.ExtensionResourceUri="ExtensionResourceUriTemplate",e.ContactSupportUri="ContactSupportUri"}(Z7||(Z7={})),function(e){e.None="None",e.IncludeVersions="IncludeVersions",e.IncludeFiles="IncludeFiles",e.IncludeCategoryAndTags="IncludeCategoryAndTags",e.IncludeSharedAccounts="IncludeSharedAccounts",e.IncludeVersionProperties="IncludeVersionProperties",e.ExcludeNonValidated="ExcludeNonValidated",e.IncludeInstallationTargets="IncludeInstallationTargets",e.IncludeAssetUri="IncludeAssetUri",e.IncludeStatistics="IncludeStatistics",e.IncludeLatestVersionOnly="IncludeLatestVersionOnly",e.Unpublished="Unpublished",e.IncludeNameConflictInfo="IncludeNameConflictInfo",e.IncludeLatestPrereleaseAndStableVersionOnly="IncludeLatestPrereleaseAndStableVersionOnly"}(Y7||(Y7={})),Ur=X("IExtensionGalleryManifestService")}});function Gm(e,t){const s=(e||[]).filter(i=>i.statisticName===t)[0];return s?s.value:0}function hC(e){const t="Microsoft.VisualStudio.Code.Translation.";return e.files.filter(i=>i.assetType.indexOf(t)===0).reduce((i,n)=>{const r=Ui(e,n.assetType);return r&&i.push([n.assetType.substring(t.length),r]),i},[])}function fC(e){if(e.properties){const t=e.properties.filter(n=>n.key===_t.Repository),s=new RegExp("((git|ssh|http(s)?)|(git@[\\w.]+))(:(//)?)([\\w.@:/\\-~]+)(.git)(/)?"),i=t.filter(n=>s.test(n.value))[0];return i?{uri:i.value,fallbackUri:i.value}:null}return Ui(e,_t.Repository)}function dC(e){return{uri:`${e.fallbackAssetUri}/${_t.VSIX}?redirect=true${e.targetPlatform?`&targetPlatform=${e.targetPlatform}`:""}`,fallbackUri:`${e.fallbackAssetUri}/${_t.VSIX}${e.targetPlatform?`?targetPlatform=${e.targetPlatform}`:""}`}}function Ui(e,t){return e.files.filter(i=>i.assetType===t)[0]?{uri:`${e.assetUri}/${t}${e.targetPlatform?`?targetPlatform=${e.targetPlatform}`:""}`,fallbackUri:`${e.fallbackAssetUri}/${t}${e.targetPlatform?`?targetPlatform=${e.targetPlatform}`:""}`}:null}function Q7(e,t){const s=e.properties?e.properties.filter(n=>n.key===t):[],i=s.length>0&&s[0].value;return i?i.split(",").map(n=>ph(n)):[]}function Jm(e){const t=e.properties?e.properties.filter(s=>s.key===wi.Engine):[];return t.length>0&&t[0].value||""}function Mc(e){const t=e.properties?e.properties.filter(s=>s.key===wi.PreRelease):[];return t.length>0&&t[0].value==="true"}function X7(e,t){return t.extensionProperties?.[e.toLowerCase()]?.hasPrereleaseVersion}function pC(e,t){return t.extensionProperties?.[e.toLowerCase()]?.excludeVersionRange}function mC(e){const t=e.properties?e.properties.filter(s=>s.key===wi.Private):[];return t.length>0&&t[0].value==="true"}function gC(e){const t=e.properties?e.properties.filter(s=>s.key===wi.ExecutesCode):[];return t.length>0?t[0].value==="true":void 0}function Zm(e){const t=e.properties?e.properties.filter(i=>i.key===wi.EnabledApiProposals):[],s=t.length>0&&t[0].value||"";return s?s.split(","):[]}function wC(e){const t=e.properties?e.properties.filter(i=>i.key===wi.LocalizedLanguages):[],s=t.length>0&&t[0].value||"";return s?s.split(","):[]}function vC(e){return e.properties?.find(t=>t.key===wi.SponsorLink)?.value}function bC(e){return e.properties?.find(t=>t.key===wi.SupportLink)?.value}function yC(e){return e.indexOf("preview")!==-1}function Uc(e){return e.targetPlatform?WN(e.targetPlatform):"undefined"}function jc(e){const t=Ri(e.versions.map(Uc)),s=!!e.tags?.includes(W9),i=t.indexOf("web");return s?i===-1&&t.push("web"):i!==-1&&t.splice(i,1),t}function K7(e,t){for(let s=0;s<e.length;s++){const i=e[s];if(i.version===e[s-1]?.version){let n=s;if(Uc(i)===t)for(;n>0&&e[n-1].version===i.version;)n--;n!==s&&(e.splice(s,1),e.splice(n,0,i))}}return e}function e6(e,t,s){e.telemetryData={index:t,querySource:s,queryActivityId:e.queryContext?.[Go]}}function Ph(e,t,s,i,n,r){const o=e.versions[0],a={manifest:Ui(t,_t.Manifest),readme:Ui(t,_t.Details),changelog:Ui(t,_t.Changelog),license:Ui(t,_t.License),repository:fC(t),download:dC(t),icon:Ui(t,_t.Icon),signature:Ui(t,_t.Signature),coreTranslations:hC(t)},c=Mr(i,e.linkType??"ExtensionDetailsViewUriTemplate"),l=Mr(i,e.publisher.linkType??"PublisherViewUriTemplate"),u=Mr(i,e.ratingLinkType??"ExtensionRatingViewUriTemplate"),h=pi(e.publisher.publisherName,e.extensionName);return{type:"gallery",identifier:{id:h,uuid:e.extensionId},name:e.extensionName,version:t.version,displayName:e.displayName,publisherId:e.publisher.publisherId,publisher:e.publisher.publisherName,publisherDisplayName:e.publisher.displayName,publisherDomain:e.publisher.domain?{link:e.publisher.domain,verified:!!e.publisher.isDomainVerified}:void 0,publisherSponsorLink:vC(o),description:e.shortDescription??"",installCount:Gm(e.statistics,"install"),rating:Gm(e.statistics,"averagerating"),ratingCount:Gm(e.statistics,"ratingcount"),categories:e.categories||[],tags:e.tags||[],releaseDate:Date.parse(e.releaseDate),lastUpdated:Date.parse(e.lastUpdated),allTargetPlatforms:s,assets:a,properties:{dependencies:Q7(t,wi.Dependency),extensionPack:Q7(t,wi.ExtensionPack),engine:Jm(t),enabledApiProposals:Zm(t),localizedLanguages:wC(t),targetPlatform:Uc(t),isPreReleaseVersion:Mc(t),executesCode:gC(t)},hasPreReleaseVersion:X7(h,n)??Mc(o),hasReleaseVersion:!0,private:mC(o),preview:yC(e.flags),isSigned:!!a.signature,queryContext:r,supportLink:bC(o),detailsLink:c?wo(c,{publisher:e.publisher.publisherName,name:e.extensionName}):void 0,publisherLink:l?wo(l,{publisher:e.publisher.publisherName}):void 0,ratingLink:u?wo(u,{publisher:e.publisher.publisherName,name:e.extensionName}):void 0}}var qo,Go,Ih,Dh,Ah,Tc,_t,wi,t6,s6,i6,Fc,Bc,Ym,zc,n6=v({"out-build/vs/platform/extensionManagement/common/extensionGalleryService.js"(){"use strict";kt(),Lt(),Nr(),ge(),te(),ri(),be(),Q(),AO(),Yt(),Qt(),As(),mi(),gh(),Ge(),Ie(),Kt(),Rr(),QO(),uC(),Js(),mo(),at(),Sh(),hi(),qo=Ps?"web":z9(fr,rp),Go="X-Market-Search-Activity-Id",Ih="Activityid",Dh="Server",Ah="X-Vss-E2eid",Tc=1e4,_t={Icon:"Microsoft.VisualStudio.Services.Icons.Default",Details:"Microsoft.VisualStudio.Services.Content.Details",Changelog:"Microsoft.VisualStudio.Services.Content.Changelog",Manifest:"Microsoft.VisualStudio.Code.Manifest",VSIX:"Microsoft.VisualStudio.Services.VSIXPackage",License:"Microsoft.VisualStudio.Services.Content.License",Repository:"Microsoft.VisualStudio.Services.Links.Source",Signature:"Microsoft.VisualStudio.Services.VsixSignature"},wi={Dependency:"Microsoft.VisualStudio.Code.ExtensionDependencies",ExtensionPack:"Microsoft.VisualStudio.Code.ExtensionPack",Engine:"Microsoft.VisualStudio.Code.Engine",PreRelease:"Microsoft.VisualStudio.Code.PreRelease",EnabledApiProposals:"Microsoft.VisualStudio.Code.EnabledApiProposals",LocalizedLanguages:"Microsoft.VisualStudio.Code.LocalizedLanguages",WebExtension:"Microsoft.VisualStudio.Code.WebExtension",SponsorLink:"Microsoft.VisualStudio.Code.SponsorLink",SupportLink:"Microsoft.VisualStudio.Services.Links.Support",ExecutesCode:"Microsoft.VisualStudio.Code.ExecutesCode",Private:"PrivateMarketplace"},t6=10,s6={pageNumber:1,pageSize:t6,sortBy:"NoneOrRelevance",sortOrder:0,flags:[],criteria:[],assetTypes:[]},function(e){e[e.Release=0]="Release",e[e.Prerelease=1]="Prerelease",e[e.Latest=2]="Latest"}(i6||(i6={})),Fc=class cr{constructor(t=s6){this.d=t}get pageNumber(){return this.d.pageNumber}get pageSize(){return this.d.pageSize}get sortBy(){return this.d.sortBy}get sortOrder(){return this.d.sortOrder}get flags(){return this.d.flags}get criteria(){return this.d.criteria}get assetTypes(){return this.d.assetTypes}get source(){return this.d.source}get searchText(){const t=this.d.criteria.filter(s=>s.filterType==="SearchText")[0];return t&&t.value?t.value:""}withPage(t,s=this.d.pageSize){return new cr({...this.d,pageNumber:t,pageSize:s})}withFilter(t,...s){const i=[...this.d.criteria,...s.length?s.map(n=>({filterType:t,value:n})):[{filterType:t}]];return new cr({...this.d,criteria:i})}withSortBy(t){return new cr({...this.d,sortBy:t})}withSortOrder(t){return new cr({...this.d,sortOrder:t})}withFlags(...t){return new cr({...this.d,flags:Ri(t)})}withAssetTypes(...t){return new cr({...this.d,assetTypes:t})}withSource(t){return new cr({...this.d,source:t})}},Bc=class{constructor(t,s,i,n,r,o,a,c,l,u,h){this.k=s,this.l=i,this.n=n,this.o=r,this.q=o,this.u=a,this.w=c,this.x=l,this.y=u,this.z=h,this.d=c.extensionsGallery?.controlUrl,this.g=c.extensionsGallery?.extensionUrlTemplate,this.j=c.extensionsEnabledWithApiProposalVersion?.map(f=>f.toLowerCase())??[],this.h=YO(c.version,c,this.o,this.x,this.u,t,this.q)}isEnabled(){return this.z.isEnabled()}async getExtensions(t,s,i){const n=await this.z.getExtensionGalleryManifest();if(!n)throw new Error("No extension gallery service configured.");const r=Ne.isCancellationToken(s)?{}:s,o=Ne.isCancellationToken(s)?s:i,a=await this.A(n,!!r.updateCheck),c=a?await this.C(t,r,a,n,o):await this.B(t,r,n,o),l=c.map(h=>h.identifier.uuid),u=[];for(const h of t)h.uuid&&!l.includes(h.uuid)&&u.push({...h,uuid:void 0});if(u.length){this.q.publicLog2("galleryService:additionalQueryByName",{count:u.length});const h=await this.B(u,r,n,o);c.push(...h)}return c}async A(t,s){const i=Mr(t,"ExtensionLatestVersionUriTemplate");if(!i)return;if(this.w.quality!=="stable")return{uri:i,fallback:this.g};const n=s?await this.k?.getTreatment("extensions.gallery.useResourceApi")??"marketplace":await this.k?.getTreatment("extensions.gallery.useLatestApi")??"unpkg";if(n==="marketplace")return{uri:i,fallback:this.g};if(n==="unpkg"&&this.g)return{uri:this.g}}async B(t,s,i,n){const r=[],o=[],a=[],c=[];let l=!0;for(const f of t)f.uuid?o.push(f.uuid):r.push(f.id),f.version?c.push({id:f.id,uuid:f.uuid,version:f.version}):a.push({id:f.id,uuid:f.uuid,includePreRelease:!!f.preRelease}),l=l&&!!f.hasPreRelease&&!f.preRelease;if(!o.length&&!r.length)return[];let u=new Fc().withPage(1,t.length);o.length&&(u=u.withFilter("ExtensionId",...o)),r.length&&(u=u.withFilter("ExtensionName",...r)),s.queryAllVersions&&(u=u.withFlags(...u.flags,"IncludeVersions")),s.source&&(u=u.withSource(s.source));const{extensions:h}=await this.H(u,{targetPlatform:s.targetPlatform??qo,includePreRelease:a,versions:c,compatible:!!s.compatible,productVersion:s.productVersion??{version:this.w.version,date:this.w.date},isQueryForReleaseVersionFromPreReleaseVersion:l},i,n);return s.source&&h.forEach((f,p)=>e6(f,p,s.source)),h}async C(t,s,i,n,r){const o=[],a=[],c=[];for(const l of t)uh.test(l.id)&&(l.version?a.push(l):c.push(l));if(await Promise.allSettled(c.map(async l=>{let u;try{try{u=await this.D(l,s,i.uri,n,r)}catch(h){if(!i.fallback)throw h;this.n.error(`Error while getting the latest version for the extension ${l.id} from ${i.uri}. Trying the fallback ${i.fallback}`,de(h)),this.q.publicLog2("galleryService:fallbacktounpkg",{extension:l.id,preRelease:!!l.preRelease,compatible:!!s.compatible}),u=await this.D(l,s,i.fallback,n,r)}if(u==="NOT_FOUND"){l.uuid&&a.push(l);return}u&&o.push(u)}catch(h){this.n.error(`Error while getting the latest version for the extension ${l.id}.`,de(h)),this.q.publicLog2("galleryService:fallbacktoquery",{extension:l.id,preRelease:!!l.preRelease,compatible:!!s.compatible,fromFallback:!!i.fallback}),a.push(l)}})),a.length){const l=await this.B(a,s,n,r);o.push(...l)}return o}async D(t,s,i,n,r){const[o,a]=t.id.split("."),c=y.parse(wo(i,{publisher:o,name:a})),l=await this.N(t.id,c,r);if(!l)return"NOT_FOUND";const u=jc(l),h=await this.K(l,{targetPlatform:s.targetPlatform??qo,compatible:!!s.compatible,productVersion:s.productVersion??{version:this.w.version,date:this.w.date},version:t.preRelease?2:0},u);return h?Ph(l,h,u,n,this.w):null}async getCompatibleExtension(t,s,i,n={version:this.w.version,date:this.w.date}){return Bo(t.allTargetPlatforms,i)?null:await this.isExtensionCompatible(t,s,i)?t:this.y.isAllowed({id:t.identifier.id,publisherDisplayName:t.publisherDisplayName})!==!0?null:(await this.getExtensions([{...t.identifier,preRelease:s,hasPreRelease:t.hasPreReleaseVersion}],{compatible:!0,productVersion:n,queryAllVersions:!0,targetPlatform:i},Ne.None))[0]??null}async isExtensionCompatible(t,s,i,n={version:this.w.version,date:this.w.date}){return this.E({id:t.identifier.id,version:t.version,isPreReleaseVersion:t.properties.isPreReleaseVersion,targetPlatform:t.properties.targetPlatform,manifestAsset:t.assets.manifest,engine:t.properties.engine,enabledApiProposals:t.properties.enabledApiProposals},{targetPlatform:i,compatible:!0,productVersion:n,version:s?2:0},t.publisherDisplayName,t.allTargetPlatforms)}async E(t,{targetPlatform:s,compatible:i,productVersion:n,version:r},o,a){const c=X7(t.id,this.w),l=pC(t.id,this.w);if(t.isPreReleaseVersion&&c===!1||l&&r7(t.version,l))return!1;if(ue(r)){if(t.version!==r)return!1}else if((r===0||r===1)&&t.isPreReleaseVersion!==(r===1))return!1;return!(!H9(t.targetPlatform,a,s)||i&&(this.y.isAllowed({id:t.id,publisherDisplayName:o,version:t.version,prerelease:t.isPreReleaseVersion,targetPlatform:t.targetPlatform})!==!0||!this.F(t.id,t.enabledApiProposals)||!await this.G(t.id,t.version,t.engine,t.manifestAsset,n)))}F(t,s){return!s||!this.j.includes(t.toLowerCase())?!0:Fm(s)}async G(t,s,i,n,r){if(!i){if(!n)return this.n.error(`Missing engine and manifest asset for the extension ${t} with version ${s}`),!1;try{this.q.publicLog2("galleryService:engineFallback",{extension:t,extensionVersion:s});const o={"Accept-Encoding":"gzip"},a=await this.P(t,n,_t.Manifest,s,{headers:o}),c=await Uo(a);if(!c)return this.n.error(`Manifest was not found for the extension ${t} with version ${s}`),!1;i=c.engines.vscode}catch(o){return this.n.error(`Error while getting the engine for the version ${s}.`,de(o)),!1}}return Tm(i,r.version,r.date)}async query(t,s){const i=await this.z.getExtensionGalleryManifest();if(!i)throw new Error("No extension gallery service configured.");let n=t.text||"";const r=t.pageSize??50;let o=new Fc().withPage(1,r);n?(n=n.replace(/\bcategory:("([^"]*)"|([^"]\S*))(\s+|\b|$)/g,(h,f,p)=>(o=o.withFilter("Category",p||f),"")),n=n.replace(/\btag:("([^"]*)"|([^"]\S*))(\s+|\b|$)/g,(h,f,p)=>(o=o.withFilter("Tag",p||f),"")),n=n.replace(/\bfeatured(\s+|\b|$)/g,()=>(o=o.withFilter("Featured"),"")),n=n.trim(),n&&(n=n.length<200?n:n.substring(0,200),o=o.withFilter("SearchText",n)),i.capabilities.extensionQuery.sorting?.some(h=>h.name==="NoneOrRelevance")&&(o=o.withSortBy("NoneOrRelevance"))):i.capabilities.extensionQuery.sorting?.some(h=>h.name==="InstallCount")&&(o=o.withSortBy("InstallCount")),t.sortBy&&i.capabilities.extensionQuery.sorting?.some(h=>h.name===t.sortBy)&&(o=o.withSortBy(t.sortBy)),typeof t.sortOrder=="number"&&(o=o.withSortOrder(t.sortOrder)),t.source&&(o=o.withSource(t.source));const a=async(h,f)=>{const{extensions:p,total:g}=await this.H(h,{targetPlatform:qo,compatible:!1,includePreRelease:!!t.includePreRelease,productVersion:t.productVersion??{version:this.w.version,date:this.w.date}},i,f);return p.forEach((w,b)=>e6(w,(h.pageNumber-1)*h.pageSize+b,t.source)),{extensions:p,total:g}},{extensions:c,total:l}=await a(o,s),u=async(h,f)=>{if(f.isCancellationRequested)throw new Dt;const{extensions:p}=await a(o.withPage(h+1),f);return p};return{firstPage:c,total:l,pageSize:o.pageSize,getPage:u}}async H(t,s,i,n){return this.w.quality!=="stable"&&await this.k?.getTreatment("useLatestPrereleaseAndStableVersionFlag")?this.J(t,s,i,n):this.I(t,s,i,n)}async I(t,s,i,n){const r=t.flags;t.flags.includes("IncludeLatestVersionOnly")&&t.flags.includes("IncludeVersions")&&(t=t.withFlags(...t.flags.filter(f=>f!=="IncludeVersions"))),!t.flags.includes("IncludeLatestVersionOnly")&&!t.flags.includes("IncludeVersions")&&(t=t.withFlags(...t.flags,"IncludeLatestVersionOnly")),(s.versions?.length||s.isQueryForReleaseVersionFromPreReleaseVersion)&&(t=t.withFlags(...t.flags.filter(f=>f!=="IncludeLatestVersionOnly"),"IncludeVersions")),t=t.withFlags(...t.flags,"IncludeAssetUri","IncludeCategoryAndTags","IncludeFiles","IncludeStatistics","IncludeVersionProperties");const{galleryExtensions:o,total:a,context:c}=await this.L(t,i,n);if(!t.flags.includes("IncludeLatestVersionOnly")){const f=[];for(const p of o){const g=jc(p),w={id:pi(p.publisher.publisherName,p.extensionName),uuid:p.extensionId},b=ci(s.includePreRelease)?s.includePreRelease:!!s.includePreRelease.find(k=>pe(k,w))?.includePreRelease,x=await this.K(p,{compatible:s.compatible,targetPlatform:s.targetPlatform,productVersion:s.productVersion,version:s.versions?.find(k=>pe(k,w))?.version??(b?2:0)},g);x&&f.push(Ph(p,x,g,i,this.w,c))}return{extensions:f,total:a}}const u=[],h=new Map;for(let f=0;f<o.length;f++){const p=o[f],g={id:pi(p.publisher.publisherName,p.extensionName),uuid:p.extensionId},w=ci(s.includePreRelease)?s.includePreRelease:!!s.includePreRelease.find(I=>pe(I,g))?.includePreRelease,b=jc(p);if(s.compatible&&(Bo(b,s.targetPlatform)||this.y.isAllowed({id:g.id,publisherDisplayName:p.publisher.displayName})!==!0))continue;const x=await this.K(p,{compatible:s.compatible,targetPlatform:s.targetPlatform,productVersion:s.productVersion,version:s.versions?.find(I=>pe(I,g))?.version??(w?2:0)},b),k=x?Ph(p,x,b,i,this.w,c):null;!k||k.properties.isPreReleaseVersion&&(!w||!k.hasReleaseVersion)||!k.properties.isPreReleaseVersion&&k.properties.targetPlatform!==s.targetPlatform&&k.hasPreReleaseVersion?h.set(p.extensionId,f):u.push([f,k])}if(h.size){const f=new on,p=new Fc().withFlags(...r.filter(w=>w!=="IncludeLatestVersionOnly"),"IncludeVersions").withPage(1,h.size).withFilter("ExtensionId",...h.keys()),{extensions:g}=await this.H(p,s,i,n);this.q.publicLog2("galleryService:additionalQuery",{duration:f.elapsed(),count:h.size});for(const w of g){const b=h.get(w.identifier.uuid);u.push([b,w])}}return{extensions:u.sort((f,p)=>f[0]-p[0]).map(([,f])=>f),total:a}}async J(t,s,i,n){s.versions?.length?t=t.withFlags(...t.flags.filter(l=>l!=="IncludeLatestVersionOnly"&&l!=="IncludeLatestPrereleaseAndStableVersionOnly"),"IncludeVersions"):t.flags.includes("IncludeVersions")||(t=(ci(s.includePreRelease)?s.includePreRelease:s.includePreRelease.every(({includePreRelease:u})=>u))?t.withFlags(...t.flags.filter(u=>u!=="IncludeLatestPrereleaseAndStableVersionOnly"),"IncludeLatestVersionOnly"):t.withFlags(...t.flags.filter(u=>u!=="IncludeLatestVersionOnly"),"IncludeLatestPrereleaseAndStableVersionOnly")),t.flags.includes("IncludeVersions")&&(t.flags.includes("IncludeLatestVersionOnly")||t.flags.includes("IncludeLatestPrereleaseAndStableVersionOnly"))&&(t=t.withFlags(...t.flags.filter(l=>l!=="IncludeLatestVersionOnly"&&l!=="IncludeLatestPrereleaseAndStableVersionOnly"),"IncludeVersions")),t=t.withFlags(...t.flags,"IncludeAssetUri","IncludeCategoryAndTags","IncludeFiles","IncludeStatistics","IncludeVersionProperties");const{galleryExtensions:r,total:o,context:a}=await this.L(t,i,n),c=[];for(let l=0;l<r.length;l++){const u=r[l],h={id:pi(u.publisher.publisherName,u.extensionName),uuid:u.extensionId},f=jc(u);if(s.compatible&&(Bo(f,s.targetPlatform)||this.y.isAllowed({id:h.id,publisherDisplayName:u.publisher.displayName})!==!0))continue;const p=s.versions?.find(w=>pe(w,h))?.version??((ci(s.includePreRelease)?s.includePreRelease:s.includePreRelease.find(w=>pe(w,h))?.includePreRelease)?2:0),g=await this.K(u,{compatible:s.compatible,targetPlatform:s.targetPlatform,productVersion:s.productVersion,version:p},f);g&&c.push(Ph(u,g,f,i,this.w,a))}return{extensions:c,total:o}}async K(t,s,i){const n={id:pi(t.publisher.publisherName,t.extensionName),uuid:t.extensionId},r=K7(t.versions,s.targetPlatform);if(s.compatible&&Bo(i,s.targetPlatform))return null;const o=ue(s.version)?s.version:void 0;for(let a=0;a<r.length;a++){const c=r[a];if(await this.E({id:n.id,version:c.version,isPreReleaseVersion:Mc(c),targetPlatform:Uc(c),engine:Jm(c),manifestAsset:Ui(c,_t.Manifest),enabledApiProposals:Zm(c)},s,t.publisher.displayName,i))return c;if(o&&c.version===o)return null}return o||s.compatible?null:t.versions[0]}async L(t,s,i){const n=Mr(s,"ExtensionQueryService");if(!n)throw new Error("No extension gallery query service configured.");t=t.withFlags(...t.flags,"ExcludeNonValidated").withFilter("Target","Microsoft.VisualStudio.Code");const r=s.capabilities.extensionQuery.flags?.find(p=>p.name==="Unpublished");r&&(t=t.withFilter("ExcludeWithFlags",String(r.value)));const o=JSON.stringify({filters:[{criteria:t.criteria.reduce((p,g)=>{const w=s.capabilities.extensionQuery.filtering?.find(b=>b.name===g.filterType);return w&&p.push({filterType:w.value,value:g.value}),p},[]),pageNumber:t.pageNumber,pageSize:t.pageSize,sortBy:s.capabilities.extensionQuery.sorting?.find(p=>p.name===t.sortBy)?.value,sortOrder:t.sortOrder}],assetTypes:t.assetTypes,flags:t.flags.reduce((p,g)=>{const w=s.capabilities.extensionQuery.flags?.find(b=>b.name===g);return w&&(p|=w.value),p},0)}),c={...await this.h,"Content-Type":"application/json",Accept:"application/json;api-version=3.0-preview.1","Accept-Encoding":"gzip","Content-Length":String(o.length)},l=new on;let u,h,f=0;try{if(u=await this.l.request({type:"POST",url:n,data:o,headers:c},i),u.res.statusCode&&u.res.statusCode>=400&&u.res.statusCode<500)return{galleryExtensions:[],total:f};const p=await Uo(u);if(p){const g=p.results[0],w=g.extensions,b=g.resultMetadata&&g.resultMetadata.filter(x=>x.metadataType==="ResultCount")[0];return f=b&&b.metadataItems.filter(x=>x.name==="TotalCount")[0].count||0,{galleryExtensions:w,total:f,context:u.res.headers.activityid?{[Go]:u.res.headers.activityid}:{}}}return{galleryExtensions:[],total:f}}catch(p){if(sn(p))throw h="Cancelled",p;{const g=de(p);throw h=o7(p)?"Offline":g.startsWith("XHR timeout")?"Timeout":"Failed",new Dc(g,h)}}finally{this.q.publicLog2("galleryService:query",{filterTypes:t.criteria.map(p=>p.filterType),flags:t.flags,sortBy:t.sortBy,sortOrder:String(t.sortOrder),pageNumber:String(t.pageNumber),source:t.source,searchTextLength:t.searchText.length,requestBodySize:String(o.length),duration:l.elapsed(),success:!!u&&mm(u),responseBodySize:u?.res.headers["Content-Length"],statusCode:u?String(u.res.statusCode):void 0,errorCode:h,count:String(f),server:this.M(u?.res.headers,Dh),activityId:this.M(u?.res.headers,Ih),endToEndId:this.M(u?.res.headers,Ah)})}}M(t,s){const i=t?.[s.toLowerCase()],n=Array.isArray(i)?i[0]:i;return n?new Fo(n):void 0}async N(t,s,i){let n;const r=new on;let o;try{const c={...await this.h,"Content-Type":"application/json",Accept:"application/json;api-version=7.2-preview","Accept-Encoding":"gzip"};if(o=await this.l.request({type:"GET",url:s.toString(!0),headers:c,timeout:Tc},i),o.res.statusCode===404)return n="NotFound",null;if(o.res.statusCode&&o.res.statusCode!==200)throw n="GalleryServiceError:"+o.res.statusCode,new Error("Unexpected HTTP response: "+o.res.statusCode);const l=await Uo(o);return l||(n="NoData"),l}catch(a){throw sn(a)?n="Cancelled":o7(a)?n="Offline":de(a).startsWith("XHR timeout")?n="Timeout":n||(n="Failed"),a}finally{this.q.publicLog2("galleryService:getLatest",{extension:t,host:s.authority,duration:r.elapsed(),errorCode:n,server:this.M(o?.res.headers,Dh),activityId:this.M(o?.res.headers,Ih),endToEndId:this.M(o?.res.headers,Ah)})}}async reportStatistic(t,s,i,n){const r=await this.z.getExtensionGalleryManifest();if(!r)return;let o;if(Ps){const u=Mr(r,"WebExtensionStatisticsUriTemplate");if(!u)return;o=wo(u,{publisher:t,name:s,version:i,statTypeValue:n==="install"?"1":"3"})}else{const u=Mr(r,"ExtensionStatisticsUriTemplate");if(!u)return;o=wo(u,{publisher:t,name:s,version:i,statTypeName:n})}const a=Ps?"api-version=6.1-preview.1":"*/*;api-version=4.0-preview.1",l={...await this.h,Accept:a};try{await this.l.request({type:"POST",url:o,headers:l},Ne.None)}catch{}}async download(t,s,i){this.n.trace("ExtensionGalleryService#download",t.identifier.id);const n=Mm(t),r=new Date().getTime(),o=i===2?"install":i===3?"update":"",a=o?{uri:`${t.assets.download.uri}${y.parse(t.assets.download.uri).query?"&":"?"}${o}=true`,fallbackUri:`${t.assets.download.fallbackUri}${y.parse(t.assets.download.fallbackUri).query?"&":"?"}${o}=true`}:t.assets.download,c=t.queryContext?.[Go]?{[Go]:t.queryContext[Go]}:void 0,l=await this.P(t.identifier.id,a,_t.VSIX,t.version,c?{headers:c}:void 0);try{await this.u.writeFile(s,l.stream)}catch(u){try{await this.u.del(s)}catch(h){this.n.warn(`Error while deleting the file ${s.toString()}`,de(h))}throw new Dc(de(u),"DownloadFailedWriting")}this.q.publicLog("galleryService:downloadVSIX",{...n,duration:new Date().getTime()-r})}async downloadSignatureArchive(t,s){if(!t.assets.signature)throw new Error("No signature asset found");this.n.trace("ExtensionGalleryService#downloadSignatureArchive",t.identifier.id);const i=await this.P(t.identifier.id,t.assets.signature,_t.Signature,t.version);try{await this.u.writeFile(s,i.stream)}catch(n){try{await this.u.del(s)}catch(r){this.n.warn(`Error while deleting the file ${s.toString()}`,de(r))}throw new Dc(de(n),"DownloadFailedWriting")}}async getReadme(t,s){if(t.assets.readme){const i=await this.P(t.identifier.id,t.assets.readme,_t.Details,t.version,{},s);return await Lr(i)||""}return""}async getManifest(t,s){if(t.assets.manifest){const i=await this.P(t.identifier.id,t.assets.manifest,_t.Manifest,t.version,{},s),n=await Lr(i);return n?JSON.parse(n):null}return null}async getCoreTranslation(t,s){const i=t.assets.coreTranslations.filter(n=>n[0]===s.toUpperCase())[0];if(i){const n=await this.P(t.identifier.id,i[1],i[0],t.version),r=await Lr(n);return r?JSON.parse(r):null}return null}async getChangelog(t,s){if(t.assets.changelog){const i=await this.P(t.identifier.id,t.assets.changelog,_t.Changelog,t.version,{},s);return await Lr(i)||""}return""}async getAllVersions(t){return this.O(t)}async getAllCompatibleVersions(t,s,i){return this.O(t,{version:s?2:0,targetPlatform:i})}async O(t,s){const i=await this.z.getExtensionGalleryManifest();if(!i)throw new Error("No extension gallery service configured.");let n=new Fc().withFlags("IncludeVersions","IncludeCategoryAndTags","IncludeFiles","IncludeVersionProperties").withPage(1,1);t.uuid?n=n.withFilter("ExtensionId",t.uuid):n=n.withFilter("ExtensionName",t.id);const{galleryExtensions:r}=await this.L(n,i,Ne.None);if(!r.length)return[];const o=jc(r[0]);if(s&&Bo(o,s.targetPlatform))return[];const a=[],c={version:this.w.version,date:this.w.date};await Promise.all(r[0].versions.map(async h=>{try{await this.E({id:t.id,version:h.version,isPreReleaseVersion:Mc(h),targetPlatform:Uc(h),engine:Jm(h),manifestAsset:Ui(h,_t.Manifest),enabledApiProposals:Zm(h)},{compatible:!!s,productVersion:c,targetPlatform:s?.targetPlatform??qo,version:s?.version??h.version},r[0].publisher.displayName,o)&&a.push(h)}catch{}}));const l=[],u=new Set;for(const h of K7(a,s?.targetPlatform??qo))u.has(h.version)||(u.add(h.version),l.push({version:h.version,date:h.lastUpdated,isPreReleaseVersion:Mc(h)}));return l}async P(t,s,i,n,r={},o=Ne.None){const a=await this.h,c={type:"GET"},l={...a,...r.headers||{}};r={...r,...c,headers:l};const u=s.uri,h=s.fallbackUri,f={...r,url:u,timeout:Tc};let p;try{if(p=await this.l.request(f,o),p.res.statusCode===200)return p;const g=await Lr(p);throw new Error(`Expected 200, got back ${p.res.statusCode} instead.

${g}`)}catch(g){if(sn(g))throw g;const w=de(g);this.q.publicLog2("galleryService:cdnFallback",{extension:t,assetType:i,message:w,extensionVersion:n,server:this.M(p?.res.headers,Dh),activityId:this.M(p?.res.headers,Ih),endToEndId:this.M(p?.res.headers,Ah)});const b={...r,url:h,timeout:Tc};return this.l.request(b,o)}}async getExtensionsControlManifest(){if(!this.isEnabled())throw new Error("No extension gallery service configured.");if(!this.d)return{malicious:[],deprecated:{},search:[],autoUpdate:{}};const t=await this.l.request({type:"GET",url:this.d,timeout:Tc},Ne.None);if(t.res.statusCode!==200)throw new Error("Could not get extensions report.");const s=await Uo(t),i=[],n={},r=[],o=s?.autoUpdate??{};if(s){for(const a of s.malicious){if(!ue(a))continue;const c=uh.test(a)?{id:a}:a;i.push({extensionOrPublisher:c,learnMoreLink:s.learnMoreLinks?.[a]})}if(s.migrateToPreRelease)for(const[a,c]of Object.entries(s.migrateToPreRelease))(!c.engine||Tm(c.engine,this.w.version,this.w.date))&&(n[a.toLowerCase()]={disallowInstall:!0,extension:{id:c.id,displayName:c.displayName,autoMigrate:{storage:!!c.migrateStorage},preRelease:!0}});if(s.deprecated)for(const[a,c]of Object.entries(s.deprecated))c&&(n[a.toLowerCase()]=ci(c)?{}:c);if(s.search)for(const a of s.search)r.push(a)}return{malicious:i,deprecated:n,search:r,autoUpdate:o}}},Bc=__decorate([__param(2,Mi),__param(3,fe),__param(4,rs),__param(5,gs),__param(6,Xe),__param(7,dt),__param(8,Zt),__param(9,gn),__param(10,Ur)],Bc),Ym=class extends Bc{constructor(t,s,i,n,r,o,a,c,l,u){super(t,void 0,s,i,n,r,o,a,c,l,u)}},Ym=__decorate([__param(0,q7),__param(1,Mi),__param(2,fe),__param(3,rs),__param(4,gs),__param(5,Xe),__param(6,dt),__param(7,Zt),__param(8,gn),__param(9,Ur)],Ym),zc=class extends Bc{constructor(t,s,i,n,r,o,a,c,l){super(void 0,void 0,t,s,i,n,r,o,a,c,l)}},zc=__decorate([__param(0,Mi),__param(1,fe),__param(2,rs),__param(3,gs),__param(4,Xe),__param(5,dt),__param(6,Zt),__param(7,gn),__param(8,Ur)],zc)}});import{createWriteStream as r6,promises as o6}from"fs";function EC(e){const t=e.externalFileAttributes>>16||33188;return[448,56,7].map(s=>t&s).reduce((s,i)=>s+i,t&61440)}function a6(e){if(e instanceof Hc)return e;let t;return h6.test(e.message)&&(t="CorruptZip"),new Hc(t,e)}function xC(e,t,s,i,n,r){const o=Ut(t),a=_(i,o);if(!a.startsWith(i))return Promise.reject(new Error(m(145,null,t)));const c=_(i,t);let l;return r.onCancellationRequested(()=>{l?.destroy()}),Promise.resolve(o6.mkdir(a,{recursive:!0})).then(()=>new Promise((u,h)=>{if(!r.isCancellationRequested)try{l=r6(c,{mode:s}),l.once("close",()=>u()),l.once("error",h),e.once("error",h),e.pipe(l)}catch(f){h(f)}}))}function kC(e,t,s,i){let n=un(()=>Promise.resolve()),r=0;const o=i.onCancellationRequested(()=>{n.cancel(),e.close()});return new Promise((a,c)=>{const l=new E4,u=h=>{h.isCancellationRequested||(r++,e.readEntry())};e.once("error",c),e.once("close",()=>n.then(()=>{i.isCancellationRequested||e.entryCount===r?a():c(new Hc("Incomplete",new Error(m(146,null,r,e.entryCount))))},c)),e.readEntry(),e.on("entry",h=>{if(i.isCancellationRequested)return;if(!s.sourcePathRegex.test(h.fileName)){u(i);return}const f=h.fileName.replace(s.sourcePathRegex,"");if(/\/$/.test(f)){const w=_(t,f);n=un(b=>o6.mkdir(w,{recursive:!0}).then(()=>u(b)).then(void 0,c));return}const p=l6(e,h),g=EC(h);n=un(w=>l.queue(()=>p.then(b=>xC(b,f,g,t,s,w).then(()=>u(w)))).then(null,c))})}).finally(()=>o.dispose())}async function c6(e,t=!1){const{open:s}=await import("yauzl");return new Promise((i,n)=>{s(e,t?{lazyEntries:!0}:void 0,(r,o)=>{r?n(a6(r)):i(fp(o))})})}function l6(e,t){return new Promise((s,i)=>{e.openReadStream(t,(n,r)=>{n?i(a6(n)):s(fp(r))})})}async function $C(e,t){const{ZipFile:s}=await import("yazl");return new Promise((i,n)=>{const r=new s;t.forEach(a=>{a.contents?r.addBuffer(typeof a.contents=="string"?Buffer.from(a.contents,"utf8"):a.contents,a.path):a.localPath&&r.addFile(a.localPath,a.path)}),r.end();const o=r6(e);r.outputStream.pipe(o),r.outputStream.once("error",n),o.once("error",n),o.once("finish",()=>i(e))})}function SC(e,t,s={},i){const n=new RegExp(s.sourcePath?`^${s.sourcePath}`:"");let r=c6(e,!0);return s.overwrite&&(r=r.then(o=>ke.rm(t).then(()=>o))),r.then(o=>kC(o,t,{sourcePathRegex:n},i))}function PC(e,t){return c6(e).then(s=>new Promise((i,n)=>{s.on("entry",r=>{r.fileName===t&&l6(s,r).then(o=>i(o),o=>n(o))}),s.once("close",()=>n(new Error(m(147,null,t))))}))}function u6(e,t){return PC(e,t).then(s=>new Promise((i,n)=>{const r=[];s.once("error",n),s.on("data",o=>r.push(o)),s.on("end",()=>i(Buffer.concat(r)))}))}var Qm,h6,Hc,Xm=v({"out-build/vs/base/node/zip.js"(){"use strict";Ae(),he(),be(),ds(),ce(),Qm="end of central directory record signature not found",h6=new RegExp(Qm),Hc=class extends Error{constructor(e,t){let s=t.message;switch(e){case"CorruptZip":s=`Corrupt ZIP: ${s}`;break}super(s),this.type=e,this.cause=t}}}}),Lh,Km=v({"out-build/vs/platform/download/common/download.js"(){"use strict";ie(),Lh=X("downloadService")}}),IC,f6,d6,p6,DC,AC,LC,RC,NC=v({"out-build/vs/base/common/naturalLanguage/korean.js"(){"use strict";IC=new Uint32Array(10),function(e){e[e.InitialConsonant=4352]="InitialConsonant",e[e.Vowel=4449]="Vowel",e[e.FinalConsonant=4520]="FinalConsonant",e[e.CompatibilityJamo=12593]="CompatibilityJamo"}(f6||(f6={})),function(e){e[e.NUL=0]="NUL",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z"}(d6||(d6={})),function(e){e[e.fa=24934]="fa",e[e.fg=26470]="fg",e[e.fq=29030]="fq",e[e.fr=29286]="fr",e[e.ft=29798]="ft",e[e.fv=30310]="fv",e[e.fx=30822]="fx",e[e.hk=27496]="hk",e[e.hl=27752]="hl",e[e.ho=28520]="ho",e[e.ml=27757]="ml",e[e.nj=27246]="nj",e[e.nl=27758]="nl",e[e.np=28782]="np",e[e.qt=29809]="qt",e[e.rt=29810]="rt",e[e.sg=26483]="sg",e[e.sw=30579]="sw"}(p6||(p6={})),DC=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),AC=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),LC=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),RC=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108])}});function m6(...e){return function(t,s){for(let i=0,n=e.length;i<n;i++){const r=e[i](t,s);if(r)return r}return null}}function g6(e,t,s){if(!s||s.length<t.length)return null;let i;return e?i=xp(s,t):i=s.indexOf(t)===0,i?t.length>0?[{start:0,end:t.length}]:[]:null}function OC(e,t){const s=t.toLowerCase().indexOf(e.toLowerCase());return s===-1?null:[{start:s,end:s+e.length}]}function CC(e,t){return eg(e.toLowerCase(),t.toLowerCase(),0,0)}function eg(e,t,s,i){if(s===e.length)return[];if(i===t.length)return null;if(e[s]===t[i]){let n=null;return(n=eg(e,t,s+1,i+1))?v6({start:i,end:i+1},n):null}return eg(e,t,s,i+1)}function tg(e){return 97<=e&&e<=122}function Rh(e){return 65<=e&&e<=90}function sg(e){return 48<=e&&e<=57}function _C(e){return e===32||e===9||e===10||e===13}function w6(e){return tg(e)||Rh(e)||sg(e)}function v6(e,t){return t.length===0?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function b6(e,t){for(let s=t;s<e.length;s++){const i=e.charCodeAt(s);if(Rh(i)||sg(i)||s>0&&!w6(e.charCodeAt(s-1)))return s}return e.length}function ig(e,t,s,i){if(s===e.length)return[];if(i===t.length)return null;if(e[s]!==t[i].toLowerCase())return null;{let n=null,r=i+1;for(n=ig(e,t,s+1,i+1);!n&&(r=b6(t,r))<t.length;)n=ig(e,t,s+1,r),r++;return n===null?null:v6({start:i,end:i+1},n)}}function MC(e){let t=0,s=0,i=0,n=0,r=0;for(let u=0;u<e.length;u++)r=e.charCodeAt(u),Rh(r)&&t++,tg(r)&&s++,w6(r)&&i++,sg(r)&&n++;const o=t/e.length,a=s/e.length,c=i/e.length,l=n/e.length;return{upperPercent:o,lowerPercent:a,alphaPercent:c,numericPercent:l}}function UC(e){const{upperPercent:t,lowerPercent:s}=e;return s===0&&t>.6}function jC(e){const{upperPercent:t,lowerPercent:s,alphaPercent:i,numericPercent:n}=e;return s>.2&&t<.8&&i>.6&&n<.2}function TC(e){let t=0,s=0,i=0,n=0;for(let r=0;r<e.length;r++)i=e.charCodeAt(r),Rh(i)&&t++,tg(i)&&s++,_C(i)&&n++;return(t===0||s===0)&&n===0?e.length<=30:t<=5}function y6(e,t){if(!t||(t=t.trim(),t.length===0)||!TC(e))return null;t.length>60&&(t=t.substring(0,60));const s=MC(t);if(!jC(s)){if(!UC(s))return null;t=t.toLowerCase()}let i=null,n=0;for(e=e.toLowerCase();n<t.length&&(i=ig(e,t,0,n))===null;)n=b6(t,n+1);return i}function ng(){const e=[],t=[];for(let s=0;s<=Vc;s++)t[s]=0;for(let s=0;s<=Vc;s++)e.push(t.slice(0));return e}function E6(e){const t=[];for(let s=0;s<=e;s++)t[s]=0;return t}var FC,rg,x6,BC,zC,HC,Vc,VC,WC,qC,GC,JC,k6,$6,ZC,YC=v({"out-build/vs/base/common/filters.js"(){"use strict";Jt(),NC(),at(),FC=g6.bind(void 0,!1),rg=g6.bind(void 0,!0),x6=new Set,"()[]{}<>`'\"-/;:,.?!".split("").forEach(e=>x6.add(e.charCodeAt(0))),BC=m6(rg,y6,OC),zC=m6(rg,y6,CC),HC=new Ga(1e4),Vc=128,VC=E6(2*Vc),WC=E6(2*Vc),qC=ng(),GC=ng(),JC=ng(),function(e){e[e.Diag=1]="Diag",e[e.Left=2]="Left",e[e.LeftLeft=3]="LeftLeft"}(k6||(k6={})),function(e){e.Default=[-100,0];function t(s){return!s||s.length===2&&s[0]===-100&&s[1]===0}e.isDefault=t}($6||($6={})),ZC=class{static{this.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}}constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}}});function d(e,t){if(ue(t)){const s=Nh[t];if(s===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=s}return Nh[e]=t,{id:e}}function QC(){return Nh}var Nh,og=v({"out-build/vs/base/common/codiconsUtil.js"(){"use strict";be(),Nh=Object.create(null)}}),S6,XC=v({"out-build/vs/base/common/codiconsLibrary.js"(){"use strict";og(),S6={add:d("add",6e4),plus:d("plus",6e4),gistNew:d("gist-new",6e4),repoCreate:d("repo-create",6e4),lightbulb:d("lightbulb",60001),lightBulb:d("light-bulb",60001),repo:d("repo",60002),repoDelete:d("repo-delete",60002),gistFork:d("gist-fork",60003),repoForked:d("repo-forked",60003),gitPullRequest:d("git-pull-request",60004),gitPullRequestAbandoned:d("git-pull-request-abandoned",60004),recordKeys:d("record-keys",60005),keyboard:d("keyboard",60005),tag:d("tag",60006),gitPullRequestLabel:d("git-pull-request-label",60006),tagAdd:d("tag-add",60006),tagRemove:d("tag-remove",60006),person:d("person",60007),personFollow:d("person-follow",60007),personOutline:d("person-outline",60007),personFilled:d("person-filled",60007),gitBranch:d("git-branch",60008),gitBranchCreate:d("git-branch-create",60008),gitBranchDelete:d("git-branch-delete",60008),sourceControl:d("source-control",60008),mirror:d("mirror",60009),mirrorPublic:d("mirror-public",60009),star:d("star",60010),starAdd:d("star-add",60010),starDelete:d("star-delete",60010),starEmpty:d("star-empty",60010),comment:d("comment",60011),commentAdd:d("comment-add",60011),alert:d("alert",60012),warning:d("warning",60012),search:d("search",60013),searchSave:d("search-save",60013),logOut:d("log-out",60014),signOut:d("sign-out",60014),logIn:d("log-in",60015),signIn:d("sign-in",60015),eye:d("eye",60016),eyeUnwatch:d("eye-unwatch",60016),eyeWatch:d("eye-watch",60016),circleFilled:d("circle-filled",60017),primitiveDot:d("primitive-dot",60017),closeDirty:d("close-dirty",60017),debugBreakpoint:d("debug-breakpoint",60017),debugBreakpointDisabled:d("debug-breakpoint-disabled",60017),debugHint:d("debug-hint",60017),terminalDecorationSuccess:d("terminal-decoration-success",60017),primitiveSquare:d("primitive-square",60018),edit:d("edit",60019),pencil:d("pencil",60019),info:d("info",60020),issueOpened:d("issue-opened",60020),gistPrivate:d("gist-private",60021),gitForkPrivate:d("git-fork-private",60021),lock:d("lock",60021),mirrorPrivate:d("mirror-private",60021),close:d("close",60022),removeClose:d("remove-close",60022),x:d("x",60022),repoSync:d("repo-sync",60023),sync:d("sync",60023),clone:d("clone",60024),desktopDownload:d("desktop-download",60024),beaker:d("beaker",60025),microscope:d("microscope",60025),vm:d("vm",60026),deviceDesktop:d("device-desktop",60026),file:d("file",60027),fileText:d("file-text",60027),more:d("more",60028),ellipsis:d("ellipsis",60028),kebabHorizontal:d("kebab-horizontal",60028),mailReply:d("mail-reply",60029),reply:d("reply",60029),organization:d("organization",60030),organizationFilled:d("organization-filled",60030),organizationOutline:d("organization-outline",60030),newFile:d("new-file",60031),fileAdd:d("file-add",60031),newFolder:d("new-folder",60032),fileDirectoryCreate:d("file-directory-create",60032),trash:d("trash",60033),trashcan:d("trashcan",60033),history:d("history",60034),clock:d("clock",60034),folder:d("folder",60035),fileDirectory:d("file-directory",60035),symbolFolder:d("symbol-folder",60035),logoGithub:d("logo-github",60036),markGithub:d("mark-github",60036),github:d("github",60036),terminal:d("terminal",60037),console:d("console",60037),repl:d("repl",60037),zap:d("zap",60038),symbolEvent:d("symbol-event",60038),error:d("error",60039),stop:d("stop",60039),variable:d("variable",60040),symbolVariable:d("symbol-variable",60040),array:d("array",60042),symbolArray:d("symbol-array",60042),symbolModule:d("symbol-module",60043),symbolPackage:d("symbol-package",60043),symbolNamespace:d("symbol-namespace",60043),symbolObject:d("symbol-object",60043),symbolMethod:d("symbol-method",60044),symbolFunction:d("symbol-function",60044),symbolConstructor:d("symbol-constructor",60044),symbolBoolean:d("symbol-boolean",60047),symbolNull:d("symbol-null",60047),symbolNumeric:d("symbol-numeric",60048),symbolNumber:d("symbol-number",60048),symbolStructure:d("symbol-structure",60049),symbolStruct:d("symbol-struct",60049),symbolParameter:d("symbol-parameter",60050),symbolTypeParameter:d("symbol-type-parameter",60050),symbolKey:d("symbol-key",60051),symbolText:d("symbol-text",60051),symbolReference:d("symbol-reference",60052),goToFile:d("go-to-file",60052),symbolEnum:d("symbol-enum",60053),symbolValue:d("symbol-value",60053),symbolRuler:d("symbol-ruler",60054),symbolUnit:d("symbol-unit",60054),activateBreakpoints:d("activate-breakpoints",60055),archive:d("archive",60056),arrowBoth:d("arrow-both",60057),arrowDown:d("arrow-down",60058),arrowLeft:d("arrow-left",60059),arrowRight:d("arrow-right",60060),arrowSmallDown:d("arrow-small-down",60061),arrowSmallLeft:d("arrow-small-left",60062),arrowSmallRight:d("arrow-small-right",60063),arrowSmallUp:d("arrow-small-up",60064),arrowUp:d("arrow-up",60065),bell:d("bell",60066),bold:d("bold",60067),book:d("book",60068),bookmark:d("bookmark",60069),debugBreakpointConditionalUnverified:d("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:d("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:d("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:d("debug-breakpoint-data-unverified",60072),debugBreakpointData:d("debug-breakpoint-data",60073),debugBreakpointDataDisabled:d("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:d("debug-breakpoint-log-unverified",60074),debugBreakpointLog:d("debug-breakpoint-log",60075),debugBreakpointLogDisabled:d("debug-breakpoint-log-disabled",60075),briefcase:d("briefcase",60076),broadcast:d("broadcast",60077),browser:d("browser",60078),bug:d("bug",60079),calendar:d("calendar",60080),caseSensitive:d("case-sensitive",60081),check:d("check",60082),checklist:d("checklist",60083),chevronDown:d("chevron-down",60084),chevronLeft:d("chevron-left",60085),chevronRight:d("chevron-right",60086),chevronUp:d("chevron-up",60087),chromeClose:d("chrome-close",60088),chromeMaximize:d("chrome-maximize",60089),chromeMinimize:d("chrome-minimize",60090),chromeRestore:d("chrome-restore",60091),circleOutline:d("circle-outline",60092),circle:d("circle",60092),debugBreakpointUnverified:d("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:d("terminal-decoration-incomplete",60092),circleSlash:d("circle-slash",60093),circuitBoard:d("circuit-board",60094),clearAll:d("clear-all",60095),clippy:d("clippy",60096),closeAll:d("close-all",60097),cloudDownload:d("cloud-download",60098),cloudUpload:d("cloud-upload",60099),code:d("code",60100),collapseAll:d("collapse-all",60101),colorMode:d("color-mode",60102),commentDiscussion:d("comment-discussion",60103),creditCard:d("credit-card",60105),dash:d("dash",60108),dashboard:d("dashboard",60109),database:d("database",60110),debugContinue:d("debug-continue",60111),debugDisconnect:d("debug-disconnect",60112),debugPause:d("debug-pause",60113),debugRestart:d("debug-restart",60114),debugStart:d("debug-start",60115),debugStepInto:d("debug-step-into",60116),debugStepOut:d("debug-step-out",60117),debugStepOver:d("debug-step-over",60118),debugStop:d("debug-stop",60119),debug:d("debug",60120),deviceCameraVideo:d("device-camera-video",60121),deviceCamera:d("device-camera",60122),deviceMobile:d("device-mobile",60123),diffAdded:d("diff-added",60124),diffIgnored:d("diff-ignored",60125),diffModified:d("diff-modified",60126),diffRemoved:d("diff-removed",60127),diffRenamed:d("diff-renamed",60128),diff:d("diff",60129),diffSidebyside:d("diff-sidebyside",60129),discard:d("discard",60130),editorLayout:d("editor-layout",60131),emptyWindow:d("empty-window",60132),exclude:d("exclude",60133),extensions:d("extensions",60134),eyeClosed:d("eye-closed",60135),fileBinary:d("file-binary",60136),fileCode:d("file-code",60137),fileMedia:d("file-media",60138),filePdf:d("file-pdf",60139),fileSubmodule:d("file-submodule",60140),fileSymlinkDirectory:d("file-symlink-directory",60141),fileSymlinkFile:d("file-symlink-file",60142),fileZip:d("file-zip",60143),files:d("files",60144),filter:d("filter",60145),flame:d("flame",60146),foldDown:d("fold-down",60147),foldUp:d("fold-up",60148),fold:d("fold",60149),folderActive:d("folder-active",60150),folderOpened:d("folder-opened",60151),gear:d("gear",60152),gift:d("gift",60153),gistSecret:d("gist-secret",60154),gist:d("gist",60155),gitCommit:d("git-commit",60156),gitCompare:d("git-compare",60157),compareChanges:d("compare-changes",60157),gitMerge:d("git-merge",60158),githubAction:d("github-action",60159),githubAlt:d("github-alt",60160),globe:d("globe",60161),grabber:d("grabber",60162),graph:d("graph",60163),gripper:d("gripper",60164),heart:d("heart",60165),home:d("home",60166),horizontalRule:d("horizontal-rule",60167),hubot:d("hubot",60168),inbox:d("inbox",60169),issueReopened:d("issue-reopened",60171),issues:d("issues",60172),italic:d("italic",60173),jersey:d("jersey",60174),json:d("json",60175),kebabVertical:d("kebab-vertical",60176),key:d("key",60177),law:d("law",60178),lightbulbAutofix:d("lightbulb-autofix",60179),linkExternal:d("link-external",60180),link:d("link",60181),listOrdered:d("list-ordered",60182),listUnordered:d("list-unordered",60183),liveShare:d("live-share",60184),loading:d("loading",60185),location:d("location",60186),mailRead:d("mail-read",60187),mail:d("mail",60188),markdown:d("markdown",60189),megaphone:d("megaphone",60190),mention:d("mention",60191),milestone:d("milestone",60192),gitPullRequestMilestone:d("git-pull-request-milestone",60192),mortarBoard:d("mortar-board",60193),move:d("move",60194),multipleWindows:d("multiple-windows",60195),mute:d("mute",60196),noNewline:d("no-newline",60197),note:d("note",60198),octoface:d("octoface",60199),openPreview:d("open-preview",60200),package:d("package",60201),paintcan:d("paintcan",60202),pin:d("pin",60203),play:d("play",60204),run:d("run",60204),plug:d("plug",60205),preserveCase:d("preserve-case",60206),preview:d("preview",60207),project:d("project",60208),pulse:d("pulse",60209),question:d("question",60210),quote:d("quote",60211),radioTower:d("radio-tower",60212),reactions:d("reactions",60213),references:d("references",60214),refresh:d("refresh",60215),regex:d("regex",60216),remoteExplorer:d("remote-explorer",60217),remote:d("remote",60218),remove:d("remove",60219),replaceAll:d("replace-all",60220),replace:d("replace",60221),repoClone:d("repo-clone",60222),repoForcePush:d("repo-force-push",60223),repoPull:d("repo-pull",60224),repoPush:d("repo-push",60225),report:d("report",60226),requestChanges:d("request-changes",60227),rocket:d("rocket",60228),rootFolderOpened:d("root-folder-opened",60229),rootFolder:d("root-folder",60230),rss:d("rss",60231),ruby:d("ruby",60232),saveAll:d("save-all",60233),saveAs:d("save-as",60234),save:d("save",60235),screenFull:d("screen-full",60236),screenNormal:d("screen-normal",60237),searchStop:d("search-stop",60238),server:d("server",60240),settingsGear:d("settings-gear",60241),settings:d("settings",60242),shield:d("shield",60243),smiley:d("smiley",60244),sortPrecedence:d("sort-precedence",60245),splitHorizontal:d("split-horizontal",60246),splitVertical:d("split-vertical",60247),squirrel:d("squirrel",60248),starFull:d("star-full",60249),starHalf:d("star-half",60250),symbolClass:d("symbol-class",60251),symbolColor:d("symbol-color",60252),symbolConstant:d("symbol-constant",60253),symbolEnumMember:d("symbol-enum-member",60254),symbolField:d("symbol-field",60255),symbolFile:d("symbol-file",60256),symbolInterface:d("symbol-interface",60257),symbolKeyword:d("symbol-keyword",60258),symbolMisc:d("symbol-misc",60259),symbolOperator:d("symbol-operator",60260),symbolProperty:d("symbol-property",60261),wrench:d("wrench",60261),wrenchSubaction:d("wrench-subaction",60261),symbolSnippet:d("symbol-snippet",60262),tasklist:d("tasklist",60263),telescope:d("telescope",60264),textSize:d("text-size",60265),threeBars:d("three-bars",60266),thumbsdown:d("thumbsdown",60267),thumbsup:d("thumbsup",60268),tools:d("tools",60269),triangleDown:d("triangle-down",60270),triangleLeft:d("triangle-left",60271),triangleRight:d("triangle-right",60272),triangleUp:d("triangle-up",60273),twitter:d("twitter",60274),unfold:d("unfold",60275),unlock:d("unlock",60276),unmute:d("unmute",60277),unverified:d("unverified",60278),verified:d("verified",60279),versions:d("versions",60280),vmActive:d("vm-active",60281),vmOutline:d("vm-outline",60282),vmRunning:d("vm-running",60283),watch:d("watch",60284),whitespace:d("whitespace",60285),wholeWord:d("whole-word",60286),window:d("window",60287),wordWrap:d("word-wrap",60288),zoomIn:d("zoom-in",60289),zoomOut:d("zoom-out",60290),listFilter:d("list-filter",60291),listFlat:d("list-flat",60292),listSelection:d("list-selection",60293),selection:d("selection",60293),listTree:d("list-tree",60294),debugBreakpointFunctionUnverified:d("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:d("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:d("debug-breakpoint-function-disabled",60296),debugStackframeActive:d("debug-stackframe-active",60297),circleSmallFilled:d("circle-small-filled",60298),debugStackframeDot:d("debug-stackframe-dot",60298),terminalDecorationMark:d("terminal-decoration-mark",60298),debugStackframe:d("debug-stackframe",60299),debugStackframeFocused:d("debug-stackframe-focused",60299),debugBreakpointUnsupported:d("debug-breakpoint-unsupported",60300),symbolString:d("symbol-string",60301),debugReverseContinue:d("debug-reverse-continue",60302),debugStepBack:d("debug-step-back",60303),debugRestartFrame:d("debug-restart-frame",60304),debugAlt:d("debug-alt",60305),callIncoming:d("call-incoming",60306),callOutgoing:d("call-outgoing",60307),menu:d("menu",60308),expandAll:d("expand-all",60309),feedback:d("feedback",60310),gitPullRequestReviewer:d("git-pull-request-reviewer",60310),groupByRefType:d("group-by-ref-type",60311),ungroupByRefType:d("ungroup-by-ref-type",60312),account:d("account",60313),gitPullRequestAssignee:d("git-pull-request-assignee",60313),bellDot:d("bell-dot",60314),debugConsole:d("debug-console",60315),library:d("library",60316),output:d("output",60317),runAll:d("run-all",60318),syncIgnored:d("sync-ignored",60319),pinned:d("pinned",60320),githubInverted:d("github-inverted",60321),serverProcess:d("server-process",60322),serverEnvironment:d("server-environment",60323),pass:d("pass",60324),issueClosed:d("issue-closed",60324),stopCircle:d("stop-circle",60325),playCircle:d("play-circle",60326),record:d("record",60327),debugAltSmall:d("debug-alt-small",60328),vmConnect:d("vm-connect",60329),cloud:d("cloud",60330),merge:d("merge",60331),export:d("export",60332),graphLeft:d("graph-left",60333),magnet:d("magnet",60334),notebook:d("notebook",60335),redo:d("redo",60336),checkAll:d("check-all",60337),pinnedDirty:d("pinned-dirty",60338),passFilled:d("pass-filled",60339),circleLargeFilled:d("circle-large-filled",60340),circleLarge:d("circle-large",60341),circleLargeOutline:d("circle-large-outline",60341),combine:d("combine",60342),gather:d("gather",60342),table:d("table",60343),variableGroup:d("variable-group",60344),typeHierarchy:d("type-hierarchy",60345),typeHierarchySub:d("type-hierarchy-sub",60346),typeHierarchySuper:d("type-hierarchy-super",60347),gitPullRequestCreate:d("git-pull-request-create",60348),runAbove:d("run-above",60349),runBelow:d("run-below",60350),notebookTemplate:d("notebook-template",60351),debugRerun:d("debug-rerun",60352),workspaceTrusted:d("workspace-trusted",60353),workspaceUntrusted:d("workspace-untrusted",60354),workspaceUnknown:d("workspace-unknown",60355),terminalCmd:d("terminal-cmd",60356),terminalDebian:d("terminal-debian",60357),terminalLinux:d("terminal-linux",60358),terminalPowershell:d("terminal-powershell",60359),terminalTmux:d("terminal-tmux",60360),terminalUbuntu:d("terminal-ubuntu",60361),terminalBash:d("terminal-bash",60362),arrowSwap:d("arrow-swap",60363),copy:d("copy",60364),personAdd:d("person-add",60365),filterFilled:d("filter-filled",60366),wand:d("wand",60367),debugLineByLine:d("debug-line-by-line",60368),inspect:d("inspect",60369),layers:d("layers",60370),layersDot:d("layers-dot",60371),layersActive:d("layers-active",60372),compass:d("compass",60373),compassDot:d("compass-dot",60374),compassActive:d("compass-active",60375),azure:d("azure",60376),issueDraft:d("issue-draft",60377),gitPullRequestClosed:d("git-pull-request-closed",60378),gitPullRequestDraft:d("git-pull-request-draft",60379),debugAll:d("debug-all",60380),debugCoverage:d("debug-coverage",60381),runErrors:d("run-errors",60382),folderLibrary:d("folder-library",60383),debugContinueSmall:d("debug-continue-small",60384),beakerStop:d("beaker-stop",60385),graphLine:d("graph-line",60386),graphScatter:d("graph-scatter",60387),pieChart:d("pie-chart",60388),bracket:d("bracket",60175),bracketDot:d("bracket-dot",60389),bracketError:d("bracket-error",60390),lockSmall:d("lock-small",60391),azureDevops:d("azure-devops",60392),verifiedFilled:d("verified-filled",60393),newline:d("newline",60394),layout:d("layout",60395),layoutActivitybarLeft:d("layout-activitybar-left",60396),layoutActivitybarRight:d("layout-activitybar-right",60397),layoutPanelLeft:d("layout-panel-left",60398),layoutPanelCenter:d("layout-panel-center",60399),layoutPanelJustify:d("layout-panel-justify",60400),layoutPanelRight:d("layout-panel-right",60401),layoutPanel:d("layout-panel",60402),layoutSidebarLeft:d("layout-sidebar-left",60403),layoutSidebarRight:d("layout-sidebar-right",60404),layoutStatusbar:d("layout-statusbar",60405),layoutMenubar:d("layout-menubar",60406),layoutCentered:d("layout-centered",60407),target:d("target",60408),indent:d("indent",60409),recordSmall:d("record-small",60410),errorSmall:d("error-small",60411),terminalDecorationError:d("terminal-decoration-error",60411),arrowCircleDown:d("arrow-circle-down",60412),arrowCircleLeft:d("arrow-circle-left",60413),arrowCircleRight:d("arrow-circle-right",60414),arrowCircleUp:d("arrow-circle-up",60415),layoutSidebarRightOff:d("layout-sidebar-right-off",60416),layoutPanelOff:d("layout-panel-off",60417),layoutSidebarLeftOff:d("layout-sidebar-left-off",60418),blank:d("blank",60419),heartFilled:d("heart-filled",60420),map:d("map",60421),mapHorizontal:d("map-horizontal",60421),foldHorizontal:d("fold-horizontal",60421),mapFilled:d("map-filled",60422),mapHorizontalFilled:d("map-horizontal-filled",60422),foldHorizontalFilled:d("fold-horizontal-filled",60422),circleSmall:d("circle-small",60423),bellSlash:d("bell-slash",60424),bellSlashDot:d("bell-slash-dot",60425),commentUnresolved:d("comment-unresolved",60426),gitPullRequestGoToChanges:d("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:d("git-pull-request-new-changes",60428),searchFuzzy:d("search-fuzzy",60429),commentDraft:d("comment-draft",60430),send:d("send",60431),sparkle:d("sparkle",60432),insert:d("insert",60433),mic:d("mic",60434),thumbsdownFilled:d("thumbsdown-filled",60435),thumbsupFilled:d("thumbsup-filled",60436),coffee:d("coffee",60437),snake:d("snake",60438),game:d("game",60439),vr:d("vr",60440),chip:d("chip",60441),piano:d("piano",60442),music:d("music",60443),micFilled:d("mic-filled",60444),repoFetch:d("repo-fetch",60445),copilot:d("copilot",60446),lightbulbSparkle:d("lightbulb-sparkle",60447),robot:d("robot",60448),sparkleFilled:d("sparkle-filled",60449),diffSingle:d("diff-single",60450),diffMultiple:d("diff-multiple",60451),surroundWith:d("surround-with",60452),share:d("share",60453),gitStash:d("git-stash",60454),gitStashApply:d("git-stash-apply",60455),gitStashPop:d("git-stash-pop",60456),vscode:d("vscode",60457),vscodeInsiders:d("vscode-insiders",60458),codeOss:d("code-oss",60459),runCoverage:d("run-coverage",60460),runAllCoverage:d("run-all-coverage",60461),coverage:d("coverage",60462),githubProject:d("github-project",60463),mapVertical:d("map-vertical",60464),foldVertical:d("fold-vertical",60464),mapVerticalFilled:d("map-vertical-filled",60465),foldVerticalFilled:d("fold-vertical-filled",60465),goToSearch:d("go-to-search",60466),percentage:d("percentage",60467),sortPercentage:d("sort-percentage",60467),attach:d("attach",60468),goToEditingSession:d("go-to-editing-session",60469),editSession:d("edit-session",60470),codeReview:d("code-review",60471),copilotWarning:d("copilot-warning",60472),python:d("python",60473),copilotLarge:d("copilot-large",60474),copilotWarningLarge:d("copilot-warning-large",60475),keyboardTab:d("keyboard-tab",60476),copilotBlocked:d("copilot-blocked",60477),copilotNotConnected:d("copilot-not-connected",60478),flag:d("flag",60479),lightbulbEmpty:d("lightbulb-empty",60480),symbolMethodArrow:d("symbol-method-arrow",60481),copilotUnavailable:d("copilot-unavailable",60482),repoPinned:d("repo-pinned",60483),keyboardTabAbove:d("keyboard-tab-above",60484),keyboardTabBelow:d("keyboard-tab-below",60485),gitPullRequestDone:d("git-pull-request-done",60486),mcp:d("mcp",60487),extensionsLarge:d("extensions-large",60488),layoutPanelDock:d("layout-panel-dock",60489),layoutSidebarLeftDock:d("layout-sidebar-left-dock",60490),layoutSidebarRightDock:d("layout-sidebar-right-dock",60491),copilotInProgress:d("copilot-in-progress",60492),copilotError:d("copilot-error",60493),copilotSuccess:d("copilot-success",60494),chatSparkle:d("chat-sparkle",60495),searchSparkle:d("search-sparkle",60496),editSparkle:d("edit-sparkle",60497),copilotSnooze:d("copilot-snooze",60498)}}});function P6(){return Object.values(U)}var I6,U,Hn=v({"out-build/vs/base/common/codicons.js"(){"use strict";og(),XC(),I6={dialogError:d("dialog-error","error"),dialogWarning:d("dialog-warning","warning"),dialogInfo:d("dialog-info","info"),dialogClose:d("dialog-close","close"),treeItemExpanded:d("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:d("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:d("tree-filter-on-type-off","list-selection"),treeFilterClear:d("tree-filter-clear","close"),treeItemLoading:d("tree-item-loading","loading"),menuSelection:d("menu-selection","check"),menuSubmenu:d("menu-submenu","chevron-right"),menuBarMore:d("menubar-more","more"),scrollbarButtonLeft:d("scrollbar-button-left","triangle-left"),scrollbarButtonRight:d("scrollbar-button-right","triangle-right"),scrollbarButtonUp:d("scrollbar-button-up","triangle-up"),scrollbarButtonDown:d("scrollbar-button-down","triangle-down"),toolBarMore:d("toolbar-more","more"),quickInputBack:d("quick-input-back","arrow-left"),dropDownButton:d("drop-down-button",60084),symbolCustomColor:d("symbol-customcolor",60252),exportIcon:d("export",60332),workspaceUnspecified:d("workspace-unspecified",60355),newLine:d("newline",60394),thumbsDownFilled:d("thumbsdown-filled",60435),thumbsUpFilled:d("thumbsup-filled",60436),gitFetch:d("git-fetch",60445),lightbulbSparkleAutofix:d("lightbulb-sparkle-autofix",60447),debugBreakpointPending:d("debug-breakpoint-pending",60377)},U={...S6,...I6}}}),ag,vs,Oh=v({"out-build/vs/base/common/themables.js"(){"use strict";Hn(),function(e){function t(s){return!!s&&typeof s=="object"&&typeof s.id=="string"}e.isThemeColor=t}(ag||(ag={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function s(f){const p=t.exec(f.id);if(!p)return s(U.error);const[,g,w]=p,b=["codicon","codicon-"+g];return w&&b.push("codicon-modifier-"+w.substring(1)),b}e.asClassNameArray=s;function i(f){return s(f).join(" ")}e.asClassName=i;function n(f){return"."+s(f).join(".")}e.asCSSSelector=n;function r(f){return!!f&&typeof f=="object"&&typeof f.id=="string"&&(typeof f.color>"u"||ag.isThemeColor(f.color))}e.isThemeIcon=r;const o=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);function a(f){const p=o.exec(f);if(!p)return;const[,g]=p;return{id:g}}e.fromString=a;function c(f){return{id:f}}e.fromId=c;function l(f,p){let g=f.id;const w=g.lastIndexOf("~");return w!==-1&&(g=g.substring(0,w)),p&&(g=`${g}~${p}`),{id:g}}e.modify=l;function u(f){const p=f.id.lastIndexOf("~");if(p!==-1)return f.id.substring(p+1)}e.getModifier=u;function h(f,p){return f.id===p.id&&f.color?.id===p.color?.id}e.isEqual=h}(vs||(vs={}))}});function KC(e){return e.replace(D6,(t,s)=>s?t:`\\${t}`)}var Ch,D6,e_,t_,s_,i_=v({"out-build/vs/base/common/iconLabels.js"(){"use strict";YC(),at(),Oh(),Ch=new RegExp(`\\$\\(${vs.iconNameExpression}(?:${vs.iconModifierExpression})?\\)`,"g"),D6=new RegExp(`(\\\\)?${Ch.source}`,"g"),e_=new RegExp(`\\\\${Ch.source}`,"g"),t_=new RegExp(`(\\s)?(\\\\)?${Ch.source}(\\s)?`,"g"),s_=new RegExp(`\\$\\(${vs.iconNameCharacter}+\\)`,"g")}});function Wc(e){return e instanceof vi?!0:e&&typeof e=="object"?typeof e.value=="string"&&(typeof e.isTrusted=="boolean"||typeof e.isTrusted=="object"||e.isTrusted===void 0)&&(typeof e.supportThemeIcons=="boolean"||e.supportThemeIcons===void 0):!1}function n_(e){return e.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function r_(e,t){const s=e.match(/^`+/gm)?.reduce((n,r)=>n.length>r.length?n:r).length??0,i=s>=3?s+1:3;return[`${"`".repeat(i)}${t}`,e,`${"`".repeat(i)}`].join(`
`)}function o_(e){const t=[],s=e.split("|").map(n=>n.trim());e=s[0];const i=s[1];if(i){const n=/height=(\d+)/.exec(i),r=/width=(\d+)/.exec(i),o=n?n[1]:"",a=r?r[1]:"",c=isFinite(parseInt(a)),l=isFinite(parseInt(o));c&&t.push(`width="${a}"`),l&&t.push(`height="${o}"`)}return{href:e,dimensions:t}}var A6,vi,qc=v({"out-build/vs/base/common/htmlContent.js"(){"use strict";ge(),i_(),Se(),ct(),at(),Q(),function(e){e[e.Paragraph=0]="Paragraph",e[e.Break=1]="Break"}(A6||(A6={})),vi=class uA{static lift(t){const s=new uA(t.value,t);return s.uris=t.uris,s.baseUri=t.baseUri?y.revive(t.baseUri):void 0,s}constructor(t="",s=!1){if(this.value=t,typeof this.value!="string")throw Ue("value");typeof s=="boolean"?(this.isTrusted=s,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=s.isTrusted??void 0,this.supportThemeIcons=s.supportThemeIcons??!1,this.supportHtml=s.supportHtml??!1)}appendText(t,s=0){return this.value+=n_(this.supportThemeIcons?KC(t):t).replace(/([ \t]+)/g,(i,n)=>"&nbsp;".repeat(n.length)).replace(/\>/gm,"\\>").replace(/\n/g,s===1?`\\
`:`

`),this}appendMarkdown(t){return this.value+=t,this}appendCodeblock(t,s){return this.value+=`
${r_(s,t)}
`,this}appendLink(t,s,i){return this.value+="[",this.value+=this.c(s,"]"),this.value+="](",this.value+=this.c(String(t),")"),i&&(this.value+=` "${this.c(this.c(i,'"'),")")}"`),this.value+=")",this}c(t,s){const i=new RegExp(On(s),"g");return t.replace(i,(n,r)=>t.charAt(r-1)!=="\\"?`\\${n}`:n)}}}});function yt(e,t){if(e instanceof tt)return e;let s;return e instanceof Dc?s=new tt(e.message,e.code==="DownloadFailedWriting"?"DownloadFailedWriting":"Gallery"):s=new tt(e.message,sn(e)?"Cancelled":t??"Internal"),s.stack=e.stack,s}function cg(e,t,{extensionData:s,verificationStatus:i,duration:n,error:r,source:o,durationSinceUpdate:a}){e.publicLog(t,{...s,source:o,duration:n,durationSinceUpdate:a,success:!r,errorcode:r?.code,verificationStatus:i===$t.Success?"Verified":i??"Unverified"})}var _h,Mh,lg,Uh=v({"out-build/vs/platform/extensionManagement/common/abstractExtensionManagementService.js"(){"use strict";kt(),Ae(),Lt(),ge(),re(),V(),Jt(),te(),Q(),ce(),As(),mi(),Zs(),gh(),Ie(),Kt(),Js(),Rs(),Ms(),qc(),_h=class extends W{constructor(t,s){super(),this.g=t,this.h=s,this.preferPreReleases=this.g.quality!=="stable"}async canInstall(t){const s=this.h.isAllowed({id:t.identifier.id,publisherDisplayName:t.publisherDisplayName});if(s!==!0)return new vi(m(1917,null,s.value));if(!await this.j(t)){const i=Ps?"https://aka.ms/vscode-web-extensions-guide":"https://aka.ms/vscode-platform-specific-extensions";return new vi(`${m(1918,null,t.displayName??t.identifier.id,this.g.nameLong,B9(await this.getTargetPlatform()))} [${m(1919,null)}](${i})`)}return!0}async j(t){const s=await this.getTargetPlatform();return t.allTargetPlatforms.some(i=>H9(i,t.allTargetPlatforms,s))}},_h=__decorate([__param(0,dt),__param(1,gn)],_h),Mh=class extends _h{get onInstallExtension(){return this.u.event}get onDidInstallExtensions(){return this.w.event}get onUninstallExtension(){return this.y.event}get onDidUninstallExtension(){return this.z.event}get onDidUpdateExtensionMetadata(){return this.C.event}constructor(t,s,i,n,r,o,a){super(r,o),this.F=t,this.G=s,this.H=i,this.I=n,this.J=a,this.n=0,this.s=new Map,this.t=new Map,this.u=this.B(new D),this.w=this.B(new D),this.y=this.B(new D),this.z=this.B(new D),this.C=this.B(new D),this.D=[],this.B(De(()=>{this.s.forEach(({task:c})=>c.cancel()),this.t.forEach(c=>c.cancel()),this.s.clear(),this.t.clear()}))}async installFromGallery(t,s={}){try{const n=(await this.installGalleryExtensions([{extension:t,options:s}])).find(({identifier:r})=>pe(r,t.identifier));if(n?.local)return n?.local;throw n?.error?n.error:new tt(`Unknown error while installing extension ${t.identifier.id}`,"Unknown")}catch(i){throw yt(i)}}async installGalleryExtensions(t){if(!this.F.isEnabled())throw new tt(m(1920,null),"NotAllowed");const s=[],i=[];return await Promise.allSettled(t.map(async({extension:n,options:r})=>{try{const o=await this.Q(n,!!r?.installGivenVersion,!!r?.installPreReleaseVersion,r.productVersion??{version:this.g.version,date:this.g.date});i.push({...o,options:r})}catch(o){s.push({identifier:n.identifier,operation:2,source:n,error:o,profileLocation:r.profileLocation??this.Z()})}})),i.length&&s.push(...await this.L(i)),s}async uninstall(t,s){return this.I.trace("ExtensionManagementService#uninstall",t.identifier.id),this.uninstallExtensions([{extension:t,options:s}])}async toggleApplicationScope(t,s){if(c7(t.manifest)||t.isBuiltin)return t;if(t.isApplicationScoped){let i=await this.updateMetadata(t,{isApplicationScoped:!1},this.J.defaultProfile.extensionsResource);this.H.extUri.isEqual(s,this.J.defaultProfile.extensionsResource)||(i=await this.bb(t,this.J.defaultProfile.extensionsResource,s));for(const n of this.J.profiles){const r=(await this.getInstalled(1,n.extensionsResource)).find(o=>pe(o.identifier,t.identifier));r?this.C.fire({local:r,profileLocation:n.extensionsResource}):this.z.fire({identifier:t.identifier,profileLocation:n.extensionsResource})}return i}else{const i=this.H.extUri.isEqual(s,this.J.defaultProfile.extensionsResource)?await this.updateMetadata(t,{isApplicationScoped:!0},this.J.defaultProfile.extensionsResource):await this.bb(t,s,this.J.defaultProfile.extensionsResource,{isApplicationScoped:!0});return this.w.fire([{identifier:i.identifier,operation:2,local:i,profileLocation:this.J.defaultProfile.extensionsResource,applicationScoped:!0}]),i}}getExtensionsControlManifest(){const t=new Date().getTime();return(!this.m||t-this.n>1e3*60*5)&&(this.m=this.Y(),this.n=t),this.m}registerParticipant(t){this.D.push(t)}async resetPinnedStateForAllUserExtensions(t){try{await this.O(this.J.profiles.map(async s=>{const i=await this.getInstalled(1,s.extensionsResource);await this.O(i.map(async n=>{n.pinned!==t&&await this.updateMetadata(n,{pinned:t},s.extensionsResource)}))}))}catch(s){throw this.I.error("Error while resetting pinned state for all user extensions",de(s)),s}}async L(t){const s=new Map,i=new Map,n=[],r=(c,l)=>`${ws.create(c).toString()}-${l.toString()}`,o=(c,l,u,h)=>{if(!y.isUri(l)){if(i.has(`${l.identifier.id.toLowerCase()}-${u.profileLocation.toString()}`))return;const g=this.s.get(r(l,u.profileLocation));if(g){if(h&&this.N(h,g.task)){const w=g.task.identifier;this.I.info("Waiting for already requested installing extension",w.id,h.identifier.id,u.profileLocation.toString()),g.waitingTasks.push(h),n.push(B.toPromise(B.filter(this.onDidInstallExtensions,b=>b.some(x=>pe(x.identifier,w)))).then(b=>{if(this.I.info("Finished waiting for already requested installing extension",w.id,h.identifier.id,u.profileLocation.toString()),!b.find(k=>pe(k.identifier,w))?.local)throw new Error(`Extension ${w.id} is not installed`)}))}return}}const f=this.$(c,l,u),p=`${pi(c.publisher,c.name)}-${u.profileLocation.toString()}`;i.set(p,{task:f,root:h}),this.u.fire({identifier:f.identifier,source:l,profileLocation:u.profileLocation}),this.I.info("Installing extension:",f.identifier.id,u),y.isUri(l)||this.s.set(r(l,u.profileLocation),{task:f,waitingTasks:[]})};try{for(const{manifest:l,extension:u,options:h}of t){const f=h.isApplicationScoped||h.isBuiltin||c7(l),p={...h,isApplicationScoped:f,profileLocation:f?this.J.defaultProfile.extensionsResource:h.profileLocation??this.Z(),productVersion:h.productVersion??{version:this.g.version,date:this.g.date}},g=y.isUri(u)?void 0:this.s.get(r(u,p.profileLocation));g?(this.I.info("Extension is already requested to install",g.task.identifier.id,p.profileLocation.toString()),n.push(g.task.waitUntilTaskIsFinished())):o(l,u,p,void 0)}await Promise.all([...i.values()].map(async({task:l})=>{if(l.options.donotIncludePackAndDependencies)this.I.info("Installing the extension without checking dependencies and pack",l.identifier.id);else try{let u=this.preferPreReleases;l.options.installPreReleaseVersion?u=!0:!y.isUri(l.source)&&l.source.hasPreReleaseVersion&&(u=!1);const h=await this.getInstalled(void 0,l.options.profileLocation,l.options.productVersion),f=await this.P(l.identifier,l.manifest,u,l.options.productVersion,h),p={...l.options,pinned:!1,installGivenVersion:!1,context:{...l.options.context,[q9]:!0}};for(const{gallery:g,manifest:w}of Ri(f,({gallery:b})=>b.identifier.id)){const b=h.find(x=>pe(x.identifier,g.identifier));b&&b.isApplicationScoped===!!p.isApplicationScoped||o(w,g,p,l)}}catch(u){if(y.isUri(l.source))Eu(l.manifest.extensionDependencies)&&this.I.warn("Cannot install dependencies of extension:",l.identifier.id,u.message),Eu(l.manifest.extensionPack)&&this.I.warn("Cannot install packed extensions of extension:",l.identifier.id,u.message);else throw this.I.error("Error while preparing to install dependencies and extension packs of the extension:",l.identifier.id),u}}));const c=await this.M([...i.values()].map(({task:l})=>l));for(const[l,u]of c)o(u.manifest,u.source,{...u.options,profileLocation:l},void 0);await this.O([...i.entries()].map(async([l,{task:u}])=>{const h=new Date().getTime();let f;try{f=await u.run(),await this.O(this.D.map(p=>p.postInstall(f,u.source,u.options,Ne.None)),"PostInstall")}catch(p){const g=yt(p);throw y.isUri(u.source)||cg(this.G,u.operation===3?"extensionGallery:update":"extensionGallery:install",{extensionData:Mm(u.source),error:g,source:u.options.context?.[Am]}),s.set(l,{error:g,identifier:u.identifier,operation:u.operation,source:u.source,context:u.options.context,profileLocation:u.options.profileLocation,applicationScoped:u.options.isApplicationScoped}),this.I.error("Error while installing the extension",u.identifier.id,de(g),u.options.profileLocation.toString()),g}if(!y.isUri(u.source)){const p=u.operation===3,g=p?void 0:(new Date().getTime()-u.source.lastUpdated)/1e3;if(cg(this.G,p?"extensionGallery:update":"extensionGallery:install",{extensionData:Mm(u.source),verificationStatus:u.verificationStatus,duration:new Date().getTime()-h,durationSinceUpdate:g,source:u.options.context?.[Am]}),Ps&&u.operation!==3)try{await this.F.reportStatistic(f.manifest.publisher,f.manifest.name,f.manifest.version,"install")}catch{}}s.set(l,{local:f,identifier:u.identifier,operation:u.operation,source:u.source,context:u.options.context,profileLocation:u.options.profileLocation,applicationScoped:f.isApplicationScoped})})),n.length&&await this.O(n)}catch(c){const l=(f,p,g)=>{const w=[];f.manifest.extensionDependencies?.length&&w.push(...f.manifest.extensionDependencies),f.manifest.extensionPack?.length&&w.push(...f.manifest.extensionPack);for(const b of w){if(g.includes(b.toLowerCase()))continue;g.push(b.toLowerCase());const x=s.get(`${b.toLowerCase()}-${p.toString()}`);x?.local&&(g=l(x.local,p,g))}return g},u=f=>({identifier:f.identifier,operation:2,source:f.source,context:f.options.context,profileLocation:f.options.profileLocation,error:c}),h=[];for(const[f,{task:p,root:g}]of i){const w=s.get(f);w?w.local&&g&&!s.get(`${g.identifier.id.toLowerCase()}-${p.options.profileLocation.toString()}`)?.local&&(h.push(this.ab(w.local,{versionOnly:!0,profileLocation:p.options.profileLocation})),s.set(f,u(p))):(p.cancel(),s.set(f,u(p)))}for(const[f,{task:p}]of i){const g=s.get(f);if(!g?.local||p.options.donotIncludePackAndDependencies)continue;l(g.local,p.options.profileLocation,[g.local.identifier.id.toLowerCase()]).slice(1).some(b=>i.has(`${b.toLowerCase()}-${p.options.profileLocation.toString()}`)&&!s.get(`${b.toLowerCase()}-${p.options.profileLocation.toString()}`)?.local)&&(h.push(this.ab(g.local,{versionOnly:!0,profileLocation:p.options.profileLocation})),s.set(f,u(p)))}h.length&&await Promise.allSettled(h.map(async f=>{try{await f.run(),this.I.info("Rollback: Uninstalled extension",f.extension.identifier.id)}catch(p){this.I.warn("Rollback: Error while uninstalling extension",f.extension.identifier.id,de(p))}}))}finally{for(const{task:c}of i.values())c.source&&!y.isUri(c.source)&&this.s.delete(r(c.source,c.options.profileLocation))}const a=[...s.values()];for(const c of a)c.local&&this.I.info("Extension installed successfully:",c.identifier.id,c.profileLocation.toString());return this.w.fire(a),a}async M(t){const s=[],i=new wt;for(const n of t)if(!(n.operation!==3||n.options.isApplicationScoped||n.options.pinned||n.options.installGivenVersion||y.isUri(n.source)))for(const r of this.J.profiles){if(this.H.extUri.isEqual(r.extensionsResource,n.options.profileLocation))continue;let o=i.get(r.extensionsResource);o||(o=await this.getInstalled(1,r.extensionsResource),i.set(r.extensionsResource,o));const a=o.find(c=>pe(c.identifier,n.identifier));a&&!a.pinned&&s.push([r.extensionsResource,n])}return s}N(t,s){for(const[,{task:i,waitingTasks:n}]of this.s.entries())if(i===t&&(n.includes(s)||n.some(r=>this.N(r,s)))||i===s&&n[0]&&!this.N(t,n[0]))return!1;return!0}async O(t,s){const i=[],n=[],r=await Promise.allSettled(t);for(const a of r)a.status==="fulfilled"?i.push(a.value):n.push(yt(a.reason,s));if(!n.length)return i;if(n.length===1)throw n[0];let o=new tt("","Unknown");for(const a of n)o=new tt(o.message?`${o.message}, ${a.message}`:a.message,a.code!=="Unknown"&&a.code!=="Internal"?a.code:o.code);throw o}async P(t,s,i,n,r){if(!this.F.isEnabled())return[];const o=[],a=[],c=async(l,u)=>{o.push(l);const h=u.extensionDependencies||[],f=[...h];if(u.extensionPack){const p=r.find(g=>pe(g.identifier,l));for(const g of u.extensionPack)p&&p.manifest.extensionPack&&p.manifest.extensionPack.some(w=>pe({id:w},{id:g}))||f.every(w=>!pe({id:w},{id:g}))&&f.push(g)}if(f.length){const p=f.filter(g=>o.every(w=>!pe(w,{id:g})));if(p.length){const g=await this.F.getExtensions(p.map(w=>({id:w,preRelease:i})),Ne.None);for(const w of g){if(o.find(k=>pe(k,w.identifier)))continue;const b=h.some(k=>pe({id:k},w.identifier));let x;try{x=await this.Q(w,!1,i,n)}catch(k){if(b)throw k;this.I.info("Skipping the packed extension as it cannot be installed",w.identifier.id,de(k));continue}a.push({gallery:x.extension,manifest:x.manifest}),await c(x.extension.identifier,x.manifest)}}}};return await c(t,s),a}async Q(t,s,i,n){let r;const o=await this.getExtensionsControlManifest();if(MO(t.identifier,o.malicious))throw new tt(m(1921,null,t.identifier.id),"Malicious");const a=o.deprecated[t.identifier.id.toLowerCase()];if(a?.extension?.autoMigrate){if(this.I.info(`The '${t.identifier.id}' extension is deprecated, fetching the compatible '${a.extension.id}' extension instead.`),r=(await this.F.getExtensions([{id:a.extension.id,preRelease:a.extension.preRelease}],{targetPlatform:await this.getTargetPlatform(),compatible:!0,productVersion:n},Ne.None))[0],!r)throw new tt(m(1922,null,t.identifier.id,a.extension.id),"Deprecated")}else{if(await this.canInstall(t)!==!0){const l=await this.getTargetPlatform();throw new tt(m(1923,null,t.identifier.id,this.g.nameLong,B9(l)),"IncompatibleTargetPlatform")}if(r=await this.R(t,s,i,n),!r){const l=[];throw Fm(t.properties.enabledApiProposals??[],l)?!i&&t.hasPreReleaseVersion&&t.properties.isPreReleaseVersion&&(await this.F.getExtensions([t.identifier],Ne.None))[0]?new tt(m(1925,null,t.displayName??t.identifier.id),"ReleaseVersionNotFound"):new tt(m(1926,null,t.identifier.id,this.g.nameLong,this.g.version),"Incompatible"):new tt(m(1924,null,t.displayName??t.identifier.id,l[0]),"IncompatibleApi")}}this.I.info("Getting Manifest...",r.identifier.id);const c=await this.F.getManifest(r,Ne.None);if(c===null)throw new tt(`Missing manifest for extension ${r.identifier.id}`,"Invalid");if(c.version!==r.version)throw new tt(`Cannot install '${r.identifier.id}' extension because of version mismatch in Marketplace`,"Invalid");return{extension:r,manifest:c}}async R(t,s,i,n){const r=await this.getTargetPlatform();let o=null;return!s&&t.hasPreReleaseVersion&&t.properties.isPreReleaseVersion!==i&&(o=(await this.F.getExtensions([{...t.identifier,preRelease:i}],{targetPlatform:r,compatible:!0,productVersion:n},Ne.None))[0]||null),!o&&await this.F.isExtensionCompatible(t,i,r,n)&&(o=t),o||(s?o=(await this.F.getExtensions([{...t.identifier,version:t.version}],{targetPlatform:r,compatible:!0,productVersion:n},Ne.None))[0]||null:o=await this.F.getCompatibleExtension(t,i,r,n)),o}async uninstallExtensions(t){const s=(h,f)=>`${h.identifier.id.toLowerCase()}${f.versionOnly?`-${h.manifest.version}`:""}@${f.profileLocation.toString()}`,i=(h,f)=>{const p=this.ab(h,f);return this.t.set(s(p.extension,f),p),this.I.info("Uninstalling extension from the profile:",`${h.identifier.id}@${h.manifest.version}`,f.profileLocation.toString()),this.y.fire({identifier:h.identifier,profileLocation:f.profileLocation,applicationScoped:h.isApplicationScoped}),p},n=(h,f,p)=>{p?this.I.error("Failed to uninstall extension from the profile:",`${h.identifier.id}@${h.manifest.version}`,f.profileLocation.toString(),p.message):this.I.info("Successfully uninstalled extension from the profile",`${h.identifier.id}@${h.manifest.version}`,f.profileLocation.toString()),cg(this.G,"extensionGallery:uninstall",{extensionData:CO(h),error:p}),this.z.fire({identifier:h.identifier,error:p?.code,profileLocation:f.profileLocation,applicationScoped:h.isApplicationScoped})},r=[],o=[],a=[],c=[],l=new wt,u=async h=>{let f=l.get(h);return f||l.set(h,f=await this.getInstalled(1,h)),f};for(const{extension:h,options:f}of t){const p={...f,profileLocation:h.isApplicationScoped?this.J.defaultProfile.extensionsResource:f?.profileLocation??this.Z()},g=this.t.get(s(h,p));if(g?(this.I.info("Extensions is already requested to uninstall",h.identifier.id),a.push(g.waitUntilTaskIsFinished())):r.push(i(h,p)),p.remove||h.isApplicationScoped){p.remove&&c.push(h);for(const w of this.J.profiles){if(this.H.extUri.isEqual(w.extensionsResource,p.profileLocation))continue;const x=(await u(w.extensionsResource)).find(k=>pe(k.identifier,h.identifier));if(x){const k={...p,profileLocation:w.extensionsResource},I=this.t.get(s(x,k));I?(this.I.info("Extensions is already requested to uninstall",x.identifier.id),a.push(I.waitUntilTaskIsFinished())):r.push(i(x,k))}}}}try{for(const h of r.slice(0)){const f=await u(h.options.profileLocation);if(h.options.donotIncludePack)this.I.info("Uninstalling the extension without including packed extension",`${h.extension.identifier.id}@${h.extension.manifest.version}`);else{const p=this.W(h.extension,f);for(const g of p)this.t.has(s(g,h.options))?this.I.info("Extensions is already requested to uninstall",g.identifier.id):r.push(i(g,h.options))}h.options.donotCheckDependents?this.I.info("Uninstalling the extension without checking dependents",`${h.extension.identifier.id}@${h.extension.manifest.version}`):this.S(r.map(p=>p.extension),f,h.extension)}await this.O(r.map(async h=>{try{if(await h.run(),await this.O(this.D.map(f=>f.postUninstall(h.extension,h.options,Ne.None))),h.extension.identifier.uuid)try{await this.F.reportStatistic(h.extension.manifest.publisher,h.extension.manifest.name,h.extension.manifest.version,"uninstall")}catch{}}catch(f){const p=yt(f);throw n(h.extension,h.options,p),p}finally{o.push(h)}})),a.length&&await this.O(a);for(const h of r)n(h.extension,h.options);c.length&&await this.O(c.map(h=>this.eb(h)))}catch(h){const f=yt(h);for(const p of r){try{p.cancel()}catch{}o.includes(p)||n(p.extension,p.options,f)}throw f}finally{for(const h of r)this.t.delete(s(h.extension,h.options))||this.I.warn("Uninstallation task is not found in the cache",h.extension.identifier.id)}}S(t,s,i){for(const n of t){const r=this.X(n,s);if(r.length){const o=r.filter(a=>!t.some(c=>pe(c.identifier,a.identifier)));if(o.length)throw new Error(this.U(n,o,i))}}}U(t,s,i){return i===t?s.length===1?m(1927,null,i.manifest.displayName||i.manifest.name,s[0].manifest.displayName||s[0].manifest.name):s.length===2?m(1928,null,i.manifest.displayName||i.manifest.name,s[0].manifest.displayName||s[0].manifest.name,s[1].manifest.displayName||s[1].manifest.name):m(1929,null,i.manifest.displayName||i.manifest.name,s[0].manifest.displayName||s[0].manifest.name,s[1].manifest.displayName||s[1].manifest.name):s.length===1?m(1930,null,i.manifest.displayName||i.manifest.name,t.manifest.displayName||t.manifest.name,s[0].manifest.displayName||s[0].manifest.name):s.length===2?m(1931,null,i.manifest.displayName||i.manifest.name,t.manifest.displayName||t.manifest.name,s[0].manifest.displayName||s[0].manifest.name,s[1].manifest.displayName||s[1].manifest.name):m(1932,null,i.manifest.displayName||i.manifest.name,t.manifest.displayName||t.manifest.name,s[0].manifest.displayName||s[0].manifest.name,s[1].manifest.displayName||s[1].manifest.name)}W(t,s,i=[]){if(i.indexOf(t)!==-1)return[];i.push(t);const n=t.manifest.extensionPack?t.manifest.extensionPack:[];if(n.length){const r=s.filter(a=>!a.isBuiltin&&n.some(c=>pe({id:c},a.identifier))),o=[];for(const a of r)o.push(...this.W(a,s,i));return[...r,...o]}return[]}X(t,s){return s.filter(i=>i.manifest.extensionDependencies&&i.manifest.extensionDependencies.some(n=>pe({id:n},t.identifier)))}async Y(){try{return this.I.trace("ExtensionManagementService.updateControlCache"),await this.F.getExtensionsControlManifest()}catch(t){return this.I.trace("ExtensionManagementService.refreshControlCache - failed to get extension control manifest",de(t)),{malicious:[],deprecated:{},search:[]}}}},Mh=__decorate([__param(0,fi),__param(1,gs),__param(2,bt),__param(3,fe),__param(4,dt),__param(5,gn),__param(6,_s)],Mh),lg=class{constructor(){this.d=new Cu}async waitUntilTaskIsFinished(){return await this.d.wait(),this.g}run(){return this.g||(this.g=un(e=>this.h(e))),this.d.open(),this.g}cancel(){this.g||(this.g=un(e=>new Promise((t,s)=>{const i=e.onCancellationRequested(()=>{i.dispose(),s(new Dt)})})),this.d.open()),this.g.cancel()}}}});function L6(e){return ft(e)&&qN(e.identifier)&&(a_(e.location)||ue(e.location)&&e.location)&&(Vs(e.relativeLocation)||ue(e.relativeLocation))&&e.version&&ue(e.version)}function a_(e){return e?ue(e.path)&&ue(e.scheme):!1}var R6,Gc,ji,jh,Jo=v({"out-build/vs/platform/extensionManagement/common/extensionsProfileScannerService.js"(){"use strict";Ae(),Le(),V(),re(),Jt(),Q(),As(),mi(),Ge(),ie(),Ie(),Ms(),Rs(),be(),ge(),function(e){e.ERROR_PROFILE_NOT_FOUND="ERROR_PROFILE_NOT_FOUND",e.ERROR_INVALID_CONTENT="ERROR_INVALID_CONTENT"}(R6||(R6={})),Gc=class extends Error{constructor(e,t){super(e),this.code=t}},ji=X("IExtensionsProfileScannerService"),jh=class extends W{constructor(t,s,i,n,r){super(),this.j=t,this.m=s,this.n=i,this.r=n,this.s=r,this.b=this.B(new D),this.onAddExtensions=this.b.event,this.c=this.B(new D),this.onDidAddExtensions=this.c.event,this.f=this.B(new D),this.onRemoveExtensions=this.f.event,this.g=this.B(new D),this.onDidRemoveExtensions=this.g.event,this.h=new wt}scanProfileExtensions(t,s){return this.t(t,void 0,s)}async addExtensionsToProfile(t,s,i){const n=[],r=[];try{return await this.t(s,o=>{const a=[];if(i)a.push(...o);else for(const c of o)t.some(([l])=>pe(l.identifier,c.identifier)&&l.manifest.version!==c.version)?n.push(c):a.push(c);for(const[c,l]of t){const u=a.findIndex(f=>pe(f.identifier,c.identifier)&&f.version===c.manifest.version),h={identifier:c.identifier,version:c.manifest.version,location:c.location,metadata:l};u===-1?(r.push(h),a.push(h)):a.splice(u,1,h)}return r.length&&this.b.fire({extensions:r,profileLocation:s}),n.length&&this.f.fire({extensions:n,profileLocation:s}),a}),r.length&&this.c.fire({extensions:r,profileLocation:s}),n.length&&this.g.fire({extensions:n,profileLocation:s}),r}catch(o){throw r.length&&this.c.fire({extensions:r,error:o,profileLocation:s}),n.length&&this.g.fire({extensions:n,error:o,profileLocation:s}),o}}async updateMetadata(t,s){const i=[];return await this.t(s,n=>{const r=[];for(const o of n){const a=t.find(([c])=>pe({id:c.identifier.id},{id:o.identifier.id})&&c.manifest.version===o.version);a&&(o.metadata={...o.metadata,...a[1]},i.push(o)),r.push(o)}return r}),i}async removeExtensionsFromProfile(t,s){const i=[];try{await this.t(s,n=>{const r=[];for(const o of n)t.some(a=>pe(o.identifier,a))?i.push(o):r.push(o);return i.length&&this.f.fire({extensions:i,profileLocation:s}),r}),i.length&&this.g.fire({extensions:i,profileLocation:s})}catch(n){throw i.length&&this.g.fire({extensions:i,error:n,profileLocation:s}),n}}async t(t,s,i){return this.D(t).queue(async()=>{let n=[],r;try{const o=await this.m.readFile(t);r=JSON.parse(o.value.toString().trim()||"[]")}catch(o){if(St(o)!==1)throw o;if(this.r.extUri.isEqual(t,this.n.defaultProfile.extensionsResource)&&(r=await this.C()),!r&&i?.bailOutWhenFileNotFound)throw new Gc(de(o),"ERROR_PROFILE_NOT_FOUND")}if(r){Array.isArray(r)||this.u(t);let o=!1;for(const a of r){L6(a)||this.u(t);let c;if(ue(a.relativeLocation)&&a.relativeLocation)c=this.y(a.relativeLocation);else if(ue(a.location)){this.s.warn(`Extensions profile: Ignoring extension with invalid location: ${a.location}`);continue}else{c=y.revive(a.location);const u=this.w(c);u&&(o=!0,a.relativeLocation=u)}Vs(a.metadata?.hasPreReleaseVersion)&&a.metadata?.preRelease&&(o=!0,a.metadata.hasPreReleaseVersion=!0);const l=a.metadata?.id??a.identifier.uuid;n.push({identifier:l?{id:a.identifier.id,uuid:l}:{id:a.identifier.id},location:c,version:a.version,metadata:a.metadata})}o&&await this.m.writeFile(t,R.fromString(JSON.stringify(r)))}if(s){n=s(n);const o=n.map(a=>({identifier:a.identifier,version:a.version,location:a.location.toJSON(),relativeLocation:this.w(a.location),metadata:a.metadata}));await this.m.writeFile(t,R.fromString(JSON.stringify(o)))}return n})}u(t){throw new Gc(`Invalid extensions content in ${t.toString()}`,"ERROR_INVALID_CONTENT")}w(t){return this.r.extUri.isEqual(this.r.extUri.dirname(t),this.j)?this.r.extUri.basename(t):void 0}y(t){return this.r.extUri.joinPath(this.j,t)}async C(){return this.z||(this.z=(async()=>{const t=this.r.extUri.joinPath(this.n.defaultProfile.location,"extensions.json"),s=this.r.extUri.joinPath(this.j,".init-default-profile-extensions");let i;try{i=(await this.m.readFile(t)).value.toString()}catch(r){if(St(r)===1)return;throw r}this.s.info("Migrating extensions from old default profile location",t.toString());let n;try{const r=JSON.parse(i);Array.isArray(r)&&r.every(o=>L6(o))?n=r:this.s.warn("Skipping migrating from old default profile locaiton: Found invalid data",r)}catch(r){this.s.error(r)}if(n)try{await this.m.createFile(this.n.defaultProfile.extensionsResource,R.fromString(JSON.stringify(n)),{overwrite:!1}),this.s.info("Migrated extensions from old default profile location to new location",t.toString(),this.n.defaultProfile.extensionsResource.toString())}catch(r){if(St(r)===3)this.s.info("Migration from old default profile location to new location is done by another window",t.toString(),this.n.defaultProfile.extensionsResource.toString());else throw r}try{await this.m.del(t)}catch(r){St(r)!==1&&this.s.error(r)}try{await this.m.del(s)}catch(r){St(r)!==1&&this.s.error(r)}return n})()),this.z}D(t){let s=this.h.get(t);return s||(s=new xr,this.h.set(t,s)),s}},jh=__decorate([__param(1,Xe),__param(2,_s),__param(3,bt),__param(4,fe)],jh)}});function ug(e){switch(e){case 1:return m(116,null);case 2:return m(117,null);case 3:return m(118,null);case 4:return m(119,null);case 5:return m(120,null);case 6:return m(121,null);case 7:return m(122,null);case 8:return m(123,null);case 9:return m(124,null);default:return""}}var c_=v({"out-build/vs/base/common/jsonErrorMessages.js"(){"use strict";ce()}});function l_(e,t,s,i){try{u_(e,t,s,i)}catch(n){e.error(n?.message??n)}return t}function u_(e,t,s,i){const n=(r,o,a)=>{const c=r[o];if(ue(c)){const l=c,u=l.length;if(u>1&&l[0]==="%"&&l[u-1]==="%"){const h=l.substr(1,u-2);let f=s[h];f===void 0&&i&&(f=i[h]);const p=typeof f=="string"?f:f?.message,g=i?.[h],w=typeof g=="string"?g:g?.message;if(!p){w||e.warn(`[${t.name}]: ${m(1989,null,h)}`);return}if(a&&(o==="title"||o==="category")&&w&&w!==p){const b={value:p,original:w};r[o]=b}else r[o]=p}}else if(ft(c))for(const l in c)c.hasOwnProperty(l)&&(l==="commands"?n(c,l,!0):n(c,l,a));else if(Array.isArray(c))for(let l=0;l<c.length;l++)n(c,l,a)};for(const r in t)t.hasOwnProperty(r)&&n(t,r)}var h_=v({"out-build/vs/platform/extensionManagement/common/extensionNls.js"(){"use strict";be(),ce()}});function Th(e,t){const s=_m(e.manifest.publisher,e.manifest.name);return{id:s,identifier:new di(s),isBuiltin:e.type===0,isUserBuiltin:e.type===1&&e.isBuiltin,isUnderDevelopment:t,extensionLocation:e.location,uuid:e.identifier.uuid,targetPlatform:e.targetPlatform,publisherDisplayName:e.publisherDisplayName,preRelease:e.preRelease,...e.manifest}}var hg,jr,Fh,Zo,Jc,Zc,Yc=v({"out-build/vs/platform/extensionManagement/common/extensionsScannerService.js"(){"use strict";kt(),Ae(),Ft(),Le(),ge(),jn(),c_(),V(),Se(),he(),te(),ct(),Nr(),mh(),Q(),ce(),Qt(),mi(),Zs(),gh(),Ge(),ie(),Ie(),Kt(),re(),Oc(),Jo(),Ms(),Rs(),h_(),function(e){function t(s,i){if(s===i)return!0;const n=Object.keys(s),r=new Set;for(const o of Object.keys(i))r.add(o);if(n.length!==r.size)return!1;for(const o of n){if(s[o]!==i[o])return!1;r.delete(o)}return r.size===0}e.equals=t}(hg||(hg={})),jr=X("IExtensionsScannerService"),Fh=class extends W{constructor(t,s,i,n,r,o,a,c,l,u,h,f){super(),this.systemExtensionsLocation=t,this.userExtensionsLocation=s,this.n=i,this.r=r,this.s=o,this.t=a,this.u=c,this.w=l,this.y=u,this.z=h,this.C=f,this.g=this.B(new D),this.onDidChangeCache=this.g.event,this.G=void 0,this.h=this.B(this.C.createInstance(Zc,n)),this.j=this.B(this.C.createInstance(Zc,n)),this.m=this.B(this.C.createInstance(Jc)),this.B(this.h.onDidChangeCache(()=>this.g.fire(0))),this.B(this.j.onDidChangeCache(()=>this.g.fire(1)))}F(){return this.D||(this.D=p7(this.t,this.u)),this.D}async scanAllExtensions(t,s){const[i,n]=await Promise.all([this.scanSystemExtensions(t),this.scanUserExtensions(s)]);return this.J(i,n,[],await this.F(),!0)}async scanSystemExtensions(t){const s=[];s.push(this.L(t.language)),s.push(this.M(t.language,!!t.checkControlFile));const[i,n]=await Promise.all(s);return this.I([...i,...n],0,{pickLatest:!1})}async scanUserExtensions(t){this.u.trace("Started scanning user extensions",t.profileLocation);const s=this.z.extUri.isEqual(t.profileLocation,this.r.defaultProfile.extensionsResource)?{bailOutWhenFileNotFound:!0}:void 0,i=await this.O(t.profileLocation,!0,1,t.language,!0,s,t.productVersion??this.Q()),n=t.useCache&&!i.devMode?this.j:this.m;let r;try{r=await n.scanExtensions(i)}catch(o){if(o instanceof Gc&&o.code==="ERROR_PROFILE_NOT_FOUND")await this.H(),r=await n.scanExtensions(i);else throw o}return r=await this.I(r,1,{includeInvalid:t.includeInvalid,pickLatest:!0}),this.u.trace("Scanned user extensions:",r.length),r}async scanAllUserExtensions(t={includeInvalid:!0,includeAllVersions:!0}){const s=await this.O(this.userExtensionsLocation,!1,1,void 0,!0,void 0,this.Q()),i=await this.m.scanExtensions(s);return this.I(i,1,{includeAllVersions:t.includeAllVersions,includeInvalid:t.includeInvalid})}async scanExtensionsUnderDevelopment(t,s){if(this.w.isExtensionDevelopment&&this.w.extensionDevelopmentLocationURI){const i=(await Promise.all(this.w.extensionDevelopmentLocationURI.filter(n=>n.scheme===Y.file).map(async n=>{const r=await this.O(n,!1,1,s.language,!1,void 0,this.Q());return(await this.m.scanOneOrMultipleExtensions(r)).map(a=>(a.type=t.find(c=>pe(c.identifier,a.identifier))?.type??a.type,this.m.validate(a,r)))}))).flat();return this.I(i,"development",{includeInvalid:s.includeInvalid,pickLatest:!0})}return[]}async scanExistingExtension(t,s,i){const n=await this.O(t,!1,s,i.language,!0,void 0,this.Q()),r=await this.m.scanExtension(n);return!r||!i.includeInvalid&&!r.isValid?null:r}async scanOneOrMultipleExtensions(t,s,i){const n=await this.O(t,!1,s,i.language,!0,void 0,this.Q()),r=await this.m.scanOneOrMultipleExtensions(n);return this.I(r,s,{includeInvalid:i.includeInvalid,pickLatest:!0})}async scanMultipleExtensions(t,s,i){const n=[];return await Promise.all(t.map(async r=>{const o=await this.scanOneOrMultipleExtensions(r,s,i);n.push(...o)})),this.I(n,s,{includeInvalid:i.includeInvalid,pickLatest:!0})}async updateManifestMetadata(t,s){const i=oe(t,"package.json"),n=(await this.t.readFile(i)).value.toString(),r=JSON.parse(n);r.__metadata={...r.__metadata,...s},await this.t.writeFile(oe(t,"package.json"),R.fromString(JSON.stringify(r,null,"	")))}async initializeDefaultProfileExtensions(){try{await this.s.scanProfileExtensions(this.r.defaultProfile.extensionsResource,{bailOutWhenFileNotFound:!0})}catch(t){if(t instanceof Gc&&t.code==="ERROR_PROFILE_NOT_FOUND")await this.H();else throw t}}async H(){return this.G||(this.G=(async()=>{try{this.u.info("Started initializing default profile extensions in extensions installation folder.",this.userExtensionsLocation.toString());const t=await this.scanAllUserExtensions({includeInvalid:!0});if(t.length)await this.s.addExtensionsToProfile(t.map(s=>[s,s.metadata]),this.r.defaultProfile.extensionsResource);else try{await this.t.createFile(this.r.defaultProfile.extensionsResource,R.fromString(JSON.stringify([])))}catch(s){St(s)!==1&&this.u.warn("Failed to create default profile extensions manifest in extensions installation folder.",this.userExtensionsLocation.toString(),de(s))}this.u.info("Completed initializing default profile extensions in extensions installation folder.",this.userExtensionsLocation.toString())}catch(t){this.u.error(t)}finally{this.G=void 0}})()),this.G}async I(t,s,i={}){return i.includeAllVersions||(t=this.J(s===0?t:void 0,s===1?t:void 0,s==="development"?t:void 0,await this.F(),!!i.pickLatest)),i.includeInvalid||(t=t.filter(n=>n.isValid)),t.sort((n,r)=>{const o=ht(n.location.fsPath),a=ht(r.location.fsPath);return o<a?-1:o>a?1:0})}J(t,s,i,n,r){const o=(c,l,u)=>{if(!u){if(c.metadata?.isApplicationScoped&&!l.metadata?.isApplicationScoped)return!1;if(!c.metadata?.isApplicationScoped&&l.metadata?.isApplicationScoped)return!0}if(c.isValid&&!l.isValid)return!1;if(c.isValid===l.isValid){if(r&&fh(c.manifest.version,l.manifest.version))return this.u.debug(`Skipping extension ${l.location.path} with lower version ${l.manifest.version} in favour of ${c.location.path} with version ${c.manifest.version}`),!1;if(n7(c.manifest.version,l.manifest.version)){if(c.type===0)return this.u.debug(`Skipping extension ${l.location.path} in favour of system extension ${c.location.path} with same version`),!1;if(c.targetPlatform===n)return this.u.debug(`Skipping extension ${l.location.path} from different target platform ${l.targetPlatform}`),!1}}return u?this.u.warn(`Overwriting user extension ${c.location.path} with ${l.location.path}.`):this.u.debug(`Overwriting user extension ${c.location.path} with ${l.location.path}.`),!0},a=new Om;return t?.forEach(c=>{const l=a.get(c.identifier.id);(!l||o(l,c,!1))&&a.set(c.identifier.id,c)}),s?.forEach(c=>{const l=a.get(c.identifier.id);if(!l&&t&&c.type===0){this.u.debug(`Skipping obsolete system extension ${c.location.path}.`);return}(!l||o(l,c,!1))&&a.set(c.identifier.id,c)}),i?.forEach(c=>{const l=a.get(c.identifier.id);(!l||o(l,c,!0))&&a.set(c.identifier.id,c),a.set(c.identifier.id,c)}),[...a.values()]}async L(t){this.u.trace("Started scanning system extensions");const s=await this.O(this.systemExtensionsLocation,!1,0,t,!0,void 0,this.Q()),n=await(s.devMode?this.m:this.h).scanExtensions(s);return this.u.trace("Scanned system extensions:",n.length),n}async M(t,s){const i=this.w.isBuilt?[]:this.y.builtInExtensions;if(!i?.length)return[];this.u.trace("Started scanning dev system extensions");const n=s?await this.N():{},r=[],o=y.file(Hs(_(Ct.asFileUri("").fsPath,"..",".build","builtInExtensions")));for(const c of i){const l=n[c.name]||"marketplace";switch(l){case"disabled":break;case"marketplace":r.push(oe(o,c.name));break;default:r.push(y.file(l));break}}const a=await Promise.all(r.map(async c=>this.m.scanExtension(await this.O(c,!1,0,t,!0,void 0,this.Q()))));return this.u.trace("Scanned dev system extensions:",a.length),ai(a)}async N(){try{const t=await this.t.readFile(this.n);return JSON.parse(t.value.toString())}catch{return{}}}async O(t,s,i,n,r,o,a){const c=await this.f(n??Is),l=await this.P(t),u=s&&!this.z.extUri.isEqual(t,this.r.defaultProfile.extensionsResource)?this.r.defaultProfile.extensionsResource:void 0,h=u?await this.P(u):void 0;return new Zo(t,l,u,h,s,o,i,r,a.version,a.date,this.y.commit,!this.w.isBuilt,n,c)}async P(t){try{const s=await this.t.stat(t);if(typeof s.mtime=="number")return s.mtime}catch{}}Q(){return{version:this.y.version,date:this.y.date}}},Fh=__decorate([__param(4,_s),__param(5,ji),__param(6,Xe),__param(7,fe),__param(8,rs),__param(9,dt),__param(10,bt),__param(11,Mn)],Fh),Zo=class{constructor(e,t,s,i,n,r,o,a,c,l,u,h,f,p){this.location=e,this.mtime=t,this.applicationExtensionslocation=s,this.applicationExtensionslocationMtime=i,this.profile=n,this.profileScanOptions=r,this.type=o,this.validate=a,this.productVersion=c,this.productDate=l,this.productCommit=u,this.devMode=h,this.language=f,this.translations=p}static createNlsConfiguration(e){return{language:e.language,pseudo:e.language==="pseudo",devMode:e.devMode,translations:e.translations}}static equals(e,t){return Dp(e.location,t.location)&&e.mtime===t.mtime&&Dp(e.applicationExtensionslocation,t.applicationExtensionslocation)&&e.applicationExtensionslocationMtime===t.applicationExtensionslocationMtime&&e.profile===t.profile&&ms(e.profileScanOptions,t.profileScanOptions)&&e.type===t.type&&e.validate===t.validate&&e.productVersion===t.productVersion&&e.productDate===t.productDate&&e.productCommit===t.productCommit&&e.devMode===t.devMode&&e.language===t.language&&hg.equals(e.translations,t.translations)}},Jc=class extends W{constructor(t,s,i,n,r,o){super(),this.g=t,this.h=s,this.j=i,this.m=r,this.n=o,this.f=n.extensionsEnabledWithApiProposalVersion?.map(a=>a.toLowerCase())??[]}async scanExtensions(t){return t.profile?this.s(t):this.r(t)}async r(t){const s=await this.j.resolve(t.location);if(!s.children?.length)return[];const i=await Promise.all(s.children.map(async n=>{if(!n.isDirectory||t.type===1&&ln(n.resource).indexOf(".")===0)return null;const r=new Zo(n.resource,t.mtime,t.applicationExtensionslocation,t.applicationExtensionslocationMtime,t.profile,t.profileScanOptions,t.type,t.validate,t.productVersion,t.productDate,t.productCommit,t.devMode,t.language,t.translations);return this.scanExtension(r)}));return ai(i).sort((n,r)=>n.location.path<r.location.path?-1:1)}async s(t){let s=await this.t(t.location,()=>!0,t);if(t.applicationExtensionslocation&&!this.h.extUri.isEqual(t.location,t.applicationExtensionslocation)){s=s.filter(n=>!n.metadata?.isApplicationScoped);const i=await this.t(t.applicationExtensionslocation,n=>!!n.metadata?.isBuiltin||!!n.metadata?.isApplicationScoped,t);s.push(...i)}return s}async t(t,s,i){const n=await this.g.scanProfileExtensions(t,i.profileScanOptions);if(!n.length)return[];const r=await Promise.all(n.map(async o=>{if(s(o)){const a=new Zo(o.location,i.mtime,i.applicationExtensionslocation,i.applicationExtensionslocationMtime,i.profile,i.profileScanOptions,i.type,i.validate,i.productVersion,i.productDate,i.productCommit,i.devMode,i.language,i.translations);return this.scanExtension(a,o)}return null}));return ai(r)}async scanOneOrMultipleExtensions(t){try{if(await this.j.exists(oe(t.location,"package.json"))){const s=await this.scanExtension(t);return s?[s]:[]}else return await this.scanExtensions(t)}catch(s){return this.n.error(`Error scanning extensions at ${t.location.path}:`,de(s)),[]}}async scanExtension(t,s){const i=[];let n=!0,r;try{r=await this.u(t.location)}catch(f){if(s){i.push([Ye.Error,de(f)]),n=!1;const[p,g]=s.identifier.id.split(".");r={name:g,publisher:p,version:s.version,engines:{vscode:""}}}else return t.type!==0&&this.n.error(f),null}r.publisher||(r.publisher=Nm);let o;s?o={...s.metadata,size:r.__metadata?.size}:r.__metadata&&(o={installedTimestamp:r.__metadata.installedTimestamp,size:r.__metadata.size,targetPlatform:r.__metadata.targetPlatform}),delete r.__metadata;const a=pi(r.publisher,r.name),c=o?.id?{id:a,uuid:o.id}:{id:a},l=o?.isSystem?0:t.type,u=l===0||!!o?.isBuiltin;try{r=await this.w(t.location,r,Zo.createNlsConfiguration(t))}catch(f){this.n.warn("Failed to translate manifest",de(f))}let h={type:l,identifier:c,manifest:r,location:t.location,isBuiltin:u,targetPlatform:o?.targetPlatform??"undefined",publisherDisplayName:o?.publisherDisplayName,metadata:o,isValid:n,validations:i,preRelease:!!o?.preRelease};return t.validate&&(h=this.validate(h,t)),r.enabledApiProposals&&(!this.m.isBuilt||this.f.includes(a.toLowerCase()))&&(r.originalEnabledApiProposals=r.enabledApiProposals,r.enabledApiProposals=NO([...r.enabledApiProposals])),h}validate(t,s){let i=t.isValid;const n=this.m.isBuilt&&this.f.includes(t.identifier.id.toLowerCase()),r=zO(s.productVersion,s.productDate,s.location,t.manifest,t.isBuiltin,n);for(const[o,a]of r)o===Ye.Error&&(i=!1,this.n.error(this.D(s.location,a)));return t.isValid=i,t.validations=[...t.validations,...r],t}async u(t){const s=oe(t,"package.json");let i;try{i=(await this.j.readFile(s)).value.toString()}catch(r){throw St(r)!==1&&this.n.error(this.D(t,m(1990,null,s.path,r.message))),r}let n;try{n=JSON.parse(i)}catch(r){const o=[];Un(i,o);for(const a of o)this.n.error(this.D(t,m(1991,null,s.path,a.offset,a.length,ug(a.error))));throw r}if(No(n)!=="object"){const r=this.D(t,m(1992,null,s.path));throw this.n.error(r),new Error(r)}return n}async w(t,s,i){const n=await this.y(t,s,i);if(n)try{const r=[],o=await this.z(n.default,r);if(r.length>0)return r.forEach(c=>{this.n.error(this.D(t,m(1993,null,n.default?.path,ug(c.error))))}),s;if(No(n)!=="object")return this.n.error(this.D(t,m(1994,null,n.default?.path))),s;const a=n.values||Object.create(null);return l_(this.n,s,a,o)}catch{}return s}async y(t,s,i){const n=oe(t,"package.nls.json"),r=(l,u)=>{u.forEach(h=>{this.n.error(this.D(t,m(1995,null,l?.path,ug(h.error))))})},o=l=>{this.n.error(this.D(t,m(1996,null,l?.path)))},a=`${s.publisher}.${s.name}`,c=i.translations[a];if(c)try{const l=y.file(c),u=(await this.j.readFile(l)).value.toString(),h=[],f=Un(u,h);return h.length>0?(r(l,h),{values:void 0,default:n}):No(f)!=="object"?(o(l),{values:void 0,default:n}):{values:f.contents?f.contents.package:void 0,default:n}}catch{return{values:void 0,default:n}}else{if(!await this.j.exists(n))return;let u;try{u=await this.C(t,i)}catch{return}if(!u.localized)return{values:void 0,default:u.original};try{const h=(await this.j.readFile(u.localized)).value.toString(),f=[],p=Un(h,f);return f.length>0?(r(u.localized,f),{values:void 0,default:u.original}):No(p)!=="object"?(o(u.localized),{values:void 0,default:u.original}):{values:p,default:u.original}}catch{return{values:void 0,default:u.original}}}}async z(t,s){if(t)try{const i=(await this.j.readFile(t)).value.toString();return Un(i,s)}catch{}}C(t,s){return new Promise((i,n)=>{const r=o=>{const a=oe(t,`package.nls.${o}.json`);this.j.exists(a).then(c=>{c&&i({localized:a,original:oe(t,"package.nls.json")});const l=o.lastIndexOf("-");l===-1?i({localized:oe(t,"package.nls.json"),original:null}):(o=o.substring(0,l),r(o))})};if(s.devMode||s.pseudo||!s.language)return i({localized:oe(t,"package.nls.json"),original:null});r(s.language)})}D(t,s){return`[${t.path}]: ${s}`}},Jc=__decorate([__param(0,ji),__param(1,bt),__param(2,Xe),__param(3,dt),__param(4,rs),__param(5,fe)],Jc),Zc=class extends Jc{constructor(t,s,i,n,r,o,a,c){super(i,n,r,o,a,c),this.I=t,this.J=s,this.G=this.B(new Er(3e3)),this.H=this.B(new D),this.onDidChangeCache=this.H.event}async scanExtensions(t){const s=this.O(t),i=await this.L(s);if(this.F=t,i&&i.input&&Zo.equals(i.input,this.F))return this.n.debug("Using cached extensions scan result",t.type===0?"system":"user",t.location.toString()),this.G.trigger(()=>this.N()),i.result.map(r=>(r.location=y.revive(r.location),r));const n=await super.scanExtensions(t);return await this.M(s,{input:t,result:n}),n}async L(t){try{const s=await this.j.readFile(t),i=JSON.parse(s.value.toString());return{result:i.result,input:Qs(i.input)}}catch(s){this.n.debug("Error while reading the extension cache file:",t.path,de(s))}return null}async M(t,s){try{await this.j.writeFile(t,R.fromString(JSON.stringify(s)))}catch(i){this.n.debug("Error while writing the extension cache file:",t.path,de(i))}}async N(){if(!this.F)return;const t=this.O(this.F),s=await this.L(t);if(!s)return;const i=s.result,n=JSON.parse(JSON.stringify(await super.scanExtensions(this.F)));if(!ms(n,i))try{this.n.info("Invalidating Cache",i,n),await this.j.del(t),this.H.fire()}catch(r){this.n.error(r)}}O(t){const s=this.P(t);return this.h.extUri.joinPath(s.cacheHome,t.type===0?l7:Rm)}P(t){return t.type===0?this.J.defaultProfile:t.profile?this.h.extUri.isEqual(t.location,this.I.extensionsResource)?this.I:this.J.profiles.find(s=>this.h.extUri.isEqual(t.location,s.extensionsResource))??this.I:this.J.defaultProfile}},Zc=__decorate([__param(1,_s),__param(2,ji),__param(3,bt),__param(4,Xe),__param(5,dt),__param(6,rs),__param(7,fe)],Zc)}});function fg(e){let t="Extract";return e instanceof Hc&&(e.type==="CorruptZip"?t="CorruptZip":e.type==="Incomplete"&&(t="IncompleteZip")),yt(e,t)}async function dg(e){let t;try{t=await u6(e,"extension/package.json")}catch(s){throw fg(s)}try{return JSON.parse(t.toString("utf8"))}catch{throw new tt(m(2007,null),"Invalid")}}var N6=v({"out-build/vs/platform/extensionManagement/node/extensionManagementUtil.js"(){"use strict";Xm(),ce(),Uh(),As()}}),Bh,Qc,pg=v({"out-build/vs/platform/extensionManagement/node/extensionSignatureVerificationService.js"(){"use strict";ge(),be(),ie(),Ie(),Js(),As(),Bh=X("IExtensionSignatureVerificationService"),Qc=class{constructor(t,s){this.b=t,this.c=s}d(){return this.a||(this.a=this.f()),this.a}async f(){return import("@vscode/vsce-sign")}async verify(t,s,i,n,r){let o;try{o=await this.d()}catch(u){this.b.error("Could not load vsce-sign module",de(u)),this.b.info(`Extension signature verification is not done: ${t}`);return}const a=new Date().getTime();let c;try{this.b.trace(`Verifying extension signature for ${t}...`),c=await o.verify(i,n,this.b.getLevel()===G.Trace)}catch(u){c={code:$t.UnknownError,didExecute:!1,output:de(u)}}const l=new Date().getTime()-a;return this.b.info(`Extension signature verification result for ${t}: ${c.code}. ${ku(c.internalCode)?`Internal Code: ${c.internalCode}. `:""}Executed: ${c.didExecute}. Duration: ${l}ms.`),this.b.trace(`Extension signature verification output for ${t}:
${c.output}`),this.c.publicLog2("extensionsignature:verification",{extensionId:t,extensionVersion:s,code:c.code,internalCode:c.internalCode,duration:l,didExecute:c.didExecute,clientTargetPlatform:r}),{code:c.code}}},Qc=__decorate([__param(0,fe),__param(1,gs)],Qc)}}),zh,Hh,f_=v({"out-build/vs/platform/extensionManagement/node/extensionDownloader.js"(){"use strict";Ae(),ge(),V(),Se(),ct(),Nr(),zt(),ds(),Xm(),Qt(),Uh(),As(),mi(),N6(),pg(),Ge(),Ie(),Js(),Rs(),Hh=class extends W{static{zh=this}static{this.c=".sigzip"}constructor(t,s,i,n,r,o,a){super(),this.j=s,this.m=i,this.n=n,this.r=r,this.t=o,this.u=a,this.extensionsDownloadDir=t.extensionsDownloadLocation,this.f=o.extUri.joinPath(t.extensionsDownloadLocation,".trash"),this.g=20,this.h=this.F()}async download(t,s,i,n){await this.h;const r=await this.w(t,s);if(!i)return{location:r,verificationStatus:void 0};if(!t.isSigned)return{location:r,verificationStatus:$t.NotSigned};let o;try{o=await this.y(t);const a=(await this.n.verify(t.identifier.id,t.version,r.fsPath,o.fsPath,n))?.code;if(a===$t.PackageIsInvalidZip||a===$t.SignatureArchiveIsInvalidZip){try{await this.delete(r)}catch(c){this.u.error(c)}throw new tt(Qm,"CorruptZip")}return{location:r,verificationStatus:a}}catch(a){try{await this.delete(r)}catch(c){this.u.error(c)}throw a}finally{if(o)try{await this.delete(o)}catch(a){this.u.error(a)}}}async w(t,s){try{const i=oe(this.extensionsDownloadDir,this.G(t)),n=await this.C(t,"vsix",async()=>{await this.z(t,i,r=>this.m.download(t,r,s));try{await this.D(i.fsPath,"extension/package.json")}catch(r){try{await this.j.del(i)}catch(o){this.u.warn(`Error while deleting: ${i.path}`,de(o))}throw r}},2);return n>1&&this.r.publicLog2("extensiongallery:downloadvsix:retry",{extensionId:t.identifier.id,attempts:n}),i}catch(i){throw yt(i,"Download")}}async y(t){try{const s=oe(this.extensionsDownloadDir,`${this.G(t)}${zh.c}`),i=await this.C(t,"sigzip",async()=>{await this.m.downloadSignatureArchive(t,s);try{await this.D(s.fsPath,".signature.p7s")}catch(n){try{await this.j.del(s)}catch(r){this.u.warn(`Error while deleting: ${s.path}`,de(r))}throw n}},2);return i>1&&this.r.publicLog2("extensiongallery:downloadsigzip:retry",{extensionId:t.identifier.id,attempts:i}),s}catch(s){throw yt(s,"DownloadSignature")}}async z(t,s,i){if(await this.j.exists(s))return;if(s.scheme!==Y.file){await i(s);return}const n=oe(this.extensionsDownloadDir,`.${Ve()}`);try{await i(n)}catch(r){try{await this.j.del(n)}catch{}throw r}try{await ke.rename(n.fsPath,s.fsPath,2*60*1e3)}catch(r){try{await this.j.del(n)}catch{}let o=!1;try{o=await this.j.exists(s)}catch{}if(o)this.u.info("Rename failed because the file was downloaded by another source. So ignoring renaming.",t.identifier.id,s.path);else throw this.u.info(`Rename failed because of ${de(r)}. Deleted the file from downloaded location`,n.path),r}}async C(t,s,i,n){let r=1;for(;;)try{return await i(),r}catch(o){if(r++>n)throw o;this.u.warn(`Failed downloading ${s}. ${de(o)}. Retry again...`,t.identifier.id)}}async D(t,s){try{await u6(t,s)}catch(i){throw fg(i)}}async delete(t){await this.h;const s=this.t.extUri.relativePath(this.extensionsDownloadDir,t);s?await this.j.move(t,this.t.extUri.joinPath(this.f,s),!0):await this.j.del(t)}async F(){try{if(!await this.j.exists(this.extensionsDownloadDir)){this.u.trace("Extension VSIX downloads cache dir does not exist");return}try{await this.j.del(this.f,{recursive:!0})}catch(s){St(s)!==1&&this.u.error(s)}const t=await this.j.resolve(this.extensionsDownloadDir,{resolveMetadata:!0});if(t.children){const s=[],i=[],n=[];for(const a of t.children)if(a.name.endsWith(zh.c))n.push(a.resource);else{const c=ws.parse(a.name);c&&i.push([c,a])}const r=d7(i,([a])=>a),o=[];for(const a of r)a.sort((c,l)=>Lm(c[0].version,l[0].version)),s.push(...a.slice(1).map(c=>c[1].resource)),o.push(a[0][1]);o.sort((a,c)=>a.mtime-c.mtime),s.push(...o.slice(0,Math.max(0,o.length-this.g)).map(a=>a.resource)),s.push(...n),await is.settled(s.map(a=>(this.u.trace("Deleting from cache",a.path),this.j.del(a))))}}catch(t){this.u.error(t)}}G(t){return ws.create(t).toString().toLowerCase()}},Hh=zh=__decorate([__param(0,Gs),__param(1,Xe),__param(2,fi),__param(3,Bh),__param(4,gs),__param(5,bt),__param(6,fe)],Hh)}});import{fork as d_}from"child_process";var Vh,p_=v({"out-build/vs/platform/extensionManagement/node/extensionLifecycle.js"(){"use strict";Ae(),Eo(),re(),V(),Se(),he(),ds(),Ie(),Ms(),Vh=class extends W{constructor(t,s){super(),this.b=t,this.f=s,this.a=new _p(5)}async postUninstall(t){const s=this.g(t,"uninstall");s&&(this.f.info(t.identifier.id,t.manifest.version,"Running post uninstall script"),await this.a.queue(async()=>{try{await this.h(s.script,"uninstall",s.args,!0,t),this.f.info("Finished running post uninstall script",t.identifier.id,t.manifest.version)}catch(i){this.f.error("Failed to run post uninstall script",t.identifier.id,t.manifest.version),this.f.error(i)}}));try{await ke.rm(this.m(t))}catch(i){this.f.error("Error while removing extension storage path",t.identifier.id),this.f.error(i)}}g(t,s){const i=`vscode:${s}`;if(t.location.scheme===Y.file&&t.manifest&&t.manifest.scripts&&typeof t.manifest.scripts[i]=="string"){const n=t.manifest.scripts[i].split(" ");return n.length<2||n[0]!=="node"||!n[1]?(this.f.warn(t.identifier.id,t.manifest.version,`${i} should be a node script`),null):{script:_(t.location.fsPath,n[1]),args:n.slice(2)||[]}}return null}h(t,s,i,n,r){return new Promise((o,a)=>{const c=this.j(t,s,i,r);let l;const u=h=>{l&&(clearTimeout(l),l=null),h?a(h):o(void 0)};c.on("error",h=>{u($r(h)||"Unknown")}),c.on("exit",(h,f)=>{u(h?`post-${s} process exited with code ${h}`:void 0)}),n&&(l=setTimeout(()=>{l=null,c.kill(),a("timed out")},5e3))})}j(t,s,i,n){const r={silent:!0,execArgv:void 0},o=d_(t,[`--type=extension-post-${s}`,...i],r);o.stdout.setEncoding("utf8"),o.stderr.setEncoding("utf8");const a=B.fromNodeEventEmitter(o.stdout,"data"),c=B.fromNodeEventEmitter(o.stderr,"data");this.B(a(h=>this.f.info(n.identifier.id,n.manifest.version,`post-${s}`,h))),this.B(c(h=>this.f.error(n.identifier.id,n.manifest.version,`post-${s}`,h)));const l=B.any(B.map(a,h=>({data:`%c${h}`,format:[""]}),this.q),B.map(c,h=>({data:`%c${h}`,format:["color: red"]}),this.q));return B.debounce(l,(h,f)=>h?{data:h.data+f.data,format:[...h.format,...f.format]}:{data:f.data,format:f.format},100,void 0,void 0,void 0,this.q)(h=>{console.group(n.identifier.id),console.log(h.data,...h.format),console.groupEnd()}),o}m(t){return _(this.b.defaultProfile.globalStorageHome.fsPath,t.identifier.id.toLowerCase())}},Vh=__decorate([__param(0,_s),__param(1,fe)],Vh)}}),O6,m_=v({"out-build/vs/platform/extensionManagement/node/extensionsManifestCache.js"(){"use strict";V(),Zs(),Ge(),O6=class extends W{constructor(e,t,s,i,n){super(),this.a=e,this.b=t,this.c=s,this.f=n,this.B(i.onDidInstallExtensions(r=>this.g(r))),this.B(i.onDidUninstallExtension(r=>this.h(r)))}g(e){for(const t of e)t.local&&this.invalidate(t.profileLocation)}h(e){e.error||this.invalidate(e.profileLocation)}async invalidate(e){if(e)for(const t of this.a.profiles)this.c.extUri.isEqual(t.extensionsResource,e)&&await this.j(t);else await this.j(this.a.defaultProfile)}async j(e){try{await this.b.del(this.c.extUri.joinPath(e.cacheHome,Rm))}catch(t){St(t)!==1&&this.f.error(t)}}}}}),C6,g_=v({"out-build/vs/platform/extensionManagement/node/extensionsWatcher.js"(){"use strict";ge(),re(),V(),Jt(),mi(),Zs(),C6=class extends W{constructor(e,t,s,i,n,r,o){super(),this.f=e,this.g=t,this.h=s,this.j=i,this.m=n,this.n=r,this.r=o,this.a=this.B(new D),this.onDidChangeExtensionsByAnotherSource=this.a.event,this.b=new Map,this.c=this.B(new Su),this.s().then(null,a=>o.error("Error while initializing Extensions Watcher",de(a)))}async s(){await this.g.initializeDefaultProfileExtensions(),await this.u(this.h.profiles),this.t(),await this.H()}t(){this.B(this.h.onDidChangeProfiles(e=>this.u(e.added))),this.B(this.j.onAddExtensions(e=>this.w(e))),this.B(this.j.onDidAddExtensions(e=>this.y(e))),this.B(this.j.onRemoveExtensions(e=>this.z(e))),this.B(this.j.onDidRemoveExtensions(e=>this.C(e))),this.B(this.n.onDidFilesChange(e=>this.D(e)))}async u(e){try{e.length&&await Promise.all(e.map(t=>(this.c.set(t.id,ky(this.n.watch(this.m.extUri.dirname(t.extensionsResource)),this.n.watch(t.extensionsResource))),this.G(t.extensionsResource))))}catch(t){throw this.r.error(t),t}}async w(e){for(const t of e.extensions)this.I(this.L(t.identifier,t.version),e.profileLocation)}async y(e){for(const t of e.extensions){const s=this.L(t.identifier,t.version);e.error?this.J(s,e.profileLocation):this.I(s,e.profileLocation)}}async z(e){for(const t of e.extensions)this.J(this.L(t.identifier,t.version),e.profileLocation)}async C(e){const t=[],s=[];for(const i of e.extensions){const n=this.L(i.identifier,i.version);e.error?this.I(n,e.profileLocation):(this.J(n,e.profileLocation),this.b.has(n)||(this.r.debug("Extension is removed from all profiles",i.identifier.id,i.version),s.push(this.f.scanInstalledExtensionAtLocation(i.location).then(r=>{r?t.push(r):this.r.info("Extension not found at the location",i.location.toString())},r=>this.r.error(r)))))}try{await Promise.all(s),t.length&&await this.H(t)}catch(i){this.r.error(i)}}D(e){for(const t of this.h.profiles)e.contains(t.extensionsResource,0,1)&&this.F(t.extensionsResource)}async F(e){const t=[],s=[],i=await this.j.scanProfileExtensions(e),n=new Set,r=new Set;for(const[o,a]of this.b)a.has(e)&&r.add(o);for(const o of i){const a=this.L(o.identifier,o.version);n.add(a),r.has(a)||(t.push(o.identifier),this.I(a,e))}for(const o of r)if(!n.has(o)){const a=this.M(o);a&&(s.push(a.identifier),this.J(o,e))}(t.length||s.length)&&this.a.fire({added:t.length?{extensions:t,profileLocation:e}:void 0,removed:s.length?{extensions:s,profileLocation:e}:void 0})}async G(e){const t=await this.j.scanProfileExtensions(e);for(const s of t)this.I(this.L(s.identifier,s.version),e)}async H(e){e||(e=(await this.f.scanAllUserInstalledExtensions()).filter(s=>!this.b.has(this.L(s.identifier,s.manifest.version)))),e.length&&await this.f.deleteExtensions(...e)}I(e,t){let s=this.b.get(e);s||this.b.set(e,s=new xu(i=>this.m.extUri.getComparisonKey(i))),s.add(t)}J(e,t){const s=this.b.get(e);s&&s.delete(t),s?.size||this.b.delete(e)}L(e,t){return`${di.toKey(e.id)}@${t}`}M(e){const[t,s]=Cm(e);return s?{identifier:{id:t},version:s}:void 0}}}});import*as w_ from"fs";var Wh,qh,Xc,Gh,Jh,_6,M6=v({"out-build/vs/platform/extensionManagement/node/extensionManagementService.js"(){"use strict";Ae(),Le(),ge(),re(),oc(),V(),Jt(),Se(),he(),ct(),Nr(),be(),Q(),zt(),ds(),Xm(),ce(),Km(),Qt(),Uh(),As(),mi(),Jo(),Yc(),f_(),p_(),N6(),m_(),g_(),gh(),Ge(),ie(),Ie(),Kt(),Js(),Rs(),Ms(),Yt(),Sh(),Wh=hh,qh=".vsctmp",Xc=class extends Mh{constructor(t,s,i,n,r,o,a,c,l,u,h,f,p,g,w){super(t,s,g,i,f,p,w),this.jb=n,this.kb=r,this.lb=o,this.mb=a,this.nb=c,this.ob=l,this.pb=u,this.qb=h,this.ib=new Map,this.Fb=new xu;const b=this.B(c.createInstance(Vh));this.fb=this.B(c.createInstance(Gh,k=>b.postUninstall(k))),this.gb=this.B(new O6(w,l,g,this,this.I)),this.hb=this.B(c.createInstance(Hh));const x=this.B(new C6(this,this.kb,w,o,g,l,i));this.B(x.onDidChangeExtensionsByAnotherSource(k=>this.Eb(k))),this.Gb()}getTargetPlatform(){return this.rb||(this.rb=p7(this.ob,this.I)),this.rb}async zip(t){this.I.trace("ExtensionManagementService#zip",t.identifier.id);const s=await this.Db(t),i=await $C(oe(this.hb.extensionsDownloadDir,Ve()).fsPath,s);return y.file(i)}async getManifest(t){const{location:s,cleanup:i}=await this.wb(t),n=oi(s.fsPath);try{return await dg(n)}finally{await i()}}getInstalled(t,s=this.J.defaultProfile.extensionsResource,i={version:this.g.version,date:this.g.date},n){return this.fb.scanExtensions(t??null,s,i,n)}scanAllUserInstalledExtensions(){return this.fb.scanAllUserExtensions()}scanInstalledExtensionAtLocation(t){return this.fb.scanUserExtensionAtLocation(t)}async install(t,s={}){this.I.trace("ExtensionManagementService#install",t.toString());const{location:i,cleanup:n}=await this.wb(t);try{const r=await dg(oi(i.fsPath)),o=pi(r.publisher,r.name);if(r.engines&&r.engines.vscode&&!Tm(r.engines.vscode,this.g.version,this.g.date))throw new Error(m(1997,null,o,this.g.version));const a=this.h.isAllowed({id:o,version:r.version,publisherDisplayName:void 0});if(a!==!0)throw new Error(m(1998,null,a.value));const l=(await this.L([{manifest:r,extension:i,options:s}])).find(({identifier:u})=>pe(u,{id:o}));if(l?.local)return l.local;throw l?.error?l.error:yt(new Error(`Unknown error while installing extension ${o}`))}finally{await n()}}async installFromLocation(t,s){this.I.trace("ExtensionManagementService#installFromLocation",t.toString());const i=await this.fb.scanUserExtensionAtLocation(t);if(!i||!i.manifest.name||!i.manifest.version)throw new Error(`Cannot find a valid extension from the location ${t.toString()}`);return await this.Ib([[i,{source:"resource"}]],s),this.I.info("Successfully installed extension",i.identifier.id,s.toString()),i}async installExtensionsFromProfile(t,s,i){this.I.trace("ExtensionManagementService#installExtensionsFromProfile",t,s.toString(),i.toString());const n=(await this.getInstalled(1,s)).filter(r=>t.some(o=>pe(o,r.identifier)));if(n.length){const r=await Promise.all(n.map(o=>this.fb.scanMetadata(o,s)));await this.Ib(n.map((o,a)=>[o,r[a]]),i),this.I.info("Successfully installed extensions",n.map(o=>o.identifier.id),i.toString())}return n}async updateMetadata(t,s,i){return this.I.trace("ExtensionManagementService#updateMetadata",t.identifier.id),s.isPreReleaseVersion&&(s.preRelease=!0,s.hasPreReleaseVersion=!0),s.isMachineScoped===!1&&(s.isMachineScoped=void 0),s.isBuiltin===!1&&(s.isBuiltin=void 0),s.pinned===!1&&(s.pinned=void 0),t=await this.fb.updateMetadata(t,s,i),this.gb.invalidate(i),this.C.fire({local:t,profileLocation:i}),t}eb(t){return this.fb.deleteExtension(t,"remove")}bb(t,s,i,n){return this.fb.copyExtension(t,s,i,n)}cb(t,s,i,n){return this.fb.moveExtension(t,s,i,n)}db(t,s){return this.fb.removeExtension(t.identifier,s)}copyExtensions(t,s){return this.fb.copyExtensions(t,s,{version:this.g.version,date:this.g.date})}deleteExtensions(...t){return this.fb.setExtensionsForRemoval(...t)}async cleanUp(){this.I.trace("ExtensionManagementService#cleanUp");try{await this.fb.cleanUp()}catch(t){this.I.error(t)}}async download(t,s,i){const{location:n}=await this.Bb(t,s,!i);return n}async wb(t){if(t.scheme===Y.file)return{location:t,async cleanup(){}};this.I.trace("Downloading extension from",t.toString());const s=oe(this.hb.extensionsDownloadDir,Ve());return await this.mb.download(t,s),this.I.info("Downloaded extension to",s.toString()),{location:s,cleanup:async()=>{try{await this.ob.del(s)}catch(n){this.I.error(n)}}}}Z(){return this.J.defaultProfile.extensionsResource}$(t,s,i){const n=s instanceof y?new ws({id:pi(t.publisher,t.name)},t.version):ws.create(s);return this.nb.createInstance(Jh,n,t,s,i,(r,o)=>{if(s instanceof y)return this.Cb(n,s,i,o);let a=this.ib.get(n.toString());return a||(this.ib.set(n.toString(),a=this.Ab(n,s,r,i,o)),a.finally(()=>this.ib.delete(n.toString()))),a},this.fb)}ab(t,s){return new _6(t,s,this.lb)}async Ab(t,s,i,n,r){const{verificationStatus:o,location:a}=await this.Bb(s,i,!n.donotVerifySignature,n.context?.[G9]);try{if(r.isCancellationRequested)throw new Dt;const c=await dg(a.fsPath);if(!new ws(s.identifier,s.version).equals(new ws({id:pi(c.publisher,c.name)},c.version)))throw new tt(m(1999,null,s.identifier.id),"Invalid");const l=await this.fb.extractUserExtension(t,a.fsPath,!1,r);if(o!==$t.Success&&this.jb.isBuilt)try{await this.hb.delete(a)}catch(u){this.I.warn("Error while deleting the downloaded file",a.toString(),de(u))}return{local:l,verificationStatus:o}}catch(c){try{await this.hb.delete(a)}catch(l){this.I.warn("Error while deleting the downloaded file",a.toString(),de(l))}throw yt(c)}}async Bb(t,s,i,n){i&&(i=!1);const{location:r,verificationStatus:o}=await this.hb.download(t,s,i,n),a=GN(t.private,await this.qb.getExtensionGalleryManifest());if(o!==$t.Success&&!(o===$t.NotSigned&&!a)&&i&&this.jb.isBuilt&&await this.getTargetPlatform()!=="linux-armhf"){try{await this.hb.delete(r)}catch(c){this.I.warn("Error while deleting the downloaded file",r.toString(),de(c))}if(!o)throw new tt(m(2e3,null),"SignatureVerificationInternal");switch(o){case $t.PackageIntegrityCheckFailed:case $t.SignatureIsInvalid:case $t.SignatureManifestIsInvalid:case $t.SignatureIntegrityCheckFailed:case $t.EntryIsMissing:case $t.EntryIsTampered:case $t.Untrusted:case $t.CertificateRevoked:case $t.SignatureIsNotValid:case $t.SignatureArchiveHasTooManyEntries:case $t.NotSigned:throw new tt(m(2001,null,o),"SignatureVerificationFailed")}throw new tt(m(2002,null,o),"SignatureVerificationInternal")}return{location:r,verificationStatus:o}}async Cb(t,s,i,n){return{local:await this.fb.extractUserExtension(t,oi(s.fsPath),ci(i.keepExisting)?!i.keepExisting:!0,n)}}async Db(t){const s=async n=>{let r=await ke.readdir(n);r=r.map(c=>_(n,c));const o=await Promise.all(r.map(c=>w_.promises.stat(c)));let a=Promise.resolve([]);return o.forEach((c,l)=>{const u=r[l];c.isFile()&&(a=a.then(h=>[...h,u])),c.isDirectory()&&(a=a.then(h=>s(u).then(f=>[...h,...f])))}),a};return(await s(t.location.fsPath)).map(n=>({path:`extension/${po(t.location.fsPath,n)}`,localPath:n}))}async Eb({added:t,removed:s}){if(s){const i=t&&this.H.extUri.isEqual(s.profileLocation,t.profileLocation)?s.extensions.filter(n=>t.extensions.every(r=>!pe(r,n))):s.extensions;for(const n of i)this.I.info("Extensions removed from another source",n.id,s.profileLocation.toString()),this.z.fire({identifier:n,profileLocation:s.profileLocation})}if(t){const n=(await this.getInstalled(1,t.profileLocation)).filter(r=>t.extensions.some(o=>pe(o,r.identifier)));this.w.fire(n.map(r=>(this.I.info("Extensions added from another source",r.identifier.id,t.profileLocation.toString()),{identifier:r.identifier,local:r,profileLocation:t.profileLocation,operation:1})))}}async Gb(){this.B(this.fb.onExtract(s=>this.Fb.add(s)));const t=await this.ob.resolve(this.kb.userExtensionsLocation);for(const s of t.children??[])s.isDirectory&&this.Fb.add(s.resource);this.B(this.ob.watch(this.kb.userExtensionsLocation)),this.B(this.ob.onDidFilesChange(s=>this.Hb(s)))}async Hb(t){if(!t.affects(this.kb.userExtensionsLocation,1))return;const s=[];for(const i of t.rawAdded){if(this.Fb.has(i)||!this.H.extUri.isEqual(this.H.extUri.dirname(i),this.kb.userExtensionsLocation)||this.H.extUri.isEqual(i,this.H.extUri.joinPath(this.kb.userExtensionsLocation,".obsolete"))||this.H.extUri.basename(i).startsWith(".")||this.H.extUri.basename(i).endsWith(qh))continue;try{if(!(await this.ob.stat(i)).isDirectory)continue}catch(r){St(r)!==1&&this.I.error(r);continue}const n=await this.fb.scanUserExtensionAtLocation(i);n&&n.installedTimestamp===void 0&&(this.Fb.add(i),s.push(n))}s.length&&(await this.Ib(s.map(i=>[i,void 0]),this.J.defaultProfile.extensionsResource),this.I.info("Added extensions to default profile from external source",s.map(i=>i.identifier.id)))}async Ib(t,s){const i=t.map(n=>n[0]);await this.fb.unsetExtensionsForRemoval(...i.map(n=>ws.create(n))),await this.lb.addExtensionsToProfile(t,s),this.w.fire(i.map(n=>({local:n,identifier:n.identifier,operation:1,profileLocation:s})))}},Xc=__decorate([__param(0,fi),__param(1,gs),__param(2,fe),__param(3,Gs),__param(4,jr),__param(5,ji),__param(6,Lh),__param(7,Mn),__param(8,Xe),__param(9,Zt),__param(10,Ur),__param(11,dt),__param(12,gn),__param(13,bt),__param(14,_s)],Xc),Gh=class extends W{constructor(t,s,i,n,r,o,a){super(),this.n=t,this.s=s,this.t=i,this.u=n,this.w=r,this.y=o,this.z=a,this.h=this.B(new D),this.onExtract=this.h.event,this.j=new wt,this.m=new wt,this.c=oe(this.t.userExtensionsLocation,".obsolete"),this.g=new xr}async cleanUp(){await this.L(),await this.J(),await this.I()}async scanExtensions(t,s,i,n){try{const r=s.with({query:n}),o={includeInvalid:!0,profileLocation:s,productVersion:i,language:n};let a=[];if(t===null||t===0){let c=this.j.get(r);c||(c=this.t.scanAllExtensions({language:n},o).finally(()=>this.j.delete(r)),this.j.set(r,c)),a.push(...await c)}else if(t===1){let c=this.m.get(r);c||(c=this.t.scanUserExtensions(o).finally(()=>this.m.delete(r)),this.m.set(r,c)),a.push(...await c)}return a=t!==null?a.filter(c=>c.type===t):a,await Promise.all(a.map(c=>this.H(c)))}catch(r){throw yt(r,"Scanning")}}async scanAllUserExtensions(){try{const t=await this.t.scanAllUserExtensions();return await Promise.all(t.map(s=>this.H(s)))}catch(t){throw yt(t,"Scanning")}}async scanUserExtensionAtLocation(t){try{const s=await this.t.scanExistingExtension(t,1,{includeInvalid:!0});if(s)return await this.H(s)}catch(s){this.z.error(s)}return null}async extractUserExtension(t,s,i,n){const r=t.toString(),o=y.file(_(this.t.userExtensionsLocation.fsPath,`.${Ve()}`)),a=y.file(_(this.t.userExtensionsLocation.fsPath,r));if(await this.s.exists(a)){if(!i)try{return await this.scanLocalExtension(a,1)}catch(c){this.z.warn(`Error while scanning the existing extension at ${a.path}. Deleting the existing extension and extracting it.`,de(c))}try{await this.D(t.id,a,"removeExisting")}catch{throw new tt(m(2003,null,a.fsPath,t.id),"Delete")}}try{if(n.isCancellationRequested)throw new Dt;try{this.z.trace(`Started extracting the extension from ${s} to ${a.fsPath}`),await SC(s,o.fsPath,{sourcePath:"extension",overwrite:!0},n),this.z.info(`Extracted extension to ${a}:`,t.id)}catch(l){throw fg(l)}const c={installedTimestamp:Date.now(),targetPlatform:t.targetPlatform};try{c.size=await Dm(o,this.s)}catch(l){this.z.warn(`Error while getting the size of the extracted extension : ${o.fsPath}`,de(l))}try{await this.t.updateManifestMetadata(o,c)}catch(l){throw this.y.publicLog2("extension:extract",{extensionId:t.id,code:`${St(l)}`}),yt(l,"UpdateMetadata")}if(n.isCancellationRequested)throw new Dt;try{this.z.trace(`Started renaming the extension from ${o.fsPath} to ${a.fsPath}`),await this.G(o.fsPath,a.fsPath),this.z.info("Renamed to",a.fsPath)}catch(l){if(l.code==="ENOTEMPTY"){this.z.info("Rename failed because extension was installed by another source. So ignoring renaming.",t.id);try{await this.s.del(o,{recursive:!0})}catch{}}else throw this.z.info(`Rename failed because of ${de(l)}. Deleted from extracted location`,o),l}this.h.fire(a)}catch(c){try{await this.s.del(o,{recursive:!0})}catch{}throw c}return this.scanLocalExtension(a,1)}async scanMetadata(t,s){return(await this.C(t,s))?.metadata}async C(t,s){return(await this.u.scanProfileExtensions(s)).find(n=>pe(n.identifier,t.identifier))}async updateMetadata(t,s,i){try{await this.u.updateMetadata([[t,s]],i)}catch(n){throw this.y.publicLog2("extension:extract",{extensionId:t.identifier.id,code:`${St(n)}`,isProfile:!!i}),yt(n,"UpdateMetadata")}return this.scanLocalExtension(t.location,t.type,i)}async setExtensionsForRemoval(...t){const s=[];for(const n of t)await this.s.exists(n.location)&&s.push(n);const i=s.map(n=>ws.create(n));await this.F(n=>i.forEach(r=>{n[r.toString()]=!0,this.z.info("Marked extension as removed",r.toString())}))}async unsetExtensionsForRemoval(...t){try{const s=[];return await this.F(i=>t.forEach(n=>{i[n.toString()]?(s.push(!0),delete i[n.toString()]):s.push(!1)})),s}catch(s){throw yt(s,"UnsetRemoved")}}async deleteExtension(t,s){this.w.extUri.isEqualOrParent(t.location,this.t.userExtensionsLocation)&&(await this.D(t.identifier.id,t.location,s),await this.unsetExtensionsForRemoval(ws.create(t)))}async copyExtension(t,s,i,n){const r=await this.C(t,s),o=await this.C(t,i);if(n={...r?.metadata,...n},o)if(this.w.extUri.isEqual(o.location,t.location))await this.u.updateMetadata([[t,{...o.metadata,...n}]],i);else{const a=await this.scanLocalExtension(o.location,t.type,i);await this.u.removeExtensionsFromProfile([a.identifier],i),await this.u.addExtensionsToProfile([[t,{...o.metadata,...n}]],i)}else await this.u.addExtensionsToProfile([[t,n]],i);return this.scanLocalExtension(t.location,t.type,i)}async moveExtension(t,s,i,n){const r=await this.C(t,s),o=await this.C(t,i);if(n={...r?.metadata,...n},o)if(this.w.extUri.isEqual(o.location,t.location))await this.u.updateMetadata([[t,{...o.metadata,...n}]],i);else{const a=await this.scanLocalExtension(o.location,t.type,i);await this.removeExtension(a.identifier,i),await this.u.addExtensionsToProfile([[t,{...o.metadata,...n}]],i)}else await this.u.addExtensionsToProfile([[t,n]],i),r&&await this.removeExtension(r.identifier,s);return this.scanLocalExtension(t.location,t.type,i)}async removeExtension(t,s){await this.u.removeExtensionsFromProfile([t],s)}async copyExtensions(t,s,i){const n=await this.scanExtensions(1,t,i),r=await Promise.all(n.filter(o=>!o.isApplicationScoped).map(async o=>[o,await this.scanMetadata(o,t)]));await this.u.addExtensionsToProfile(r,s)}async D(t,s,i){this.z.trace(`Deleting ${i} extension from disk`,t,s.fsPath);const n=this.w.extUri.joinPath(this.w.extUri.dirname(s),`${this.w.extUri.basename(s)}.${ko(Ve()).toString(16)}${qh}`);await this.G(s.fsPath,n.fsPath),await this.s.del(n,{recursive:!0}),this.z.info(`Deleted ${i} extension from disk`,t,s.fsPath)}F(t){return this.g.queue(async()=>{let s;try{s=(await this.s.readFile(this.c,"utf8")).value.toString()}catch(n){if(St(n)!==1)throw n}let i={};if(s)try{i=JSON.parse(s)}catch{}if(t)if(t(i),Object.keys(i).length)await this.s.writeFile(this.c,R.fromString(JSON.stringify(i)));else try{await this.s.del(this.c)}catch(n){if(St(n)!==1)throw n}return i})}async G(t,s){try{await ke.rename(t,s,2*60*1e3)}catch(i){throw yt(i,"Rename")}}async scanLocalExtension(t,s,i){try{if(i){const r=(await this.t.scanUserExtensions({profileLocation:i})).find(o=>this.w.extUri.isEqual(o.location,t));if(r)return await this.H(r)}else{const n=await this.t.scanExistingExtension(t,s,{includeInvalid:!0});if(n)return await this.H(n)}throw new tt(m(2004,null,t.path),"ScanningExtension")}catch(n){throw yt(n,"ScanningExtension")}}async H(t){let s;try{s=await this.s.resolve(t.location)}catch{}let i,n;return s?.children&&(i=s.children.find(({name:r})=>/^readme(\.txt|\.md|)$/i.test(r))?.resource,n=s.children.find(({name:r})=>/^changelog(\.txt|\.md|)$/i.test(r))?.resource),{identifier:t.identifier,type:t.type,isBuiltin:t.isBuiltin||!!t.metadata?.isBuiltin,location:t.location,manifest:t.manifest,targetPlatform:t.targetPlatform,validations:t.validations,isValid:t.isValid,readmeUrl:i,changelogUrl:n,publisherDisplayName:t.metadata?.publisherDisplayName,publisherId:t.metadata?.publisherId||null,isApplicationScoped:!!t.metadata?.isApplicationScoped,isMachineScoped:!!t.metadata?.isMachineScoped,isPreReleaseVersion:!!t.metadata?.isPreReleaseVersion,hasPreReleaseVersion:!!t.metadata?.hasPreReleaseVersion,preRelease:t.preRelease,installedTimestamp:t.metadata?.installedTimestamp,updated:!!t.metadata?.updated,pinned:!!t.metadata?.pinned,private:!!t.metadata?.private,isWorkspaceScoped:!1,source:t.metadata?.source??(t.identifier.uuid?"gallery":"vsix"),size:t.metadata?.size??0}}async I(){const t=await this.t.scanAllUserExtensions();await Promise.all(t.map(async s=>{if(ku(s.metadata?.installedTimestamp)&&Vs(s.metadata?.size)){const i=await Dm(s.location,this.s);await this.t.updateManifestMetadata(s.location,{size:i})}}))}async J(){let t;try{t=await this.F()}catch(r){throw yt(r,"ReadRemoved")}if(Object.keys(t).length===0){this.z.debug("No extensions are marked as removed.");return}this.z.debug("Deleting extensions marked as removed:",Object.keys(t));const s=await this.scanAllUserExtensions(),i=new Set;for(const r of s)t[ws.create(r).toString()]||i.add(r.identifier.id.toLowerCase());try{const r=d7(s,o=>o.identifier);await is.settled(r.map(async o=>{const a=o.sort((c,l)=>Lm(c.manifest.version,l.manifest.version))[0];i.has(a.identifier.id.toLowerCase())||await this.n(a)}))}catch(r){this.z.error(r)}const n=s.filter(r=>r.installedTimestamp&&t[ws.create(r).toString()]);await Promise.allSettled(n.map(r=>this.deleteExtension(r,"marked for removal")))}async L(){this.z.trace("ExtensionManagementService#removeTempDeleteFolders");let t;try{t=await this.s.resolve(this.t.userExtensionsLocation)}catch(s){St(s)!==1&&this.z.error(s);return}if(t?.children)try{await Promise.allSettled(t.children.map(async s=>{if(!(!s.isDirectory||!s.name.endsWith(qh))){this.z.trace("Deleting the temporarily deleted folder",s.resource.toString());try{await this.s.del(s.resource,{recursive:!0}),this.z.trace("Deleted the temporarily deleted folder",s.resource.toString())}catch(i){St(i)!==1&&this.z.error(i)}}}))}catch{}}},Gh=__decorate([__param(1,Xe),__param(2,jr),__param(3,ji),__param(4,bt),__param(5,gs),__param(6,fe)],Gh),Jh=class extends lg{get operation(){return this.options.operation??this.j}get verificationStatus(){return this.k}constructor(t,s,i,n,r,o,a,c,l,u,h,f){super(),this.l=t,this.manifest=s,this.source=i,this.options=n,this.m=r,this.n=o,this.o=a,this.p=c,this.q=l,this.s=u,this.t=h,this.u=f,this.j=2,this.identifier=this.l.identifier}async h(t){const i=(await this.n.scanExtensions(1,this.options.profileLocation,this.options.productVersion)).find(a=>pe(a.identifier,this.identifier));i&&(this.j=3);const n={isApplicationScoped:this.options.isApplicationScoped||i?.isApplicationScoped,isMachineScoped:this.options.isMachineScoped||i?.isMachineScoped,isBuiltin:this.options.isBuiltin||i?.isBuiltin,isSystem:i?.type===0?!0:void 0,installedTimestamp:Date.now(),pinned:this.options.installGivenVersion?!0:this.options.pinned??i?.pinned,source:this.source instanceof y?"vsix":"gallery"};let r;if(this.source instanceof y){if(i&&this.l.equals(new ws(i.identifier,i.manifest.version)))try{await this.n.deleteExtension(i,"existing")}catch{throw new Error(m(2005,null,this.manifest.displayName||this.manifest.name))}const a=await this.w(this.l);if(a)try{await this.n.deleteExtension(a,"existing")}catch{throw new Error(m(2006,null,this.manifest.displayName||this.manifest.name))}}else{if(n.id=this.source.identifier.uuid,n.publisherId=this.source.publisherId,n.publisherDisplayName=this.source.publisherDisplayName,n.targetPlatform=this.source.properties.targetPlatform,n.updated=!!i,n.private=this.source.private,n.isPreReleaseVersion=this.source.properties.isPreReleaseVersion,n.hasPreReleaseVersion=i?.hasPreReleaseVersion||this.source.properties.isPreReleaseVersion,n.preRelease=ci(this.options.preRelease)?this.options.preRelease:this.options.installPreReleaseVersion||this.source.properties.isPreReleaseVersion||i?.preRelease,i&&i.type!==0&&i.manifest.version===this.source.version)return this.n.updateMetadata(i,n,this.options.profileLocation);r=await this.w(this.l)}if(t.isCancellationRequested)throw yt(new Dt);if(!r){const a=await this.m(this.operation,t);r=a.local,this.k=a.verificationStatus}if(this.o.extUri.isEqual(this.q.defaultProfile.extensionsResource,this.options.profileLocation))try{await this.s.initializeDefaultProfileExtensions()}catch(a){throw yt(a,"IntializeDefaultProfile")}if(t.isCancellationRequested)throw yt(new Dt);try{await this.t.addExtensionsToProfile([[r,n]],this.options.profileLocation,!r.isValid)}catch(a){throw yt(a,"AddToProfile")}const o=await this.n.scanLocalExtension(r.location,1,this.options.profileLocation);if(!o)throw new tt("Cannot find the installed extension","InstalledExtensionNotFound");return this.source instanceof y&&this.x(r,t),o}async w(t){const[s]=await this.n.unsetExtensionsForRemoval(t);if(s)return this.u.info("Removed the extension from removed list:",t.id),(await this.n.scanAllUserExtensions()).find(n=>ws.create(n).equals(t))}async x(t,s){try{let[i]=await this.p.getExtensions([{id:t.identifier.id,version:t.manifest.version}],s);if(i||([i]=await this.p.getExtensions([{id:t.identifier.id}],s)),i){const n={id:i.identifier.uuid,publisherDisplayName:i.publisherDisplayName,publisherId:i.publisherId,isPreReleaseVersion:i.properties.isPreReleaseVersion,hasPreReleaseVersion:t.hasPreReleaseVersion||i.properties.isPreReleaseVersion,preRelease:i.properties.isPreReleaseVersion||this.options.installPreReleaseVersion};await this.n.updateMetadata(t,n,this.options.profileLocation)}}catch{}}},Jh=__decorate([__param(6,bt),__param(7,fi),__param(8,_s),__param(9,jr),__param(10,ji),__param(11,fe)],Jh),_6=class extends lg{constructor(e,t,s){super(),this.extension=e,this.options=t,this.j=s}h(e){return this.j.removeExtensionsFromProfile([this.extension.identifier],this.options.profileLocation)}}}}),U6,mg,v_=v({"out-build/vs/platform/instantiation/common/graph.js"(){"use strict";U6=class{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}},mg=class{constructor(e){this.b=e,this.a=new Map}roots(){const e=[];for(const t of this.a.values())t.outgoing.size===0&&e.push(t);return e}insertEdge(e,t){const s=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);s.outgoing.set(i.key,i),i.incoming.set(s.key,s)}removeNode(e){const t=this.b(e);this.a.delete(t);for(const s of this.a.values())s.outgoing.delete(t),s.incoming.delete(t)}lookupOrInsertNode(e){const t=this.b(e);let s=this.a.get(t);return s||(s=new U6(t,e),this.a.set(t,s)),s}lookup(e){return this.a.get(this.b(e))}isEmpty(){return this.a.size===0}toString(){const e=[];for(const[t,s]of this.a)e.push(`${t}
	(-> incoming)[${[...s.incoming.keys()].join(", ")}]
	(outgoing ->)[${[...s.outgoing.keys()].join(",")}]
`);return e.join(`
`)}findCycleSlow(){for(const[e,t]of this.a){const s=new Set([e]),i=this.c(t,s);if(i)return i}}c(e,t){for(const[s,i]of e.outgoing){if(t.has(s))return[...t,s].join(" -> ");t.add(s);const n=this.c(i,t);if(n)return n;t.delete(s)}}}}}),j6,gg,wg,T6,Zh,F6=v({"out-build/vs/platform/instantiation/common/instantiationService.js"(){"use strict";Ae(),ge(),V(),qu(),v_(),ie(),Vp(),Sy(),j6=!1,gg=class extends Error{constructor(e){super("cyclic dependency between services"),this.message=e.findCycleSlow()??`UNABLE to detect cycle, dumping graph: 
${e.toString()}`}},wg=class ab{constructor(t=new ju,s=!1,i,n=j6){this.i=t,this.j=s,this.k=i,this.l=n,this.f=!1,this.g=new Set,this.h=new Set,this.t=new Set,this.i.set(Mn,this),this._globalGraph=n?i?._globalGraph??new mg(r=>r):void 0}dispose(){if(!this.f){this.f=!0,jt(this.h),this.h.clear();for(const t of this.g)xy(t)&&t.dispose();this.g.clear()}}m(){if(this.f)throw new Error("InstantiationService has been disposed")}createChild(t,s){this.m();const i=this,n=new class extends ab{dispose(){i.h.delete(n),super.dispose()}}(t,this.j,this,this.l);return this.h.add(n),s?.add(n),n}invokeFunction(t,...s){this.m();const i=Zh.traceInvocation(this.l,t);let n=!1;try{return t({get:o=>{if(n)throw oy("service accessor is only valid during the invocation of its target method");const a=this.s(o,i);if(!a)throw new Error(`[invokeFunction] unknown service '${o}'`);return a}},...s)}finally{n=!0,i.stop()}}createInstance(t,...s){this.m();let i,n;return t instanceof Te?(i=Zh.traceCreation(this.l,t.ctor),n=this.o(t.ctor,t.staticArguments.concat(s),i)):(i=Zh.traceCreation(this.l,t),n=this.o(t,s,i)),i.stop(),n}o(t,s=[],i){const n=li.getServiceDependencies(t).sort((a,c)=>a.index-c.index),r=[];for(const a of n){const c=this.s(a.id,i);c||this.y(`[createInstance] ${t.name} depends on UNKNOWN service ${a.id}.`,!1),r.push(c)}const o=n.length>0?n[0].index:s.length;if(s.length!==o){console.trace(`[createInstance] First service dependency of ${t.name} at position ${o+1} conflicts with ${s.length} static arguments`);const a=o-s.length;a>0?s=s.concat(new Array(a)):s=s.slice(0,o)}return Reflect.construct(t,s.concat(r))}q(t,s){if(this.i.get(t)instanceof Te)this.i.set(t,s);else if(this.k)this.k.q(t,s);else throw new Error("illegalState - setting UNKNOWN service instance")}r(t){const s=this.i.get(t);return!s&&this.k?this.k.r(t):s}s(t,s){this._globalGraph&&this.c&&this._globalGraph.insertEdge(this.c,String(t));const i=this.r(t);return i instanceof Te?this.u(t,i,s.branch(t,!0)):(s.branch(t,!1),i)}u(t,s,i){if(this.t.has(t))throw new Error(`illegal state - RECURSIVELY instantiating service '${t}'`);this.t.add(t);try{return this.v(t,s,i)}finally{this.t.delete(t)}}v(t,s,i){const n=new mg(c=>c.id.toString());let r=0;const o=[{id:t,desc:s,_trace:i}],a=new Set;for(;o.length;){const c=o.pop();if(!a.has(String(c.id))){if(a.add(String(c.id)),n.lookupOrInsertNode(c),r++>1e3)throw new gg(n);for(const l of li.getServiceDependencies(c.desc.ctor)){const u=this.r(l.id);if(u||this.y(`[createInstance] ${t} depends on ${l.id} which is NOT registered.`,!0),this._globalGraph?.insertEdge(String(c.id),String(l.id)),u instanceof Te){const h={id:l.id,desc:u,_trace:c._trace.branch(l.id,!0)};n.insertEdge(c,h),o.push(h)}}}}for(;;){const c=n.roots();if(c.length===0){if(!n.isEmpty())throw new gg(n);break}for(const{data:l}of c){if(this.r(l.id)instanceof Te){const h=this.w(l.id,l.desc.ctor,l.desc.staticArguments,l.desc.supportsDelayedInstantiation,l._trace);this.q(l.id,h)}n.removeNode(l)}}return this.r(t)}w(t,s,i=[],n,r){if(this.i.get(t)instanceof Te)return this.x(t,s,i,n,r,this.g);if(this.k)return this.k.w(t,s,i,n,r);throw new Error(`illegalState - creating UNKNOWN service instance ${s.name}`)}x(t,s,i=[],n,r,o){if(n){const a=new ab(void 0,this.j,this,this.l);a.c=String(t);const c=new Map,l=new I4(()=>{const u=a.o(s,i,r);for(const[h,f]of c){const p=u[h];if(typeof p=="function")for(const g of f)g.disposable=p.apply(u,g.listener)}return c.clear(),o.add(u),u});return new Proxy(Object.create(null),{get(u,h){if(!l.isInitialized&&typeof h=="string"&&(h.startsWith("onDid")||h.startsWith("onWill"))){let g=c.get(h);return g||(g=new pp,c.set(h,g)),(b,x,k)=>{if(l.isInitialized)return l.value[h](b,x,k);{const I={listener:[b,x,k],disposable:void 0},M=g.push(I);return De(()=>{M(),I.disposable?.dispose()})}}}if(h in u)return u[h];const f=l.value;let p=f[h];return typeof p!="function"||(p=p.bind(f),u[h]=p),p},set(u,h,f){return l.value[h]=f,!0},getPrototypeOf(u){return s.prototype}})}else{const a=this.o(s,i,r);return o.add(a),a}}y(t,s){if(s&&console.warn(t),this.j)throw new Error(t)}},function(e){e[e.None=0]="None",e[e.Creation=1]="Creation",e[e.Invocation=2]="Invocation",e[e.Branch=3]="Branch"}(T6||(T6={})),Zh=class Zi{static{this.all=new Set}static{this.c=new class extends Zi{constructor(){super(0,null)}stop(){}branch(){return this}}}static traceInvocation(t,s){return t?new Zi(2,s.name||new Error().stack.split(`
`).slice(3,4).join(`
`)):Zi.c}static traceCreation(t,s){return t?new Zi(1,s.name):Zi.c}static{this.f=0}constructor(t,s){this.type=t,this.name=s,this.g=Date.now(),this.h=[]}branch(t,s){const i=new Zi(3,t.toString());return this.h.push([t,s,i]),i}stop(){const t=Date.now()-this.g;Zi.f+=t;let s=!1;function i(r,o){const a=[],c=new Array(r+1).join("	");for(const[l,u,h]of o.h)if(u&&h){s=!0,a.push(`${c}CREATES -> ${l}`);const f=i(r+1,h);f&&a.push(f)}else a.push(`${c}uses -> ${l}`);return a.join(`
`)}const n=[`${this.type===1?"CREATE":"CALL"} ${this.name}`,`${i(1,this)}`,`DONE, took ${t.toFixed(2)}ms (grand total ${Zi.f.toFixed(2)}ms)`];(t>2||s)&&Zi.all.add(n.join(`
`))}}}}),es,Yh,Ht,Kc=v({"out-build/vs/platform/product/common/product.js"(){"use strict";if(ri(),Yh=globalThis.vscode,typeof Yh<"u"&&typeof Yh.context<"u"){const e=Yh.context.configuration();if(e)es=e.product;else throw new Error("Sandbox: unable to resolve product configuration from preload script.")}else if(globalThis._VSCODE_PRODUCT_JSON&&globalThis._VSCODE_PACKAGE_JSON){if(es=globalThis._VSCODE_PRODUCT_JSON,Ds.VSCODE_DEV&&Object.assign(es,{nameShort:`${es.nameShort} Dev`,nameLong:`${es.nameLong} Dev`,dataFolderName:`${es.dataFolderName}-dev`,serverDataFolderName:es.serverDataFolderName?`${es.serverDataFolderName}-dev`:void 0}),!es.version){const e=globalThis._VSCODE_PACKAGE_JSON;Object.assign(es,{version:e.version})}Object.assign(es,{extensionsGallery:Ds.EXTENSIONS_GALLERY?JSON.parse(Ds.EXTENSIONS_GALLERY):es.extensionsGallery||{serviceUrl:"https://open-vsx.org/vscode/gallery",itemUrl:"https://open-vsx.org/vscode/item",resourceUrlTemplate:"https://open-vsx.org/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}",controlUrl:"",recommendationsUrl:""},telemetryEndpoint:Ds.CS_TELEMETRY_URL||es.telemetryEndpoint||"https://v1.telemetry.coder.com/track"})}else es={nameShort:"code-server",nameLong:"code-server",applicationName:"code-server",dataFolderName:".code-server",win32MutexName:"codeserver",licenseName:"MIT",licenseUrl:"https://github.com/coder/code-server/blob/main/LICENSE",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverGreeting:[],serverLicense:[],serverLicensePrompt:"",serverApplicationName:"code-server-oss",serverDataFolderName:".vscode-server-oss",tunnelApplicationName:"code-tunnel-oss",win32DirName:"code-server",win32NameVersion:"code-server",win32RegValueName:"CodeOSS",win32x64AppId:"{{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}",win32arm64AppId:"{{D1ACE434-89C5-48D1-88D3-E2991DF85475}",win32x64UserAppId:"{{CC6B787D-37A0-49E8-AE24-8559A032BE0C}",win32arm64UserAppId:"{{3AEBF0C8-F733-4AD4-BADE-FDB816D53D7B}",win32AppUserModelId:"coder.code-server",win32ShellNameShort:"c&ode-server",win32TunnelServiceMutex:"vscodeoss-tunnelservice",win32TunnelMutex:"vscodeoss-tunnel",darwinBundleIdentifier:"com.coder.code.server",darwinProfileUUID:"47827DD9-4734-49A0-AF80-7E19B11495CC",darwinProfilePayloadUUID:"CF808BE7-53F3-46C6-A7E2-7EDB98A5E959",linuxIconName:"com.coder.code.server",licenseFileName:"LICENSE.txt",reportIssueUrl:"https://github.com/coder/code-server/issues/new",nodejsRepository:"https://nodejs.org",urlProtocol:"code-oss",webviewContentExternalBaseUrlTemplate:"https://{{uuid}}.vscode-cdn.net/insider/ef65ac1ba57f57f2a3961bfe94aa20481caca4c6/out/vs/workbench/contrib/webview/browser/pre/",builtInExtensions:[{name:"ms-vscode.js-debug-companion",version:"1.1.3",sha256:"7380a890787452f14b2db7835dfa94de538caf358ebc263f9d46dd68ac52de93",repo:"https://github.com/microsoft/vscode-js-debug-companion",metadata:{id:"99cb0b7f-7354-4278-b8da-6cc79972169d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.js-debug",version:"1.102.0",sha256:"0e8ed27ba2d707bcfb008e89e490c2d287d9537d84893b0792a4ee418274fa0b",repo:"https://github.com/microsoft/vscode-js-debug",metadata:{id:"25629058-ddac-4e17-abba-74678e126c5d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.vscode-js-profile-table",version:"1.0.10",sha256:"7361748ddf9fd09d8a2ed1f2a2d7376a2cf9aae708692820b799708385c38e08",repo:"https://github.com/microsoft/vscode-js-profile-visualizer",metadata:{id:"7e52b41b-71ad-457b-ab7e-0620f1fc4feb",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}}],enableTelemetry:!0,quality:"stable",codeServerVersion:"0.0.0",documentationUrl:"https://go.microsoft.com/fwlink/?LinkID=533484#vscode",keyboardShortcutsUrlMac:"https://go.microsoft.com/fwlink/?linkid=832143",keyboardShortcutsUrlLinux:"https://go.microsoft.com/fwlink/?linkid=832144",keyboardShortcutsUrlWin:"https://go.microsoft.com/fwlink/?linkid=832145",introductoryVideosUrl:"https://go.microsoft.com/fwlink/?linkid=832146",tipsAndTricksUrl:"https://go.microsoft.com/fwlink/?linkid=852118",newsletterSignupUrl:"https://www.research.net/r/vsc-newsletter",linkProtectionTrustedDomains:["https://open-vsx.org"],trustedExtensionAuthAccess:["vscode.git","vscode.github","github.vscode-pull-request-github","github.copilot","github.copilot-chat"],aiConfig:{ariaKey:"code-server"},version:"1.102.2",commit:"9f6d18ea2695805cfd7e90993b11b29f726fbed0",date:"2025-07-24T20:11:42.777Z"},Object.keys(es).length===0&&Object.assign(es,{version:"1.102.0-dev",nameShort:"Code - OSS Dev",nameLong:"Code - OSS Dev",applicationName:"code-oss",dataFolderName:".vscode-oss",urlProtocol:"code-oss",reportIssueUrl:"https://github.com/microsoft/vscode/issues/new",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt"});Ht=es}});async function B6(e,t,s,i,n,r){let o;try{await b_(e,t,s,i,n,r)}catch(a){o=a}finally{o&&n.errorTransformer&&(o=n.errorTransformer(o)),typeof o<"u"&&s.error(o),s.end()}}async function b_(e,t,s,i,n,r){vg(r);const o=await e.open(t,{create:!1});try{vg(r);let a=0,c=0,l=n&&typeof n.length=="number"?n.length:void 0,u=R.alloc(Math.min(n.bufferSize,typeof l=="number"?l:n.bufferSize)),h=n&&typeof n.position=="number"?n.position:0,f=0;do c=await e.read(o,h,u.buffer,f,u.byteLength-f),h+=c,f+=c,a+=c,typeof l=="number"&&(l-=c),f===u.byteLength&&(await s.write(i(u)),u=R.alloc(Math.min(n.bufferSize,typeof l=="number"?l:n.bufferSize)),f=0);while(c>0&&(typeof l!="number"||l>0)&&vg(r)&&y_(a,n));if(f>0){let p=f;typeof l=="number"&&(p=Math.min(f,l)),s.write(i(u.slice(0,p)))}}catch(a){throw Or(a)}finally{await e.close(o)}}function vg(e){if(e.isCancellationRequested)throw ry();return!0}function y_(e,t){if(typeof t?.limits?.size=="number"&&e>t.limits.size)throw wn(m(2075,null),ne.FileTooLarge);return!0}var z6=v({"out-build/vs/platform/files/common/io.js"(){"use strict";Le(),ge(),ce(),Ge()}}),bg,el,H6=v({"out-build/vs/platform/files/common/fileService.js"(){"use strict";kt(),Ae(),Le(),Lt(),re(),oc(),wr(),V(),wh(),Se(),Ki(),ct(),nc(),ce(),Ge(),z6(),Ie(),ge(),el=class extends W{static{bg=this}constructor(t){super(),this.b=t,this.a=256*1024,this.c=this.B(new D),this.onDidChangeFileSystemProviderRegistrations=this.c.event,this.f=this.B(new D),this.onWillActivateFileSystemProvider=this.f.event,this.g=this.B(new D),this.onDidChangeFileSystemProviderCapabilities=this.g.event,this.h=new Map,this.r=this.B(new D),this.onDidRunOperation=this.r.event,this.Y=this.B(new D),this.Z=this.B(new D),this.onDidFilesChange=this.Z.event,this.$=this.B(new D),this.onDidWatchError=this.$.event,this.ab=new Map,this.db=this.B(new Mp)}registerProvider(t,s){if(this.h.has(t))throw new Error(`A filesystem provider for the scheme '${t}' is already registered.`);It(`code/registerFilesystem/${t}`);const i=new rt;return this.h.set(t,s),this.c.fire({added:!0,scheme:t,provider:s}),i.add(s.onDidChangeFile(n=>{const r=new _7(n,!this.U(s));this.Y.fire(r),r.hasCorrelation()||this.Z.fire(r)})),typeof s.onDidWatchError=="function"&&i.add(s.onDidWatchError(n=>this.$.fire(new Error(n)))),i.add(s.onDidChangeCapabilities(()=>this.g.fire({provider:s,scheme:t}))),De(()=>{this.c.fire({added:!1,scheme:t,provider:s}),this.h.delete(t),jt(i)})}getProvider(t){return this.h.get(t)}async activateProvider(t){const s=[];this.f.fire({scheme:t,join(i){s.push(i)}}),!this.h.has(t)&&await is.settled(s)}async canHandleResource(t){return await this.activateProvider(t.scheme),this.hasProvider(t)}hasProvider(t){return this.h.has(t.scheme)}hasCapability(t,s){const i=this.h.get(t.scheme);return!!(i&&i.capabilities&s)}listCapabilities(){return Ni.map(this.h,([t,s])=>({scheme:t,capabilities:s.capabilities}))}async j(t){if(!w4(t))throw new Xt(m(2048,null,this.tb(t)),8);await this.activateProvider(t.scheme);const s=this.h.get(t.scheme);if(!s){const i=new nn;throw i.message=m(2049,null,t.toString()),i}return s}async m(t){const s=await this.j(t);if(zn(s)||Ys(s)||Hm(s))return s;throw new Error(`Filesystem provider for scheme '${t.scheme}' neither has FileReadWrite, FileReadStream nor FileOpenReadWriteClose capability which is needed for the read operation.`)}async n(t){const s=await this.j(t);if(zn(s)||Ys(s))return s;throw new Error(`Filesystem provider for scheme '${t.scheme}' neither has FileReadWrite nor FileOpenReadWriteClose capability which is needed for the write operation.`)}async resolve(t,s){try{return await this.s(t,s)}catch(i){throw vh(i)===ne.FileNotFound?new Xt(m(2050,null,this.tb(t)),1):Or(i)}}async s(t,s){const i=await this.j(t),n=this.U(i),r=s?.resolveTo,o=s?.resolveSingleChildDescendants,a=s?.resolveMetadata,c=await i.stat(t);let l;return this.t(i,t,c,void 0,!!a,(u,h)=>(l||(l=zo.forUris(()=>!n),l.set(t,!0),r&&l.fill(!0,r)),l.get(u.resource)||l.findSuperstr(u.resource.with({query:null,fragment:null}))?!0:u.isDirectory&&o?h===1:!1))}async t(t,s,i,n,r,o){const{providerExtUri:a}=this.S(t),c={resource:s,name:a.basename(s),isFile:(i.type&Ls.File)!==0,isDirectory:(i.type&Ls.Directory)!==0,isSymbolicLink:(i.type&Ls.SymbolicLink)!==0,mtime:i.mtime,ctime:i.ctime,size:i.size,readonly:!!((i.permissions??0)&Vo.Readonly)||!!(t.capabilities&2048),locked:!!((i.permissions??0)&Vo.Locked),etag:L7({mtime:i.mtime,size:i.size}),children:void 0};if(c.isDirectory&&o(c,n)){try{const l=await t.readdir(s),u=await is.settled(l.map(async([h,f])=>{try{const p=a.joinPath(s,h),g=r?await t.stat(p):{type:f};return await this.t(t,p,g,l.length,r,o)}catch(p){return this.b.trace(p),null}}));c.children=ai(u)}catch(l){this.b.trace(l),c.children=[]}return c}return c}async resolveAll(t){return is.settled(t.map(async s=>{try{return{stat:await this.s(s.resource,s.options),success:!0}}catch(i){return this.b.trace(i),{stat:void 0,success:!1}}}))}async stat(t){const s=await this.j(t),i=await s.stat(t);return this.t(s,t,i,void 0,!0,()=>!1)}async realpath(t){const s=await this.j(t);if(WO(s)){const i=await s.realpath(t);return t.with({path:i})}}async exists(t){const s=await this.j(t);try{return!!await s.stat(t)}catch{return!1}}async canCreateFile(t,s){try{await this.u(t,s)}catch(i){return i}return!0}async u(t,s){if(!s?.overwrite&&await this.exists(t))throw new Xt(m(2051,null,this.tb(t)),3,s)}async createFile(t,s=R.fromString(""),i){await this.u(t,i);const n=await this.writeFile(t,s);return this.r.fire(new Cr(t,0,n)),n}async writeFile(t,s,i){const n=this.rb(await this.n(t),t),{providerExtUri:r}=this.S(n);let o=i;if(D7(n)&&!o?.atomic){const a=n.enforceAtomicWriteFile?.(t);a&&(o={...i,atomic:a})}try{let{stat:a,buffer:c}=await this.z(n,t,s,o);a||await this.W(n,r.dirname(t)),c||(c=await this.w(n,s)),!zn(n)||Ys(n)&&c instanceof R||Ys(n)&&D7(n)&&o?.atomic?await this.ib(n,t,o,c):await this.eb(n,t,o,c instanceof R?xR(c):c),this.r.fire(new Cr(t,4))}catch(a){throw new Xt(m(2052,null,this.tb(t),Or(a).toString()),St(a),o)}return this.resolve(t,{resolveMetadata:!0})}async w(t,s){let i;if(Ys(t)&&!(s instanceof R))if(Tu(s)){const n=await fR(s,3);n.ended?i=R.concat(n.buffer):i=n}else i=hR(s,n=>R.concat(n),3);else i=s;return i}async z(t,s,i,n){const r=!!n?.unlock;if(r&&!(t.capabilities&8192))throw new Error(m(2053,null,this.tb(s)));if(!!n?.atomic){if(!(t.capabilities&32768))throw new Error(m(2054,null,this.tb(s)));if(!(t.capabilities&2))throw new Error(m(2055,null,this.tb(s)));if(r)throw new Error(m(2056,null,this.tb(s)))}let a;try{a=await t.stat(s)}catch{return Object.create(null)}if((a.type&Ls.Directory)!==0)throw new Xt(m(2057,null,this.tb(s)),0,n);this.sb(s,a);let c;if(typeof n?.mtime=="number"&&typeof n.etag=="string"&&n.etag!==xh&&typeof a.mtime=="number"&&typeof a.size=="number"&&n.mtime<a.mtime&&n.etag!==L7({mtime:n.mtime,size:a.size})){if(c=await this.w(t,i),c instanceof R&&c.byteLength===a.size)try{const{value:l}=await this.readFile(s,{limits:{size:a.size}});if(c.equals(l))return{stat:a,buffer:c}}catch{}throw new Xt(m(2058,null),3,n)}return{stat:a,buffer:c}}async readFile(t,s,i){const n=await this.m(t);return s?.atomic?this.C(n,t,s,i):this.D(n,t,s,i)}async C(t,s,i,n){return new Promise((r,o)=>{this.db.queueFor(s,async()=>{try{const a=await this.D(t,s,i,n);r(a)}catch(a){o(a)}},this.S(t).providerExtUri)})}async D(t,s,i,n){const r=await this.F(t,s,{...i,preferUnbuffered:!0},n);return{...r,value:await fn(r.value)}}async readFileStream(t,s,i){const n=await this.m(t);return this.F(n,t,s,i)}async F(t,s,i,n){const r=new Oi(n);let o=i;Vm(t)&&t.enforceAtomicReadFile?.(s)&&(o={...i,atomic:!0});const a=this.L(s,o).then(l=>l,l=>{throw r.dispose(!0),l});let c;try{return typeof o?.etag=="string"&&o.etag!==xh&&await a,o?.atomic&&Vm(t)||!(zn(t)||Hm(t))||Ys(t)&&o?.preferUnbuffered?c=this.J(t,s,o):Hm(t)?c=this.H(t,s,r.token,o):c=this.I(t,s,r.token,o),c.on("end",()=>r.dispose()),c.on("error",()=>r.dispose()),{...await a,value:c}}catch(l){throw c&&await B4(c),this.G(l,s,o)}}G(t,s,i){const n=m(2059,null,this.tb(s),Or(t).toString());return t instanceof Eh?new Eh(n,t.stat,i):t instanceof yh?new yh(n,t.fileOperationResult,t.size,t.options):new Xt(n,St(t),i)}H(t,s,i,n=Object.create(null)){const r=t.readFileStream(s,n,i);return z4(r,{data:o=>o instanceof R?o:R.wrap(o),error:o=>this.G(o,s,n)},o=>R.concat(o))}I(t,s,i,n=Object.create(null)){const r=SR();return B6(t,s,r,o=>o,{...n,bufferSize:this.a,errorTransformer:o=>this.G(o,s,n)},i),r}J(t,s,i){const n=Fu(r=>R.concat(r));return(async()=>{try{let r;i?.atomic&&Vm(t)?r=await t.readFile(s,{atomic:!0}):r=await t.readFile(s),typeof i?.position=="number"&&(r=r.slice(i.position)),typeof i?.length=="number"&&(r=r.slice(0,i.length)),this.M(s,r.byteLength,i),n.end(R.wrap(r))}catch(r){n.error(r),n.end()}})(),n}async L(t,s){const i=await this.resolve(t,{resolveMetadata:!0});if(i.isDirectory)throw new Xt(m(2060,null,this.tb(t)),0,s);if(typeof s?.etag=="string"&&s.etag!==xh&&s.etag===i.etag)throw new Eh(m(2061,null),i,s);return this.M(t,i.size,s),i}M(t,s,i){if(typeof i?.limits?.size=="number"&&s>i.limits.size)throw new yh(m(2062,null,this.tb(t)),7,s,i)}async canMove(t,s,i){return this.N(t,s,"move",i)}async canCopy(t,s,i){return this.N(t,s,"copy",i)}async N(t,s,i,n){if(t.toString()!==s.toString())try{const r=i==="move"?this.rb(await this.n(t),t):await this.m(t),o=this.rb(await this.n(s),s);await this.R(r,t,o,s,i,n)}catch(r){return r}return!0}async move(t,s,i){const n=this.rb(await this.n(t),t),r=this.rb(await this.n(s),s),o=await this.O(n,t,r,s,"move",!!i),a=await this.resolve(s,{resolveMetadata:!0});return this.r.fire(new Cr(t,o==="move"?2:3,a)),a}async copy(t,s,i){const n=await this.m(t),r=this.rb(await this.n(s),s),o=await this.O(n,t,r,s,"copy",!!i),a=await this.resolve(s,{resolveMetadata:!0});return this.r.fire(new Cr(t,o==="copy"?3:2,a)),a}async O(t,s,i,n,r,o){if(s.toString()===n.toString())return r;const{exists:a,isSameResourceWithDifferentPathCase:c}=await this.R(t,s,i,n,r,o);if(a&&!c&&o&&await this.del(n,{recursive:!0}),await this.W(i,this.S(i).providerExtUri.dirname(n)),r==="copy"){if(t===i&&I7(t))await t.copy(s,n,{overwrite:o});else{const l=await this.resolve(s);l.isDirectory?await this.Q(t,l,i,n):await this.P(t,s,i,n)}return r}else return t===i?(await t.rename(s,n,{overwrite:o}),r):(await this.O(t,s,i,n,"copy",o),await this.del(s,{recursive:!0}),"copy")}async P(t,s,i,n){if(zn(t)&&zn(i))return this.kb(t,s,i,n);if(zn(t)&&Ys(i))return this.qb(t,s,i,n);if(Ys(t)&&zn(i))return this.ob(t,s,i,n);if(Ys(t)&&Ys(i))return this.mb(t,s,i,n)}async Q(t,s,i,n){await i.mkdir(n),Array.isArray(s.children)&&await is.settled(s.children.map(async r=>{const o=this.S(i).providerExtUri.joinPath(n,r.name);return r.isDirectory?this.Q(t,await this.resolve(r.resource),i,o):this.P(t,r.resource,i,o)}))}async R(t,s,i,n,r,o){let a=!1;if(t===i){const{providerExtUri:l,isPathCaseSensitive:u}=this.S(t);if(u||(a=l.isEqual(s,n)),a&&r==="copy")throw new Error(m(2063,null,this.tb(s),this.tb(n)));if(!a&&l.isEqualOrParent(n,s))throw new Error(m(2064,null,this.tb(s),this.tb(n)))}const c=await this.exists(n);if(c&&!a){if(!o)throw new Xt(m(2065,null,this.tb(s),this.tb(n)),4);if(t===i){const{providerExtUri:l}=this.S(t);if(l.isEqualOrParent(s,n))throw new Error(m(2066,null,this.tb(s),this.tb(n)))}}return{exists:c,isSameResourceWithDifferentPathCase:a}}S(t){const s=this.U(t);return{providerExtUri:s?Pe:p4,isPathCaseSensitive:s}}U(t){return!!(t.capabilities&1024)}async createFolder(t){const s=this.rb(await this.j(t),t);await this.W(s,t);const i=await this.resolve(t,{resolveMetadata:!0});return this.r.fire(new Cr(t,0,i)),i}async W(t,s){const i=[],{providerExtUri:n}=this.S(t);for(;!n.isEqual(s,n.dirname(s));)try{if(((await t.stat(s)).type&Ls.Directory)===0)throw new Error(m(2067,null,this.tb(s)));break}catch(r){if(vh(r)!==ne.FileNotFound)throw r;i.push(n.basename(s)),s=n.dirname(s)}for(let r=i.length-1;r>=0;r--){s=n.joinPath(s,i[r]);try{await t.mkdir(s)}catch(o){if(vh(o)!==ne.FileExists)throw o}}}async canDelete(t,s){try{await this.X(t,s)}catch(i){return i}return!0}async X(t,s){const i=this.rb(await this.j(t),t),n=!!s?.useTrash;if(n&&!(i.capabilities&4096))throw new Error(m(2068,null,this.tb(t)));const r=s?.atomic;if(r&&!(i.capabilities&65536))throw new Error(m(2069,null,this.tb(t)));if(n&&r)throw new Error(m(2070,null,this.tb(t)));let o;try{o=await i.stat(t)}catch{}if(o)this.sb(t,o);else throw new Xt(m(2071,null,this.tb(t)),1);if(!!!s?.recursive){const c=await this.resolve(t);if(c.isDirectory&&Array.isArray(c.children)&&c.children.length>0)throw new Error(m(2072,null,this.tb(t)))}return i}async del(t,s){const i=await this.X(t,s);let n=s;if(qO(i)&&!n?.atomic){const c=i.enforceAtomicDelete?.(t);c&&(n={...s,atomic:c})}const r=!!n?.useTrash,o=!!n?.recursive,a=n?.atomic??!1;await i.delete(t,{recursive:o,useTrash:r,atomic:a}),this.r.fire(new Cr(t,1))}async cloneFile(t,s){const i=await this.j(t),n=this.rb(await this.n(s),s);if(!(i===n&&this.S(i).providerExtUri.isEqual(t,s)))return i===n&&VO(i)?i.cloneFile(t,s):(await this.W(n,this.S(n).providerExtUri.dirname(s)),i===n&&I7(i)?this.db.queueFor(t,()=>i.copy(t,s,{overwrite:!0}),this.S(i).providerExtUri):this.db.queueFor(t,()=>this.P(i,t,n,s),this.S(i).providerExtUri))}static{this.bb=0}createWatcher(t,s){return this.watch(t,{...s,correlationId:bg.bb++})}watch(t,s={recursive:!1,excludes:[]}){const i=new rt;let n=!1,r=()=>{n=!0};i.add(De(()=>r())),(async()=>{try{const a=await this.cb(t,s);n?jt(a):r=()=>jt(a)}catch(a){this.b.error(a)}})();const o=s.correlationId;if(typeof o=="number"){const a=i.add(new D);return i.add(this.Y.event(l=>{l.correlates(o)&&a.fire(l)})),{onDidChange:a.event,dispose:()=>i.dispose()}}return i}async cb(t,s){const i=await this.j(t),n=ko([this.S(i).providerExtUri.getComparisonKey(t),s]);let r=this.ab.get(n);return r||(r={count:0,disposable:i.watch(t,s)},this.ab.set(n,r)),r.count+=1,De(()=>{r&&(r.count--,r.count===0&&(jt(r.disposable),this.ab.delete(n)))})}dispose(){super.dispose();for(const[,t]of this.ab)jt(t.disposable);this.ab.clear()}async eb(t,s,i,n){return this.db.queueFor(s,async()=>{const r=await t.open(s,{create:!0,unlock:i?.unlock??!1});try{Tu(n)||qp(n)?await this.fb(t,r,n):await this.gb(t,r,n)}catch(o){throw Or(o)}finally{await t.close(r)}},this.S(t).providerExtUri)}async fb(t,s,i){let n=0,r;if(qp(i)){if(i.buffer.length>0){const o=R.concat(i.buffer);await this.hb(t,s,o,o.byteLength,n,0),n+=o.byteLength}if(i.ended)return;r=i.stream}else r=i;return new Promise((o,a)=>{Bu(r,{onData:async c=>{r.pause();try{await this.hb(t,s,c,c.byteLength,n,0)}catch(l){return a(l)}n+=c.byteLength,setTimeout(()=>r.resume())},onError:c=>a(c),onEnd:()=>o()})})}async gb(t,s,i){let n=0,r;for(;(r=i.read())!==null;)await this.hb(t,s,r,r.byteLength,n,0),n+=r.byteLength}async hb(t,s,i,n,r,o){let a=0;for(;a<n;){const c=await t.write(s,r+a,i.buffer,o+a,n-a);a+=c}}async ib(t,s,i,n){return this.db.queueFor(s,()=>this.jb(t,s,i,n),this.S(t).providerExtUri)}async jb(t,s,i,n){let r;n instanceof R?r=n:Tu(n)?r=await fn(n):qp(n)?r=await kR(n):r=ER(n),await t.writeFile(s,r.buffer,{create:!0,overwrite:!0,unlock:i?.unlock??!1,atomic:i?.atomic??!1})}async kb(t,s,i,n){return this.db.queueFor(n,()=>this.lb(t,s,i,n),this.S(i).providerExtUri)}async lb(t,s,i,n){let r,o;try{r=await t.open(s,{create:!1}),o=await i.open(n,{create:!0,unlock:!1});const a=R.alloc(this.a);let c=0,l=0,u=0;do u=await t.read(r,c,a.buffer,l,a.byteLength-l),await this.hb(i,o,a,u,c,l),c+=u,l+=u,l===a.byteLength&&(l=0);while(u>0)}catch(a){throw Or(a)}finally{await is.settled([typeof r=="number"?t.close(r):Promise.resolve(),typeof o=="number"?i.close(o):Promise.resolve()])}}async mb(t,s,i,n){return this.db.queueFor(n,()=>this.nb(t,s,i,n),this.S(i).providerExtUri)}async nb(t,s,i,n){return i.writeFile(n,await t.readFile(s),{create:!0,overwrite:!0,unlock:!1,atomic:!1})}async ob(t,s,i,n){return this.db.queueFor(n,()=>this.pb(t,s,i,n),this.S(i).providerExtUri)}async pb(t,s,i,n){const r=await i.open(n,{create:!0,unlock:!1});try{const o=await t.readFile(s);await this.hb(i,r,R.wrap(o),o.byteLength,0,0)}catch(o){throw Or(o)}finally{await i.close(r)}}async qb(t,s,i,n){const r=await fn(this.I(t,s,Ne.None));await this.ib(i,n,void 0,r)}rb(t,s){if(t.capabilities&2048)throw new Xt(m(2073,null,this.tb(s)),6);return t}sb(t,s){if((s.permissions??0)&Vo.Readonly)throw new Xt(m(2074,null,this.tb(t)),6)}tb(t){return t.scheme===Y.file?t.fsPath:t.toString(!0)}},el=bg=__decorate([__param(0,fe)],el)}});function V6(e,t){switch(e){case 0:return"";case 1:return`${sl}*?`;default:return`(?:${tl}|${sl}+${tl}${t?`|${tl}${sl}+`:""})*?`}}function W6(e,t){if(!e)return[];const s=[];let i=!1,n=!1,r="";for(const o of e){switch(o){case t:if(!i&&!n){s.push(r),r="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":n=!0;break;case"]":n=!1;break}r+=o}return r&&s.push(r),s}function q6(e){if(!e)return"";let t="";const s=W6(e,xg);if(s.every(i=>i===Yo))t=".*";else{let i=!1;s.forEach((n,r)=>{if(n===Yo){if(i)return;t+=V6(2,r===s.length-1)}else{let o=!1,a="",c=!1,l="";for(const u of n){if(u!=="}"&&o){a+=u;continue}if(c&&(u!=="]"||!l)){let h;u==="-"?h=u:(u==="^"||u==="!")&&!l?h="^":u===xg?h="":h=On(u),l+=h;continue}switch(u){case"{":o=!0;continue;case"[":c=!0;continue;case"}":{const f=`(?:${W6(a,",").map(p=>q6(p)).join("|")})`;t+=f,o=!1,a="";break}case"]":{t+="["+l+"]",c=!1,l="";break}case"?":t+=sl;continue;case"*":t+=V6(1);continue;default:t+=On(u)}}r<s.length-1&&(s[r+1]!==Yo||r+2<s.length)&&(t+=tl)}i=n===Yo})}return t}function yg(e,t){if(!e)return bi;let s;typeof e!="string"?s=e.pattern:s=e,s=s.trim();const i=`${s}_${!!t.trimForExclusions}`;let n=kg.get(i);if(n)return G6(n,e);let r;return X6.test(s)?n=E_(s.substr(4),s):(r=K6.exec(Eg(s,t)))?n=x_(r[1],s):(t.trimForExclusions?t8:e8).test(s)?n=k_(s,t):(r=s8.exec(Eg(s,t)))?n=J6(r[1].substr(1),s,!0):(r=i8.exec(Eg(s,t)))?n=J6(r[1],s,!1):n=$_(s),kg.set(i,n),G6(n,e)}function G6(e,t){if(typeof t=="string")return e;const s=function(i,n){return _n(i,t.base,!ut)?e(dL(i.substr(t.base.length),qt),n):null};return s.allBasenames=e.allBasenames,s.allPaths=e.allPaths,s.basenames=e.basenames,s.patterns=e.patterns,s}function Eg(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function E_(e,t){return function(s,i){return typeof s=="string"&&s.endsWith(e)?t:null}}function x_(e,t){const s=`/${e}`,i=`\\${e}`,n=function(o,a){return typeof o!="string"?null:a?a===e?t:null:o===e||o.endsWith(s)||o.endsWith(i)?t:null},r=[e];return n.basenames=r,n.patterns=[t],n.allBasenames=r,n}function k_(e,t){const s=Z6(e.slice(1,-1).split(",").map(a=>yg(a,t)).filter(a=>a!==bi),e),i=s.length;if(!i)return bi;if(i===1)return s[0];const n=function(a,c){for(let l=0,u=s.length;l<u;l++)if(s[l](a,c))return e;return null},r=s.find(a=>!!a.allBasenames);r&&(n.allBasenames=r.allBasenames);const o=s.reduce((a,c)=>c.allPaths?a.concat(c.allPaths):a,[]);return o.length&&(n.allPaths=o),n}function J6(e,t,s){const i=qt===$e.sep,n=i?e:e.replace(Q6,qt),r=qt+n,o=$e.sep+e;let a;return s?a=function(c,l){return typeof c=="string"&&(c===n||c.endsWith(r)||!i&&(c===e||c.endsWith(o)))?t:null}:a=function(c,l){return typeof c=="string"&&(c===n||!i&&c===e)?t:null},a.allPaths=[(s?"*/":"./")+e],a}function $_(e){try{const t=new RegExp(`^${q6(e)}$`);return function(s){return t.lastIndex=0,typeof s=="string"&&t.test(s)?e:null}}catch{return bi}}function S_(e,t={}){if(!e)return $g;if(typeof e=="string"||P_(e)){const s=yg(e,t);if(s===bi)return $g;const i=function(n,r){return!!s(n,r)};return s.allBasenames&&(i.allBasenames=s.allBasenames),s.allPaths&&(i.allPaths=s.allPaths),i}return I_(e,t)}function P_(e){const t=e;return t?typeof t.base=="string"&&typeof t.pattern=="string":!1}function I_(e,t){const s=Z6(Object.getOwnPropertyNames(e).map(a=>D_(a,e[a],t)).filter(a=>a!==bi)),i=s.length;if(!i)return bi;if(!s.some(a=>!!a.requiresSiblings)){if(i===1)return s[0];const a=function(u,h){let f;for(let p=0,g=s.length;p<g;p++){const w=s[p](u,h);if(typeof w=="string")return w;Op(w)&&(f||(f=[]),f.push(w))}return f?(async()=>{for(const p of f){const g=await p;if(typeof g=="string")return g}return null})():null},c=s.find(u=>!!u.allBasenames);c&&(a.allBasenames=c.allBasenames);const l=s.reduce((u,h)=>h.allPaths?u.concat(h.allPaths):u,[]);return l.length&&(a.allPaths=l),a}const n=function(a,c,l){let u,h;for(let f=0,p=s.length;f<p;f++){const g=s[f];g.requiresSiblings&&l&&(c||(c=ht(a)),u||(u=c.substr(0,c.length-gr(a).length)));const w=g(a,c,u,l);if(typeof w=="string")return w;Op(w)&&(h||(h=[]),h.push(w))}return h?(async()=>{for(const f of h){const p=await f;if(typeof p=="string")return p}return null})():null},r=s.find(a=>!!a.allBasenames);r&&(n.allBasenames=r.allBasenames);const o=s.reduce((a,c)=>c.allPaths?a.concat(c.allPaths):a,[]);return o.length&&(n.allPaths=o),n}function D_(e,t,s){if(t===!1)return bi;const i=yg(e,s);if(i===bi)return bi;if(typeof t=="boolean")return i;if(t){const n=t.when;if(typeof n=="string"){const r=(o,a,c,l)=>{if(!l||!i(o,a))return null;const u=n.replace("$(basename)",()=>c),h=l(u);return Op(h)?h.then(f=>f?e:null):h?e:null};return r.requiresSiblings=!0,r}}return i}function Z6(e,t){const s=e.filter(a=>!!a.basenames);if(s.length<2)return e;const i=s.reduce((a,c)=>{const l=c.basenames;return l?a.concat(l):a},[]);let n;if(t){n=[];for(let a=0,c=i.length;a<c;a++)n.push(t)}else n=s.reduce((a,c)=>{const l=c.patterns;return l?a.concat(l):a},[]);const r=function(a,c){if(typeof a!="string")return null;if(!c){let u;for(u=a.length;u>0;u--){const h=a.charCodeAt(u-1);if(h===47||h===92)break}c=a.substr(u)}const l=i.indexOf(c);return l!==-1?n[l]:null};r.basenames=i,r.patterns=n,r.allBasenames=i;const o=e.filter(a=>!a.basenames);return o.push(r),o}function Y6(e,t){return rn(e,t,(s,i)=>typeof s=="string"&&typeof i=="string"?s===i:typeof s!="string"&&typeof i!="string"?s.base===i.base&&s.pattern===i.pattern:!1)}var Yo,xg,tl,sl,Q6,X6,K6,e8,t8,s8,i8,kg,$g,bi,Sg=v({"out-build/vs/base/common/glob.js"(){"use strict";kt(),Ae(),an(),Jt(),he(),te(),at(),Yo="**",xg="/",tl="[/\\\\]",sl="[^/\\\\]",Q6=/\//g,X6=/^\*\*\/\*\.[\w\.-]+$/,K6=/^\*\*\/([\w\.-]+)\/?$/,e8=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,t8=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,s8=/^\*\*((\/[\w\.-]+)+)\/?$/,i8=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,kg=new Ga(1e4),$g=function(){return!1},bi=function(){return null}}});function n8(e){return typeof e.correlationId=="number"}function A_(e){return e.recursive===!0}function r8(e){return e.map(t=>({type:t.type,resource:y.revive(t.resource),cId:t.cId}))}function L_(e){const t=new l8;for(const s of e)t.processEvent(s);return t.coalesce()}function R_(e,t){return typeof t=="string"&&!t.startsWith(Yo)&&!mr(t)?{base:e,pattern:t}:t}function o8(e,t){const s=[];for(const i of t)s.push(S_(R_(e,i)));return s}function N_(e,t){if(typeof t=="number")switch(e.type){case 1:return(t&4)===0;case 2:return(t&8)===0;case 0:return(t&2)===0}return!1}function O_(e){if(typeof e=="number"){const t=[];return e&4&&t.push("Added"),e&8&&t.push("Deleted"),e&2&&t.push("Updated"),t.length===0?"<all>":`[${t.join(", ")}]`}return"<none>"}var Pg,a8,c8,l8,Qo=v({"out-build/vs/platform/files/common/watcher.js"(){"use strict";Sg(),V(),he(),te(),Q(),Ge(),Pg=class hA extends W{static{this.a=5}constructor(t,s,i,n){super(),this.h=t,this.j=s,this.m=i,this.n=n,this.c=this.B(new Qa),this.f=void 0,this.g=0}s(){const t=new rt;this.c.value=t,this.b=this.r(t),this.b.setVerboseLogging(this.m),t.add(this.b.onDidChangeFile(s=>this.h(s))),t.add(this.b.onDidLogMessage(s=>this.j(s))),t.add(this.b.onDidError(s=>this.t(s.error,s.request)))}t(t,s){this.u(t,s)?this.g<hA.a&&this.f?(this.y(`restarting watcher after unexpected error: ${t}`),this.w(this.f)):this.y(`gave up attempting to restart watcher after unexpected error: ${t}`):this.y(t)}u(t,s){return!(!this.n.restartOnError||s||t.indexOf("No space left on device")!==-1||t.indexOf("EMFILE")!==-1)}w(t){this.g++,this.s(),this.watch(t)}async watch(t){this.f=t,await this.b?.watch(t)}async setVerboseLogging(t){this.m=t,await this.b?.setVerboseLogging(t)}y(t){this.j({type:"error",message:`[File Watcher (${this.n.type})] ${t}`})}z(t){this.j({type:"trace",message:`[File Watcher (${this.n.type})] ${t}`})}dispose(){return this.b=void 0,super.dispose()}},a8=class extends Pg{constructor(e,t,s){super(e,t,s,{type:"node.js",restartOnError:!1})}},c8=class extends Pg{constructor(e,t,s){super(e,t,s,{type:"universal",restartOnError:!0})}},l8=class{constructor(){this.a=new Set,this.b=new Map}c(e){return ut?e.resource.fsPath:e.resource.fsPath.toLowerCase()}processEvent(e){const t=this.b.get(this.c(e));let s=!1;if(t){const i=t.type,n=e.type;t.resource.fsPath!==e.resource.fsPath&&(e.type===2||e.type===1)?s=!0:i===1&&n===2?(this.b.delete(this.c(e)),this.a.delete(t)):i===2&&n===1?t.type=0:i===1&&n===0||(t.type=n)}else s=!0;s&&(this.a.add(e),this.b.set(this.c(e),e))}coalesce(){const e=[],t=[];return Array.from(this.a).filter(s=>s.type!==2?(e.push(s),!1):!0).sort((s,i)=>s.resource.fsPath.length-i.resource.fsPath.length).filter(s=>t.some(i=>GO(s.resource.fsPath,i,!ut))?!1:(t.push(s.resource.fsPath),!0)).concat(e)}}}}),u8,C_=v({"out-build/vs/platform/files/common/diskFileSystemProvider.js"(){"use strict";kt(),Ae(),ge(),re(),an(),V(),he(),Qo(),Ie(),u8=class extends W{constructor(e,t){super(),this.a=e,this.b=t,this.c=this.B(new D),this.onDidChangeFile=this.c.event,this.g=this.B(new D),this.onDidWatchError=this.g.event,this.m=[],this.n=this.B(new Er(this.h(this.m.length))),this.z=[],this.C=this.B(new Er(this.h(this.z.length)))}watch(e,t){return t.recursive||this.b?.watcher?.forceUniversal?this.r(e,t):this.D(e,t)}h(e){return e>200?500:0}r(e,t){const s=this.s(e,t),i=ly(this.m,s);return this.t(),De(()=>{i(),this.t()})}s(e,t){const s={path:this.M(e),excludes:t.excludes,includes:t.includes,recursive:t.recursive,filter:t.filter,correlationId:t.correlationId};if(A_(s)){const i=this.b?.watcher?.recursive?.usePolling;i===!0?s.pollingInterval=this.b?.watcher?.recursive?.pollingInterval??5e3:Array.isArray(i)&&i.includes(s.path)&&(s.pollingInterval=this.b?.watcher?.recursive?.pollingInterval??5e3)}return s}t(){this.n.trigger(()=>this.u(),this.h(this.m.length)).catch(e=>Gt(e))}u(){return this.j||(this.j=this.B(this.w(e=>this.c.fire(r8(e)),e=>this.I(e),this.a.getLevel()===G.Trace)),this.B(this.a.onDidChangeLogLevel(()=>{this.j?.setVerboseLogging(this.a.getLevel()===G.Trace)}))),this.j.watch(this.m)}D(e,t){const s={path:this.M(e),excludes:t.excludes,includes:t.includes,recursive:!1,filter:t.filter,correlationId:t.correlationId},i=ly(this.z,s);return this.F(),De(()=>{i(),this.F()})}F(){this.C.trigger(()=>this.G(),this.h(this.z.length)).catch(e=>Gt(e))}G(){return this.y||(this.y=this.B(this.H(e=>this.c.fire(r8(e)),e=>this.I(e),this.a.getLevel()===G.Trace)),this.B(this.a.onDidChangeLogLevel(()=>{this.y?.setVerboseLogging(this.a.getLevel()===G.Trace)}))),this.y.watch(this.z)}I(e){e.type==="error"&&this.g.fire(e.message),this.J(e)}J(e){this.a[e.type](e.message)}L(e){return Hs(e.fsPath)}M(e){const t=this.L(e);return SL(t)}}}}),__=v({"out-build/vs/base/common/decorators/cancelPreviousCalls.js"(){"use strict";be(),V(),Lt()}});function Oe(e,t,s){let i=null,n=null;if(typeof s.value=="function"?(i="value",n=s.value,n.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof s.get=="function"&&(i="get",n=s.get),!n)throw new Error("not supported");const r=`$memoize$${t}`;s[i]=function(...o){return this.hasOwnProperty(r)||Object.defineProperty(this,r,{configurable:!1,enumerable:!1,writable:!1,value:n.apply(this,o)}),this[r]}}var Ig=v({"out-build/vs/base/common/decorators.js"(){"use strict";__()}});function Xo(e){switch(e){case 100:return"req";case 101:return"cancel";case 102:return"subscribe";case 103:return"unsubscribe"}}function Qh(e){switch(e){case 200:return"init";case 201:return"reply:";case 202:case 203:return"replyErr:";case 204:return"event:"}}function Ko(e){let t=0;for(let s=0;;s+=7){const i=e.read(1);if(t|=(i.buffer[0]&127)<<s,!(i.buffer[0]&128))return t}}function ea(e,t){if(t===0){e.write(p8);return}let s=0;for(let n=t;n!==0;n=n>>>7)s++;const i=R.alloc(s);for(let n=0;t!==0;n++)i.buffer[n]=t&127,t=t>>>7,t>0&&(i.buffer[n]|=128);e.write(i)}function Vn(e){const t=R.alloc(1);return t.writeUInt8(e,0),t}function il(e,t){if(typeof t>"u")e.write(Wn.Undefined);else if(typeof t=="string"){const s=R.fromString(t);e.write(Wn.String),ea(e,s.byteLength),e.write(s)}else if(R.isNativeBuffer(t)){const s=R.wrap(t);e.write(Wn.Buffer),ea(e,s.byteLength),e.write(s)}else if(t instanceof R)e.write(Wn.VSBuffer),ea(e,t.byteLength),e.write(t);else if(Array.isArray(t)){e.write(Wn.Array),ea(e,t.length);for(const s of t)il(e,s)}else if(typeof t=="number"&&(t|0)===t)e.write(Wn.Uint),ea(e,t);else{const s=R.fromString(JSON.stringify(t));e.write(Wn.Object),ea(e,s.byteLength),e.write(s)}}function ta(e){switch(e.read(1).readUInt8(0)){case os.Undefined:return;case os.String:return e.read(Ko(e)).toString();case os.Buffer:return e.read(Ko(e)).buffer;case os.VSBuffer:return e.read(Ko(e));case os.Array:{const s=Ko(e),i=[];for(let n=0;n<s;n++)i.push(ta(e));return i}case os.Object:return JSON.parse(e.read(Ko(e)).toString());case os.Int:return Ko(e)}}function h8(e){return{call(t,s,i){return e.then(n=>n.call(t,s,i))},listen(t,s){const i=new wp;return e.then(n=>i.input=n.listen(t,s)),i.event}}}function M_(e){let t=!1;return{call(s,i,n){return t?e.call(s,i,n):bo(0).then(()=>t=!0).then(()=>e.call(s,i,n))},listen(s,i){if(t)return e.listen(s,i);const n=new wp;return bo(0).then(()=>t=!0).then(()=>n.input=e.listen(s,i)),n.event}}}var f8,d8,Tr,p8,Xh,Dg,os,Wn,m8,g8,Kh,w8,v8,sa,ia=v({"out-build/vs/base/parts/ipc/common/ipc.js"(){"use strict";kt(),Ae(),Le(),Lt(),Ig(),ge(),re(),yu(),V(),Oc(),at(),be(),function(e){e[e.Promise=100]="Promise",e[e.PromiseCancel=101]="PromiseCancel",e[e.EventListen=102]="EventListen",e[e.EventDispose=103]="EventDispose"}(f8||(f8={})),function(e){e[e.Initialize=200]="Initialize",e[e.PromiseSuccess=201]="PromiseSuccess",e[e.PromiseError=202]="PromiseError",e[e.PromiseErrorObj=203]="PromiseErrorObj",e[e.EventFire=204]="EventFire"}(d8||(d8={})),function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(Tr||(Tr={})),p8=Vn(0),Xh=class{constructor(e){this.b=e,this.a=0}read(e){const t=this.b.slice(this.a,this.a+e);return this.a+=t.byteLength,t}},Dg=class{constructor(){this.a=[]}get buffer(){return R.concat(this.a)}write(e){this.a.push(e)}},function(e){e[e.Undefined=0]="Undefined",e[e.String=1]="String",e[e.Buffer=2]="Buffer",e[e.VSBuffer=3]="VSBuffer",e[e.Array=4]="Array",e[e.Object=5]="Object",e[e.Int=6]="Int"}(os||(os={})),Wn={Undefined:Vn(os.Undefined),String:Vn(os.String),Buffer:Vn(os.Buffer),VSBuffer:Vn(os.VSBuffer),Array:Vn(os.Array),Object:Vn(os.Object),Uint:Vn(os.Int)},m8=class{constructor(e,t,s=null,i=1e3){this.h=e,this.j=t,this.k=s,this.l=i,this.b=new Map,this.d=new Map,this.g=new Map,this.f=this.h.onMessage(n=>this.q(n)),this.m({type:200})}registerChannel(e,t){this.b.set(e,t),setTimeout(()=>this.w(e),0)}m(e){switch(e.type){case 200:{const t=this.o([e.type]);this.k?.logOutgoing(t,0,1,Qh(e.type));return}case 201:case 202:case 204:case 203:{const t=this.o([e.type,e.id],e.data);this.k?.logOutgoing(t,e.id,1,Qh(e.type),e.data);return}}}o(e,t=void 0){const s=new Dg;return il(s,e),il(s,t),this.p(s.buffer)}p(e){try{return this.h.send(e),e.byteLength}catch{return 0}}q(e){const t=new Xh(e),s=ta(t),i=ta(t),n=s[0];switch(n){case 100:return this.k?.logIncoming(e.byteLength,s[1],1,`${Xo(n)}: ${s[2]}.${s[3]}`,i),this.s({type:n,id:s[1],channelName:s[2],name:s[3],arg:i});case 102:return this.k?.logIncoming(e.byteLength,s[1],1,`${Xo(n)}: ${s[2]}.${s[3]}`,i),this.t({type:n,id:s[1],channelName:s[2],name:s[3],arg:i});case 101:return this.k?.logIncoming(e.byteLength,s[1],1,`${Xo(n)}`),this.u({type:n,id:s[1]});case 103:return this.k?.logIncoming(e.byteLength,s[1],1,`${Xo(n)}`),this.u({type:n,id:s[1]})}}s(e){const t=this.b.get(e.channelName);if(!t){this.v(e);return}const s=new Oi;let i;try{i=t.call(this.j,e.name,e.arg,s.token)}catch(o){i=Promise.reject(o)}const n=e.id;i.then(o=>{this.m({id:n,data:o,type:201})},o=>{o instanceof Error?this.m({id:n,data:{message:o.message,name:o.name,stack:o.stack?o.stack.split(`
`):void 0},type:202}):this.m({id:n,data:o,type:203})}).finally(()=>{r.dispose(),this.d.delete(e.id)});const r=De(()=>s.cancel());this.d.set(e.id,r)}t(e){const t=this.b.get(e.channelName);if(!t){this.v(e);return}const s=e.id,n=t.listen(this.j,e.name,e.arg)(r=>this.m({id:s,data:r,type:204}));this.d.set(e.id,n)}u(e){const t=this.d.get(e.id);t&&(t.dispose(),this.d.delete(e.id))}v(e){let t=this.g.get(e.channelName);t||(t=[],this.g.set(e.channelName,t));const s=setTimeout(()=>{console.error(`Unknown channel: ${e.channelName}`),e.type===100&&this.m({id:e.id,data:{name:"Unknown channel",message:`Channel name '${e.channelName}' timed out after ${this.l}ms`,stack:void 0},type:202})},this.l);t.push({request:e,timeoutTimer:s})}w(e){const t=this.g.get(e);if(t){for(const s of t)switch(clearTimeout(s.timeoutTimer),s.request.type){case 100:this.s(s.request);break;case 102:this.t(s.request);break}this.g.delete(e)}}dispose(){this.f&&(this.f.dispose(),this.f=null),jt(this.d.values()),this.d.clear()}},function(e){e[e.LocalSide=0]="LocalSide",e[e.OtherSide=1]="OtherSide"}(g8||(g8={})),Kh=class{constructor(e,t=null){this.l=e,this.a=!1,this.b=Tr.Uninitialized,this.d=new Set,this.f=new Map,this.g=0,this.k=new D,this.onDidInitialize=this.k.event,this.h=this.l.onMessage(s=>this.s(s)),this.j=t}getChannel(e){const t=this;return{call(s,i,n){return t.a?Promise.reject(new Dt):t.m(e,s,i,n)},listen(s,i){return t.a?B.None:t.o(e,s,i)}}}m(e,t,s,i=Ne.None){const n=this.g++,o={id:n,type:100,channelName:e,name:t,arg:s};if(i.isCancellationRequested)return Promise.reject(new Dt);let a,c;return new Promise((u,h)=>{if(i.isCancellationRequested)return h(new Dt);const f=()=>{const w=b=>{switch(b.type){case 201:this.f.delete(n),u(b.data);break;case 202:{this.f.delete(n);const x=new Error(b.data.message);x.stack=Array.isArray(b.data.stack)?b.data.stack.join(`
`):b.data.stack,x.name=b.data.name,h(x);break}case 203:this.f.delete(n),h(b.data);break}};this.f.set(n,w),this.p(o)};let p=null;this.b===Tr.Idle?f():(p=un(w=>this.u()),p.then(()=>{p=null,f()}));const g=()=>{p?(p.cancel(),p=null):this.p({id:n,type:101}),h(new Dt)};a=i.onCancellationRequested(g),c={dispose:bu(()=>{g(),a.dispose()})},this.d.add(c)}).finally(()=>{a?.dispose(),this.d.delete(c)})}o(e,t,s){const i=this.g++,r={id:i,type:102,channelName:e,name:t,arg:s};let o=null;const a=new D({onWillAddFirstListener:()=>{const l=()=>{this.d.add(a),this.p(r)};this.b===Tr.Idle?l():(o=un(u=>this.u()),o.then(()=>{o=null,l()}))},onDidRemoveLastListener:()=>{o?(o.cancel(),o=null):(this.d.delete(a),this.p({id:i,type:103}))}}),c=l=>a.fire(l.data);return this.f.set(i,c),a.event}p(e){switch(e.type){case 100:case 102:{const t=this.q([e.type,e.id,e.channelName,e.name],e.arg);this.j?.logOutgoing(t,e.id,0,`${Xo(e.type)}: ${e.channelName}.${e.name}`,e.arg);return}case 101:case 103:{const t=this.q([e.type,e.id]);this.j?.logOutgoing(t,e.id,0,Xo(e.type));return}}}q(e,t=void 0){const s=new Dg;return il(s,e),il(s,t),this.r(s.buffer)}r(e){try{return this.l.send(e),e.byteLength}catch{return 0}}s(e){const t=new Xh(e),s=ta(t),i=ta(t),n=s[0];switch(n){case 200:return this.j?.logIncoming(e.byteLength,0,0,Qh(n)),this.t({type:s[0]});case 201:case 202:case 204:case 203:return this.j?.logIncoming(e.byteLength,s[1],0,Qh(n),i),this.t({type:s[0],id:s[1],data:i})}}t(e){if(e.type===200){this.b=Tr.Idle,this.k.fire();return}this.f.get(e.id)?.(e)}get onDidInitializePromise(){return B.toPromise(this.onDidInitialize)}u(){return this.b===Tr.Idle?Promise.resolve():this.onDidInitializePromise}dispose(){this.a=!0,this.h&&(this.h.dispose(),this.h=null),jt(this.d.values()),this.d.clear()}},__decorate([Oe],Kh.prototype,"onDidInitializePromise",null),w8=class{get connections(){const e=[];return this.f.forEach(t=>e.push(t)),e}constructor(e,t,s){this.a=new Map,this.f=new Set,this.g=new D,this.onDidAddConnection=this.g.event,this.h=new D,this.onDidRemoveConnection=this.h.event,this.j=new rt,this.j.add(e(({protocol:i,onDidClientDisconnect:n})=>{const r=B.once(i.onMessage);this.j.add(r(o=>{const a=new Xh(o),c=ta(a),l=new m8(i,c,t,s),u=new Kh(i,t);this.a.forEach((f,p)=>l.registerChannel(p,f));const h={channelServer:l,channelClient:u,ctx:c};this.f.add(h),this.g.fire(h),this.j.add(n(()=>{l.dispose(),u.dispose(),this.f.delete(h),this.h.fire(h)}))}))}))}getChannel(e,t){const s=this;return{call(i,n,r){let o;if($u(t)){const c=eL(s.connections.filter(t));o=c?Promise.resolve(c):B.toPromise(B.filter(s.onDidAddConnection,t))}else o=t.routeCall(s,i,n);const a=o.then(c=>c.channelClient.getChannel(e));return h8(a).call(i,n,r)},listen(i,n){if($u(t))return s.k(e,t,i,n);const r=t.routeEvent(s,i,n).then(o=>o.channelClient.getChannel(e));return h8(r).listen(i,n)}}}k(e,t,s,i){const n=this;let r;const o=new D({onWillAddFirstListener:()=>{r=new rt;const a=new My,c=new Map,l=h=>{const p=h.channelClient.getChannel(e).listen(s,i),g=a.add(p);c.set(h,g)},u=h=>{const f=c.get(h);f&&(f.dispose(),c.delete(h))};n.connections.filter(t).forEach(l),B.filter(n.onDidAddConnection,t)(l,void 0,r),n.onDidRemoveConnection(u,void 0,r),a.event(o.fire,o,r),r.add(a)},onDidRemoveLastListener:()=>{r?.dispose(),r=void 0}});return n.j.add(o),o.event}registerChannel(e,t){this.a.set(e,t);for(const s of this.f)s.channelServer.registerChannel(e,t)}dispose(){this.j.dispose();for(const e of this.f)e.channelClient.dispose(),e.channelServer.dispose();this.f.clear(),this.a.clear(),this.g.dispose(),this.h.dispose()}},v8=class{constructor(e){this.a=e}routeCall(e){return this.b(e)}routeEvent(e){return this.b(e)}async b(e){for(const t of e.connections)if(await Promise.resolve(this.a(t.ctx)))return Promise.resolve(t);return await B.toPromise(e.onDidAddConnection),await this.b(e)}},function(e){function t(r,o,a){const c=r,l=a&&a.disableMarshalling,u=new Map;for(const h in c)i(h)&&u.set(h,B.buffer(c[h],!0,void 0,o));return new class{listen(h,f,p){const g=u.get(f);if(g)return g;const w=c[f];if(typeof w=="function"){if(n(f))return w.call(c,p);if(i(f))return u.set(f,B.buffer(c[f],!0,void 0,o)),u.get(f)}throw new nn(`Event not found: ${f}`)}call(h,f,p){const g=c[f];if(typeof g=="function"){if(!l&&Array.isArray(p))for(let b=0;b<p.length;b++)p[b]=Qs(p[b]);let w=g.apply(c,p);return w instanceof Promise||(w=Promise.resolve(w)),w}throw new nn(`Method not found: ${f}`)}}}e.fromService=t;function s(r,o){const a=o&&o.disableMarshalling;return new Proxy({},{get(c,l){if(typeof l=="string")return o?.properties?.has(l)?o.properties.get(l):n(l)?function(u){return r.listen(l,u)}:i(l)?r.listen(l):async function(...u){let h;o&&!At(o.context)?h=[o.context,...u]:h=u;const f=await r.call(l,h);return a?f:Qs(f)};throw new nn(`Property not found: ${String(l)}`)}})}e.toService=s;function i(r){return r[0]==="o"&&r[1]==="n"&&Ty(r.charCodeAt(2))}function n(r){return/^onDynamic/.test(r)&&Ty(r.charCodeAt(9))}}(sa||(sa={}))}});function U_(e){const t=e;return t&&typeof t.type=="string"&&typeof t.severity=="string"}function j_(e){const t=[];let s;try{const i=JSON.parse(e.arguments),n=i[i.length-1];n&&n.__$stack&&(i.pop(),s=n.__$stack),t.push(...i)}catch{t.push("Unable to log remote console arguments",e.arguments)}return{args:t,stack:s}}function T_(e){if(!e)return e;const t=e.indexOf(`
`);return t===-1?e:e.substring(0,t)}function F_(e,t){const{args:s,stack:i}=j_(e),n=typeof s[0]=="string"&&s.length===1;let r=T_(i);r&&(r=`(${r.trim()})`);let o=[];if(typeof s[0]=="string"?r&&n?o=[`%c[${t}] %c${s[0]} %c${r}`,na("blue"),na(""),na("grey")]:o=[`%c[${t}] %c${s[0]}`,na("blue"),na(""),...s.slice(1)]:o=[`%c[${t}]%`,na("blue"),...s],r&&!n&&o.push(r),typeof console[e.severity]!="function")throw new Error("Unknown console method");console[e.severity].apply(console,o)}function na(e){return`color: ${e}`}var B_=v({"out-build/vs/base/common/console.js"(){"use strict";Q()}});import{fork as z_}from"child_process";var Ag,b8=v({"out-build/vs/base/parts/ipc/node/ipc.cp.js"(){"use strict";Ae(),Le(),Lt(),B_(),ge(),re(),V(),Ft(),bm(),nh(),ia(),Ag=class{constructor(e,t){this.i=e,this.j=t,this.c=new Set,this.g=new Map,this.h=new D,this.onDidProcessExit=this.h.event;const s=t&&t.timeout?t.timeout:6e4;this.b=new Cp(s),this.d=null,this.f=null}getChannel(e){const t=this;return{call(s,i,n){return t.k(e,s,i,n)},listen(s,i){return t.l(e,s,i)}}}k(e,t,s,i=Ne.None){if(!this.b)return Promise.reject(new Error("disposed"));if(i.isCancellationRequested)return Promise.reject(ry());this.b.cancel();const n=this.n(e),r=un(c=>n.call(t,s,c)),o=i.onCancellationRequested(()=>r.cancel()),a=De(()=>r.cancel());return this.c.add(a),r.finally(()=>{o.dispose(),this.c.delete(a),this.c.size===0&&this.b&&this.b.trigger(()=>this.o())}),r}l(e,t,s){if(!this.b)return B.None;this.b.cancel();let i;const n=new D({onWillAddFirstListener:()=>{i=this.n(e).listen(t,s)(n.fire,n),this.c.add(i)},onDidRemoveLastListener:()=>{this.c.delete(i),i.dispose(),this.c.size===0&&this.b&&this.b.trigger(()=>this.o())}});return n.event}get m(){if(!this.f){const e=this.j&&this.j.args?this.j.args:[],t=Object.create(null);t.env={...pn(process.env),VSCODE_PARENT_PID:String(process.pid)},this.j&&this.j.env&&(t.env={...t.env,...this.j.env}),this.j&&this.j.freshExecArgv&&(t.execArgv=[]),this.j&&typeof this.j.debug=="number"&&(t.execArgv=["--nolazy","--inspect="+this.j.debug]),this.j&&typeof this.j.debugBrk=="number"&&(t.execArgv=["--nolazy","--inspect-brk="+this.j.debugBrk]),t.execArgv===void 0&&(t.execArgv=process.execArgv.filter(u=>!/^--inspect(-brk)?=/.test(u)).filter(u=>!u.startsWith("--vscode-"))),u9(t.env),this.d=z_(this.i,e,t);const s=new D,n=B.fromNodeEventEmitter(this.d,"message",u=>u)(u=>{if(U_(u)){F_(u,`IPC Library: ${this.j.serverName}`);return}s.fire(R.wrap(Buffer.from(u,"base64")))}),r=this.j.useQueue?pN(this.d):this.d,o=u=>this.d&&this.d.connected&&r.send(u.buffer.toString("base64")),a=s.event,c={send:o,onMessage:a};this.f=new Kh(c);const l=()=>this.o();process.once("exit",l),this.d.on("error",u=>console.warn('IPC "'+this.j.serverName+'" errored with '+u)),this.d.on("exit",(u,h)=>{process.removeListener("exit",l),n.dispose(),this.c.forEach(f=>jt(f)),this.c.clear(),u!==0&&h!=="SIGTERM"&&console.warn('IPC "'+this.j.serverName+'" crashed with exit code '+u+" and signal "+h),this.b?.cancel(),this.o(),this.h.fire({code:u,signal:h})})}return this.f}n(e){let t=this.g.get(e);return t||(t=this.m.getChannel(e),this.g.set(e,t)),t}o(){this.f&&(this.d&&(this.d.kill(),this.d=null),this.f=null,this.g.clear())}dispose(){this.h.dispose(),this.b?.cancel(),this.b=void 0,this.o(),this.c.clear()}}}}),y8,H_=v({"out-build/vs/platform/files/node/watcher/watcherClient.js"(){"use strict";Se(),ia(),b8(),Qo(),y8=class extends c8{constructor(e,t,s){super(e,t,s),this.s()}r(e){const t=e.add(new Ag(Ct.asFileUri("bootstrap-fork").fsPath,{serverName:"File Watcher",args:["--type=fileWatcher"],env:{VSCODE_ESM_ENTRYPOINT:"vs/platform/files/node/watcher/watcherMain",VSCODE_PIPE_LOGGING:"true",VSCODE_VERBOSE_LOGGING:"true"}}));return e.add(t.onDidProcessExit(({code:s,signal:i})=>this.t(`terminated by itself with code ${s}, signal: ${i} (ETERM)`))),sa.toService(M_(t.getChannel("watcher")))}}}});import{watchFile as V_,unwatchFile as W_}from"fs";var E8,q_=v({"out-build/vs/platform/files/node/watcher/baseWatcher.js"(){"use strict";V(),Qo(),re(),Q(),Ae(),oc(),ge(),E8=class extends W{constructor(){super(),this.a=this.B(new D),this.onDidChangeFile=this.a.event,this.b=this.B(new D),this.onDidLogMessage=this.b.event,this.c=this.B(new D),this.f=this.c.event,this.g=new Map,this.h=new Map,this.j=this.B(new Su),this.m=new Set,this.n=this.B(new Er(this.y())),this.r=5007,this.s=new Mu,this.R=!1,this.B(this.f(e=>this.z({id:this.u(e),correlationId:this.t(e)?e.correlationId:void 0,path:e.path})))}t(e){return n8(e)}u(e){return this.t(e)?e.correlationId:ko(e)}async watch(e){this.s.isSettled||this.s.complete(),this.s=new Mu;try{this.g.clear(),this.h.clear();for(const t of e)this.t(t)?this.g.set(t.correlationId,t):this.h.set(this.u(t),t);for(const[t]of this.j)!this.h.has(t)&&!this.g.has(t)&&(this.j.deleteAndDispose(t),this.m.delete(t));return await this.w(!1)}finally{this.s.complete()}}w(e){const t=[];for(const[s,i]of[...this.h,...this.g])this.j.has(s)||t.push(i);return this.n.trigger(()=>this.N(t),e?this.y():0).catch(s=>Gt(s))}y(){return 800}isSuspended(e){const t=this.u(e);return this.m.has(t)?"polling":this.j.has(t)}async z(e){if(this.j.has(e.id))return;const t=new rt;this.j.set(e.id,t),await this.s.p,!t.isDisposed&&(this.D(e,t),this.w(!0))}C(e){this.j.deleteAndDispose(e.id),this.m.delete(e.id),this.w(!1)}D(e,t){this.F(e,t)?(this.P(`reusing an existing recursive watcher to monitor ${e.path}`),this.m.delete(e.id)):(this.G(e,t),this.m.add(e.id))}F(e,t){const s=this.O?.subscribe(e.path,(i,n)=>{t.isDisposed||(i?this.D(e,t):n?.type===1&&this.H(e))});return s?(t.add(s),!0):!1}G(e,t){let s=!1;const i=(n,r)=>{if(t.isDisposed)return;const o=this.I(n),a=this.I(r),c=s;s=o,!o&&(a||c)&&this.H(e)};this.P(`starting fs.watchFile() on ${e.path} (correlationId: ${e.correlationId})`);try{V_(e.path,{persistent:!1,interval:this.r},i)}catch(n){this.Q(`fs.watchFile() failed with error ${n} on path ${e.path} (correlationId: ${e.correlationId})`)}t.add(De(()=>{this.P(`stopping fs.watchFile() on ${e.path} (correlationId: ${e.correlationId})`);try{W_(e.path,i)}catch(n){this.Q(`fs.unwatchFile() failed with error ${n} on path ${e.path} (correlationId: ${e.correlationId})`)}}))}H(e){this.P(`detected ${e.path} exists again, resuming watcher (correlationId: ${e.correlationId})`);const t={resource:y.file(e.path),type:1,cId:e.correlationId};this.a.fire([t]),this.J(t,e),this.C(e)}I(e){return e.ctimeMs===0&&e.ino===0}async stop(){this.j.clearAndDisposeAll(),this.m.clear()}J(e,t){if(this.R){const s=` >> normalized ${e.type===1?"[ADDED]":e.type===2?"[DELETED]":"[CHANGED]"} ${e.resource.fsPath}`;this.L(s,t)}}L(e,t){this.R&&this.P(`${e}${typeof t.correlationId=="number"?` <${t.correlationId}> `:""}`)}M(e){return`${e.path} (excludes: ${e.excludes.length>0?e.excludes:"<none>"}, includes: ${e.includes&&e.includes.length>0?JSON.stringify(e.includes):"<all>"}, filter: ${O_(e.filter)}, correlationId: ${typeof e.correlationId=="number"?e.correlationId:"<none>"})`}async setVerboseLogging(e){this.R=e}}}});import{watch as G_,promises as J_}from"fs";var x8,Z_=v({"out-build/vs/platform/files/node/watcher/nodejs/nodejsWatcherLib.js"(){"use strict";Ae(),Lt(),an(),V(),N4(),he(),te(),ct(),Q(),ds(),Qo(),go(),x8=class U1 extends W{static{this.a=100}static{this.b=75}get isReusingRecursiveWatcher(){return this.r}get failed(){return this.s}constructor(t,s,i,n,r,o){super(),this.t=t,this.u=s,this.w=i,this.y=n,this.z=r,this.C=o,this.c=this.B(new jp({maxWorkChunkSize:100,throttleDelay:200,maxBufferedWork:1e4},a=>this.w(a))),this.f=this.B(new $4(a=>this.M(a),U1.b)),this.m=new Oi,this.n=new Nn(async()=>{let a=this.t.path;try{a=await ke.realpath(this.t.path),this.t.path!==a&&this.Q(`correcting a path to watch that seems to be a symbolic link (original: ${this.t.path}, real: ${a})`)}catch{}return a}),this.r=!1,this.s=!1,this.g=o8(this.t.path,this.t.excludes),this.h=this.t.includes?o8(this.t.path,this.t.includes):void 0,this.j=n8(this.t)?this.t.filter:void 0,this.ready=this.D()}async D(){try{const t=await J_.stat(this.t.path);if(this.m.token.isCancellationRequested)return;this.B(await this.G(t.isDirectory()))}catch(t){t.code!=="ENOENT"?this.O(t):this.Q(`ignoring a path for watching who's stat info failed to resolve: ${this.t.path} (error: ${t})`),this.F()}}F(){this.s=!0,this.y?.()}async G(t){const s=new rt;return this.H(t,s)?(this.Q(`reusing an existing recursive watcher for ${this.t.path}`),this.r=!0):(this.r=!1,await this.I(t,s)),s}H(t,s){if(t)return!1;const i=y.file(this.t.path),n=this.u?.subscribe(this.t.path,async(r,o)=>{if(!s.isDisposed)if(r){const a=await this.G(t);s.isDisposed?a.dispose():s.add(a)}else o&&(typeof o.cId=="number"||typeof this.t.correlationId=="number")&&this.L({resource:i,type:o.type,cId:this.t.correlationId},!0)});return n?(s.add(n),!0):!1}async I(t,s){const i=await this.n.value;if(this.m.token.isCancellationRequested)return;if(Cs&&_n(i,"/Volumes/",!0)){this.O(`Refusing to watch ${i} for changes using fs.watch() for possibly being a network share where watching is unreliable and unstable.`);return}const n=new Oi(this.m.token);s.add(De(()=>n.dispose(!0)));const r=new rt;s.add(r);try{const o=y.file(this.t.path),a=ht(i),c=G_(i);r.add(De(()=>{c.removeAllListeners(),c.close()})),this.Q(`Started watching: '${i}'`);const l=new Set;if(t)try{for(const h of await ke.readdir(i))l.add(h)}catch(h){this.O(h)}if(n.token.isCancellationRequested)return;const u=new Map;r.add(De(()=>{for(const[,h]of u)h.dispose();u.clear()})),c.on("error",(h,f)=>{n.token.isCancellationRequested||(this.O(`Failed to watch ${i} for changes using fs.watch() (${h}, ${f})`),this.F())}),c.on("change",(h,f)=>{if(n.token.isCancellationRequested)return;this.C&&this.R(`[raw] ["${h}"] ${f}`);let p="";if(f&&(p=f.toString(),Cs&&(p=Tp(p))),!(!p||h!=="change"&&h!=="rename"))if(t)if(h==="rename"){u.get(p)?.dispose();const g=setTimeout(async()=>{if(u.delete(p),Au(p,a,!ut)&&!await ke.exists(i)){this.J(o);return}if(n.token.isCancellationRequested)return;const w=await this.N(_(i,p));if(n.token.isCancellationRequested)return;let b;w?l.has(p)?b=0:(b=1,l.add(p)):(l.delete(p),b=2),this.L({resource:oe(o,p),type:b,cId:this.t.correlationId})},U1.a);u.set(p,De(()=>clearTimeout(g)))}else{let g;l.has(p)?g=0:(g=1,l.add(p)),this.L({resource:oe(o,p),type:g,cId:this.t.correlationId})}else if(h==="rename"||!Au(p,a,!ut)){const g=setTimeout(async()=>{const w=await ke.exists(i);n.token.isCancellationRequested||(w?(this.L({resource:o,type:0,cId:this.t.correlationId},!0),r.add(await this.G(!1))):this.J(o))},U1.a);r.clear(),r.add(De(()=>clearTimeout(g)))}else this.L({resource:o,type:0,cId:this.t.correlationId},!0)})}catch(o){if(n.token.isCancellationRequested)return;this.O(`Failed to watch ${i} for changes using fs.watch() (${o.toString()})`),this.F()}}J(t){this.P("Watcher shutdown because watched path got deleted"),this.L({resource:t,type:2,cId:this.t.correlationId},!0),this.f.flush(),this.F()}L(t,s=!1){this.m.token.isCancellationRequested||(this.C&&this.R(`${t.type===1?"[ADDED]":t.type===2?"[DELETED]":"[CHANGED]"} ${t.resource.fsPath}`),!s&&this.g.some(i=>i(t.resource.fsPath))?this.C&&this.R(` >> ignored (excluded) ${t.resource.fsPath}`):!s&&this.h&&this.h.length>0&&!this.h.some(i=>i(t.resource.fsPath))?this.C&&this.R(` >> ignored (not included) ${t.resource.fsPath}`):this.f.work(t))}M(t){const s=L_(t),i=[];for(const r of s){if(N_(r,this.j)){this.C&&this.R(` >> ignored (filtered) ${r.resource.fsPath}`);continue}i.push(r)}if(i.length===0)return;if(this.C)for(const r of i)this.R(` >> normalized ${r.type===1?"[ADDED]":r.type===2?"[DELETED]":"[CHANGED]"} ${r.resource.fsPath}`);this.c.work(i)?this.c.pending>0&&this.Q(`started throttling events due to large amount of file change events at once (pending: ${this.c.pending}, most recent change: ${i[0].resource.fsPath}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`):this.P(`started ignoring events due to too many file change events at once (incoming: ${i.length}, most recent change: ${i[0].resource.fsPath}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`)}async N(t){if(ut)return ke.exists(t);try{const s=ht(t);return(await ke.readdir(Ut(t))).some(n=>n===s)}catch(s){return this.Q(s),!1}}setVerboseLogging(t){this.C=t}O(t){this.m.token.isCancellationRequested||this.z?.({type:"error",message:`[File Watcher (node.js)] ${t}`})}P(t){this.m.token.isCancellationRequested||this.z?.({type:"warn",message:`[File Watcher (node.js)] ${t}`})}Q(t){!this.m.token.isCancellationRequested&&this.C&&this.z?.({type:"trace",message:`[File Watcher (node.js)] ${t}`})}R(t){!this.m.token.isCancellationRequested&&this.C&&this.Q(`${t}${typeof this.t.correlationId=="number"?` <${this.t.correlationId}> `:""}`)}dispose(){this.m.dispose(!0),super.dispose()}}}}),k8,Y_=v({"out-build/vs/platform/files/node/watcher/nodejs/nodejsWatcher.js"(){"use strict";re(),Sg(),q_(),te(),Z_(),Ae(),V(),k8=class extends E8{get watchers(){return this.S.values()}constructor(e){super(),this.O=e,this.onDidError=B.None,this.S=new Map,this.U=this.B(new Qa)}async N(e){e=this.cb(e);const t=[],s=new Set(Array.from(this.watchers));for(const i of e){const n=this.S.get(this.Z(i));n&&Y6(n.request.excludes,i.excludes)&&Y6(n.request.includes,i.includes)?s.delete(n):t.push(i)}t.length&&this.P(`Request to start watching: ${t.map(i=>this.M(i)).join(",")}`),s.size&&this.P(`Request to stop watching: ${Array.from(s).map(i=>this.M(i.request)).join(",")}`),this.U.clear();for(const i of s)this.bb(i);this.Y().work(t)}Y(){return this.U.value=new jp({maxWorkChunkSize:100,throttleDelay:100,maxBufferedWork:Number.MAX_VALUE},e=>{for(const t of e)this.ab(t)}),this.U.value}Z(e){return typeof e.correlationId=="number"?e.correlationId:this.$(e.path)}$(e){return ut?e:e.toLowerCase()}ab(e){const t=new x8(e,this.O,i=>this.a.fire(i),()=>this.c.fire(e),i=>this.b.fire(i),this.R),s={request:e,instance:t};this.S.set(this.Z(e),s)}async stop(){await super.stop();for(const e of this.watchers)this.bb(e)}bb(e){this.P("stopping file watcher",e),this.S.delete(this.Z(e.request)),e.instance.dispose()}cb(e){const t=new Map;for(const s of e){let i=t.get(s.correlationId);i||(i=new Map,t.set(s.correlationId,i));const n=this.$(s.path);i.has(n)&&this.P(`ignoring a request for watching who's path is already watched: ${this.M(s)}`),i.set(n,s)}return Array.from(t.values()).map(s=>Array.from(s.values())).flat()}async setVerboseLogging(e){super.setVerboseLogging(e);for(const t of this.watchers)t.instance.setVerboseLogging(e)}P(e,t){this.R&&this.b.fire({type:"trace",message:this.fb(e,t)})}Q(e){this.b.fire({type:"warn",message:this.fb(e)})}fb(e,t){return t?`[File Watcher (node.js)] ${e} (${this.M(t.request)})`:`[File Watcher (node.js)] ${e}`}}}}),$8,Q_=v({"out-build/vs/platform/files/node/watcher/nodejs/nodejsClient.js"(){"use strict";Qo(),Y_(),$8=class extends a8{constructor(e,t,s){super(e,t,s),this.s()}r(e){return e.add(new k8(void 0))}}}});import{promises as Fr}from"fs";var nl,ef=v({"out-build/vs/platform/files/node/diskFileSystemProvider.js"(){"use strict";Ae(),Jt(),Le(),re(),an(),V(),he(),te(),ct(),nc(),ds(),ce(),Ge(),z6(),C_(),H_(),Q_(),nl=class au extends u8{static{this.N=!1}constructor(t,s){super(t,s),this.onDidChangeCapabilities=B.None,this.R=new wt(i=>Ou.getComparisonKey(i)),this.Z=new Map,this.$=new Map,this.ab=new Map}get capabilities(){return this.O||(this.O=516126,ut&&(this.O|=1024)),this.O}async stat(t){try{const{stat:s,symbolicLink:i}=await fs.stat(this.L(t));return{type:this.Q(s,i),ctime:s.birthtime.getTime(),mtime:s.mtime.getTime(),size:s.size,permissions:(s.mode&128)===0?Vo.Locked:void 0}}catch(s){throw this.jb(s)}}async P(t){try{return await this.stat(t)}catch{return}}async realpath(t){const s=this.L(t);return ke.realpath(s)}async readdir(t){try{const s=await ke.readdir(this.L(t),{withFileTypes:!0}),i=[];return await Promise.all(s.map(async n=>{try{let r;n.isSymbolicLink()?r=(await this.stat(oe(t,n.name))).type:r=this.Q(n),i.push([n.name,r])}catch(r){this.a.trace(r)}})),i}catch(s){throw this.jb(s)}}Q(t,s){let i;return s?.dangling?i=Ls.Unknown:t.isFile()?i=Ls.File:t.isDirectory()?i=Ls.Directory:i=Ls.Unknown,s&&(i|=Ls.SymbolicLink),i}async S(t){const s=this.L(t);this.U(`[Disk FileSystemProvider]: createResourceLock() - request to acquire resource lock (${s})`);let i;for(;i=this.R.get(t);)this.U(`[Disk FileSystemProvider]: createResourceLock() - waiting for resource lock to be released (${s})`),await i.wait();const n=new Cu;return this.R.set(t,n),this.U(`[Disk FileSystemProvider]: createResourceLock() - new resource lock created (${s})`),De(()=>{this.U(`[Disk FileSystemProvider]: createResourceLock() - resource lock dispose() (${s})`),this.R.get(t)===n&&(this.U(`[Disk FileSystemProvider]: createResourceLock() - resource lock removed from resource-lock map (${s})`),this.R.delete(t)),this.U(`[Disk FileSystemProvider]: createResourceLock() - resource lock barrier open() (${s})`),n.open()})}async readFile(t,s){let i;try{s?.atomic&&(this.U(`[Disk FileSystemProvider]: atomic read operation started (${this.L(t)})`),i=await this.S(t));const n=this.L(t);return await Fr.readFile(n)}catch(n){throw this.jb(n)}finally{i?.dispose()}}U(t){au.N&&this.a.trace(t)}readFileStream(t,s,i){const n=Fu(r=>R.concat(r.map(o=>R.wrap(o))).buffer);return B6(this,t,n,r=>r.buffer,{...s,bufferSize:256*1024},i),n}async writeFile(t,s,i){return i?.atomic!==!1&&i?.atomic?.postfix&&await this.W(t)?this.X(t,oe(Lp(t),`${ln(t)}${i.atomic.postfix}`),s,i):this.Y(t,s,i)}async W(t){try{const s=this.L(t),{symbolicLink:i}=await fs.stat(s);if(i)return!1}catch{}return!0}async X(t,s,i,n){const r=new rt;try{r.add(await this.S(t)),r.add(await this.S(s)),await this.Y(s,i,n,!0);try{await this.rename(s,t,{overwrite:!0})}catch(o){try{await this.delete(s,{recursive:!1,useTrash:!1,atomic:!1})}catch{}throw o}}finally{r.dispose()}}async Y(t,s,i,n){let r;try{const o=this.L(t);if(!i.create||!i.overwrite){if(await ke.exists(o)){if(!i.overwrite)throw wn(m(2078,null),ne.FileExists)}else if(!i.create)throw wn(m(2079,null),ne.FileNotFound)}r=await this.open(t,{create:!0,unlock:i.unlock},n),await this.write(r,0,s,0,s.byteLength)}catch(o){throw await this.kb(t,o)}finally{typeof r=="number"&&await this.close(r)}}static{this.bb=!0}static configureFlushOnWrite(t){au.bb=t}async open(t,s,i){const n=this.L(t);let r;Ho(s)&&!i&&(r=await this.S(t));let o;try{if(Ho(s)&&s.unlock)try{const{stat:a}=await fs.stat(n);a.mode&128||await Fr.chmod(n,a.mode|128)}catch(a){a.code!=="ENOENT"&&this.a.trace(a)}if(me&&Ho(s))try{o=await ke.open(n,"r+"),await ke.ftruncate(o,0)}catch(a){if(a.code!=="ENOENT"&&this.a.trace(a),typeof o=="number"){try{await ke.close(o)}catch(c){this.a.trace(c)}o=void 0}}typeof o!="number"&&(o=await ke.open(n,Ho(s)?"w":"r"))}catch(a){throw r?.dispose(),Ho(s)?await this.kb(t,a):this.jb(a)}if(this.Z.set(o,0),Ho(s)&&this.ab.set(o,t),r){const a=this.$.get(o);this.U(`[Disk FileSystemProvider]: open() - storing lock for handle ${o} (${n})`),this.$.set(o,r),a&&(this.U(`[Disk FileSystemProvider]: open() - disposing a previous lock that was still stored on same handle ${o} (${n})`),a.dispose())}return o}async close(t){const s=this.$.get(t);try{if(this.Z.delete(t),this.ab.delete(t)&&au.bb)try{await ke.fdatasync(t)}catch(i){au.configureFlushOnWrite(!1),this.a.error(i)}return await ke.close(t)}catch(i){throw this.jb(i)}finally{s&&(this.$.get(t)===s&&(this.U(`[Disk FileSystemProvider]: close() - resource lock removed from handle-lock map ${t}`),this.$.delete(t)),this.U(`[Disk FileSystemProvider]: close() - disposing lock for handle ${t}`),s.dispose())}}async read(t,s,i,n,r){const o=this.cb(t,s);let a=null;try{a=(await ke.read(t,i,n,r,o)).bytesRead}catch(c){throw this.jb(c)}finally{this.db(t,o,a)}return a}cb(t,s){return s===this.Z.get(t)?null:s}db(t,s,i){const n=this.Z.get(t);typeof n=="number"&&(typeof s=="number"||(typeof i=="number"?this.Z.set(t,n+i):this.Z.delete(t)))}async write(t,s,i,n,r){return zL(()=>this.eb(t,s,i,n,r),100,3)}async eb(t,s,i,n,r){const o=this.cb(t,s);let a=null;try{a=(await ke.write(t,i,n,r,o)).bytesWritten}catch(c){throw await this.kb(this.ab.get(t),c)}finally{this.db(t,o,a)}return a}async mkdir(t){try{await Fr.mkdir(this.L(t))}catch(s){throw this.jb(s)}}async delete(t,s){try{const i=this.L(t);if(s.recursive){let n;s?.atomic!==!1&&s.atomic.postfix&&(n=_(Ut(i),`${ht(i)}${s.atomic.postfix}`)),await ke.rm(i,yo.MOVE,n)}else try{await Fr.unlink(i)}catch(n){if(n.code==="EPERM"||n.code==="EISDIR"){let r=!1;try{const{stat:o,symbolicLink:a}=await fs.stat(i);r=o.isDirectory()&&!a}catch{}if(r)await Fr.rmdir(i);else throw n}else throw n}}catch(i){throw this.jb(i)}}async rename(t,s,i){const n=this.L(t),r=this.L(s);if(n!==r)try{await this.fb(t,s,"move",i.overwrite),await ke.rename(n,r)}catch(o){throw(o.code==="EINVAL"||o.code==="EBUSY"||o.code==="ENAMETOOLONG")&&(o=new Error(m(2080,null,ht(n),ht(Ut(r)),o.toString()))),this.jb(o)}}async copy(t,s,i){const n=this.L(t),r=this.L(s);if(n!==r)try{await this.fb(t,s,"copy",i.overwrite),await ke.copy(n,r,{preserveSymlinks:!0})}catch(o){throw(o.code==="EINVAL"||o.code==="EBUSY"||o.code==="ENAMETOOLONG")&&(o=new Error(m(2081,null,ht(n),ht(Ut(r)),o.toString()))),this.jb(o)}}async fb(t,s,i,n){const r=this.L(t),o=this.L(s);let a=!1;if(!!(this.capabilities&1024)||(a=Au(r,o,!0)),a){if(i==="copy")throw wn(m(2082,null),ne.FileExists);if(i==="move")return}const l=await this.P(t);if(!l)throw wn(m(2083,null),ne.FileNotFound);const u=await this.P(s);if(u){if(!n)throw wn(m(2084,null),ne.FileExists);(l.type&Ls.File)!==0&&(u.type&Ls.File)!==0||await this.delete(s,{recursive:!0,useTrash:!1,atomic:!1})}}async cloneFile(t,s){return this.gb(t,s,!1)}async gb(t,s,i){const n=this.L(t),r=this.L(s),o=!!(this.capabilities&1024);if(Au(n,r,!o))return;const a=new rt;try{a.add(await this.S(t)),a.add(await this.S(s)),i&&await Fr.mkdir(Ut(r),{recursive:!0}),await Fr.copyFile(n,r)}catch(c){if(c.code==="ENOENT"&&!i)return this.gb(t,s,!0);throw this.jb(c)}finally{a.dispose()}}w(t,s,i){return new y8(n=>t(n),n=>s(n),i)}H(t,s,i){return new $8(n=>t(n),n=>s(n),i)}jb(t){if(t instanceof bh)return t;let s=t,i;switch(t.code){case"ENOENT":i=ne.FileNotFound;break;case"EISDIR":i=ne.FileIsADirectory;break;case"ENOTDIR":i=ne.FileNotADirectory;break;case"EEXIST":i=ne.FileExists;break;case"EPERM":case"EACCES":i=ne.NoPermissions;break;case"ERR_UNC_HOST_NOT_ALLOWED":s=`${t.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`,i=ne.Unknown;break;default:i=ne.Unknown}return wn(s,i)}async kb(t,s){let i=this.jb(s);if(t&&i.code===ne.NoPermissions)try{const{stat:n}=await fs.stat(this.L(t));n.mode&128||(i=wn(s,ne.FileWriteLocked))}catch(n){this.a.trace(n)}return i}}}});function X_(e){return e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0")+"-"+String(e.getDate()).padStart(2,"0")+"T"+String(e.getHours()).padStart(2,"0")+":"+String(e.getMinutes()).padStart(2,"0")+":"+String(e.getSeconds()).padStart(2,"0")+"."+(e.getMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}var S8,P8,tf,K_,eM,tM,sM=v({"out-build/vs/base/common/date.js"(){"use strict";ce(),go(),te(),S8=60,P8=S8*60,tf=P8*24,K_=tf*7,eM=tf*30,tM=tf*365}});function iM(e,t){return I8(e["inspect-extensions"],e["inspect-brk-extensions"],5870,t,e.debugId,e.extensionEnvironment)}function I8(e,t,s,i,n,r){const a=Number(t||e)||(i?null:s),c=a?!!t:!1;let l;if(r)try{l=JSON.parse(r)}catch{}return{port:a,break:c,debugId:n,env:l}}var Lg,Fe,nM=v({"out-build/vs/platform/environment/common/environmentService.js"(){"use strict";sM(),Ig(),Se(),he(),ri(),ct(),Q(),Lg=/^([^.]+\..+)[:=](.+)$/,Fe=class{get appRoot(){return Ut(Ct.asFileUri("").fsPath)}get userHome(){return y.file(this.b.homeDir)}get userDataPath(){return this.b.userDataDir}get appSettingsHome(){return y.file(_(this.userDataPath,"User"))}get tmpDir(){return y.file(this.b.tmpDir)}get cacheHome(){return y.file(this.userDataPath)}get stateResource(){return oe(this.appSettingsHome,"globalStorage","storage.json")}get userRoamingDataHome(){return this.appSettingsHome.with({scheme:Y.vscodeUserData})}get userDataSyncHome(){return oe(this.appSettingsHome,"sync")}get logsHome(){if(!this.args.logsPath){const e=X_(new Date).replace(/-|:|\.\d+Z$/g,"");this.args.logsPath=_(this.userDataPath,"logs",e)}return y.file(this.args.logsPath)}get sync(){return this.args.sync}get workspaceStorageHome(){return oe(this.appSettingsHome,"workspaceStorage")}get localHistoryHome(){return oe(this.appSettingsHome,"History")}get keyboardLayoutResource(){return oe(this.userRoamingDataHome,"keyboardLayout.json")}get argvResource(){const e=Ds.VSCODE_PORTABLE;return e?y.file(_(e,"argv.json")):oe(this.appSettingsHome,"argv.json")}get isExtensionDevelopment(){return!!this.args.extensionDevelopmentPath}get untitledWorkspacesHome(){return y.file(_(this.userDataPath,"Workspaces"))}get builtinExtensionsPath(){const e=this.args["builtin-extensions-dir"];return e?oi(e):Hs(_(Ct.asFileUri("").fsPath,"..","extensions"))}get extensionsDownloadLocation(){const e=this.args["extensions-download-dir"];return e?y.file(oi(e)):y.file(_(this.userDataPath,"CachedExtensionVSIXs"))}get extensionsPath(){const e=this.args["extensions-dir"];if(e)return oi(e);const t=Ds.VSCODE_EXTENSIONS;if(t)return t;const s=Ds.VSCODE_PORTABLE;return s?_(s,"extensions"):oe(this.userHome,this.c.dataFolderName,"extensions").fsPath}get extensionDevelopmentLocationURI(){const e=this.args.extensionDevelopmentPath;if(Array.isArray(e))return e.map(t=>/^[^:/?#]+?:\/\//.test(t)?y.parse(t):y.file(Hs(t)))}get extensionDevelopmentKind(){return this.args.extensionDevelopmentKind?.map(e=>e==="ui"||e==="workspace"||e==="web"?e:"workspace")}get extensionTestsLocationURI(){const e=this.args.extensionTestsPath;if(e)return/^[^:/?#]+?:\/\//.test(e)?y.parse(e):y.file(Hs(e))}get disableExtensions(){if(this.args["disable-extensions"])return!0;const e=this.args["disable-extension"];if(e){if(typeof e=="string")return[e];if(Array.isArray(e)&&e.length>0)return e}return!1}get debugExtensionHost(){return iM(this.args,this.isBuilt)}get debugRenderer(){return!!this.args.debugRenderer}get isBuilt(){return!Ds.VSCODE_DEV}get verbose(){return!!this.args.verbose}get logLevel(){return this.args.log?.find(e=>!Lg.test(e))}get extensionLogLevel(){const e=[];for(const t of this.args.log||[]){const s=Lg.exec(t);s&&s[1]&&s[2]&&e.push([s[1],s[2]])}return e.length?e:void 0}get serviceMachineIdResource(){return oe(y.file(this.userDataPath),"machineid")}get crashReporterId(){return this.args["crash-reporter-id"]}get crashReporterDirectory(){return this.args["crash-reporter-directory"]}get disableTelemetry(){return!!this.args["disable-telemetry"]}get disableWorkspaceTrust(){return!!this.args["disable-workspace-trust"]}get useInMemorySecretStorage(){return!!this.args["use-inmemory-secretstorage"]}get policyFile(){if(this.args["__enable-file-policy"]){const e=Ds.VSCODE_PORTABLE;return e?y.file(_(e,"policy.json")):oe(this.userHome,this.c.dataFolderName,"policy.json")}}get editSessionId(){return this.args.editSessionId}get continueOn(){return this.args.continueOn}set continueOn(e){this.args.continueOn=e}get args(){return this.a}constructor(e,t,s){this.a=e,this.b=t,this.c=s}},__decorate([Oe],Fe.prototype,"appRoot",null),__decorate([Oe],Fe.prototype,"userHome",null),__decorate([Oe],Fe.prototype,"userDataPath",null),__decorate([Oe],Fe.prototype,"appSettingsHome",null),__decorate([Oe],Fe.prototype,"tmpDir",null),__decorate([Oe],Fe.prototype,"cacheHome",null),__decorate([Oe],Fe.prototype,"stateResource",null),__decorate([Oe],Fe.prototype,"userRoamingDataHome",null),__decorate([Oe],Fe.prototype,"userDataSyncHome",null),__decorate([Oe],Fe.prototype,"sync",null),__decorate([Oe],Fe.prototype,"workspaceStorageHome",null),__decorate([Oe],Fe.prototype,"localHistoryHome",null),__decorate([Oe],Fe.prototype,"keyboardLayoutResource",null),__decorate([Oe],Fe.prototype,"argvResource",null),__decorate([Oe],Fe.prototype,"isExtensionDevelopment",null),__decorate([Oe],Fe.prototype,"untitledWorkspacesHome",null),__decorate([Oe],Fe.prototype,"builtinExtensionsPath",null),__decorate([Oe],Fe.prototype,"extensionsPath",null),__decorate([Oe],Fe.prototype,"extensionDevelopmentLocationURI",null),__decorate([Oe],Fe.prototype,"extensionDevelopmentKind",null),__decorate([Oe],Fe.prototype,"extensionTestsLocationURI",null),__decorate([Oe],Fe.prototype,"debugExtensionHost",null),__decorate([Oe],Fe.prototype,"logLevel",null),__decorate([Oe],Fe.prototype,"extensionLogLevel",null),__decorate([Oe],Fe.prototype,"serviceMachineIdResource",null),__decorate([Oe],Fe.prototype,"disableTelemetry",null),__decorate([Oe],Fe.prototype,"disableWorkspaceTrust",null),__decorate([Oe],Fe.prototype,"useInMemorySecretStorage",null),__decorate([Oe],Fe.prototype,"policyFile",null)}});import{homedir as D8}from"os";import{resolve as rM,isAbsolute as oM,join as ra}from"path";function aM(e,t){const s=cM(e,t),i=[s];return oM(s)||i.unshift(A8),rM(...i)}function cM(e,t){process.env.VSCODE_DEV&&(t="code-oss-dev");const s=process.env.VSCODE_PORTABLE;if(s)return ra(s,"user-data");let i=process.env.VSCODE_APPDATA;if(i)return ra(i,t);const n=e["user-data-dir"];if(n)return n;switch(process.platform){case"win32":if(i=process.env.APPDATA,!i){const r=process.env.USERPROFILE;if(typeof r!="string")throw new Error("Windows: Unexpected undefined %USERPROFILE% environment variable");i=ra(r,"AppData","Roaming")}break;case"darwin":i=ra(D8(),"Library","Application Support");break;case"linux":i=process.env.XDG_CONFIG_HOME||ra(D8(),".config");break;default:throw new Error("Platform not supported")}return ra(i,t)}var A8,lM=v({"out-build/vs/platform/environment/node/userDataPath.js"(){"use strict";A8=process.env.VSCODE_CWD||process.cwd()}});import{homedir as uM,tmpdir as hM}from"os";function fM(e,t){return I8(e["inspect-ptyhost"],e["inspect-brk-ptyhost"],5877,t,e.extensionEnvironment)}var L8,R8=v({"out-build/vs/platform/environment/node/environmentService.js"(){"use strict";nM(),lM(),L8=class extends Fe{constructor(e,t){super(e,{homeDir:uM(),tmpDir:hM(),userDataDir:aM(e,t.nameShort)},t)}}}}),Rg,rl,oa,aa=v({"out-build/vs/server/node/serverEnvironmentService.js"(){"use strict";ce(),R8(),ah(),ie(),Qt(),Ig(),Q(),ct(),he(),Rg={"disable-update-check":{type:"boolean"},auth:{type:"string"},"disable-file-downloads":{type:"boolean"},"disable-file-uploads":{type:"boolean"},"disable-getting-started-override":{type:"boolean"},locale:{type:"string"},"link-protection-trusted-domains":{type:"string[]"},host:{type:"string",cat:"o",args:"ip-address",description:m(2708,null)},port:{type:"string",cat:"o",args:"port | port range",description:m(2709,null)},"socket-path":{type:"string",cat:"o",args:"path",description:m(2710,null)},"server-base-path":{type:"string",cat:"o",args:"path",description:m(2711,null)},"connection-token":{type:"string",cat:"o",args:"token",deprecates:["connectionToken"],description:m(2712,null)},"connection-token-file":{type:"string",cat:"o",args:"path",deprecates:["connection-secret","connectionTokenFile"],description:m(2713,null)},"without-connection-token":{type:"boolean",cat:"o",description:m(2714,null)},"disable-websocket-compression":{type:"boolean"},"print-startup-performance":{type:"boolean"},"print-ip-address":{type:"boolean"},"accept-server-license-terms":{type:"boolean",cat:"o",description:m(2715,null)},"server-data-dir":{type:"string",cat:"o",description:m(2716,null)},"telemetry-level":{type:"string",cat:"o",args:"level",description:m(2717,null)},"user-data-dir":qe["user-data-dir"],"enable-smoke-test-driver":qe["enable-smoke-test-driver"],"disable-telemetry":qe["disable-telemetry"],"disable-workspace-trust":qe["disable-workspace-trust"],"file-watcher-polling":{type:"string",deprecates:["fileWatcherPolling"]},log:qe.log,logsPath:qe.logsPath,"force-disable-user-env":qe["force-disable-user-env"],"enable-proposed-api":qe["enable-proposed-api"],folder:{type:"string",deprecationMessage:"No longer supported. Folder needs to be provided in the browser URL or with `default-folder`."},workspace:{type:"string",deprecationMessage:"No longer supported. Workspace needs to be provided in the browser URL or with `default-workspace`."},"default-folder":{type:"string",description:m(2718,null)},"default-workspace":{type:"string",description:m(2719,null)},"enable-sync":{type:"boolean"},"github-auth":{type:"string"},"use-test-resolver":{type:"boolean"},"extensions-dir":qe["extensions-dir"],"extensions-download-dir":qe["extensions-download-dir"],"builtin-extensions-dir":qe["builtin-extensions-dir"],"install-extension":qe["install-extension"],"install-builtin-extension":qe["install-builtin-extension"],"update-extensions":qe["update-extensions"],"uninstall-extension":qe["uninstall-extension"],"list-extensions":qe["list-extensions"],"locate-extension":qe["locate-extension"],"show-versions":qe["show-versions"],category:qe.category,force:qe.force,"do-not-sync":qe["do-not-sync"],"do-not-include-pack-dependencies":qe["do-not-include-pack-dependencies"],"pre-release":qe["pre-release"],"start-server":{type:"boolean",cat:"e",description:m(2720,null)},"enable-remote-auto-shutdown":{type:"boolean"},"remote-auto-shutdown-without-delay":{type:"boolean"},"use-host-proxy":{type:"boolean"},"without-browser-env-var":{type:"boolean"},help:qe.help,version:qe.version,"locate-shell-integration-path":qe["locate-shell-integration-path"],compatibility:{type:"string"},_:qe._},rl=rs,oa=class extends L8{get userRoamingDataHome(){return this.appSettingsHome}get machineSettingsResource(){return oe(y.file(_(this.userDataPath,"Machine")),"settings.json")}get mcpResource(){return oe(y.file(_(this.userDataPath,"User")),"mcp.json")}get args(){return super.args}},__decorate([Oe],oa.prototype,"userRoamingDataHome",null),__decorate([Oe],oa.prototype,"machineSettingsResource",null),__decorate([Oe],oa.prototype,"mcpResource",null)}}),N8,Ng,ol,O8=v({"out-build/vs/platform/extensionManagement/common/extensionManagementCLI.js"(){"use strict";Lt(),ge(),Se(),ct(),Nr(),Q(),ce(),As(),mi(),Zs(),N8=e=>m(1957,null,e),Ng=m(1958,null,"ms-dotnettools.csharp"),ol=class{constructor(t,s,i){this.a=t,this.b=s,this.d=i}get f(){}async listExtensions(t,s,i){let n=await this.b.getInstalled(1,i);const r=u7.map(a=>a.toLowerCase());if(s&&s!==""){if(r.indexOf(s.toLowerCase())<0){this.a.info("Invalid category please enter a valid category. To list valid categories run --category without a category specified");return}n=n.filter(a=>a.manifest.categories?a.manifest.categories.map(l=>l.toLowerCase()).indexOf(s.toLowerCase())>-1:!1)}else if(s===""){this.a.info("Possible Categories: "),r.forEach(a=>{this.a.info(a)});return}this.f&&this.a.info(m(1959,null,this.f)),n=n.sort((a,c)=>a.identifier.id.localeCompare(c.identifier.id));let o;for(const a of n)o!==a.identifier.id&&(o=a.identifier.id,this.a.info(t?`${o}@${a.manifest.version}`:o))}async installExtensions(t,s,i,n){const r=[];try{t.length&&this.a.info(this.f?m(1960,null,this.f):m(1961,null));const o=[],a=[],c=(u,h,f)=>{a.push({id:u,version:h!=="prerelease"?h:void 0,installOptions:{...i,isBuiltin:f,installPreReleaseVersion:h==="prerelease"||i.installPreReleaseVersion}})};for(const u of t)if(u instanceof y)o.push({vsix:u,installOptions:i});else{const[h,f]=Cm(u);c(h,f,!1)}for(const u of s)if(u instanceof y)o.push({vsix:u,installOptions:{...i,isBuiltin:!0,donotIncludePackAndDependencies:!0}});else{const[h,f]=Cm(u);c(h,f,!0)}const l=await this.b.getInstalled(void 0,i.profileLocation);if(o.length&&await Promise.all(o.map(async({vsix:u,installOptions:h})=>{try{await this.h(u,h,n,l)}catch(f){this.a.error(f),r.push(u.toString())}})),a.length){const u=await this.g(a,l,n);r.push(...u)}}catch(o){throw this.a.error(m(1962,null,de(o))),o}if(r.length)throw new Error(m(1963,null,r.join(", ")))}async updateExtensions(t){const s=await this.b.getInstalled(1,t),i=[];for(const a of s)a.identifier.uuid&&i.push({...a.identifier,preRelease:a.preRelease});this.a.trace(m(1964,null,i.length));const n=await this.d.getExtensions(i,{compatible:!0},Ne.None),r=[];for(const a of n)for(const c of s)pe(c.identifier,a.identifier)&&fh(a.version,c.manifest.version)&&r.push({extension:a,options:{operation:3,installPreReleaseVersion:c.preRelease,profileLocation:t,isApplicationScoped:c.isApplicationScoped}});if(!r.length){this.a.info(m(1965,null));return}this.a.info(m(1966,null,r.map(a=>a.extension.identifier.id).join(", ")));const o=await this.b.installGalleryExtensions(r);for(const a of o)a.error?this.a.error(m(1967,null,a.identifier.id,de(a.error))):this.a.info(m(1968,null,a.identifier.id,a.local?.manifest.version))}async g(t,s,i){if(t=t.filter(a=>{const{id:c,version:l,installOptions:u}=a,h=s.find(f=>pe(f.identifier,{id:c}));if(h){if(!i&&(!l||l==="prerelease"&&h.preRelease))return this.a.info(m(1969,null,c,h.manifest.version,c)),!1;if(l&&h.manifest.version===l)return this.a.info(m(1970,null,`${c}@${l}`)),!1;h.preRelease&&l!=="prerelease"&&(u.preRelease=!1)}return!0}),!t.length)return[];const n=[],r=[],o=await this.j(t);if(await Promise.all(t.map(async({id:a,version:c,installOptions:l})=>{const u=o.get(a.toLowerCase());if(!u){this.a.error(`${N8(c?`${a}@${c}`:a)}
${Ng}`),n.push(a);return}try{const f=await this.d.getManifest(u,Ne.None);if(f&&!this.k(f))return}catch(f){this.a.error(f.message||f.stack||f),n.push(a);return}const h=s.find(f=>pe(f.identifier,u.identifier));if(h){if(u.version===h.manifest.version){this.a.info(m(1971,null,c?`${a}@${c}`:a));return}this.a.info(m(1972,null,a,u.version))}l.isBuiltin?this.a.info(c?m(1973,null,a,c):m(1974,null,a)):this.a.info(c?m(1975,null,a,c):m(1976,null,a)),r.push({extension:u,options:{...l,installGivenVersion:!!c,isApplicationScoped:l.isApplicationScoped||h?.isApplicationScoped}})})),r.length){const a=await this.b.installGalleryExtensions(r);for(const c of a)c.error?(this.a.error(m(1977,null,c.identifier.id,de(c.error))),n.push(c.identifier.id)):this.a.info(m(1978,null,c.identifier.id,c.local?.manifest.version))}return n}async h(t,s,i,n){const r=await this.b.getManifest(t);if(!r)throw new Error("Invalid vsix");if(await this.l(r,i,s.profileLocation,n))try{await this.b.install(t,{...s,installGivenVersion:!0}),this.a.info(m(1979,null,ln(t)))}catch(a){if(sn(a))this.a.info(m(1980,null,ln(t)));else throw a}}async j(t){const s=new Map,i=t.some(o=>o.installOptions.installPreReleaseVersion),n=await this.b.getTargetPlatform(),r=[];for(const o of t)uh.test(o.id)&&r.push({...o,preRelease:i});if(r.length){const o=await this.d.getExtensions(r,{targetPlatform:n},Ne.None);for(const a of o)s.set(a.identifier.id.toLowerCase(),a)}return s}k(t){return!0}async l(t,s,i,n){if(!s){const r={id:pi(t.publisher,t.name)},o=n.find(a=>pe(r,a.identifier)&&fh(a.manifest.version,t.version));if(o)return this.a.info(m(1981,null,o.identifier.id,o.manifest.version,t.version)),!1}return this.k(t)}async uninstallExtensions(t,s,i){const n=async o=>{if(o instanceof y){const a=await this.b.getManifest(o);return _m(a.publisher,a.name)}return o},r=[];for(const o of t){const a=await n(o),l=(await this.b.getInstalled(void 0,i)).filter(u=>pe(u.identifier,{id:a}));if(!l.length)throw new Error(`${this.m(a)}
${Ng}`);if(l.some(u=>u.type===0)){this.a.info(m(1982,null,a));return}if(!s&&l.some(u=>u.isBuiltin)){this.a.info(m(1983,null,a));return}this.a.info(m(1984,null,a));for(const u of l)await this.b.uninstall(u,{profileLocation:i}),r.push(u);this.f?this.a.info(m(1985,null,a,this.f)):this.a.info(m(1986,null,a))}}async locateExtension(t){const s=await this.b.getInstalled();t.forEach(i=>{s.forEach(n=>{if(n.identifier.id===i&&n.location.scheme===Y.file){this.a.info(n.location.fsPath);return}})})}m(t){return this.f?m(1987,null,t,this.f):m(1988,null,t)}},ol=__decorate([__param(1,hh),__param(2,fi)],ol)}});function dM(e){return e.tags.find(t=>t.startsWith("lp-"))?.split("lp-")[1]}var al,sf,Og=v({"out-build/vs/platform/languagePacks/common/languagePacks.js"(){"use strict";Lt(),V(),te(),ce(),As(),ie(),al=X("languagePackService"),sf=class extends W{constructor(t){super(),this.c=t}async getAvailableLanguages(){const t=new Oi;setTimeout(()=>t.cancel(),1e3);let s;try{s=await this.c.query({text:'category:"language packs"',pageSize:20},t.token)}catch{return[]}const n=s.firstPage.filter(r=>r.properties.localizedLanguages?.length&&r.tags.some(o=>o.startsWith("lp-"))).map(r=>{const o=r.properties.localizedLanguages?.[0],a=dM(r);return{...this.f(a,o,r),extensionId:r.identifier.id,galleryExtension:r}});return n.push(this.f("en","English")),n}f(t,s,i){const n=s??t;let r;if(n!==t&&(r=`(${t})`),t.toLowerCase()===Is.toLowerCase()&&(r??="",r+=m(2093,null)),i?.installCount){r??="";const o=i.installCount;let a;o>1e6?a=`${Math.floor(o/1e5)/10}M`:o>1e3?a=`${Math.floor(o/1e3)}K`:a=String(o),r+=` $(cloud-download) ${a}`}return{id:t,label:n,description:r}}},sf=__decorate([__param(0,fi)],sf)}});import*as pM from"fs";import{createHash as mM}from"crypto";function gM(e){if(typeof e.languageId!="string"||!Array.isArray(e.translations)||e.translations.length===0)return!1;for(const t of e.translations)if(typeof t.id!="string"||typeof t.path!="string")return!1;return!(e.languageName&&typeof e.languageName!="string"||e.localizedLanguageName&&typeof e.localizedLanguageName!="string")}var cl,nf,C8=v({"out-build/vs/platform/languagePacks/node/languagePacks.js"(){"use strict";kt(),Ae(),V(),Se(),he(),ds(),Qt(),As(),mi(),Ie(),Og(),Q(),cl=class extends sf{constructor(t,s,i,n){super(i),this.h=t,this.j=n,this.g=this.B(new nf(s,n)),this.h.registerParticipant({postInstall:async r=>this.m(r),postUninstall:async r=>this.n(r)})}async getBuiltInExtensionTranslationsUri(t,s){const n=(await this.g.getLanguagePacks())[s];if(!n){this.j.warn(`No language pack found for ${s}`);return}const r=n.translations[t];return r?y.file(r):void 0}async getInstalledLanguages(){const t=await this.g.getLanguagePacks(),s=Object.keys(t).map(i=>{const n=t[i];return{...this.f(i,n.label),extensionId:n.extensions[0].extensionIdentifier.id}});return s.push(this.f("en","English")),s.sort((i,n)=>i.label.localeCompare(n.label)),s}async m(t){t&&t.manifest&&t.manifest.contributes&&t.manifest.contributes.localizations&&t.manifest.contributes.localizations.length&&(this.j.info("Adding language packs from the extension",t.identifier.id),await this.update())}async n(t){const s=await this.g.getLanguagePacks();Object.keys(s).some(i=>s[i]&&s[i].extensions.some(n=>pe(n.extensionIdentifier,t.identifier)))&&(this.j.info("Removing language packs from the extension",t.identifier.id),await this.update())}async update(){const[t,s]=await Promise.all([this.g.getLanguagePacks(),this.h.getInstalled()]),i=await this.g.update(s);return!rn(Object.keys(t),Object.keys(i))}},cl=__decorate([__param(0,hh),__param(1,Gs),__param(2,fi),__param(3,fe)],cl),nf=class extends W{constructor(t,s){super(),this.j=s,this.c={},this.f=_(t.userDataPath,"languagepacks.json"),this.g=new xr}getLanguagePacks(){return this.g.size||!this.h?this.s().then(()=>this.c):Promise.resolve(this.c)}update(t){return this.s(s=>{Object.keys(s).forEach(i=>delete s[i]),this.m(s,...t)}).then(()=>this.c)}m(t,...s){for(const i of s)i&&i.manifest&&i.manifest.contributes&&i.manifest.contributes.localizations&&i.manifest.contributes.localizations.length&&this.n(t,i);Object.keys(t).forEach(i=>this.r(t[i]))}n(t,s){const i=s.identifier,n=s.manifest.contributes&&s.manifest.contributes.localizations?s.manifest.contributes.localizations:[];for(const r of n)if(s.location.scheme===Y.file&&gM(r)){let o=t[r.languageId];o||(o={hash:"",extensions:[],translations:{},label:r.localizedLanguageName??r.languageName},t[r.languageId]=o);const a=o.extensions.filter(c=>pe(c.extensionIdentifier,i))[0];a?a.version=s.manifest.version:o.extensions.push({extensionIdentifier:i,version:s.manifest.version});for(const c of r.translations)o.translations[c.id]=_(s.location.fsPath,c.path)}}r(t){if(t){const s=mM("md5");for(const i of t.extensions)s.update(i.extensionIdentifier.uuid||i.extensionIdentifier.id).update(i.version);t.hash=s.digest("hex")}}s(t=()=>null){return this.g.queue(()=>{let s=null;return pM.promises.readFile(this.f,"utf8").then(void 0,i=>i.code==="ENOENT"?Promise.resolve("{}"):Promise.reject(i)).then(i=>{try{return JSON.parse(i)}catch{return{}}}).then(i=>(s=t(i),i)).then(i=>{for(const r of Object.keys(i))i[r]||delete i[r];this.c=i,this.h=!0;const n=JSON.stringify(this.c);return this.j.debug("Writing language packs",n),ke.writeFile(this.f,n)}).then(()=>s,i=>this.j.error(i))})}},nf=__decorate([__param(0,Gs),__param(1,fe)],nf)}}),rf,wM=v({"out-build/vs/platform/download/common/downloadService.js"(){"use strict";Lt(),Se(),Ge(),Rr(),rf=class{constructor(t,s){this.a=t,this.b=s}async download(t,s,i=Ne.None){if(t.scheme===Y.file||t.scheme===Y.vscodeRemote){await this.b.copy(t,s);return}const n={type:"GET",url:t.toString(!0)},r=await this.a.request(n,i);if(r.res.statusCode===200)await this.b.writeFile(s,r.stream);else{const o=await Lr(r);throw new Error(`Expected 200, got back ${r.res.statusCode} instead.

${o}`)}}},rf=__decorate([__param(0,Mi),__param(1,Xe)],rf)}});function Cg(e,t,s){t instanceof Te||(t=new Te(t,[],!!s)),_8.push([e,t])}var _8,M8,_g=v({"out-build/vs/platform/instantiation/common/extensions.js"(){"use strict";qu(),_8=[],function(e){e[e.Eager=0]="Eager",e[e.Delayed=1]="Delayed"}(M8||(M8={}))}}),U8,of,ca,j8,vM=v({"out-build/vs/base/common/skipList.js"(){"use strict";of=class{constructor(e,t,s){this.level=e,this.key=t,this.value=s,this.forward=[]}},ca=void 0,j8=class ja{constructor(t,s=2**16){this.comparator=t,this[U8]="SkipList",this.d=0,this.f=0,this.c=Math.max(1,Math.log2(s)|0),this.e=new of(this.c,ca,ca)}get size(){return this.f}clear(){this.e=new of(this.c,ca,ca),this.f=0}has(t){return!!ja.g(this,t,this.comparator)}get(t){return ja.g(this,t,this.comparator)?.value}set(t,s){return ja.h(this,t,s,this.comparator)&&(this.f+=1),this}delete(t){const s=ja.k(this,t,this.comparator);return s&&(this.f-=1),s}forEach(t,s){let i=this.e.forward[0];for(;i;)t.call(s,i.value,i.key,this),i=i.forward[0]}[(U8=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*entries(){let t=this.e.forward[0];for(;t;)yield[t.key,t.value],t=t.forward[0]}*keys(){let t=this.e.forward[0];for(;t;)yield t.key,t=t.forward[0]}*values(){let t=this.e.forward[0];for(;t;)yield t.value,t=t.forward[0]}toString(){let t="[SkipList]:",s=this.e.forward[0];for(;s;)t+=`node(${s.key}, ${s.value}, lvl:${s.level})`,s=s.forward[0];return t}static g(t,s,i){let n=t.e;for(let r=t.d-1;r>=0;r--)for(;n.forward[r]&&i(n.forward[r].key,s)<0;)n=n.forward[r];if(n=n.forward[0],n&&i(n.key,s)===0)return n}static h(t,s,i,n){const r=[];let o=t.e;for(let a=t.d-1;a>=0;a--){for(;o.forward[a]&&n(o.forward[a].key,s)<0;)o=o.forward[a];r[a]=o}if(o=o.forward[0],o&&n(o.key,s)===0)return o.value=i,!1;{const a=ja.j(t);if(a>t.d){for(let c=t.d;c<a;c++)r[c]=t.e;t.d=a}o=new of(a,s,i);for(let c=0;c<a;c++)o.forward[c]=r[c].forward[c],r[c].forward[c]=o;return!0}}static j(t,s=.5){let i=1;for(;Math.random()<s&&i<t.c;)i+=1;return i}static k(t,s,i){const n=[];let r=t.e;for(let o=t.d-1;o>=0;o--){for(;r.forward[o]&&i(r.forward[o].key,s)<0;)r=r.forward[o];n[o]=r}if(r=r.forward[0],!r||i(r.key,s)!==0)return!1;for(let o=0;o<t.d&&n[o].forward[o]===r;o++)n[o].forward[o]=r.forward[o];for(;t.d>0&&t.e.forward[t.d-1]===ca;)t.d-=1;return!0}}}}),Mg,la,T8=v({"out-build/vs/platform/uriIdentity/common/uriIdentityService.js"(){"use strict";Rs(),_g(),Ge(),ct(),vM(),re(),V(),Mg=class cb{static{this._clock=0}constructor(t){this.uri=t,this.time=cb._clock++}touch(){return this.time=cb._clock++,this}},la=class{constructor(t){this.g=t,this.c=new rt,this.f=2**16;const s=new Map,i=n=>{let r=s.get(n.scheme);return r===void 0&&(r=t.hasProvider(n)&&!this.g.hasCapability(n,1024),s.set(n.scheme,r)),r};this.c.add(B.any(t.onDidChangeFileSystemProviderRegistrations,t.onDidChangeFileSystemProviderCapabilities)(n=>{s.delete(n.scheme)})),this.extUri=new tc(i),this.d=new j8((n,r)=>this.extUri.compare(n,r,!0),this.f)}dispose(){this.c.dispose(),this.d.clear()}asCanonicalUri(t){this.g.hasProvider(t)&&(t=g4(t));const s=this.d.get(t);return s?s.touch().uri.with({fragment:t.fragment}):(this.d.set(t,new Mg(t)),this.h(),t)}h(){if(this.d.size<this.f)return;const t=[...this.d.entries()].sort((i,n)=>i[1].time<n[1].time?1:i[1].time>n[1].time?-1:0);Mg._clock=0,this.d.clear();const s=this.f*.5;for(let i=0;i<s;i++)this.d.set(t[i][0],t[i][1].touch())}},la=__decorate([__param(0,Xe)],la),Cg(bt,la,1)}});import{promises as af}from"fs";import*as F8 from"path";async function Ug(e,t){if(!Ht.commit||!await ke.exists(Tg))return{userLocale:"en",osLocale:"en",resolvedLanguage:"en",defaultMessagesFile:Tg,locale:"en",availableLanguages:{}};const s=`${e}||${t}`;let i=cf.get(s);return i||(i=Hp({userLocale:e,osLocale:e,commit:Ht.commit,userDataPath:t,nlsMetadataPath:jg}),cf.set(s,i),i.then(n=>{!e.startsWith("en")&&n.resolvedLanguage.startsWith("en")&&cf.delete(s)})),i}async function bM(e,t){if(e.startsWith("en"))return"";const s=await Ug(e,t),i=s?.languagePack?.messagesFile,n=s?.resolvedLanguage;if(!i||!n)return"";const r=F8.join(F8.dirname(i),"nls.messages.js");try{return await af.stat(r),r}catch(c){if(c.code!=="ENOENT")throw c}const a=`globalThis._VSCODE_NLS_MESSAGES=${(await af.readFile(i)).toString()};
globalThis._VSCODE_NLS_LANGUAGE=${JSON.stringify(n)};`;return await af.writeFile(r,a,"utf-8"),r}var jg,Tg,cf,B8,z8,Fg=v({"out-build/vs/server/node/remoteLanguagePacks.js"(){"use strict";Se(),he(),j4(),ds(),Kc(),jg=_(Ct.asFileUri("").fsPath),Tg=_(jg,"nls.messages.json"),cf=new Map,B8=async e=>{try{const t=z8(await af.readFile(e,"utf8"));return JSON.parse(t).locale}catch(t){return t.code!=="ENOENT"&&console.warn(t),"en"}},z8=e=>{const t=/('(?:[^\\']*(?:\\.)?)*')|('(?:[^\\']*(?:\\.)?)*')|(\/\*(?:\r?\n|.)*?\*\/)|(\/{2,}.*?(?:(?:\r?\n)|$))/g;return e.replace(t,(s,i,n,r,o)=>{if(r)return"";if(o){const a=o.length;return a>2&&o[a-1]===`
`?o[a-2]==="\r"?`\r
`:`
`:""}else return s})}}}),ll,H8=v({"out-build/vs/server/node/extensionsScannerService.js"(){"use strict";ct(),Q(),Qt(),Jo(),Yc(),Ge(),ie(),Ie(),Kt(),Rs(),Ms(),Fg(),ll=class extends Fh{constructor(t,s,i,n,r,o,a,c){super(y.file(r.builtinExtensionsPath),y.file(r.extensionsPath),oe(r.userHome,".vscode-oss-dev","extensions","control.json"),t.defaultProfile,t,s,i,n,r,o,a,c),this.R=r}async f(t){const s=await Ug(t,this.R.userDataPath);if(s.languagePack)try{const i=await this.t.readFile(y.file(s.languagePack.translationsConfigFile));return JSON.parse(i.value.toString())}catch{}return Object.create(null)}},ll=__decorate([__param(0,_s),__param(1,ji),__param(2,Xe),__param(3,fe),__param(4,Gs),__param(5,dt),__param(6,bt),__param(7,Mn)],ll)}}),V8,W8,yM=v({"out-build/vs/platform/state/node/state.js"(){"use strict";ie(),V8=X("stateReadService"),W8=X("stateService")}}),q8,G8,lf,J8,EM=v({"out-build/vs/platform/state/node/stateService.js"(){"use strict";Ae(),Le(),V(),be(),Qt(),Ge(),Ie(),function(e){e[e.IMMEDIATE=0]="IMMEDIATE",e[e.DELAYED=1]="DELAYED"}(q8||(q8={})),G8=class extends W{constructor(e,t,s,i){super(),this.h=e,this.j=s,this.m=i,this.a=Object.create(null),this.b="",this.f=void 0,this.g=void 0,this.c=this.B(new Er(t===0?0:100))}init(){return this.f||(this.f=this.n()),this.f}async n(){try{this.b=(await this.m.readFile(this.h)).value.toString(),this.a=JSON.parse(this.b)}catch(e){e.fileOperationResult!==1&&this.j.error(e)}}getItem(e,t){const s=this.a[e];return At(s)?t:s}setItem(e,t){this.setItems([{key:e,data:t}])}setItems(e){let t=!1;for(const{key:s,data:i}of e)this.a[s]!==i&&(At(i)?Vs(this.a[s])||(this.a[s]=void 0,t=!0):(this.a[s]=i,t=!0));t&&this.r()}removeItem(e){Vs(this.a[e])||(this.a[e]=void 0,this.r())}async r(){if(!this.g)return this.c.trigger(()=>this.s())}async s(){if(!this.f)return;await this.f;const e=JSON.stringify(this.a,null,4);if(e!==this.b)try{await this.m.writeFile(this.h,R.fromString(e),{atomic:{postfix:".vsctmp"}}),this.b=e}catch(t){this.j.error(t)}}async close(){return this.g||(this.g=this.c.trigger(()=>this.s(),0)),this.g}},lf=class extends W{constructor(t,s,i,n){super(),this.a=this.B(new G8(s.stateResource,t,i,n))}async init(){await this.a.init()}getItem(t,s){return this.a.getItem(t,s)}},lf=__decorate([__param(1,rs),__param(2,fe),__param(3,Xe)],lf),J8=class extends lf{setItem(e,t){this.a.setItem(e,t)}setItems(e){this.a.setItems(e)}removeItem(e){this.a.removeItem(e)}close(){return this.a.close()}}}}),uf,ua,hf,ff,ul,Z8=v({"out-build/vs/platform/userDataProfile/node/userDataProfile.js"(){"use strict";Q(),Qt(),Ge(),Ie(),yM(),Rs(),Ms(),be(),EM(),hf=uf=class extends $h{constructor(t,s,i,n,r){super(i,n,s,r),this.a=t,this.S=i}N(){return this.a.getItem(uf.b,[]).map(s=>({...s,location:ue(s.location)?this.u.extUri.joinPath(this.profilesHome,s.location):y.revive(s.location)}))}P(){return this.a.getItem(uf.c,{})}R(){return this.u.extUri.joinPath(y.file(this.S.extensionsPath).with({scheme:this.profilesHome.scheme}),"extensions.json")}},hf=uf=__decorate([__param(0,V8),__param(1,bt),__param(2,Gs),__param(3,Xe),__param(4,fe)],hf),ff=ua=class extends hf{constructor(t,s,i,n,r){super(t,s,i,n,r),this.Y=t}O(t){t.length?this.Y.setItem(ua.b,t.map(s=>({...s,location:this.u.extUri.basename(s.location)}))):this.Y.removeItem(ua.b)}Q(t){t.emptyWindows||t.workspaces?this.Y.setItem(ua.c,t):this.Y.removeItem(ua.c)}},ff=ua=__decorate([__param(0,W8),__param(1,bt),__param(2,Gs),__param(3,Xe),__param(4,fe)],ff),ul=class extends ff{constructor(t,s,i,n){super(new J8(0,s,n,i),t,s,i,n)}async init(){return await this.Y.init(),super.init()}},ul=__decorate([__param(0,bt),__param(1,Gs),__param(2,Xe),__param(3,fe)],ul)}}),hl,Y8=v({"out-build/vs/platform/extensionManagement/node/extensionsProfileScannerService.js"(){"use strict";Ie(),Ms(),Rs(),Jo(),Ge(),Qt(),Q(),hl=class extends jh{constructor(t,s,i,n,r){super(y.file(t.extensionsPath),s,i,n,r)}},hl=__decorate([__param(0,Gs),__param(1,Xe),__param(2,_s),__param(3,bt),__param(4,fe)],hl)}}),Bg,Q8=v({"out-build/vs/platform/log/common/logService.js"(){"use strict";V(),Ie(),Bg=class extends W{constructor(e,t=[]){super(),this.a=new y5([e,...t]),this.B(e.onDidChangeLogLevel(s=>this.setLevel(s)))}get onDidChangeLogLevel(){return this.a.onDidChangeLogLevel}setLevel(e){this.a.setLevel(e)}getLevel(){return this.a.getLevel()}trace(e,...t){this.a.trace(e,...t)}debug(e,...t){this.a.debug(e,...t)}info(e,...t){this.a.info(e,...t)}warn(e,...t){this.a.warn(e,...t)}error(e,...t){this.a.error(e,...t)}flush(){this.a.flush()}}}});async function xM(e,t,s,i,n){try{const r=await import("@vscode/spdlog");r.setFlushOn(vn.Trace);const o=await r.createAsyncRotatingLogger(e,t,s,i);return n?o.clearFormatters():o.setPattern("%Y-%m-%d %H:%M:%S.%e [%l] %v"),o}catch(r){console.error(r)}return null}function X8(e,t,s){switch(t){case G.Trace:e.trace(s);break;case G.Debug:e.debug(s);break;case G.Info:e.info(s);break;case G.Warning:e.warn(s);break;case G.Error:e.error(s);break;case G.Off:break;default:throw new Error(`Invalid log level ${t}`)}}function K8(e,t){switch(t){case G.Trace:e.setLevel(vn.Trace);break;case G.Debug:e.setLevel(vn.Debug);break;case G.Info:e.setLevel(vn.Info);break;case G.Warning:e.setLevel(vn.Warning);break;case G.Error:e.setLevel(vn.Error);break;case G.Off:e.setLevel(vn.Off);break;default:throw new Error(`Invalid log level ${t}`)}}var vn,e2,kM=v({"out-build/vs/platform/log/node/spdlogLog.js"(){"use strict";Ge(),Ie(),function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off"}(vn||(vn={})),e2=class extends v5{constructor(e,t,s,i,n){super(),this.n=[],this.setLevel(n),this.r=this.t(e,t,s,i),this.B(this.onDidChangeLogLevel(r=>{this.s&&K8(this.s,r)}))}async t(e,t,s,i){const n=s?6:1,r=30/n*_r.MB,o=await xM(e,t,r,n,i);if(o){this.s=o,K8(this.s,this.getLevel());for(const{level:a,message:c}of this.n)X8(this.s,a,c);this.n=[]}}m(e,t){this.s?X8(this.s,e,t):this.getLevel()<=e&&this.n.push({level:e,message:t})}flush(){this.s?this.w():this.r.then(()=>this.w())}dispose(){this.s?this.y():this.r.then(()=>this.y()),super.dispose()}w(){this.s&&this.s.flush()}y(){this.s&&(this.s.drop(),this.s=void 0)}}}}),zg,t2=v({"out-build/vs/platform/log/node/loggerService.js"(){"use strict";zt(),Ie(),kM(),zg=class extends E5{t(e,t,s){return new e2(Ve(),e.fsPath,!s?.donotRotate,!!s?.donotUseFormatters,t)}}}});function $M(){return process.uncHostAllowlist}function Hg(e){if(process.platform!=="win32")return;const t=$M();if(t)if(typeof e=="string")t.add(e.toLowerCase());else for(const s of SM(e))Hg(s)}function SM(e){const t=new Set;if(Array.isArray(e))for(const s of e)typeof s=="string"&&t.add(s);return Array.from(t)}function s2(){process.platform==="win32"&&(process.restrictUNCAccess=!1)}var i2=v({"out-build/vs/base/node/unc.js"(){"use strict"}});function PM(e){return e.type==="gallery"}function IM(e){return e.type===1||e.type===0}var n2,fl,r2=v({"out-build/vs/platform/extensionManagement/common/allowedExtensionsService.js"(){"use strict";V(),Q(),ce(),As(),Kt(),qc(),Yt(),be(),re(),n2=/^(?<version>\d+\.\d+\.\d+(-.*)?)(@(?<platform>.+))?$/,fl=class extends W{get allowedExtensionsConfigValue(){return this.b}constructor(t,s){super(),this.f=s,this.c=this.B(new D),this.onDidChangeAllowedExtensionsConfigValue=this.c.event,this.a=t.extensionPublisherOrgs?.map(i=>i.toLowerCase())??[],this.b=this.g(),this.B(this.f.onDidChangeConfiguration(i=>{i.affectsConfiguration(Ac)&&(this.b=this.g(),this.c.fire())}))}g(){const t=this.f.getValue(Ac);if(!ft(t)||Array.isArray(t))return;const s=Object.entries(t).map(([i,n])=>[i.toLowerCase(),n]);if(!(s.length===1&&s[0][0]==="*"&&s[0][1]===!0))return Object.fromEntries(s)}isAllowed(t){if(!this.b)return!0;let s,i,n,r,o,a;PM(t)?(s=t.identifier.id.toLowerCase(),i=t.version,r=t.properties.isPreReleaseVersion,o=t.publisher.toLowerCase(),a=t.publisherDisplayName.toLowerCase(),n=t.properties.targetPlatform):IM(t)?(s=t.identifier.id.toLowerCase(),i=t.manifest.version,r=t.preRelease,o=t.manifest.publisher.toLowerCase(),a=t.publisherDisplayName?.toLowerCase(),n=t.targetPlatform):(s=t.id.toLowerCase(),i=t.version??"*",n=t.targetPlatform??"universal",r=t.prerelease??!1,o=t.id.substring(0,t.id.indexOf(".")).toLowerCase(),a=t.publisherDisplayName?.toLowerCase());const c=y.parse(`command:workbench.action.openSettings?${encodeURIComponent(JSON.stringify({query:`@id:${Ac}`}))}`).toString(),l=this.b[s],u=new vi(m(1933,null,c));if(!Vs(l))return ci(l)?l?!0:u:l==="stable"&&r?new vi(m(1934,null,c)):i!=="*"&&Array.isArray(l)&&!l.some(p=>{const g=n2.exec(p);if(g&&g.groups){const{platform:w,version:b}=g.groups;return!(b!==i||n!=="universal"&&w&&n!==w)}return!1})?new vi(m(1935,null,i,c)):!0;const h=a&&this.a.includes(a)?a:o,f=this.b[h];return Vs(f)?this.b["*"]===!0?!0:u:ci(f)?f?!0:new vi(m(1936,null,h,c)):f==="stable"&&r?new vi(m(1937,null,h,c)):!0}},fl=__decorate([__param(0,dt),__param(1,Zt)],fl)}}),dl,o2=v({"out-build/vs/platform/extensionManagement/common/extensionGalleryManifestService.js"(){"use strict";re(),V(),Kt(),dl=class extends W{constructor(t){super(),this.a=t,this.onDidChangeExtensionGalleryManifest=B.None}isEnabled(){return!!this.a.extensionsGallery?.serviceUrl}async getExtensionGalleryManifest(){const t=this.a.extensionsGallery;if(!t?.serviceUrl)return null;const s=[{id:`${t.serviceUrl}/extensionquery`,type:"ExtensionQueryService"},{id:`${t.serviceUrl}/vscode/{publisher}/{name}/latest`,type:"ExtensionLatestVersionUriTemplate"},{id:`${t.serviceUrl}/publishers/{publisher}/extensions/{name}/{version}/stats?statType={statTypeName}`,type:"ExtensionStatisticsUriTemplate"},{id:`${t.serviceUrl}/itemName/{publisher}.{name}/version/{version}/statType/{statTypeValue}/vscodewebextension`,type:"WebExtensionStatisticsUriTemplate"}];return t.publisherUrl&&s.push({id:`${t.publisherUrl}/{publisher}`,type:"PublisherViewUriTemplate"}),t.itemUrl&&(s.push({id:`${t.itemUrl}?itemName={publisher}.{name}`,type:"ExtensionDetailsViewUriTemplate"}),s.push({id:`${t.itemUrl}?itemName={publisher}.{name}&ssr=false#review-details`,type:"ExtensionRatingViewUriTemplate"})),t.resourceUrlTemplate&&s.push({id:t.resourceUrlTemplate,type:"ExtensionResourceUriTemplate"}),{version:"",resources:s,capabilities:{extensionQuery:{filtering:[{name:"Tag",value:1},{name:"ExtensionId",value:4},{name:"Category",value:5},{name:"ExtensionName",value:7},{name:"Target",value:8},{name:"Featured",value:9},{name:"SearchText",value:10},{name:"ExcludeWithFlags",value:12}],sorting:[{name:"NoneOrRelevance",value:0},{name:"LastUpdatedDate",value:1},{name:"Title",value:2},{name:"PublisherName",value:3},{name:"InstallCount",value:4},{name:"AverageRating",value:6},{name:"PublishedDate",value:10},{name:"WeightedRating",value:12}],flags:[{name:"None",value:0},{name:"IncludeVersions",value:1},{name:"IncludeFiles",value:2},{name:"IncludeCategoryAndTags",value:4},{name:"IncludeSharedAccounts",value:8},{name:"IncludeVersionProperties",value:16},{name:"ExcludeNonValidated",value:32},{name:"IncludeInstallationTargets",value:64},{name:"IncludeAssetUri",value:128},{name:"IncludeStatistics",value:256},{name:"IncludeLatestVersionOnly",value:512},{name:"Unpublished",value:4096},{name:"IncludeNameConflictInfo",value:32768},{name:"IncludeLatestPrereleaseAndStableVersionOnly",value:65536}]},signing:{allPublicRepositorySigned:!0}}}}},dl=__decorate([__param(0,dt)],dl)}});function a2(e){setTimeout(()=>process.exit(e),0)}async function DM(e,t,s){if(e.help){const n=Ht.serverApplicationName+(me?".cmd":"");console.log(xN(Ht.nameLong,n,Ht.version,s,{noInputFiles:!0,noPipe:!0}));return}if(e.version){console.log($N(Ht.version,Ht.commit));return}const i=new c2(e,t);try{await i.run(),a2(0)}catch{a2(1)}finally{i.dispose()}}var c2,AM=v({"out-build/vs/server/node/remoteExtensionHostAgentCli.js"(){"use strict";Vp(),Ie(),qu(),Q5(),Yt(),Rr(),I9(),hi(),Js(),As(),n6(),M6(),pg(),F6(),Kc(),V(),H6(),ef(),Se(),Ge(),Kt(),aa(),O8(),Og(),C8(),ge(),Q(),he(),ri(),wM(),Km(),Rs(),T8(),ah(),te(),Yc(),H8(),Ms(),Jo(),eh(),Z8(),Y8(),Q8(),t2(),ce(),i2(),r2(),Sh(),o2(),c2=class extends W{constructor(e,t){super(),this.a=e,this.b=t,this.c()}c(){process.once("exit",()=>this.dispose())}async run(){const e=await this.f();await e.invokeFunction(async t=>{const s=t.get(Zt),i=t.get(fe);me&&(s.getValue("security.restrictUNCAccess")===!1?s2():Hg(s.getValue("security.allowedUNCHosts")));try{await this.g(e.createInstance(ol,new b5(i.getLevel(),!1)))}catch(n){throw i.error(n),console.error(de(n)),n}})}async f(){const e=new ju,t={_serviceBrand:void 0,...Ht};e.set(dt,t);const s=new oa(this.a,t);e.set(rl,s);const i=new zg(sm(s),s.logsHome);e.set(Lo,i);const n=new Bg(this.B(i.createLogger("remoteCLI",{name:m(2707,null)})));e.set(fe,n),n.trace(`Remote configuration data at ${this.b}`),n.trace("process arguments:",this.a);const r=this.B(new el(n));e.set(Xe,r),r.registerProvider(Y.file,this.B(new nl(n)));const o=new la(r);e.set(bt,o);const a=this.B(new ul(o,s,r,n));e.set(_s,a);const c=this.B(new pm(a.defaultProfile.settingsResource,r,new Ku,n));return e.set(Zt,c),await Promise.all([c.initialize(),a.init()]),e.set(Mi,new Te(Pc,["remote"])),e.set(Lh,new Te(rf)),e.set(gs,j9),e.set(Ur,new Te(dl)),e.set(fi,new Te(zc)),e.set(ji,new Te(hl)),e.set(jr,new Te(ll)),e.set(Bh,new Te(Qc)),e.set(gn,new Te(fl)),e.set(Wh,new Te(Xc)),e.set(al,new Te(cl)),new wg(e)}async g(e){if(this.a["list-extensions"])return e.listExtensions(!!this.a["show-versions"],this.a.category);if(this.a["install-extension"]||this.a["install-builtin-extension"]){const t={isMachineScoped:!!this.a["do-not-sync"],installPreReleaseVersion:!!this.a["pre-release"],donotIncludePackAndDependencies:!!this.a["do-not-include-pack-dependencies"]};return e.installExtensions(this.h(this.a["install-extension"]||[]),this.h(this.a["install-builtin-extension"]||[]),t,!!this.a.force)}else{if(this.a["uninstall-extension"])return e.uninstallExtensions(this.h(this.a["uninstall-extension"]),!!this.a.force);if(this.a["update-extensions"])return e.updateExtensions();if(this.a["locate-extension"])return e.locateExtension(this.a["locate-extension"])}}h(e){return e.map(t=>/\.vsix$/i.test(t)?y.file(mr(t)?t:_(en(),t)):t)}}}});import{constants as LM,promises as RM}from"fs";import{createInterface as NM}from"readline";async function OM(e){if(Cs||me)return;let t;for(const s of["/etc/os-release","/usr/lib/os-release","/etc/lsb-release"])try{t=await RM.open(s,LM.R_OK);break}catch{}if(!t){e("Unable to retrieve release information from known identifier paths.");return}try{const s=new Set(["ID","DISTRIB_ID","ID_LIKE","VERSION_ID","DISTRIB_RELEASE"]),i={id:"unknown"};for await(const n of NM({input:t.createReadStream(),crlfDelay:1/0})){if(!n.includes("="))continue;const r=n.split("=")[0].toUpperCase().trim();if(s.has(r)){const o=n.split("=")[1].replace(/"/g,"").toLowerCase().trim();r==="ID"||r==="DISTRIB_ID"?i.id=o:r==="ID_LIKE"?i.id_like=o:(r==="VERSION_ID"||r==="DISTRIB_RELEASE")&&(i.version_id=o)}}return i}catch(s){e(s)}}var CM=v({"out-build/vs/base/node/osReleaseInfo.js"(){"use strict";te()}});import*as _M from"net";function MM(e,t,s,i=1){let n=!1;return new Promise(r=>{const o=setTimeout(()=>{if(!n)return n=!0,r(0)},s);Vg(e,t,i,a=>{if(!n)return n=!0,clearTimeout(o),r(a)})})}function Vg(e,t,s,i){if(t===0)return i(0);const n=new _M.Socket;n.once("connect",()=>(l2(n),Vg(e+s,t-1,s,i))),n.once("data",()=>{}),n.once("error",r=>(l2(n),r.code!=="ECONNREFUSED"?Vg(e+s,t-1,s,i):i(e))),n.connect(e,"127.0.0.1")}function l2(e){try{e.removeAllListeners("connect"),e.removeAllListeners("error"),e.end(),e.destroy(),e.unref()}catch(t){console.error(t)}}var UM=v({"out-build/vs/base/node/ports.js"(){"use strict"}});function qn(){return df||(df=R.alloc(0)),df}function u2(e){switch(e){case 0:return"None";case 1:return"Regular";case 2:return"Control";case 3:return"Ack";case 5:return"Disconnect";case 6:return"ReplayRequest";case 7:return"PauseWriting";case 8:return"ResumeWriting";case 9:return"KeepAlive"}}var h2,Wg,f2,df,qg,d2,p2,yi,Gg,Jg,ha,m2,g2,w2,v2,b2=v({"out-build/vs/base/parts/ipc/common/ipc.net.js"(){"use strict";Le(),re(),V(),ia(),function(e){e.Created="created",e.Read="read",e.Write="write",e.Open="open",e.Error="error",e.Close="close",e.BrowserWebSocketBlobReceived="browserWebSocketBlobReceived",e.NodeEndReceived="nodeEndReceived",e.NodeEndSent="nodeEndSent",e.NodeDrainBegin="nodeDrainBegin",e.NodeDrainEnd="nodeDrainEnd",e.zlibInflateError="zlibInflateError",e.zlibInflateData="zlibInflateData",e.zlibInflateInitialWrite="zlibInflateInitialWrite",e.zlibInflateInitialFlushFired="zlibInflateInitialFlushFired",e.zlibInflateWrite="zlibInflateWrite",e.zlibInflateFlushFired="zlibInflateFlushFired",e.zlibDeflateError="zlibDeflateError",e.zlibDeflateData="zlibDeflateData",e.zlibDeflateWrite="zlibDeflateWrite",e.zlibDeflateFlushFired="zlibDeflateFlushFired",e.WebSocketNodeSocketWrite="webSocketNodeSocketWrite",e.WebSocketNodeSocketPeekedHeader="webSocketNodeSocketPeekedHeader",e.WebSocketNodeSocketReadHeader="webSocketNodeSocketReadHeader",e.WebSocketNodeSocketReadData="webSocketNodeSocketReadData",e.WebSocketNodeSocketUnmaskedData="webSocketNodeSocketUnmaskedData",e.WebSocketNodeSocketDrainBegin="webSocketNodeSocketDrainBegin",e.WebSocketNodeSocketDrainEnd="webSocketNodeSocketDrainEnd",e.ProtocolHeaderRead="protocolHeaderRead",e.ProtocolMessageRead="protocolMessageRead",e.ProtocolHeaderWrite="protocolHeaderWrite",e.ProtocolMessageWrite="protocolMessageWrite",e.ProtocolWrite="protocolWrite"}(h2||(h2={})),function(e){e.enableDiagnostics=!1,e.records=[];const t=new WeakMap;let s=0;function i(r,o){if(!t.has(r)){const a=String(++s);t.set(r,a)}return t.get(r)}function n(r,o,a,c){if(!e.enableDiagnostics)return;const l=i(r,o);if(c instanceof R||c instanceof Uint8Array||c instanceof ArrayBuffer||ArrayBuffer.isView(c)){const u=R.alloc(c.byteLength);u.set(c),e.records.push({timestamp:Date.now(),id:l,label:o,type:a,buff:u})}else e.records.push({timestamp:Date.now(),id:l,label:o,type:a,data:c})}e.traceSocketEvent=n}(Wg||(Wg={})),function(e){e[e.NodeSocketCloseEvent=0]="NodeSocketCloseEvent",e[e.WebSocketCloseEvent=1]="WebSocketCloseEvent"}(f2||(f2={})),df=null,qg=class{get byteLength(){return this.b}constructor(){this.a=[],this.b=0}acceptChunk(e){this.a.push(e),this.b+=e.byteLength}read(e){return this.c(e,!0)}peek(e){return this.c(e,!1)}c(e,t){if(e===0)return qn();if(e>this.b)throw new Error("Cannot read so many bytes!");if(this.a[0].byteLength===e){const r=this.a[0];return t&&(this.a.shift(),this.b-=e),r}if(this.a[0].byteLength>e){const r=this.a[0].slice(0,e);return t&&(this.a[0]=this.a[0].slice(e),this.b-=e),r}const s=R.alloc(e);let i=0,n=0;for(;e>0;){const r=this.a[n];if(r.byteLength>e){const o=r.slice(0,e);s.set(o,i),i+=e,t&&(this.a[n]=r.slice(e),this.b-=e),e-=e}else s.set(r,i),i+=r.byteLength,t?(this.a.shift(),this.b-=r.byteLength):n++,e-=r.byteLength}return s}},function(e){e[e.None=0]="None",e[e.Regular=1]="Regular",e[e.Control=2]="Control",e[e.Ack=3]="Ack",e[e.Disconnect=5]="Disconnect",e[e.ReplayRequest=6]="ReplayRequest",e[e.Pause=7]="Pause",e[e.Resume=8]="Resume",e[e.KeepAlive=9]="KeepAlive"}(d2||(d2={})),function(e){e[e.HeaderLength=13]="HeaderLength",e[e.AcknowledgeTime=2e3]="AcknowledgeTime",e[e.TimeoutTime=2e4]="TimeoutTime",e[e.ReconnectionGraceTime=108e5]="ReconnectionGraceTime",e[e.ReconnectionShortGraceTime=3e5]="ReconnectionShortGraceTime",e[e.KeepAliveSendTime=5e3]="KeepAliveSendTime"}(p2||(p2={})),yi=class{constructor(e,t,s,i){this.type=e,this.id=t,this.ack=s,this.data=i,this.writtenTime=0}get size(){return this.data.byteLength}},Gg=class extends W{constructor(e){super(),this.f=this.B(new D),this.onMessage=this.f.event,this.g={readHead:!0,readLen:13,messageType:0,id:0,ack:0},this.a=e,this.b=!1,this.c=new qg,this.B(this.a.onData(t=>this.acceptChunk(t))),this.lastReadTime=Date.now()}acceptChunk(e){if(!(!e||e.byteLength===0))for(this.lastReadTime=Date.now(),this.c.acceptChunk(e);this.c.byteLength>=this.g.readLen;){const t=this.c.read(this.g.readLen);if(this.g.readHead)this.g.readHead=!1,this.g.readLen=t.readUInt32BE(9),this.g.messageType=t.readUInt8(0),this.g.id=t.readUInt32BE(1),this.g.ack=t.readUInt32BE(5),this.a.traceSocketEvent("protocolHeaderRead",{messageType:u2(this.g.messageType),id:this.g.id,ack:this.g.ack,messageSize:this.g.readLen});else{const s=this.g.messageType,i=this.g.id,n=this.g.ack;if(this.g.readHead=!0,this.g.readLen=13,this.g.messageType=0,this.g.id=0,this.g.ack=0,this.a.traceSocketEvent("protocolMessageRead",t),this.f.fire(new yi(s,i,n,t)),this.b)break}}}readEntireBuffer(){return this.c.read(this.c.byteLength)}dispose(){this.b=!0,super.dispose()}},Jg=class{constructor(e){this.k=null,this.a=!1,this.b=!1,this.c=e,this.d=[],this.f=0,this.lastWriteTime=0}dispose(){try{this.flush()}catch{}this.a=!0}drain(){return this.flush(),this.c.drain()}flush(){this.m()}pause(){this.b=!0}resume(){this.b=!1,this.l()}write(e){if(this.a)return;e.writtenTime=Date.now(),this.lastWriteTime=Date.now();const t=R.alloc(13);t.writeUInt8(e.type,0),t.writeUInt32BE(e.id,1),t.writeUInt32BE(e.ack,5),t.writeUInt32BE(e.data.byteLength,9),this.c.traceSocketEvent("protocolHeaderWrite",{messageType:u2(e.type),id:e.id,ack:e.ack,messageSize:e.data.byteLength}),this.c.traceSocketEvent("protocolMessageWrite",e.data),this.j(t,e.data)}g(e,t){const s=this.f===0;return this.d.push(e,t),this.f+=e.byteLength+t.byteLength,s}h(){const e=R.concat(this.d,this.f);return this.d.length=0,this.f=0,e}j(e,t){this.g(e,t)&&this.l()}l(){this.k||(this.k=setTimeout(()=>{this.k=null,this.m()}))}m(){if(this.f===0||this.b)return;const e=this.h();this.c.traceSocketEvent("protocolWrite",{byteLength:e.byteLength}),this.c.write(e)}},ha=class{constructor(){this.b=!1,this.c=!1,this.d=[],this.a=new D({onWillAddFirstListener:()=>{this.b=!0,queueMicrotask(()=>this.f())},onDidRemoveLastListener:()=>{this.b=!1}}),this.event=this.a.event}f(){if(!this.c){for(this.c=!0;this.b&&this.d.length>0;)this.a.fire(this.d.shift());this.c=!1}}fire(e){this.b?this.d.length>0?this.d.push(e):this.a.fire(e):this.d.push(e)}flushBuffer(){this.d=[]}},m2=class{constructor(e){this.data=e,this.next=null}},g2=class{constructor(){this.a=null,this.b=null}length(){let e=0,t=this.a;for(;t;)t=t.next,e++;return e}peek(){return this.a?this.a.data:null}toArray(){const e=[];let t=0,s=this.a;for(;s;)e[t++]=s.data,s=s.next;return e}pop(){if(this.a){if(this.a===this.b){this.a=null,this.b=null;return}this.a=this.a.next}}push(e){const t=new m2(e);if(!this.a){this.a=t,this.b=t;return}this.b.next=t,this.b=t}},w2=class Yi{static{this.a=10}static{this.b=null}static getInstance(){return Yi.b||(Yi.b=new Yi),Yi.b}constructor(){this.c=[];const t=Date.now();for(let s=0;s<Yi.a;s++)this.c[s]=t-1e3*s;setInterval(()=>{for(let s=Yi.a;s>=1;s--)this.c[s]=this.c[s-1];this.c[0]=Date.now()},1e3)}d(){const t=Date.now(),s=(1+Yi.a)*1e3;let i=0;for(let n=0;n<Yi.a;n++)t-this.c[n]<=s&&i++;return 1-i/Yi.a}hasHighLoad(){return this.d()>=.5}},v2=class{get unacknowledgedCount(){return this.d-this.f}constructor(e){this.v=new ha,this.onControlMessage=this.v.event,this.w=new ha,this.onMessage=this.w.event,this.x=new ha,this.onDidDispose=this.x.event,this.y=new ha,this.onSocketClose=this.y.event,this.z=new ha,this.onSocketTimeout=this.z.event,this.t=e.loadEstimator??w2.getInstance(),this.u=e.sendKeepAlive??!0,this.a=!1,this.c=new g2,this.d=0,this.f=0,this.g=null,this.h=0,this.j=0,this.k=0,this.l=null,this.n=0,this.o=Date.now(),this.s=new rt,this.p=e.socket,this.q=this.s.add(new Jg(this.p)),this.r=this.s.add(new Gg(this.p)),this.s.add(this.r.onMessage(t=>this.A(t))),this.s.add(this.p.onClose(t=>this.y.fire(t))),e.initialChunk&&this.r.acceptChunk(e.initialChunk),this.u?this.m=setInterval(()=>{this.E()},5e3):this.m=null}dispose(){this.g&&(clearTimeout(this.g),this.g=null),this.l&&(clearTimeout(this.l),this.l=null),this.m&&(clearInterval(this.m),this.m=null),this.s.dispose()}drain(){return this.q.drain()}sendDisconnect(){if(!this.b){this.b=!0;const e=new yi(5,0,0,qn());this.q.write(e),this.q.flush()}}sendPause(){const e=new yi(7,0,0,qn());this.q.write(e)}sendResume(){const e=new yi(8,0,0,qn());this.q.write(e)}pauseSocketWriting(){this.q.pause()}getSocket(){return this.p}getMillisSinceLastIncomingData(){return Date.now()-this.r.lastReadTime}beginAcceptReconnection(e,t){this.a=!0,this.s.dispose(),this.s=new rt,this.v.flushBuffer(),this.y.flushBuffer(),this.z.flushBuffer(),this.p.dispose(),this.n=0,this.o=Date.now(),this.p=e,this.q=this.s.add(new Jg(this.p)),this.r=this.s.add(new Gg(this.p)),this.s.add(this.r.onMessage(s=>this.A(s))),this.s.add(this.p.onClose(s=>this.y.fire(s))),this.r.acceptChunk(t)}endAcceptReconnection(){this.a=!1,this.j=this.h;const e=new yi(3,0,this.j,qn());this.q.write(e);const t=this.c.toArray();for(let s=0,i=t.length;s<i;s++)this.q.write(t[s]);this.C()}acceptDisconnect(){this.x.fire()}A(e){if(e.ack>this.f){this.f=e.ack;do{const t=this.c.peek();if(t&&t.id<=e.ack)this.c.pop();else break}while(!0)}switch(e.type){case 0:break;case 1:{if(e.id>this.h)if(e.id!==this.h+1){const t=Date.now();t-this.n>1e4&&(this.n=t,this.q.write(new yi(6,0,0,qn())))}else this.h=e.id,this.k=Date.now(),this.B(),this.w.fire(e.data);break}case 2:{this.v.fire(e.data);break}case 3:break;case 5:{this.x.fire();break}case 6:{const t=this.c.toArray();for(let s=0,i=t.length;s<i;s++)this.q.write(t[s]);this.C();break}case 7:{this.q.pause();break}case 8:{this.q.resume();break}case 9:break}}readEntireBuffer(){return this.r.readEntireBuffer()}flush(){this.q.flush()}send(e){const t=++this.d;this.j=this.h;const s=new yi(1,t,this.j,e);this.c.push(s),this.a||(this.q.write(s),this.C())}sendControl(e){const t=new yi(2,0,0,e);this.q.write(t)}B(){if(this.h<=this.j||this.l)return;const e=Date.now()-this.k;if(e>=2e3){this.D();return}this.l=setTimeout(()=>{this.l=null,this.B()},2e3-e+5)}C(){if(this.d<=this.f||this.g||this.a)return;const e=this.c.peek(),t=Date.now()-e.writtenTime,s=Date.now()-this.r.lastReadTime,i=Date.now()-this.o;if(t>=2e4&&s>=2e4&&i>=2e4&&!this.t.hasHighLoad()){this.o=Date.now(),this.z.fire({unacknowledgedMsgCount:this.c.length(),timeSinceOldestUnacknowledgedMsg:t,timeSinceLastReceivedSomeData:s});return}const n=Math.max(2e4-t,2e4-s,2e4-i,500);this.g=setTimeout(()=>{this.g=null,this.C()},n)}D(){if(this.h<=this.j)return;this.j=this.h;const e=new yi(3,0,this.j,qn());this.q.write(e)}E(){this.j=this.h;const e=new yi(9,0,this.j,qn());this.q.write(e)}}}});import"crypto";import"net";import{tmpdir as jM}from"os";import{createDeflateRaw as TM,createInflateRaw as FM}from"zlib";function BM(e,t){if(t===0)return;const s=e.byteLength>>>2;for(let c=0;c<s;c++){const l=e.readUInt32BE(c*4);e.writeUInt32BE(l^t,c*4)}const i=s*4,n=e.byteLength-i,r=t>>>24&255,o=t>>>16&255,a=t>>>8&255;n>=1&&e.writeUInt8(e.readUInt8(i)^r,i),n>=2&&e.writeUInt8(e.readUInt8(i+1)^o,i+1),n>=3&&e.writeUInt8(e.readUInt8(i+2)^a,i+2)}function Zg(){const e=Ve();if(process.platform==="win32")return`\\\\.\\pipe\\vscode-ipc-${e}-sock`;const t=process.platform!=="darwin"&&Yg?Yg:jM(),s=_(t,`vscode-ipc-${e}.sock`);return zM(s),s}function zM(e){const t=I2[fr];typeof t=="number"&&e.length>=t&&console.warn(`WARNING: IPC handle "${e}" is longer than ${t} chars, try a shorter --user-data-dir`)}var y2,fa,E2,x2,k2,$2,S2,P2,Yg,I2,pf=v({"out-build/vs/base/parts/ipc/node/ipc.net.js"(){"use strict";Le(),ge(),re(),V(),he(),te(),zt(),ia(),b2(),y2=3e4,fa=class{traceSocketEvent(e,t){Wg.traceSocketEvent(this.socket,this.debugLabel,e,t)}constructor(e,t=""){this.f=!0,this.debugLabel=t,this.socket=e,this.traceSocketEvent("created",{type:"NodeSocket"}),this.a=i=>{if(this.traceSocketEvent("error",{code:i?.code,message:i?.message}),i){if(i.code==="EPIPE")return;Gt(i)}},this.socket.on("error",this.a);let s;this.b=i=>{this.traceSocketEvent("close",{hadError:i}),this.f=!1,s&&clearTimeout(s)},this.socket.on("close",this.b),this.d=()=>{this.traceSocketEvent("nodeEndReceived"),this.f=!1,s=setTimeout(()=>e.destroy(),y2)},this.socket.on("end",this.d)}dispose(){this.socket.off("error",this.a),this.socket.off("close",this.b),this.socket.off("end",this.d),this.socket.destroy()}onData(e){const t=s=>{this.traceSocketEvent("read",s),e(R.wrap(s))};return this.socket.on("data",t),{dispose:()=>this.socket.off("data",t)}}onClose(e){const t=s=>{e({type:0,hadError:s,error:void 0})};return this.socket.on("close",t),{dispose:()=>this.socket.off("close",t)}}onEnd(e){const t=()=>{e()};return this.socket.on("end",t),{dispose:()=>this.socket.off("end",t)}}write(e){if(!(this.socket.destroyed||!this.f))try{this.traceSocketEvent("write",e),this.socket.write(e.buffer,t=>{if(t){if(t.code==="EPIPE")return;Gt(t)}})}catch(t){if(t.code==="EPIPE")return;Gt(t)}}end(){this.traceSocketEvent("nodeEndSent"),this.socket.end()}drain(){return this.traceSocketEvent("nodeDrainBegin"),new Promise((e,t)=>{if(this.socket.bufferSize===0){this.traceSocketEvent("nodeDrainEnd"),e();return}const s=()=>{this.socket.off("close",s),this.socket.off("end",s),this.socket.off("error",s),this.socket.off("timeout",s),this.socket.off("drain",s),this.traceSocketEvent("nodeDrainEnd"),e()};this.socket.on("close",s),this.socket.on("end",s),this.socket.on("error",s),this.socket.on("timeout",s),this.socket.on("drain",s)})}},function(e){e[e.MinHeaderByteSize=2]="MinHeaderByteSize",e[e.MaxWebSocketMessageLength=262144]="MaxWebSocketMessageLength"}(E2||(E2={})),function(e){e[e.PeekHeader=1]="PeekHeader",e[e.ReadHeader=2]="ReadHeader",e[e.ReadBody=3]="ReadBody",e[e.Fin=4]="Fin"}(x2||(x2={})),k2=class extends W{get permessageDeflate(){return this.a.permessageDeflate}get recordedInflateBytes(){return this.a.recordedInflateBytes}traceSocketEvent(e,t){this.socket.traceSocketEvent(e,t)}constructor(e,t,s,i){super(),this.f=this.B(new D),this.g=this.B(new D),this.h=!1,this.j={state:1,readLen:2,fin:0,compressed:!1,firstFrameOfMessage:!0,mask:0,opcode:0},this.socket=e,this.traceSocketEvent("created",{type:"WebSocketNodeSocket",permessageDeflate:t,inflateBytesLength:s?.byteLength||0,recordInflateBytes:i}),this.a=this.B(new $2(this,t,s,i,this.f,(n,r)=>this.m(n,r))),this.B(this.a.onError(n=>{console.error(n),Gt(n),this.g.fire({type:0,hadError:!0,error:n})})),this.b=new qg,this.B(this.socket.onData(n=>this.n(n))),this.B(this.socket.onClose(async n=>{this.a.isProcessingReadQueue()&&await B.toPromise(this.a.onDidFinishProcessingReadQueue),this.g.fire(n)}))}dispose(){this.a.isProcessingWriteQueue()?this.B(this.a.onDidFinishProcessingWriteQueue(()=>{this.dispose()})):(this.socket.dispose(),super.dispose())}onData(e){return this.f.event(e)}onClose(e){return this.g.event(e)}onEnd(e){return this.socket.onEnd(e)}write(e){let t=0;for(;t<e.byteLength;)this.a.writeMessage(e.slice(t,Math.min(t+262144,e.byteLength)),{compressed:!0,opcode:2}),t+=262144}m(e,{compressed:t,opcode:s}){if(this.h)return;this.traceSocketEvent("webSocketNodeSocketWrite",e);let i=2;e.byteLength<126?i+=0:e.byteLength<2**16?i+=2:i+=8;const n=R.alloc(i),r=t?64:0,o=s&15;if(n.writeUInt8(128|r|o,0),e.byteLength<126)n.writeUInt8(e.byteLength,1);else if(e.byteLength<2**16){n.writeUInt8(126,1);let a=1;n.writeUInt8(e.byteLength>>>8&255,++a),n.writeUInt8(e.byteLength>>>0&255,++a)}else{n.writeUInt8(127,1);let a=1;n.writeUInt8(0,++a),n.writeUInt8(0,++a),n.writeUInt8(0,++a),n.writeUInt8(0,++a),n.writeUInt8(e.byteLength>>>24&255,++a),n.writeUInt8(e.byteLength>>>16&255,++a),n.writeUInt8(e.byteLength>>>8&255,++a),n.writeUInt8(e.byteLength>>>0&255,++a)}this.socket.write(R.concat([n,e]))}end(){this.h=!0,this.socket.end()}n(e){if(e.byteLength!==0){for(this.b.acceptChunk(e);this.b.byteLength>=this.j.readLen;)if(this.j.state===1){const t=this.b.peek(this.j.readLen),s=t.readUInt8(0),i=(s&128)>>>7,n=(s&64)>>>6,r=s&15,o=t.readUInt8(1),a=(o&128)>>>7,c=o&127;this.j.state=2,this.j.readLen=2+(a?4:0)+(c===126?2:0)+(c===127?8:0),this.j.fin=i,this.j.firstFrameOfMessage&&(this.j.compressed=!!n),this.j.firstFrameOfMessage=!!i,this.j.mask=0,this.j.opcode=r,this.traceSocketEvent("webSocketNodeSocketPeekedHeader",{headerSize:this.j.readLen,compressed:this.j.compressed,fin:this.j.fin,opcode:this.j.opcode})}else if(this.j.state===2){const t=this.b.read(this.j.readLen),s=t.readUInt8(1),i=(s&128)>>>7;let n=s&127,r=1;n===126?n=t.readUInt8(++r)*2**8+t.readUInt8(++r):n===127&&(n=t.readUInt8(++r)*0+t.readUInt8(++r)*0+t.readUInt8(++r)*0+t.readUInt8(++r)*0+t.readUInt8(++r)*2**24+t.readUInt8(++r)*2**16+t.readUInt8(++r)*2**8+t.readUInt8(++r));let o=0;i&&(o=t.readUInt8(++r)*2**24+t.readUInt8(++r)*2**16+t.readUInt8(++r)*2**8+t.readUInt8(++r)),this.j.state=3,this.j.readLen=n,this.j.mask=o,this.traceSocketEvent("webSocketNodeSocketPeekedHeader",{bodySize:this.j.readLen,compressed:this.j.compressed,fin:this.j.fin,mask:this.j.mask,opcode:this.j.opcode})}else if(this.j.state===3){const t=this.b.read(this.j.readLen);this.traceSocketEvent("webSocketNodeSocketReadData",t),BM(t,this.j.mask),this.traceSocketEvent("webSocketNodeSocketUnmaskedData",t),this.j.state=1,this.j.readLen=2,this.j.mask=0,this.j.opcode<=2?this.a.acceptFrame(t,this.j.compressed,!!this.j.fin):this.j.opcode===9&&this.a.writeMessage(t,{compressed:!1,opcode:10})}}}async drain(){this.traceSocketEvent("webSocketNodeSocketDrainBegin"),this.a.isProcessingWriteQueue()&&await B.toPromise(this.a.onDidFinishProcessingWriteQueue),await this.socket.drain(),this.traceSocketEvent("webSocketNodeSocketDrainEnd")}},$2=class extends W{get permessageDeflate(){return!!(this.b&&this.f)}get recordedInflateBytes(){return this.b?this.b.recordedInflateBytes:R.alloc(0)}constructor(e,t,s,i,n,r){super(),this.n=e,this.r=n,this.s=r,this.a=this.B(new D),this.onError=this.a.event,this.g=[],this.h=[],this.j=this.B(new D),this.onDidFinishProcessingReadQueue=this.j.event,this.m=this.B(new D),this.onDidFinishProcessingWriteQueue=this.m.event,this.t=!1,this.y=!1,t?(this.b=this.B(new S2(this.n,i,s,{windowBits:15})),this.f=this.B(new P2(this.n,{windowBits:15})),this.B(this.b.onError(o=>this.a.fire(o))),this.B(this.f.onError(o=>this.a.fire(o)))):(this.b=null,this.f=null)}writeMessage(e,t){this.g.push({data:e,options:t}),this.u()}async u(){if(!this.t){for(this.t=!0;this.g.length>0;){const{data:e,options:t}=this.g.shift();if(this.f&&t.compressed){const s=await this.w(this.f,e);this.s(s,t)}else this.s(e,{...t,compressed:!1})}this.t=!1,this.m.fire()}}isProcessingWriteQueue(){return this.t}w(e,t){return new Promise((s,i)=>{e.write(t),e.flush(n=>s(n))})}acceptFrame(e,t,s){this.h.push({data:e,isCompressed:t,isLastFrameOfMessage:s}),this.z()}async z(){if(!this.y){for(this.y=!0;this.h.length>0;){const e=this.h.shift();if(this.b&&e.isCompressed){const t=await this.C(this.b,e.data,e.isLastFrameOfMessage);this.r.fire(t)}else this.r.fire(e.data)}this.y=!1,this.j.fire()}}isProcessingReadQueue(){return this.y}C(e,t,s){return new Promise((i,n)=>{e.write(t),s&&e.write(R.fromByteArray([0,0,255,255])),e.flush(r=>i(r))})}},S2=class extends W{get recordedInflateBytes(){return this.j?R.concat(this.f):R.alloc(0)}constructor(e,t,s,i){super(),this.h=e,this.j=t,this.a=this.B(new D),this.onError=this.a.event,this.f=[],this.g=[],this.b=FM(i),this.b.on("error",n=>{this.h.traceSocketEvent("zlibInflateError",{message:n?.message,code:n?.code}),this.a.fire(n)}),this.b.on("data",n=>{this.h.traceSocketEvent("zlibInflateData",n),this.g.push(R.wrap(n))}),s&&(this.h.traceSocketEvent("zlibInflateInitialWrite",s.buffer),this.b.write(s.buffer),this.b.flush(()=>{this.h.traceSocketEvent("zlibInflateInitialFlushFired"),this.g.length=0}))}write(e){this.j&&this.f.push(e.clone()),this.h.traceSocketEvent("zlibInflateWrite",e),this.b.write(e.buffer)}flush(e){this.b.flush(()=>{this.h.traceSocketEvent("zlibInflateFlushFired");const t=R.concat(this.g);this.g.length=0,e(t)})}},P2=class extends W{constructor(e,t){super(),this.g=e,this.a=this.B(new D),this.onError=this.a.event,this.f=[],this.b=TM({windowBits:15}),this.b.on("error",s=>{this.g.traceSocketEvent("zlibDeflateError",{message:s?.message,code:s?.code}),this.a.fire(s)}),this.b.on("data",s=>{this.g.traceSocketEvent("zlibDeflateData",s),this.f.push(R.wrap(s))})}write(e){this.g.traceSocketEvent("zlibDeflateWrite",e.buffer),this.b.write(e.buffer)}flush(e){this.b.flush(2,()=>{this.g.traceSocketEvent("zlibDeflateFlushFired");let t=R.concat(this.f);this.f.length=0,t=t.slice(0,t.byteLength-4),e(t)})}},Yg=process.env.XDG_RUNTIME_DIR,I2={2:107,1:103}}}),Qg,D2,A2=v({"out-build/vs/server/node/extensionHostStatusService.js"(){"use strict";ie(),Qg=X("extensionHostStatusService"),D2=class{constructor(){this.a=new Map}setExitInfo(e,t){this.a.set(e,t)}getExitInfo(e){return this.a.get(e)||null}}}});function HM(e){delete e[Xg.ENV_KEY],delete e[Kg.ENV_KEY],delete e[N2.ENV_KEY]}function L2(e,t){HM(t),e.serialize(t)}var R2,Xg,Kg,N2,VM=v({"out-build/vs/workbench/services/extensions/common/extensionHostEnv.js"(){"use strict";(function(e){e[e.IPC=1]="IPC",e[e.Socket=2]="Socket",e[e.MessagePort=3]="MessagePort"})(R2||(R2={})),Xg=class fA{static{this.ENV_KEY="VSCODE_EXTHOST_IPC_HOOK"}constructor(t){this.pipeName=t,this.type=1}serialize(t){t[fA.ENV_KEY]=this.pipeName}},Kg=class dA{constructor(){this.type=2}static{this.ENV_KEY="VSCODE_EXTHOST_WILL_SEND_SOCKET"}serialize(t){t[dA.ENV_KEY]="1"}},N2=class pA{constructor(){this.type=3}static{this.ENV_KEY="VSCODE_WILL_SEND_MESSAGE_PORT"}serialize(t){t[pA.ENV_KEY]="1"}}}});import*as WM from"child_process";import*as qM from"net";async function O2(e={},t,s,i,n,r){const o=await Ug(s,i.userDataPath);let a={};if(t)try{a=await ym(r,n,i.args,process.env)}catch(p){n.error("ExtensionHostConnection#buildUserEnvironment resolving shell environment failed",p)}const l={...process.env,...a,VSCODE_ESM_ENTRYPOINT:"vs/workbench/api/node/extensionHostProcess",VSCODE_HANDLES_UNCAUGHT_ERRORS:"true",VSCODE_NLS_CONFIG:JSON.stringify(o),...e},u=i.isBuilt?_(i.appRoot,"bin"):_(i.appRoot,"resources","server","bin-dev"),h=_(u,"remote-cli");let f=GM(l,"PATH");return f?f=h+Wa+f:f=h,JM(l,"PATH",f),i.args["without-browser-env-var"]||(l.BROWSER=_(u,"helpers",me?"browser.cmd":"browser.sh")),ZM(l),l}function GM(e,t){const s=Object.keys(e).filter(n=>n.toLowerCase()===t.toLowerCase()),i=s.length>0?s[0]:t;return e[i]}function JM(e,t,s){const i=Object.keys(e).filter(r=>r.toLowerCase()===t.toLowerCase()),n=i.length>0?i[0]:t;e[n]=s}function ZM(e){for(const t of Object.keys(e))e[t]===null&&delete e[t]}var e0,mf,C2=v({"out-build/vs/server/node/extensionHostConnection.js"(){"use strict";Le(),re(),V(),Se(),he(),te(),nh(),pf(),Yt(),Ie(),Em(),A2(),Fg(),aa(),VM(),e0=class{constructor(e,t){this.socket=e,this.initialDataChunk=t}socketDrain(){return this.socket.drain()}toIExtHostSocketMessage(){let e,t,s;return this.socket instanceof fa?(e=!0,t=!1,s=R.alloc(0)):(e=!1,t=this.socket.permessageDeflate,s=this.socket.recordedInflateBytes),{type:"VSCODE_EXTHOST_IPC_SOCKET",initialDataChunk:this.initialDataChunk.buffer.toString("base64"),skipWebSocketFrames:e,permessageDeflate:t,inflateBytes:s.buffer.toString("base64")}}},mf=class extends W{constructor(t,s,i,n,r,o,a,c){super(),this.m=t,this.n=r,this.r=o,this.s=a,this.t=c,this.b=new D,this.onClose=this.b.event,this.c=!me||!this.n.args["socket-path"],this.f=!1,this.g=s,this.h=null,this.j=new e0(i,n),this.w("New connection established.")}dispose(){this.D(),super.dispose()}get u(){return`[${this.g}][${this.m.substr(0,8)}][ExtensionHostConnection] `}w(t){this.r.info(`${this.u}${t}`)}y(t){this.r.error(`${this.u}${t}`)}async z(t,s){const i=new rt;i.add(s.socket),i.add(De(()=>{t.destroy()}));const n=()=>{i.dispose()};i.add(s.socket.onEnd(n)),i.add(s.socket.onClose(n)),i.add(B.fromNodeEventEmitter(t,"end")(n)),i.add(B.fromNodeEventEmitter(t,"close")(n)),i.add(B.fromNodeEventEmitter(t,"error")(n)),i.add(s.socket.onData(r=>t.write(r.buffer))),i.add(B.fromNodeEventEmitter(t,"data")(r=>{s.socket.write(R.wrap(r))})),s.initialDataChunk.byteLength>0&&t.write(s.initialDataChunk.buffer)}async C(t,s){await s.socketDrain();const i=s.toIExtHostSocketMessage();let n;s.socket instanceof fa?n=s.socket.socket:n=s.socket.socket.socket,t.send(i,n)}shortenReconnectionGraceTimeIfNecessary(){if(!this.h)return;const t={type:"VSCODE_EXTHOST_IPC_REDUCE_GRACE_TIME"};this.h.send(t)}acceptReconnection(t,s,i){this.g=t,this.w("The client has reconnected.");const n=new e0(s,i);if(!this.h){this.j=n;return}this.C(this.h,n)}D(){this.f||(this.f=!0,this.j&&(this.j.socket.end(),this.j=null),this.h&&(this.h.kill(),this.h=null),this.b.fire(void 0))}async start(t){try{let s=process.execArgv?process.execArgv.filter(h=>!/^--inspect(-brk)?=/.test(h)):[];t.port&&!process.pkg&&(s=[`--inspect${t.break?"-brk":""}=${t.port}`,"--experimental-network-inspection"]);const i=await O2(t.env,!0,t.language,this.n,this.r,this.t);u9(i);let n;if(this.c)L2(new Kg,i),n=null;else{const{namedPipeServer:h,pipeName:f}=await this.F();L2(new Xg(f),i),n=h}const r={env:i,execArgv:s,silent:!0};r.execArgv.unshift("--dns-result-order=ipv4first");const o=["--type=extensionHost","--transformURIs"],a=this.n.args["use-host-proxy"];o.push(`--useHostProxy=${a?"true":"false"}`),this.t.getValue("extensions.supportNodeGlobalNavigator")&&o.push("--supportGlobalNavigator"),this.h=WM.fork(Ct.asFileUri("bootstrap-fork").fsPath,o,r);const c=this.h.pid;this.w(`<${c}> Launched Extension Host Process.`),this.h.stdout.setEncoding("utf8"),this.h.stderr.setEncoding("utf8");const l=B.fromNodeEventEmitter(this.h.stdout,"data"),u=B.fromNodeEventEmitter(this.h.stderr,"data");if(this.B(l(h=>this.w(`<${c}> ${h}`))),this.B(u(h=>this.w(`<${c}><stderr> ${h}`))),this.h.on("error",h=>{this.y(`<${c}> Extension Host Process had an error`),this.r.error(h),this.D()}),this.h.on("exit",(h,f)=>{this.s.setExitInfo(this.m,{code:h,signal:f}),this.w(`<${c}> Extension Host Process exited with code: ${h}, signal: ${f}.`),this.D()}),n)n.on("connection",h=>{n.close(),this.z(h,this.j)});else{const h=f=>{f.type==="VSCODE_EXTHOST_IPC_READY"&&(this.h.removeListener("message",h),this.C(this.h,this.j),this.j=null)};this.h.on("message",h)}}catch(s){console.error("ExtensionHostConnection errored"),s&&console.error(s)}}F(){return new Promise((t,s)=>{const i=Zg(),n=qM.createServer();n.on("error",s),n.listen(i,()=>{n?.removeListener("error",s),t({pipeName:i,namedPipeServer:n})})})}},mf=__decorate([__param(4,rl),__param(5,fe),__param(6,Qg),__param(7,Zt)],mf)}});function gf(e){let t=0,s=0,i=0;e>=1e3&&(i=Math.floor(e/1e3),e-=i*1e3),i>=60&&(s=Math.floor(i/60),i-=s*60),s>=60&&(t=Math.floor(s/60),s-=t*60);const n=t?`${t}h`:"",r=s?`${s}m`:"",o=i?`${i}s`:"",a=e?`${e}ms`:"";return`${n}${r}${o}${a}`}var _2,YM=v({"out-build/vs/server/node/remoteExtensionManagement.js"(){"use strict";re(),Ae(),_2=class{constructor(e,t,s,i){this.i=e,this.j=t,this.a=new D,this.onClose=this.a.event,this.b=108e5,this.c=3e5,this.d=s,this.protocol=i,this.e=!1,this.f=new Up(()=>{this.k(`The reconnection grace time of ${gf(this.b)} has expired, so the connection will be disposed.`),this.l()},this.b),this.g=new Up(()=>{this.k(`The reconnection short grace time of ${gf(this.c)} has expired, so the connection will be disposed.`),this.l()},this.c),this.protocol.onDidDispose(()=>{this.k("The client has disconnected gracefully, so the connection will be disposed."),this.l()}),this.protocol.onSocketClose(()=>{this.k(`The client has disconnected, will wait for reconnection ${gf(this.b)} before disposing...`),this.f.schedule()}),this.k("New connection established.")}k(e){this.i.info(`[${this.d}][${this.j.substr(0,8)}][ManagementConnection] ${e}`)}shortenReconnectionGraceTimeIfNecessary(){this.g.isScheduled()||this.f.isScheduled()&&(this.k(`Another client has connected, will shorten the wait for reconnection ${gf(this.c)} before disposing...`),this.g.schedule())}l(){if(this.e)return;this.e=!0,this.f.dispose(),this.g.dispose();const e=this.protocol.getSocket();this.protocol.sendDisconnect(),this.protocol.dispose(),e.end(),this.a.fire(void 0)}acceptReconnection(e,t,s){this.d=e,this.k("The client has reconnected."),this.f.cancel(),this.g.cancel(),this.protocol.beginAcceptReconnection(t,s),this.protocol.endAcceptReconnection()}}}});import*as QM from"cookie";import*as M2 from"fs";async function XM(e,t){const s=e["without-connection-token"],i=e["connection-token"],n=e["connection-token-file"];if(s)return typeof i<"u"||typeof n<"u"?new Br("Please do not use the argument '--connection-token' or '--connection-token-file' at the same time as '--without-connection-token'."):new j2;if(typeof n<"u"){if(typeof i<"u")return new Br("Please do not use the argument '--connection-token' at the same time as '--connection-token-file'.");let r;try{r=M2.readFileSync(n).toString().replace(/\r?\n$/,"")}catch{return new Br(`Unable to read the connection token file at '${n}'.`)}return wf.test(r)?new vf(r):new Br(`The connection token defined in '${n} does not adhere to the characters 0-9, a-z, A-Z, _, or -.`)}return typeof i<"u"?wf.test(i)?new vf(i):new Br(`The connection token '${i} does not adhere to the characters 0-9, a-z, A-Z or -.`):new vf(await t())}async function KM(e){return XM(e,async()=>{if(!e["user-data-dir"])return Ve();const s=_(e["user-data-dir"],"token");try{const r=(await M2.promises.readFile(s)).toString().replace(/\r?\n$/,"");if(wf.test(r))return r}catch{}const i=Ve();try{await ke.writeFile(s,i,{mode:384})}catch{}return i})}function eU(e,t,s){if(e.validate(s.query[vo]))return!0;const i=QM.parse(t.headers.cookie||"");return e.validate(i[Nu])}var wf,U2,j2,vf,Br,tU=v({"out-build/vs/server/node/serverConnectionToken.js"(){"use strict";he(),zt(),Se(),ds(),wf=/^[0-9A-Za-z_-]+$/,function(e){e[e.None=0]="None",e[e.Optional=1]="Optional",e[e.Mandatory=2]="Mandatory"}(U2||(U2={})),j2=class{constructor(){this.type=0}validate(e){return!0}},vf=class{constructor(e){this.value=e,this.type=2}validate(e){return e===this.value}},Br=class{constructor(e){this.message=e}}}});import{networkInterfaces as sU}from"os";function iU(e){const t=e.replace(/\-/g,":").toLowerCase();return!T2.has(t)}function nU(){const e=sU();for(const t in e){const s=e[t];if(s){for(const{mac:i}of s)if(iU(i))return i}}throw new Error("Unable to retrieve mac address (unexpected format)")}var T2,rU=v({"out-build/vs/base/node/macAddress.js"(){"use strict";T2=new Set(["00:00:00:00:00:00","ff:ff:ff:ff:ff:ff","ac:de:48:00:11:22"])}});import{networkInterfaces as oU}from"os";async function aU(e){return s0||(s0=(async()=>await cU(e)||Ve())()),s0}async function cU(e){try{const t=await import("crypto"),s=nU();return t.createHash("sha256").update(s,"utf8").digest("hex")}catch(t){e(t);return}}async function lU(e){if(me){const t=await import("@vscode/windows-registry");try{return t.GetStringRegKey("HKEY_LOCAL_MACHINE",F2,"MachineId")||""}catch(s){return e(s),""}}return""}async function uU(e){try{return await(await import("@vscode/deviceid")).getDeviceId()}catch(t){return e(t),Ve()}}var t0,s0,F2,B2=v({"out-build/vs/base/node/id.js"(){"use strict";wh(),zt(),rU(),te(),t0=new class{c(e){return this.a||(this.a=zo.forStrings(),this.a.set("00-50-56",!0),this.a.set("00-0C-29",!0),this.a.set("00-05-69",!0),this.a.set("00-03-FF",!0),this.a.set("00-1C-42",!0),this.a.set("00-16-3E",!0),this.a.set("08-00-27",!0),this.a.set("00:50:56",!0),this.a.set("00:0C:29",!0),this.a.set("00:05:69",!0),this.a.set("00:03:FF",!0),this.a.set("00:1C:42",!0),this.a.set("00:16:3E",!0),this.a.set("08:00:27",!0)),!!this.a.findSubstr(e)}value(){if(this.b===void 0){let e=0,t=0;const s=oU();for(const i in s){const n=s[i];if(n)for(const{mac:r,internal:o}of n)o||(t+=1,this.c(r.toUpperCase())&&(e+=1))}this.b=t>0?e/t:0}return this.b}},F2="Software\\Microsoft\\SQMClient"}}),i0,hU=v({"out-build/vs/platform/debug/common/extensionHostDebugIpc.js"(){"use strict";re(),V(),i0=class{constructor(){this.a=new D,this.b=new D,this.c=new D,this.d=new D}static{this.ChannelName="extensionhostdebugservice"}call(e,t,s){switch(t){case"close":return Promise.resolve(this.a.fire({sessionId:s[0]}));case"reload":return Promise.resolve(this.b.fire({sessionId:s[0]}));case"terminate":return Promise.resolve(this.c.fire({sessionId:s[0]}));case"attach":return Promise.resolve(this.d.fire({sessionId:s[0],port:s[1],subId:s[2]}))}throw new Error("Method not implemented.")}listen(e,t,s){switch(t){case"close":return this.a.event;case"reload":return this.b.event;case"terminate":return this.c.event;case"attach":return this.d.event}throw new Error("Method not implemented.")}}}}),z2,fU=v({"out-build/vs/platform/download/common/downloadIpc.js"(){"use strict";Q(),z2=class{constructor(e,t){this.a=e,this.b=t}async download(e,t){const s=this.b();s&&(e=s.transformOutgoingURI(e),t=s.transformOutgoingURI(t)),await this.a.call("download",[e,t])}}}});function H2(e){return e.toJSON()}function V2(e,t,s){if(!e||s>200)return null;if(typeof e=="object"){if(e instanceof y)return t.transformOutgoing(e);for(const i in e)if(Object.hasOwnProperty.call(e,i)){const n=V2(e[i],t,s+1);n!==null&&(e[i]=n)}}return null}function bn(e,t){const s=V2(e,t,0);return s===null?e:s}function n0(e,t,s,i){if(!e||i>200)return null;if(typeof e=="object"){if(e.$mid===1)return s?y.revive(t.transformIncoming(e)):t.transformIncoming(e);if(e instanceof R)return null;for(const n in e)if(Object.hasOwnProperty.call(e,n)){const r=n0(e[n],t,s,i+1);r!==null&&(e[n]=r)}}return null}function W2(e,t){const s=n0(e,t,!1,0);return s===null?e:s}function bf(e,t){const s=n0(e,t,!0,0);return s===null?e:s}var q2,pl,zr=v({"out-build/vs/base/common/uriIpc.js"(){"use strict";Le(),Q(),q2=class{constructor(e){this.a=e}transformIncoming(e){const t=this.a.transformIncoming(e);return t===e?e:H2(y.from(t))}transformOutgoing(e){const t=this.a.transformOutgoing(e);return t===e?e:H2(y.from(t))}transformOutgoingURI(e){const t=this.a.transformOutgoing(e);return t===e?e:y.from(t)}transformOutgoingScheme(e){return this.a.transformOutgoingScheme(e)}},pl=new class{transformIncoming(e){return e}transformOutgoing(e){return e}transformOutgoingURI(e){return e}transformOutgoingScheme(e){return e}}}});function Ei(e,t){return e?y.revive(t?t.transformIncoming(e):e):void 0}function da(e,t){return t?t.transformOutgoingURI(e):e}function ml(e,t){t=t||pl;const s=e.manifest;return{...bf({...e,manifest:void 0},t),manifest:s}}function gl(e,t){return e?.profileLocation?bf(e,t??pl):e}function wl(e,t){return t?Ci(e,s=>s instanceof y?t.transformOutgoingURI(s):void 0):e}var G2,dU=v({"out-build/vs/platform/extensionManagement/common/extensionManagementIpc.js"(){"use strict";re(),Ft(),Q(),zr(),Uh(),te(),G2=class{constructor(e,t){this.a=e,this.b=t,this.onInstallExtension=B.buffer(e.onInstallExtension,!0),this.onDidInstallExtensions=B.buffer(e.onDidInstallExtensions,!0),this.onUninstallExtension=B.buffer(e.onUninstallExtension,!0),this.onDidUninstallExtension=B.buffer(e.onDidUninstallExtension,!0),this.onDidUpdateExtensionMetadata=B.buffer(e.onDidUpdateExtensionMetadata,!0)}listen(e,t){const s=this.b(e);switch(t){case"onInstallExtension":return B.map(this.onInstallExtension,i=>({...i,profileLocation:i.profileLocation?da(i.profileLocation,s):i.profileLocation}));case"onDidInstallExtensions":return B.map(this.onDidInstallExtensions,i=>i.map(n=>({...n,local:n.local?wl(n.local,s):n.local,profileLocation:n.profileLocation?da(n.profileLocation,s):n.profileLocation})));case"onUninstallExtension":return B.map(this.onUninstallExtension,i=>({...i,profileLocation:i.profileLocation?da(i.profileLocation,s):i.profileLocation}));case"onDidUninstallExtension":return B.map(this.onDidUninstallExtension,i=>({...i,profileLocation:i.profileLocation?da(i.profileLocation,s):i.profileLocation}));case"onDidUpdateExtensionMetadata":return B.map(this.onDidUpdateExtensionMetadata,i=>({local:wl(i.local,s),profileLocation:da(i.profileLocation,s)}))}throw new Error("Invalid listen")}async call(e,t,s){const i=this.b(e);switch(t){case"zip":{const n=ml(s[0],i),r=await this.a.zip(n);return da(r,i)}case"install":return this.a.install(Ei(s[0],i),gl(s[1],i));case"installFromLocation":return this.a.installFromLocation(Ei(s[0],i),Ei(s[1],i));case"installExtensionsFromProfile":return this.a.installExtensionsFromProfile(s[0],Ei(s[1],i),Ei(s[2],i));case"getManifest":return this.a.getManifest(Ei(s[0],i));case"getTargetPlatform":return this.a.getTargetPlatform();case"installFromGallery":return this.a.installFromGallery(s[0],gl(s[1],i));case"installGalleryExtensions":{const n=s[0];return this.a.installGalleryExtensions(n.map(({extension:r,options:o})=>({extension:r,options:gl(o,i)??{}})))}case"uninstall":return this.a.uninstall(ml(s[0],i),gl(s[1],i));case"uninstallExtensions":{const n=s[0];return this.a.uninstallExtensions(n.map(({extension:r,options:o})=>({extension:ml(r,i),options:gl(o,i)})))}case"getInstalled":return(await this.a.getInstalled(s[0],Ei(s[1],i),s[2],s[3])).map(r=>wl(r,i));case"toggleApplicationScope":{const n=await this.a.toggleApplicationScope(ml(s[0],i),Ei(s[1],i));return wl(n,i)}case"copyExtensions":return this.a.copyExtensions(Ei(s[0],i),Ei(s[1],i));case"updateMetadata":{const n=await this.a.updateMetadata(ml(s[0],i),s[1],Ei(s[2],i));return wl(n,i)}case"resetPinnedStateForAllUserExtensions":return this.a.resetPinnedStateForAllUserExtensions(s[0]);case"getExtensionsControlManifest":return this.a.getExtensionsControlManifest();case"download":return this.a.download(s[0],s[1],s[2]);case"cleanUp":return this.a.cleanUp()}throw new Error("Invalid call")}}}}),J2,pU=v({"out-build/vs/platform/request/common/requestIpc.js"(){"use strict";Le(),Lt(),J2=class{constructor(e){this.a=e}listen(e,t){throw new Error("Invalid listen")}call(e,t,s,i=Ne.None){switch(t){case"request":return this.a.request(s[0],i).then(async({res:n,stream:r})=>{const o=await fn(r);return[{statusCode:n.statusCode,headers:n.headers},o]});case"resolveProxy":return this.a.resolveProxy(s[0]);case"lookupAuthorization":return this.a.lookupAuthorization(s[0]);case"lookupKerberosAuthorization":return this.a.lookupKerberosAuthorization(s[0]);case"loadCertificates":return this.a.loadCertificates()}throw new Error("Invalid call")}}}}),r0,Z2,mU=v({"out-build/vs/platform/telemetry/common/errorTelemetry.js"(){"use strict";kt(),ge(),V(),Ft(),Ge(),function(e){function t(s,i){return s.callstack<i.callstack?-1:s.callstack>i.callstack?1:0}e.compare=t}(r0||(r0={})),Z2=class mA{static{this.ERROR_FLUSH_TIMEOUT=5*1e3}constructor(t,s=mA.ERROR_FLUSH_TIMEOUT){this.f=void 0,this.g=[],this.h=new rt,this.c=t,this.d=s;const i=vu.addListener(n=>this.j(n));this.h.add(De(i)),this.i()}dispose(){clearTimeout(this.f),this.l(),this.h.dispose()}i(){}j(t){if(!t||t.code||(t.detail&&t.detail.stack&&(t=t.detail),nn.isErrorNoTelemetry(t)||t instanceof Xt||typeof t?.message=="string"&&t.message.includes("Unable to read file")))return;const s=Array.isArray(t.stack)?t.stack.join(`
`):t.stack,i=t.message?t.message:am(t);s&&this.k({msg:i,callstack:s})}k(t){const s=YA(this.g,t,r0.compare);s<0?(t.count=1,this.g.splice(~s,0,t)):(this.g[s].count||(this.g[s].count=0),this.g[s].count+=1),this.f===void 0&&(this.f=setTimeout(()=>{this.l(),this.f=void 0},this.d))}l(){for(const t of this.g)this.c.publicLogError2("UnhandledError",t);this.g.length=0}}}}),Y2,gU=v({"out-build/vs/platform/telemetry/node/errorTelemetry.js"(){"use strict";ge(),mU(),Y2=class extends Z2{i(){iy(t=>console.error(t));const e=[];process.on("unhandledRejection",(t,s)=>{e.push(s),setTimeout(()=>{const i=e.indexOf(s);i>=0&&s.catch(n=>{e.splice(i,1),sn(n)||(console.warn(`rejected promise not handled within 1 second: ${n}`),n.stack&&console.warn(`stack trace: ${n.stack}`),t&&Gt(t))})},1e3)}),process.on("rejectionHandled",t=>{const s=e.indexOf(t);s>=0&&e.splice(s,1)}),process.on("uncaughtException",t=>{ny(t)||Gt(t)})}}}}),wU,Q2,X2,K2,eE,tE,sE,vl,iE,nE,bs,rE,oE,aE,cE,lE,uE,hE,fE,dE,pE,vU,mE,o0=v({"out-build/vs/platform/terminal/common/terminal.js"(){"use strict";ie(),hc(),ui(),wU=new Dr("terminalTabFocusMode",!1,!0),function(e){e.AutomationProfile="terminal.integrated.automationProfile.",e.DefaultProfile="terminal.integrated.defaultProfile.",e.Profiles="terminal.integrated.profiles."}(Q2||(Q2={})),function(e){e.SendKeybindingsToShell="terminal.integrated.sendKeybindingsToShell",e.AutomationProfileLinux="terminal.integrated.automationProfile.linux",e.AutomationProfileMacOs="terminal.integrated.automationProfile.osx",e.AutomationProfileWindows="terminal.integrated.automationProfile.windows",e.ProfilesWindows="terminal.integrated.profiles.windows",e.ProfilesMacOs="terminal.integrated.profiles.osx",e.ProfilesLinux="terminal.integrated.profiles.linux",e.DefaultProfileLinux="terminal.integrated.defaultProfile.linux",e.DefaultProfileMacOs="terminal.integrated.defaultProfile.osx",e.DefaultProfileWindows="terminal.integrated.defaultProfile.windows",e.UseWslProfiles="terminal.integrated.useWslProfiles",e.TabsDefaultColor="terminal.integrated.tabs.defaultColor",e.TabsDefaultIcon="terminal.integrated.tabs.defaultIcon",e.TabsEnabled="terminal.integrated.tabs.enabled",e.TabsEnableAnimation="terminal.integrated.tabs.enableAnimation",e.TabsHideCondition="terminal.integrated.tabs.hideCondition",e.TabsShowActiveTerminal="terminal.integrated.tabs.showActiveTerminal",e.TabsShowActions="terminal.integrated.tabs.showActions",e.TabsLocation="terminal.integrated.tabs.location",e.TabsFocusMode="terminal.integrated.tabs.focusMode",e.MacOptionIsMeta="terminal.integrated.macOptionIsMeta",e.MacOptionClickForcesSelection="terminal.integrated.macOptionClickForcesSelection",e.AltClickMovesCursor="terminal.integrated.altClickMovesCursor",e.CopyOnSelection="terminal.integrated.copyOnSelection",e.EnableMultiLinePasteWarning="terminal.integrated.enableMultiLinePasteWarning",e.DrawBoldTextInBrightColors="terminal.integrated.drawBoldTextInBrightColors",e.FontFamily="terminal.integrated.fontFamily",e.FontSize="terminal.integrated.fontSize",e.LetterSpacing="terminal.integrated.letterSpacing",e.LineHeight="terminal.integrated.lineHeight",e.MinimumContrastRatio="terminal.integrated.minimumContrastRatio",e.TabStopWidth="terminal.integrated.tabStopWidth",e.FastScrollSensitivity="terminal.integrated.fastScrollSensitivity",e.MouseWheelScrollSensitivity="terminal.integrated.mouseWheelScrollSensitivity",e.BellDuration="terminal.integrated.bellDuration",e.FontWeight="terminal.integrated.fontWeight",e.FontWeightBold="terminal.integrated.fontWeightBold",e.CursorBlinking="terminal.integrated.cursorBlinking",e.CursorStyle="terminal.integrated.cursorStyle",e.CursorStyleInactive="terminal.integrated.cursorStyleInactive",e.CursorWidth="terminal.integrated.cursorWidth",e.Scrollback="terminal.integrated.scrollback",e.DetectLocale="terminal.integrated.detectLocale",e.DefaultLocation="terminal.integrated.defaultLocation",e.GpuAcceleration="terminal.integrated.gpuAcceleration",e.TerminalTitleSeparator="terminal.integrated.tabs.separator",e.TerminalTitle="terminal.integrated.tabs.title",e.TerminalDescription="terminal.integrated.tabs.description",e.RightClickBehavior="terminal.integrated.rightClickBehavior",e.MiddleClickBehavior="terminal.integrated.middleClickBehavior",e.Cwd="terminal.integrated.cwd",e.ConfirmOnExit="terminal.integrated.confirmOnExit",e.ConfirmOnKill="terminal.integrated.confirmOnKill",e.EnableBell="terminal.integrated.enableBell",e.EnableVisualBell="terminal.integrated.enableVisualBell",e.CommandsToSkipShell="terminal.integrated.commandsToSkipShell",e.AllowChords="terminal.integrated.allowChords",e.AllowMnemonics="terminal.integrated.allowMnemonics",e.TabFocusMode="terminal.integrated.tabFocusMode",e.EnvMacOs="terminal.integrated.env.osx",e.EnvLinux="terminal.integrated.env.linux",e.EnvWindows="terminal.integrated.env.windows",e.EnvironmentChangesIndicator="terminal.integrated.environmentChangesIndicator",e.EnvironmentChangesRelaunch="terminal.integrated.environmentChangesRelaunch",e.ShowExitAlert="terminal.integrated.showExitAlert",e.SplitCwd="terminal.integrated.splitCwd",e.WindowsEnableConpty="terminal.integrated.windowsEnableConpty",e.WindowsUseConptyDll="terminal.integrated.windowsUseConptyDll",e.WordSeparators="terminal.integrated.wordSeparators",e.EnableFileLinks="terminal.integrated.enableFileLinks",e.AllowedLinkSchemes="terminal.integrated.allowedLinkSchemes",e.UnicodeVersion="terminal.integrated.unicodeVersion",e.EnablePersistentSessions="terminal.integrated.enablePersistentSessions",e.PersistentSessionReviveProcess="terminal.integrated.persistentSessionReviveProcess",e.HideOnStartup="terminal.integrated.hideOnStartup",e.HideOnLastClosed="terminal.integrated.hideOnLastClosed",e.CustomGlyphs="terminal.integrated.customGlyphs",e.RescaleOverlappingGlyphs="terminal.integrated.rescaleOverlappingGlyphs",e.PersistentSessionScrollback="terminal.integrated.persistentSessionScrollback",e.InheritEnv="terminal.integrated.inheritEnv",e.ShowLinkHover="terminal.integrated.showLinkHover",e.IgnoreProcessNames="terminal.integrated.ignoreProcessNames",e.ShellIntegrationEnabled="terminal.integrated.shellIntegration.enabled",e.ShellIntegrationShowWelcome="terminal.integrated.shellIntegration.showWelcome",e.ShellIntegrationDecorationsEnabled="terminal.integrated.shellIntegration.decorationsEnabled",e.ShellIntegrationEnvironmentReporting="terminal.integrated.shellIntegration.environmentReporting",e.EnableImages="terminal.integrated.enableImages",e.SmoothScrolling="terminal.integrated.smoothScrolling",e.IgnoreBracketedPasteMode="terminal.integrated.ignoreBracketedPasteMode",e.FocusAfterRun="terminal.integrated.focusAfterRun",e.FontLigaturesEnabled="terminal.integrated.fontLigatures.enabled",e.FontLigaturesFeatureSettings="terminal.integrated.fontLigatures.featureSettings",e.FontLigaturesFallbackLigatures="terminal.integrated.fontLigatures.fallbackLigatures",e.DeveloperPtyHostLatency="terminal.integrated.developer.ptyHost.latency",e.DeveloperPtyHostStartupDelay="terminal.integrated.developer.ptyHost.startupDelay",e.DevMode="terminal.integrated.developer.devMode"}(X2||(X2={})),function(e){e.Bash="bash",e.Fish="fish",e.Sh="sh",e.Csh="csh",e.Ksh="ksh",e.Zsh="zsh"}(K2||(K2={})),function(e){e.CommandPrompt="cmd",e.Wsl="wsl",e.GitBash="gitbash"}(eE||(eE={})),function(e){e.PowerShell="pwsh",e.Python="python",e.Julia="julia",e.NuShell="nu",e.Node="node"}(tE||(tE={})),function(e){e[e.Api=0]="Api",e[e.Process=1]="Process",e[e.Sequence=2]="Sequence",e[e.Config=3]="Config"}(sE||(sE={})),function(e){e.LocalPty="localPty",e.PtyHost="ptyHost",e.PtyHostWindow="ptyHostWindow",e.Logger="logger",e.Heartbeat="heartbeat"}(vl||(vl={})),function(e){e.Cwd="cwd",e.InitialCwd="initialCwd",e.FixedDimensions="fixedDimensions",e.Title="title",e.ShellType="shellType",e.HasChildProcesses="hasChildProcesses",e.ResolvedShellLaunchConfig="resolvedShellLaunchConfig",e.OverrideDimensions="overrideDimensions",e.FailedShellIntegrationActivation="failedShellIntegrationActivation",e.UsedShellIntegrationInjection="usedShellIntegrationInjection",e.ShellIntegrationInjectionFailureReason="shellIntegrationInjectionFailureReason"}(iE||(iE={})),nE=X("ptyService"),function(e){e[e.BeatInterval=5e3]="BeatInterval",e[e.ConnectingBeatInterval=2e4]="ConnectingBeatInterval",e[e.FirstWaitMultiplier=1.2]="FirstWaitMultiplier",e[e.SecondWaitMultiplier=1]="SecondWaitMultiplier",e[e.CreateProcessTimeout=5e3]="CreateProcessTimeout"}(bs||(bs={})),function(e){e[e.Panel=1]="Panel",e[e.Editor=2]="Editor"}(rE||(rE={})),function(e){e.TerminalView="view",e.Editor="editor"}(oE||(oE={})),function(e){e[e.GraceTime=6e4]="GraceTime",e[e.ShortGraceTime=6e3]="ShortGraceTime"}(aE||(aE={})),function(e){e[e.HighWatermarkChars=1e5]="HighWatermarkChars",e[e.LowWatermarkChars=5e3]="LowWatermarkChars",e[e.CharCountAckSize=5e3]="CharCountAckSize"}(cE||(cE={})),function(e){e.GitBash="Git Bash",e.Pwsh="PowerShell"}(lE||(lE={})),function(e){e[e.Off=0]="Off",e[e.FinalTerm=1]="FinalTerm",e[e.VSCode=2]="VSCode"}(uE||(uE={})),function(e){e.InjectionSettingDisabled="injectionSettingDisabled",e.NoExecutable="noExecutable",e.FeatureTerminal="featureTerminal",e.IgnoreShellIntegrationFlag="ignoreShellIntegrationFlag",e.Winpty="winpty",e.UnsupportedArgs="unsupportedArgs",e.UnsupportedShell="unsupportedShell",e.FailedToSetStickyBit="failedToSetStickyBit",e.FailedToCreateTmpDir="failedToCreateTmpDir"}(hE||(hE={})),function(e){e[e.Unknown=0]="Unknown",e[e.Shutdown=1]="Shutdown",e[e.Process=2]="Process",e[e.User=3]="User",e[e.Extension=4]="Extension"}(fE||(fE={})),dE={Backend:"workbench.contributions.terminal.processBackend"},pE=class{constructor(){this.a=new Map}get backends(){return this.a}registerTerminalBackend(e){const t=this.b(e.remoteAuthority);if(this.a.has(t))throw new Error(`A terminal backend with remote authority '${t}' was already registered.`);this.a.set(t,e)}getTerminalBackend(e){return this.a.get(this.b(e))}b(e){return e?.toLowerCase()??""}},Bt.add(dE.Backend,new pE),vU=X("localPtyService"),mE=X("terminalLogService")}}),gE,wE,vE=v({"out-build/vs/platform/log/common/logIpc.js"(){"use strict";Q(),re(),Ie(),V(),gE=class{constructor(e,t){this.a=e,this.b=t}listen(e,t){const s=this.b(e);switch(t){case"onDidChangeLoggers":return B.map(this.a.onDidChangeLoggers,i=>({added:[...i.added].map(n=>this.c(n,s)),removed:[...i.removed].map(n=>this.c(n,s))}));case"onDidChangeVisibility":return B.map(this.a.onDidChangeVisibility,i=>[s.transformOutgoingURI(i[0]),i[1]]);case"onDidChangeLogLevel":return B.map(this.a.onDidChangeLogLevel,i=>g5(i)?i:[s.transformOutgoingURI(i[0]),i[1]])}throw new Error(`Event not found: ${t}`)}async call(e,t,s){const i=this.b(e);switch(t){case"setLogLevel":return g5(s[0])?this.a.setLogLevel(s[0]):this.a.setLogLevel(y.revive(i.transformIncoming(s[0][0])),s[0][1]);case"getRegisteredLoggers":return Promise.resolve([...this.a.getRegisteredLoggers()].map(n=>this.c(n,i)))}throw new Error(`Call not found: ${t}`)}c(e,t){return{...e,resource:t.transformOutgoingURI(e.resource)}}},wE=class extends W{constructor(e,t){super(),t.call("setLogLevel",[e.getLogLevel()]),this.B(e.onDidChangeLogLevel(s=>t.call("setLogLevel",[s]))),t.call("getRegisteredLoggers").then(s=>{for(const i of s)e.registerLogger({...i,resource:y.revive(i.resource)})}),this.B(t.listen("onDidChangeVisibility")(([s,i])=>e.setVisibility(y.revive(s),i))),this.B(t.listen("onDidChangeLoggers")(({added:s,removed:i})=>{for(const n of s)e.registerLogger({...n,resource:y.revive(n.resource)});for(const n of i)e.deregisterLogger(n.resource)}))}}}}),yf,bU=v({"out-build/vs/platform/terminal/common/requestStore.js"(){"use strict";Ae(),Lt(),re(),V(),Ie(),yf=class extends W{constructor(t,s){super(),this.h=s,this.a=0,this.c=new Map,this.f=new Map,this.g=this.B(new D),this.onCreateRequest=this.g.event,this.b=t===void 0?15e3:t,this.B(De(()=>{for(const i of this.f.values())jt(i)}))}createRequest(t){return new Promise((s,i)=>{const n=++this.a;this.c.set(n,s),this.g.fire({requestId:n,...t});const r=new Oi;bo(this.b,r.token).then(()=>i(`Request ${n} timed out (${this.b}ms)`)),this.f.set(n,[De(()=>r.cancel())])})}acceptReply(t,s){const i=this.c.get(t);i?(this.c.delete(t),jt(this.f.get(t)||[]),this.f.delete(t),i(s)):this.h.warn(`RequestStore#acceptReply was called without receiving a matching request ${t}`)}},yf=__decorate([__param(1,fe)],yf)}});function yU(e,t){const s=[{name:null,description:m(2310,null)}];return s.push(...e.map(i=>({name:i.profileName,description:EU(i)}))),t&&s.push(...t.map(i=>({name:i.title,description:xU(i)}))),{values:s.map(i=>i.name),markdownDescriptions:s.map(i=>i.description)}}function EU(e){let t=`$(${vs.isThemeIcon(e.icon)?e.icon.id:e.icon?e.icon:U.terminal.id}) ${e.profileName}
- path: ${e.path}`;return e.args&&(typeof e.args=="string"?t+=`
- args: "${e.args}"`:t+=`
- args: [${e.args.length===0?"":`'${e.args.join("','")}'`}]`),e.overrideName!==void 0&&(t+=`
- overrideName: ${e.overrideName}`),e.color&&(t+=`
- color: ${e.color}`),e.env&&(t+=`
- env: ${JSON.stringify(e.env)}`),t}function xU(e){return`$(${vs.isThemeIcon(e.icon)?e.icon.id:e.icon?e.icon:U.terminal.id}) ${e.title}
- extensionIdentifier: ${e.extensionIdentifier}`}var kU=v({"out-build/vs/platform/terminal/common/terminalProfiles.js"(){"use strict";Hn(),Q(),ce(),Oh()}});function a0(e){const t=e===2?"linux":e===1?"osx":"windows";return m(2286,null,Lb(e),'```json\n"terminal.integrated.profile.'+t+'": {\n  "bash": null\n}\n```',"[","](https://code.visualstudio.com/docs/terminal/profiles)")}function $U(){Bt.as(qs.Configuration).registerConfiguration(EE),SU()}function SU(e,t){const s=Bt.as(qs.Configuration);let i;e&&(i=yU(e?.profiles,t));const n=c0;c0={id:"terminal",order:100,title:m(2306,null),type:"object",properties:{"terminal.integrated.defaultProfile.linux":{restricted:!0,markdownDescription:m(2307,null),type:["string","null"],default:null,enum:e?.os===3?i?.values:void 0,markdownEnumDescriptions:e?.os===3?i?.markdownDescriptions:void 0},"terminal.integrated.defaultProfile.osx":{restricted:!0,markdownDescription:m(2308,null),type:["string","null"],default:null,enum:e?.os===2?i?.values:void 0,markdownEnumDescriptions:e?.os===2?i?.markdownDescriptions:void 0},"terminal.integrated.defaultProfile.windows":{restricted:!0,markdownDescription:m(2309,null),type:["string","null"],default:null,enum:e?.os===1?i?.values:void 0,markdownEnumDescriptions:e?.os===1?i?.markdownDescriptions:void 0}}},s.updateConfigurations({add:[c0],remove:n?[n]:[]})}var bE,yE,Hr,Ef,xf,EE,c0,PU=v({"out-build/vs/platform/terminal/common/terminalPlatformConfiguration.js"(){"use strict";Hn(),te(),ce(),Ar(),ui(),kU(),bE={type:["string","null"],enum:["terminal.ansiBlack","terminal.ansiRed","terminal.ansiGreen","terminal.ansiYellow","terminal.ansiBlue","terminal.ansiMagenta","terminal.ansiCyan","terminal.ansiWhite"],default:null},yE={type:"string",enum:Array.from(P6(),e=>e.id),markdownEnumDescriptions:Array.from(P6(),e=>`$(${e.id})`)},Hr={args:{description:m(2279,null),type:"array",items:{type:"string"}},overrideName:{description:m(2280,null),type:"boolean"},icon:{description:m(2281,null),...yE},color:{description:m(2282,null),...bE},env:{markdownDescription:m(2283,null),type:"object",additionalProperties:{type:["string","null"]},default:{}}},Ef={type:"object",required:["path"],properties:{path:{description:m(2284,null),type:["string","array"],items:{type:"string"}},...Hr}},xf={type:"object",required:["path"],properties:{path:{description:m(2285,null),type:["string"],items:{type:"string"}},...Hr}},EE={id:"terminal",order:100,title:m(2287,null),type:"object",properties:{"terminal.integrated.automationProfile.linux":{restricted:!0,markdownDescription:m(2288,null),type:["object","null"],default:null,anyOf:[{type:"null"},xf],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},"terminal.integrated.automationProfile.osx":{restricted:!0,markdownDescription:m(2289,null),type:["object","null"],default:null,anyOf:[{type:"null"},xf],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},"terminal.integrated.automationProfile.windows":{restricted:!0,markdownDescription:m(2290,null,"`terminal.integrated.automationShell.windows`"),type:["object","null"],default:null,anyOf:[{type:"null"},xf],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},"terminal.integrated.profiles.windows":{restricted:!0,markdownDescription:a0(3),type:"object",default:{PowerShell:{source:"PowerShell",icon:"terminal-powershell"},"Command Prompt":{path:["${env:windir}\\Sysnative\\cmd.exe","${env:windir}\\System32\\cmd.exe"],args:[],icon:"terminal-cmd"},"Git Bash":{source:"Git Bash"}},additionalProperties:{anyOf:[{type:"object",required:["source"],properties:{source:{description:m(2291,null),enum:["PowerShell","Git Bash"]},...Hr}},{type:"object",required:["extensionIdentifier","id","title"],properties:{extensionIdentifier:{description:m(2292,null),type:"string"},id:{description:m(2293,null),type:"string"},title:{description:m(2294,null),type:"string"},...Hr}},{type:"null"},Ef]}},"terminal.integrated.profiles.osx":{restricted:!0,markdownDescription:a0(1),type:"object",default:{bash:{path:"bash",args:["-l"],icon:"terminal-bash"},zsh:{path:"zsh",args:["-l"]},fish:{path:"fish",args:["-l"]},tmux:{path:"tmux",icon:"terminal-tmux"},pwsh:{path:"pwsh",icon:"terminal-powershell"}},additionalProperties:{anyOf:[{type:"object",required:["extensionIdentifier","id","title"],properties:{extensionIdentifier:{description:m(2295,null),type:"string"},id:{description:m(2296,null),type:"string"},title:{description:m(2297,null),type:"string"},...Hr}},{type:"null"},Ef]}},"terminal.integrated.profiles.linux":{restricted:!0,markdownDescription:a0(2),type:"object",default:{bash:{path:"bash",icon:"terminal-bash"},zsh:{path:"zsh"},fish:{path:"fish"},tmux:{path:"tmux",icon:"terminal-tmux"},pwsh:{path:"pwsh",icon:"terminal-powershell"}},additionalProperties:{anyOf:[{type:"object",required:["extensionIdentifier","id","title"],properties:{extensionIdentifier:{description:m(2298,null),type:"string"},id:{description:m(2299,null),type:"string"},title:{description:m(2300,null),type:"string"},...Hr}},{type:"null"},Ef]}},"terminal.integrated.useWslProfiles":{description:m(2301,null),type:"boolean",default:!0},"terminal.integrated.inheritEnv":{scope:1,description:m(2302,null),type:"boolean",default:!0},"terminal.integrated.persistentSessionScrollback":{scope:1,markdownDescription:m(2303,null),type:"number",default:100},"terminal.integrated.showLinkHover":{scope:1,description:m(2304,null),type:"boolean",default:!0},"terminal.integrated.ignoreProcessNames":{markdownDescription:m(2305,null,"`#terminal.integrated.confirmOnKill#`"),type:"array",items:{type:"string",uniqueItems:!0},default:["starship","oh-my-posh","bash","zsh"]}}}}}),yn,xE=v({"out-build/vs/platform/terminal/common/environmentVariable.js"(){"use strict";(function(e){e[e.Replace=1]="Replace",e[e.Append=2]="Append",e[e.Prepend=3]="Prepend"})(yn||(yn={}))}});function IU(e){return[...e.entries()]}function DU(e){return e?[...e.entries()]:[]}function AU(e){return new Map(e)}function LU(e){return new Map(e??[])}var l0=v({"out-build/vs/platform/terminal/common/environmentVariableShared.js"(){"use strict"}});function kE(e,t,s=!1){return e.scope?!!(e.scope.workspaceFolder&&t?.workspaceFolder&&e.scope.workspaceFolder.index===t.workspaceFolder.index):s?t===e.scope:!0}function $E(e,t){if(!t)return e;const s=new Set;t.forEach(n=>s.add(n.extensionIdentifier));const i=[];return e.forEach(n=>{s.has(n.extensionIdentifier)||i.push(n)}),i.length===0?void 0:i}function RU(e,t){if(!t)return;const s=new Map;t.forEach(n=>s.set(n.extensionIdentifier,n));const i=[];return e.forEach(n=>{const r=s.get(n.extensionIdentifier);r&&(n.type!==r.type||n.value!==r.value||n.scope?.workspaceFolder?.index!==r.scope?.workspaceFolder?.index)&&i.push(r)}),i.length===0?void 0:i}var SE,PE,IE=v({"out-build/vs/platform/terminal/common/environmentVariableCollection.js"(){"use strict";te(),xE(),SE=new Map([[yn.Append,"APPEND"],[yn.Prepend,"PREPEND"],[yn.Replace,"REPLACE"]]),PE=class{constructor(e){this.collections=e,this.a=new Map,this.b=new Map,e.forEach((t,s)=>{this.d(t,s);const i=t.map.entries();let n=i.next();for(;!n.done;){const r=n.value[1],o=n.value[0];let a=this.a.get(o);if(a||(a=[],this.a.set(o,a)),a.length>0&&a[0].type===yn.Replace){n=i.next();continue}const c={extensionIdentifier:s,value:r.value,type:r.type,scope:r.scope,variable:r.variable,options:r.options};c.scope||delete c.scope,a.unshift(c),n=i.next()}})}async applyToProcessEnvironment(e,t,s){let i;me&&(i={},Object.keys(e).forEach(n=>i[n.toLowerCase()]=n));for(const[n,r]of this.getVariableMap(t)){const o=me&&i[n.toLowerCase()]||n;for(const a of r){const c=s?await s(a.value):a.value;if(a.options?.applyAtProcessCreation??!0)switch(a.type){case yn.Append:e[o]=(e[o]||"")+c;break;case yn.Prepend:e[o]=c+(e[o]||"");break;case yn.Replace:e[o]=c;break}if(a.options?.applyAtShellIntegration??!1){const l=`VSCODE_ENV_${SE.get(a.type)}`;e[l]=(e[l]?e[l]+":":"")+n+"="+this.c(c)}}}}c(e){return e.replaceAll(":","\\x3a")}diff(e,t){const s=new Map,i=new Map,n=new Map;if(e.getVariableMap(t).forEach((r,o)=>{const a=this.getVariableMap(t).get(o),c=$E(r,a);c&&s.set(o,c)}),this.getVariableMap(t).forEach((r,o)=>{const a=e.getVariableMap(t).get(o),c=$E(r,a);c&&n.set(o,c)}),this.getVariableMap(t).forEach((r,o)=>{const a=e.getVariableMap(t).get(o),c=RU(r,a);c&&i.set(o,c)}),!(s.size===0&&i.size===0&&n.size===0))return{added:s,changed:i,removed:n}}getVariableMap(e){const t=new Map;for(const s of this.a.values()){const i=s.filter(n=>kE(n,e));i.length>0&&t.set(i[0].variable,i)}return t}getDescriptionMap(e){const t=new Map;for(const s of this.b.values()){const i=s.filter(n=>kE(n,e,!0));for(const n of i)t.set(n.extensionIdentifier,n.description)}return t}d(e,t){if(!e.descriptionMap)return;const s=e.descriptionMap.entries();let i=s.next();for(;!i.done;){const n=i.value[1],r=i.value[0];let o=this.b.get(r);o||(o=[],this.b.set(r,o));const a={extensionIdentifier:t,scope:n.scope,description:n.description};a.scope||delete a.scope,o.push(a),i=s.next()}}}}});import*as NU from"os";import"fs";import"util";function OU(){const e=/(\d+)\.(\d+)\.(\d+)/g.exec(NU.release());let t=0;return e&&e.length===4&&(t=parseInt(e[3])),t}var xi,Ti,CU=v({"out-build/vs/platform/terminal/node/terminalEnvironment.js"(){"use strict";Se(),he(),te(),ri(),at(),xE(),l0(),IE(),function(e){e.WindowsPwsh="windows-pwsh",e.WindowsPwshLogin="windows-pwsh-login",e.Pwsh="pwsh",e.PwshLogin="pwsh-login",e.Zsh="zsh",e.ZshLogin="zsh-login",e.Bash="bash",e.Fish="fish",e.FishLogin="fish-login"}(xi||(xi={})),Ti=new Map,Ti.set(xi.WindowsPwsh,["-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\common\\scripts\\shellIntegration.ps1" } catch {}{1}']),Ti.set(xi.WindowsPwshLogin,["-l","-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\common\\scripts\\shellIntegration.ps1" } catch {}{1}']),Ti.set(xi.Pwsh,["-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1"{1}']),Ti.set(xi.PwshLogin,["-l","-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.ps1"']),Ti.set(xi.Zsh,["-i"]),Ti.set(xi.ZshLogin,["-il"]),Ti.set(xi.Bash,["--init-file","{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration-bash.sh"]),Ti.set(xi.Fish,["--init-command",'source "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.fish"']),Ti.set(xi.FishLogin,["-l","--init-command",'source "{0}/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration.fish"'])}});import*as _U from"fs";import*as MU from"child_process";function UU(e,t,s,i,n=process.env,r,o,a,c){return r=r||{existsFile:fs.existsFile,readFile:_U.promises.readFile},me?jU(s,r,n,o,i.getValue("terminal.integrated.useWslProfiles")!==!1,e&&typeof e=="object"?{...e}:i.getValue("terminal.integrated.profiles.windows"),typeof t=="string"?t:i.getValue("terminal.integrated.defaultProfile.windows"),c,a):WU(r,o,s,e&&typeof e=="object"?{...e}:i.getValue(ut?"terminal.integrated.profiles.linux":"terminal.integrated.profiles.osx"),typeof t=="string"?t:i.getValue(ut?"terminal.integrated.defaultProfile.linux":"terminal.integrated.defaultProfile.osx"),c,a,n)}async function jU(e,t,s,i,n,r,o,a,c){const l=process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432"),u=`${process.env.windir}\\${l?"Sysnative":"System32"}`,h=OU()>=22e3;await FU(a);const f=new Map;if(e){f.set("PowerShell",{source:"PowerShell",icon:U.terminalPowershell,isAutoDetected:!0}),f.set("Windows PowerShell",{path:`${u}\\WindowsPowerShell\\v1.0\\powershell.exe`,icon:U.terminalPowershell,isAutoDetected:!0}),f.set("Git Bash",{source:"Git Bash",isAutoDetected:!0}),f.set("Command Prompt",{path:`${u}\\cmd.exe`,icon:U.terminalCmd,isAutoDetected:!0}),f.set("Cygwin",{path:[{path:`${process.env.HOMEDRIVE}\\cygwin64\\bin\\bash.exe`,isUnsafe:!0},{path:`${process.env.HOMEDRIVE}\\cygwin\\bin\\bash.exe`,isUnsafe:!0}],args:["--login"],isAutoDetected:!0}),f.set("bash (MSYS2)",{path:[{path:`${process.env.HOMEDRIVE}\\msys64\\usr\\bin\\bash.exe`,isUnsafe:!0}],args:["--login","-i"],env:{CHERE_INVOKING:"1"},icon:U.terminalBash,isAutoDetected:!0});const g=`${process.env.CMDER_ROOT||`${process.env.HOMEDRIVE}\\cmder`}\\vendor\\bin\\vscode_init.cmd`;f.set("Cmder",{path:`${u}\\cmd.exe`,args:["/K",g],requiresPath:process.env.CMDER_ROOT?g:{path:g,isUnsafe:!0},isAutoDetected:!0})}LE(r,f);const p=await DE(f.entries(),o,t,s,i,c);if(e&&n)try{const g=await HU(`${u}\\${h?"wsl":"bash"}.exe`,o);for(const w of g)(!r||!(w.profileName in r))&&p.push(w)}catch{u0&&(i?.trace("WSL is not installed, so could not detect WSL profiles"),u0=!1)}return p}async function DE(e,t,s,i=process.env,n,r){const o=[];for(const[a,c]of e)o.push(TU(a,c,t,s,i,n,r));return(await Promise.all(o)).filter(a=>!!a)}async function TU(e,t,s,i,n=process.env,r,o){if(t===null)return;let a,c,l;if("source"in t&&!("path"in t)){const p=bl?.get(t.source);if(!p)return;a=p.paths,c=t.args||p.args,t.icon?l=AE(t.icon):p.icon&&(l=p.icon)}else a=Array.isArray(t.path)?t.path:[t.path],c=me||Array.isArray(t.args)?t.args:void 0,l=AE(t.icon);let u;if(o){const p=a.map(w=>typeof w=="string"?w:w.path),g=await o(p);u=new Array(a.length);for(let w=0;w<a.length;w++)typeof a[w]=="string"?u[w]=g[w]:u[w]={path:g[w],isUnsafe:!0}}else u=a.slice();let h;if(t.requiresPath){let p;if(ue(t.requiresPath)?p=t.requiresPath:(p=t.requiresPath.path,t.requiresPath.isUnsafe&&(h=p)),!await i.existsFile(p))return}const f=await kf(e,s,u,i,n,c,t.env,t.overrideName,t.isAutoDetected,h);if(!f){r?.debug("Terminal profile not validated",e,a);return}return f.isAutoDetected=t.isAutoDetected,f.icon=l,f.color=t.color,f}function AE(e){return typeof e=="string"?{id:e}:e}async function FU(e){if(bl&&!e)return;const[t,s]=await Promise.all([BU(),e||zU()]);bl=new Map,bl.set("Git Bash",{profileName:"Git Bash",paths:t,args:["--login","-i"]}),bl.set("PowerShell",{profileName:"PowerShell",paths:s,icon:U.terminalPowershell})}async function BU(){const e=new Set,t=await p9("git.exe");if(t){const n=Ut(t);e.add(oi(n,"../.."))}function s(n,r){r&&n.add(r)}s(e,process.env.ProgramW6432),s(e,process.env.ProgramFiles),s(e,process.env["ProgramFiles(X86)"]),s(e,`${process.env.LocalAppData}\\Program`);const i=[];for(const n of e)i.push(`${n}\\Git\\bin\\bash.exe`,`${n}\\Git\\usr\\bin\\bash.exe`,`${n}\\usr\\bin\\bash.exe`);return i.push(`${process.env.UserProfile}\\scoop\\apps\\git\\current\\bin\\bash.exe`),i.push(`${process.env.UserProfile}\\scoop\\apps\\git-with-openssh\\current\\bin\\bash.exe`),i}async function zU(){const e=[];for await(const t of r9())e.push(t.exePath);return e}async function HU(e,t){const s=[],i=await new Promise((o,a)=>{MU.exec("wsl.exe -l -q",{encoding:"utf16le",timeout:1e3},(c,l)=>{if(c)return a("Problem occurred when getting wsl distros");o(l)})});if(!i)return[];const n=new RegExp(/[\r?\n]/),r=i.split(n).filter(o=>o.trim().length>0&&o!=="");for(const o of r){if(o===""||o.startsWith("docker-desktop"))continue;const a=`${o} (WSL)`,c={profileName:a,path:e,args:["-d",`${o}`],isDefault:a===t,icon:VU(o),isAutoDetected:!1};s.push(c)}return s}function VU(e){return e.includes("Ubuntu")?U.terminalUbuntu:e.includes("Debian")?U.terminalDebian:U.terminalLinux}async function WU(e,t,s,i,n,r,o,a){const c=new Map;if(s&&await e.existsFile("/etc/shells")){const l=(await e.readFile("/etc/shells")).toString(),u=(r||l.split(`
`)).map(f=>{const p=f.indexOf("#");return p===-1?f:f.substring(0,p)}).filter(f=>f.trim().length>0),h=new Map;for(const f of u){let p=ht(f),g=h.get(p)||0;g++,g>1&&(p=`${p} (${g})`),h.set(p,g),c.set(p,{path:f,isAutoDetected:!0})}}return LE(i,c),await DE(c.entries(),n,e,a,t,o)}function LE(e,t){if(e)for(const[s,i]of Object.entries(e))i===null||typeof i!="object"||!("path"in i)&&!("source"in i)?t.delete(s):(i.icon=i.icon||t.get(s)?.icon,t.set(s,i))}async function kf(e,t,s,i,n,r,o,a,c,l){if(s.length===0)return Promise.resolve(void 0);const u=s.shift();if(u==="")return kf(e,t,s,i,n,r,o,a,c);const h=typeof u!="string"&&u.isUnsafe,f=typeof u=="string"?u:u.path,p={profileName:e,path:f,args:r,env:o,overrideName:a,isAutoDetected:c,isDefault:e===t,isUnsafePath:h,requiresUnsafePath:l};if(ht(f)===f){const w=n.PATH?n.PATH.split(Wa):void 0,b=await p9(f,void 0,w,void 0,i.existsFile);return b?(p.path=b,p.isFromPath=!0,p):kf(e,t,s,i,n,r)}return await i.existsFile(Hs(f))?p:kf(e,t,s,i,n,r,o,a,c)}var RE,bl,u0,qU=v({"out-build/vs/platform/terminal/node/terminalProfiles.js"(){"use strict";Hn(),he(),te(),bm(),be(),ds(),l9(),CU(),function(e){e.UnixShellsPath="/etc/shells"}(RE||(RE={})),u0=!0}}),h0,$f,GU=v({"out-build/vs/platform/terminal/node/ptyHostService.js"(){"use strict";re(),V(),te(),ia(),Yt(),Ie(),vE(),Em(),bU(),o0(),PU(),qU(),g9(),mo(),function(e){e[e.MaxRestarts=5]="MaxRestarts"}(h0||(h0={})),$f=class extends W{get c(){return this.h(),this.a}get f(){return this.h(),this.b}get g(){return this.b}h(){this.a||this.U()}constructor(t,s,i,n){super(),this.M=t,this.N=s,this.O=i,this.P=n,this.m=!1,this.n=0,this.r=!0,this.u=this.B(new D),this.onPtyHostExit=this.u.event,this.w=this.B(new D),this.onPtyHostStart=this.w.event,this.y=this.B(new D),this.onPtyHostUnresponsive=this.y.event,this.z=this.B(new D),this.onPtyHostResponsive=this.z.event,this.C=this.B(new D),this.onPtyHostRequestResolveVariables=this.C.event,this.D=this.B(new D),this.onProcessData=this.D.event,this.F=this.B(new D),this.onProcessReady=this.F.event,this.G=this.B(new D),this.onProcessReplay=this.G.event,this.H=this.B(new D),this.onProcessOrphanQuestion=this.H.event,this.I=this.B(new D),this.onDidRequestDetach=this.I.event,this.J=this.B(new D),this.onDidChangeProperty=this.J.event,this.L=this.B(new D),this.onProcessExit=this.L.event,$U(),this.B(this.M),this.B(De(()=>this.W())),this.j=this.B(new yf(void 0,this.O)),this.B(this.j.onCreateRequest(this.C.fire,this.C)),this.M.onRequestConnection&&this.B(B.once(this.M.onRequestConnection)(()=>this.h())),this.M.onWillShutdown&&this.B(this.M.onWillShutdown(()=>this.m=!0))}get Q(){return this.N.getValue("terminal.integrated.ignoreProcessNames")}async R(){return this.g?.refreshIgnoreProcessNames?.(this.Q)}async S(){if(me)return process.env;try{return await ym(this.N,this.O,{_:[]},process.env)}catch(t){return this.O.error("ptyHost was unable to resolve shell environment",t),{}}}U(){const t=this.M.start(),s=t.client;this.O.getLevel()===G.Trace&&this.O.trace("PtyHostService#_startPtyHost",new Error().stack?.replace(/^Error/,"")),sa.toService(s.getChannel(vl.Heartbeat)).onBeat(()=>this.X()),this.X(!0),this.B(t.onDidProcessExit(r=>{this.u.fire(r.code),!this.m&&!this.q.isDisposed&&(this.n<=h0.MaxRestarts?(this.O.error(`ptyHost terminated unexpectedly with code ${r.code}`),this.n++,this.restartPtyHost()):this.O.error(`ptyHost terminated unexpectedly with code ${r.code}, giving up`))}));const n=sa.toService(s.getChannel(vl.PtyHost));return this.B(n.onProcessData(r=>this.D.fire(r))),this.B(n.onProcessReady(r=>this.F.fire(r))),this.B(n.onProcessExit(r=>this.L.fire(r))),this.B(n.onDidChangeProperty(r=>this.J.fire(r))),this.B(n.onProcessReplay(r=>this.G.fire(r))),this.B(n.onProcessOrphanQuestion(r=>this.H.fire(r))),this.B(n.onDidRequestDetach(r=>this.I.fire(r))),this.B(new wE(this.P,s.getChannel(vl.Logger))),this.a=t,this.b=n,this.w.fire(),this.B(this.N.onDidChangeConfiguration(async r=>{r.affectsConfiguration("terminal.integrated.ignoreProcessNames")&&await this.R()})),this.R(),[t,n]}async createProcess(t,s,i,n,r,o,a,c,l,u,h){const f=setTimeout(()=>this.$(),bs.CreateProcessTimeout),p=await this.f.createProcess(t,s,i,n,r,o,a,c,l,u,h);return clearTimeout(f),p}updateTitle(t,s,i){return this.f.updateTitle(t,s,i)}updateIcon(t,s,i,n){return this.f.updateIcon(t,s,i,n)}attachToProcess(t){return this.f.attachToProcess(t)}detachFromProcess(t,s){return this.f.detachFromProcess(t,s)}shutdownAll(){return this.f.shutdownAll()}listProcesses(){return this.f.listProcesses()}async getPerformanceMarks(){return this.g?.getPerformanceMarks()??[]}async reduceConnectionGraceTime(){return this.g?.reduceConnectionGraceTime()}start(t){return this.f.start(t)}shutdown(t,s){return this.f.shutdown(t,s)}input(t,s){return this.f.input(t,s)}sendSignal(t,s){return this.f.sendSignal(t,s)}processBinary(t,s){return this.f.processBinary(t,s)}resize(t,s,i){return this.f.resize(t,s,i)}clearBuffer(t){return this.f.clearBuffer(t)}acknowledgeDataEvent(t,s){return this.f.acknowledgeDataEvent(t,s)}setUnicodeVersion(t,s){return this.f.setUnicodeVersion(t,s)}getInitialCwd(t){return this.f.getInitialCwd(t)}getCwd(t){return this.f.getCwd(t)}async getLatency(){const t=new on,s=await this.f.getLatency();return t.stop(),[{label:"ptyhostservice<->ptyhost",latency:t.elapsed()},...s]}orphanQuestionReply(t){return this.f.orphanQuestionReply(t)}installAutoReply(t,s){return this.f.installAutoReply(t,s)}uninstallAllAutoReplies(){return this.f.uninstallAllAutoReplies()}getDefaultSystemShell(t){return this.g?.getDefaultSystemShell(t)??m9(t??dr,process.env)}async getProfiles(t,s,i,n=!1){const r=await this.S();return UU(s,i,n,this.N,r,void 0,this.O,this.bb.bind(this,t))}async getEnvironment(){return this.b?this.f.getEnvironment():{...process.env}}getWslPath(t,s){return this.f.getWslPath(t,s)}getRevivedPtyNewId(t,s){return this.f.getRevivedPtyNewId(t,s)}setTerminalLayoutInfo(t){return this.f.setTerminalLayoutInfo(t)}async getTerminalLayoutInfo(t){return this.g?.getTerminalLayoutInfo(t)}async requestDetachInstance(t,s){return this.f.requestDetachInstance(t,s)}async acceptDetachInstanceReply(t,s){return this.f.acceptDetachInstanceReply(t,s)}async freePortKillProcess(t){if(!this.f.freePortKillProcess)throw new Error("freePortKillProcess does not exist on the pty proxy");return this.f.freePortKillProcess(t)}async serializeTerminalState(t){return this.f.serializeTerminalState(t)}async reviveTerminalProcesses(t,s,i){return this.f.reviveTerminalProcesses(t,s,i)}async refreshProperty(t,s){return this.f.refreshProperty(t,s)}async updateProperty(t,s,i){return this.f.updateProperty(t,s,i)}async restartPtyHost(){this.W(),this.r=!0,this.U()}W(){this.f.shutdownAll(),this.c.store.dispose()}X(t){this.ab(),this.s=setTimeout(()=>this.Y(),t?bs.ConnectingBeatInterval:bs.BeatInterval*bs.FirstWaitMultiplier),this.r||(this.r=!0,this.z.fire())}Y(){this.O.warn(`No ptyHost heartbeat after ${bs.BeatInterval*bs.FirstWaitMultiplier/1e3} seconds`),this.s=void 0,this.t=setTimeout(()=>this.Z(),bs.BeatInterval*bs.SecondWaitMultiplier)}Z(){this.O.error(`No ptyHost heartbeat after ${(bs.BeatInterval*bs.FirstWaitMultiplier+bs.BeatInterval*bs.FirstWaitMultiplier)/1e3} seconds`),this.t=void 0,this.r&&(this.r=!1,this.y.fire())}$(){this.ab(),this.O.error(`No ptyHost response to createProcess after ${bs.CreateProcessTimeout/1e3} seconds`),this.r&&(this.r=!1,this.y.fire())}ab(){this.s&&(clearTimeout(this.s),this.s=void 0),this.t&&(clearTimeout(this.t),this.t=void 0)}bb(t,s){return this.j.createRequest({workspaceId:t,originalText:s})}async acceptPtyHostResolvedVariables(t,s){this.j.acceptReply(t,s)}},$f=__decorate([__param(1,Zt),__param(2,fe),__param(3,Lo)],$f)}});function JU(e){return{transformIncoming:t=>t.scheme==="vscode-remote"?{scheme:"file",path:t.path,query:t.query,fragment:t.fragment}:t.scheme==="file"?{scheme:"vscode-local",path:t.path,query:t.query,fragment:t.fragment}:t,transformOutgoing:t=>t.scheme==="file"?{scheme:"vscode-remote",authority:e,path:t.path,query:t.query,fragment:t.fragment}:t.scheme==="vscode-local"?{scheme:"file",path:t.path,query:t.query,fragment:t.fragment}:t,transformOutgoingScheme:t=>t==="file"?"vscode-remote":t==="vscode-local"?"file":t}}function yl(e){return new q2(JU(e))}var Sf=v({"out-build/vs/workbench/api/node/uriTransformer.js"(){"use strict";zr()}});import{exec as Pf}from"child_process";import{totalmem as ZU}from"os";function f0(e){return new Promise((t,s)=>{let i;const n=new Map,r=ZU();function o(l,u,h,f,p){const g=n.get(u);if(l===e||g){const w={name:a(h),cmd:h,pid:l,ppid:u,load:f,mem:me?p:r*(p/100)};n.set(l,w),l===e&&(i=w),g&&(g.children||(g.children=[]),g.children.push(w),g.children.length>1&&(g.children=g.children.sort((b,x)=>b.pid-x.pid)))}}function a(l){const u=/--utility-sub-type=network/i,h=/--crashes-directory/i,f=/\\pipe\\winpty-control/i,p=/conhost\.exe.+--headless/i,g=/--type=([a-zA-Z-]+)/;if(h.exec(l))return"electron-crash-reporter";if(f.exec(l))return"winpty-agent";if(p.exec(l))return"conpty-agent";let w=g.exec(l);if(w&&w.length===2)return w[1]==="renderer"?"window":w[1]==="utility"?u.exec(l)?"utility-network-service":"utility-process":w[1]==="extensionHost"?"extension-host":w[1];const b=/[a-zA-Z-]+\.js/g;let x="";do w=b.exec(l),w&&(x+=w+" ");while(w);return x&&l.indexOf("node ")<0&&l.indexOf("node.exe")<0?`electron-nodejs (${x})`:l}if(process.platform==="win32"){const l=u=>u.indexOf("\\\\?\\")===0||u.indexOf("\\??\\")===0?u.substring(4):u.indexOf('"\\\\?\\')===0||u.indexOf('"\\??\\')===0?'"'+u.substring(5):u;import("@vscode/windows-process-tree").then(u=>{u.getProcessList(e,h=>{if(!h){s(new Error(`Root process ${e} not found`));return}u.getProcessCpuUsage(h,f=>{const p=new Map;f.forEach(g=>{const w=l(g.commandLine||"");p.set(g.pid,{name:a(w),cmd:w,pid:g.pid,ppid:g.ppid,load:g.cpu||0,mem:g.memory||0})}),i=p.get(e),i?(p.forEach(g=>{const w=p.get(g.ppid);w&&(w.children||(w.children=[]),w.children.push(g))}),p.forEach(g=>{g.children&&(g.children=g.children.sort((w,b)=>w.pid-b.pid))}),t(i)):s(new Error(`Root process ${e} not found`))})},u.ProcessDataFlag.CommandLine|u.ProcessDataFlag.Memory)})}else{let l=function(){let u=[i];const h=[];for(;u.length;){const p=u.shift();p&&(h.push(p.pid),p.children&&(u=u.concat(p.children)))}let f=JSON.stringify(Ct.asFileUri("vs/base/node/cpuUsage.sh").fsPath);f+=" "+h.join(" "),Pf(f,{},(p,g,w)=>{if(p||w)s(p||new Error(w.toString()));else{const b=g.toString().split(`
`);for(let x=0;x<h.length;x++){const k=n.get(h[x]);k.load=parseFloat(b[x])}if(!i){s(new Error(`Root process ${e} not found`));return}t(i)}})};var c=l;Pf("which ps",{},(u,h,f)=>{if(u||f)if(process.platform!=="linux")s(u||new Error(f.toString()));else{const p=JSON.stringify(Ct.asFileUri("vs/base/node/ps.sh").fsPath);Pf(p,{},(g,w,b)=>{g||b?s(g||new Error(b.toString())):(NE(w,o),l())})}else{const p=h.toString().trim();Pf(`${p} -ax -o pid=,ppid=,pcpu=,pmem=,command=`,{maxBuffer:1e3*1024,env:{LC_NUMERIC:"en_US.UTF-8"}},(w,b,x)=>{w||x&&!x.includes("screen size is bogus")?s(w||new Error(x.toString())):(NE(b,o),process.platform==="linux"?l():i?t(i):s(new Error(`Root process ${e} not found`)))})}})}})}function NE(e,t){const s=/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/,i=e.toString().split(`
`);for(const n of i){const r=s.exec(n.trim());r&&r.length===6&&t(parseInt(r[1]),parseInt(r[2]),r[5],parseFloat(r[3]),parseFloat(r[4]))}}var OE=v({"out-build/vs/base/node/ps.js"(){"use strict";Se(),te()}});function CE(e){const t=e;return!!t?.hostName&&!!t?.errorMessage}var _E,YU,QU=v({"out-build/vs/platform/diagnostics/common/diagnostics.js"(){"use strict";ie(),_E="diagnosticsService",YU=X(_E)}});import*as XU from"fs";import*as ys from"os";async function If(e,t){const s=`${e}::${t.join(":")}`,i=p0.get(s);if(i)return i;const n=[{tag:"grunt.js",filePattern:/^gruntfile\.js$/i},{tag:"gulp.js",filePattern:/^gulpfile\.js$/i},{tag:"tsconfig.json",filePattern:/^tsconfig\.json$/i},{tag:"package.json",filePattern:/^package\.json$/i},{tag:"jsconfig.json",filePattern:/^jsconfig\.json$/i},{tag:"tslint.json",filePattern:/^tslint\.json$/i},{tag:"eslint.json",filePattern:/^eslint\.json$/i},{tag:"tasks.json",filePattern:/^tasks\.json$/i},{tag:"launch.json",filePattern:/^launch\.json$/i},{tag:"mcp.json",filePattern:/^mcp\.json$/i},{tag:"settings.json",filePattern:/^settings\.json$/i},{tag:"webpack.config.js",filePattern:/^webpack\.config\.js$/i},{tag:"project.json",filePattern:/^project\.json$/i},{tag:"makefile",filePattern:/^makefile$/i},{tag:"sln",filePattern:/^.+\.sln$/i},{tag:"csproj",filePattern:/^.+\.csproj$/i},{tag:"cmake",filePattern:/^.+\.cmake$/i},{tag:"github-actions",filePattern:/^.+\.ya?ml$/i,relativePathPattern:/^\.github(?:\/|\\)workflows$/i},{tag:"devcontainer.json",filePattern:/^devcontainer\.json$/i},{tag:"dockerfile",filePattern:/^(dockerfile|docker\-compose\.ya?ml)$/i},{tag:"cursorrules",filePattern:/^\.cursorrules$/i}],r=new Map,o=new Map,a=2e4;function c(u,h,f,p){const g=h.substring(u.length+1);return is.withAsyncBody(async w=>{let b;p.readdirCount++;try{b=await ke.readdir(h,{withFileTypes:!0})}catch{w();return}if(p.count>=a){p.count+=b.length,p.maxReached=!0,w();return}let x=b.length;if(x===0){w();return}let k=b;p.count+b.length>a&&(p.maxReached=!0,x=a-p.count,k=b.slice(0,x)),p.count+=b.length;for(const I of k)if(I.isDirectory()){if(f.includes(I.name)||await c(u,_(h,I.name),f,p),--x===0){w();return}}else{const M=I.name.lastIndexOf(".");if(M>=0){const j=I.name.substring(M+1);j&&r.set(j,(r.get(j)??0)+1)}for(const j of n)j.relativePathPattern?.test(g)!==!1&&j.filePattern.test(I.name)&&o.set(j.tag,(o.get(j.tag)??0)+1);if(--x===0){w();return}}})}const l=is.withAsyncBody(async u=>{const h={count:0,maxReached:!1,readdirCount:0},f=new on(!0);await c(e,e,t,h);const p=await KU(e);u({configFiles:d0(o),fileTypes:d0(r),fileCount:h.count,maxFilesReached:h.maxReached,launchConfigFiles:p,totalScanTime:f.elapsed(),totalReaddirCount:h.readdirCount})});return p0.set(s,l),l}function d0(e){return Array.from(e.entries(),([t,s])=>({name:t,count:s})).sort((t,s)=>s.count-t.count)}function ME(){const e={os:`${ys.type()} ${ys.arch()} ${ys.release()}`,memory:`${(ys.totalmem()/_r.GB).toFixed(2)}GB (${(ys.freemem()/_r.GB).toFixed(2)}GB free)`,vmHint:`${Math.round(t0.value()*100)}%`},t=ys.cpus();return t&&t.length>0&&(e.cpus=`${t[0].model} (${t.length} x ${t[0].speed})`),e}async function KU(e){try{const t=new Map,s=_(e,".vscode","launch.json"),i=await XU.promises.readFile(s),n=[],r=Un(i.toString(),n);if(n.length)return console.log(`Unable to parse ${s}`),[];if(No(r)==="object"&&r.configurations)for(const o of r.configurations){const a=o.type;a&&(t.has(a)?t.set(a,t.get(a)+1):t.set(a,1))}return d0(t)}catch{return[]}}var p0,m0,ej=v({"out-build/vs/platform/diagnostics/node/diagnosticsService.js"(){"use strict";Ae(),jn(),Se(),he(),te(),mo(),Q(),B2(),ds(),OE(),QU(),Ge(),Kt(),Js(),p0=new Map,m0=class{constructor(t,s){this.c=t,this.d=s}f(t){const s=[];return s.push(`OS Version:       ${t.os}`),s.push(`CPUs:             ${t.cpus}`),s.push(`Memory (System):  ${t.memory}`),s.push(`VM:               ${t.vmHint}`),s.join(`
`)}g(t){const s=[];s.push(`Version:          ${this.d.nameShort} ${this.d.version} (${this.d.commit||"Commit unknown"}, ${this.d.date||"Date unknown"})`),s.push(`OS Version:       ${ys.type()} ${ys.arch()} ${ys.release()}`);const i=ys.cpus();return i&&i.length>0&&s.push(`CPUs:             ${i[0].model} (${i.length} x ${i[0].speed})`),s.push(`Memory (System):  ${(ys.totalmem()/_r.GB).toFixed(2)}GB (${(ys.freemem()/_r.GB).toFixed(2)}GB free)`),me||s.push(`Load (avg):       ${ys.loadavg().map(n=>Math.round(n)).join(", ")}`),s.push(`VM:               ${Math.round(t0.value()*100)}%`),s.push(`Screen Reader:    ${t.screenReader?"yes":"no"}`),s.push(`Process Argv:     ${t.mainArguments.join(" ")}`),s.push(`GPU Status:       ${this.j(t.gpuFeatureStatus)}`),s.join(`
`)}async getPerformanceInfo(t,s){return Promise.all([f0(t.mainPID),this.k(t)]).then(async i=>{let[n,r]=i,o=this.m(t,n);return s.forEach(a=>{if(CE(a))o+=`
${a.errorMessage}`,r+=`
${a.errorMessage}`;else if(o+=`

Remote: ${a.hostName}`,a.processes&&(o+=`
${this.m(t,a.processes)}`),a.workspaceMetadata){r+=`
|  Remote: ${a.hostName}`;for(const c of Object.keys(a.workspaceMetadata)){const l=a.workspaceMetadata[c];let u=`${l.fileCount} files`;l.maxFilesReached&&(u=`more than ${u}`),r+=`|    Folder (${c}): ${u}`,r+=this.h(l)}}}),{processInfo:o,workspaceInfo:r}})}async getSystemInfo(t,s){const{memory:i,vmHint:n,os:r,cpus:o}=ME(),a={os:r,memory:i,cpus:o,vmHint:n,processArgs:`${t.mainArguments.join(" ")}`,gpuStatus:t.gpuFeatureStatus,screenReader:`${t.screenReader?"yes":"no"}`,remoteData:s};return me||(a.load=`${ys.loadavg().map(c=>Math.round(c)).join(", ")}`),ut&&(a.linuxEnv={desktopSession:process.env.DESKTOP_SESSION,xdgSessionDesktop:process.env.XDG_SESSION_DESKTOP,xdgCurrentDesktop:process.env.XDG_CURRENT_DESKTOP,xdgSessionType:process.env.XDG_SESSION_TYPE}),Promise.resolve(a)}async getDiagnostics(t,s){const i=[];return f0(t.mainPID).then(async n=>(i.push(""),i.push(this.g(t)),i.push(""),i.push(this.m(t,n)),t.windows.some(r=>r.folderURIs&&r.folderURIs.length>0&&!r.remoteAuthority)&&(i.push(""),i.push("Workspace Stats: "),i.push(await this.k(t))),s.forEach(r=>{if(CE(r))i.push(`
${r.errorMessage}`);else if(i.push(`

`),i.push(`Remote:           ${r.hostName}`),i.push(this.f(r.machineInfo)),r.processes&&i.push(this.m(t,r.processes)),r.workspaceMetadata)for(const o of Object.keys(r.workspaceMetadata)){const a=r.workspaceMetadata[o];let c=`${a.fileCount} files`;a.maxFilesReached&&(c=`more than ${c}`),i.push(`Folder (${o}): ${c}`),i.push(this.h(a))}}),i.push(""),i.push(""),i.join(`
`)))}h(t){const s=[];let n=0;const r=(l,u)=>{const h=` ${l}(${u})`;n+h.length>60?(s.push(o),o="|                 ",n=o.length):n+=h.length,o+=h};let o="|      File types:";const a=10,c=t.fileTypes.length>a?a:t.fileTypes.length;for(let l=0;l<c;l++){const u=t.fileTypes[l];r(u.name,u.count)}if(s.push(o),t.configFiles.length>=0&&(o="|      Conf files:",n=0,t.configFiles.forEach(l=>{r(l.name,l.count)}),s.push(o)),t.launchConfigFiles.length>0){let l="|      Launch Configs:";t.launchConfigFiles.forEach(u=>{const h=u.count>1?` ${u.name}(${u.count})`:` ${u.name}`;l+=h}),s.push(l)}return s.join(`
`)}j(t){const s=Math.max(...Object.keys(t).map(i=>i.length));return Object.keys(t).map(i=>`${i}:  ${" ".repeat(s-i.length)}  ${t[i]}`).join(`
                  `)}k(t){const s=[],i=[];return t.windows.forEach(n=>{n.folderURIs.length===0||n.remoteAuthority||(s.push(`|  Window (${n.title})`),n.folderURIs.forEach(r=>{const o=y.revive(r);if(o.scheme===Y.file){const a=o.fsPath;i.push(If(a,["node_modules",".git"]).then(c=>{let l=`${c.fileCount} files`;c.maxFilesReached&&(l=`more than ${l}`),s.push(`|    Folder (${ht(a)}): ${l}`),s.push(this.h(c))}).catch(c=>{s.push(`|      Error: Unable to collect workspace stats for folder ${a} (${c.toString()})`)}))}else s.push(`|    Folder (${o.toString()}): Workspace stats not available.`)}))}),Promise.all(i).then(n=>s.join(`
`)).catch(n=>`Unable to collect workspace stats: ${n}`)}m(t,s){const i=new Map;t.windows.forEach(r=>i.set(r.pid,`window [${r.id}] (${r.title})`)),t.pidToNames.forEach(({pid:r,name:o})=>i.set(r,o));const n=[];return n.push("CPU %	Mem MB	   PID	Process"),s&&this.n(t.mainPID,i,n,s,0),n.join(`
`)}n(t,s,i,n,r){const o=r===0;let a;o?a=n.pid===t?this.d.applicationName:"remote-server":s.has(n.pid)?a=s.get(n.pid):a=`${"  ".repeat(r)} ${n.name}`;const c=process.platform==="win32"?n.mem:ys.totalmem()*(n.mem/100);i.push(`${n.load.toFixed(0).padStart(5," ")}	${(c/_r.MB).toFixed(0).padStart(6," ")}	${n.pid.toFixed(0).padStart(6," ")}	${a}`),Array.isArray(n.children)&&n.children.forEach(l=>this.n(t,s,i,l,r+1))}async getWorkspaceFileExtensions(t){const s=new Set;for(const{uri:i}of t.folders){const n=y.revive(i);if(n.scheme!==Y.file)continue;const r=n.fsPath;try{(await If(r,["node_modules",".git"])).fileTypes.forEach(a=>s.add(a.name))}catch{}}return{extensions:[...s]}}async reportWorkspaceStats(t){for(const{uri:s}of t.folders){const i=y.revive(s);if(i.scheme!==Y.file)continue;const n=i.fsPath;try{const r=await If(n,["node_modules",".git"]);this.c.publicLog2("workspace.stats",{"workspace.id":t.telemetryId,rendererSessionId:t.rendererSessionId}),r.fileTypes.forEach(o=>{this.c.publicLog2("workspace.stats.file",{rendererSessionId:t.rendererSessionId,type:o.name,count:o.count})}),r.launchConfigFiles.forEach(o=>{this.c.publicLog2("workspace.stats.launchConfigFile",{rendererSessionId:t.rendererSessionId,type:o.name,count:o.count})}),r.configFiles.forEach(o=>{this.c.publicLog2("workspace.stats.configFiles",{rendererSessionId:t.rendererSessionId,type:o.name,count:o.count})}),this.c.publicLog2("workspace.stats.metadata",{duration:r.totalScanTime,reachedLimit:r.maxFilesReached,fileCount:r.fileCount,readdirCount:r.totalReaddirCount})}catch{}}}},m0=__decorate([__param(0,gs),__param(1,dt)],m0)}}),UE,tj=v({"out-build/vs/server/node/remoteAgentEnvironmentImpl.js"(){"use strict";te(),Ki(),Q(),Sf(),zr(),OE(),ej(),he(),ct(),UE=class gA{static{this.a=1}constructor(t,s,i,n){this.b=t,this.c=s,this.d=i,this.e=n}async call(t,s,i){switch(s){case"getEnvironmentData":{const n=i,r=yl(n.remoteAuthority);let o=await this.f(n.profile);return o=bn(o,r),o}case"getExtensionHostExitInfo":{const n=i;return this.e.getExitInfo(n.reconnectionToken)}case"getDiagnosticInfo":{const n=i,r={machineInfo:ME()},o=n.includeProcesses?f0(process.pid):Promise.resolve();let a=[];const c={};if(n.folders){const l=yl("");a=n.folders.map(h=>y.revive(l.transformIncoming(h))).filter(h=>h.scheme==="file").map(h=>If(h.fsPath,["node_modules",".git"]).then(f=>{c[ht(h.fsPath)]=f}))}return Promise.all([o,...a]).then(([l,u])=>(r.processes=l||void 0,r.workspaceMetadata=n.folders?c:void 0,r))}}throw new Error(`IPC Command ${s} not found`)}listen(t,s,i){throw new Error("Not supported")}async f(t){t&&!this.d.profiles.some(i=>i.id===t)&&await this.d.createProfile(t,t);let s=!1;if(process.platform==="linux"){const i=process.glibcVersion;s=(i?parseInt(i.split(".")[1]):28)<=27||!!process.env.VSCODE_SERVER_CUSTOM_GLIBC_LINKER}return{pid:process.pid,connectionToken:this.b.type!==0?this.b.value:"",appRoot:y.file(this.c.appRoot),settingsPath:this.c.machineSettingsResource,mcpResource:this.c.mcpResource,logsPath:this.c.logsHome,extensionHostLogsPath:oe(this.c.logsHome,`exthost${gA.a++}`),globalStorageHome:this.d.defaultProfile.globalStorageHome,workspaceStorageHome:this.c.workspaceStorageHome,localHistoryHome:this.c.localHistoryHome,userHome:this.c.userHome,os:dr,arch:process.arch,marks:$b(),useHostProxy:!!this.c.args["use-host-proxy"],profiles:{home:this.d.profilesHome,all:[...this.d.profiles].map(i=>({...i}))},isUnsupportedGlibc:s}}}}}),jE,TE,sj=v({"out-build/vs/platform/files/node/diskFileSystemProviderServer.js"(){"use strict";re(),ef(),V(),Le(),nc(),Lt(),jE=class extends W{constructor(e,t){super(),this.a=e,this.b=t,this.G=new Map,this.H=new Map}call(e,t,s){const i=this.c(e);switch(t){case"stat":return this.g(i,s[0]);case"realpath":return this.h(i,s[0]);case"readdir":return this.j(i,s[0]);case"open":return this.s(i,s[0],s[1]);case"close":return this.t(s[0]);case"read":return this.u(s[0],s[1],s[2]);case"readFile":return this.m(i,s[0],s[1]);case"write":return this.w(s[0],s[1],s[2],s[3],s[4]);case"writeFile":return this.r(i,s[0],s[1],s[2]);case"rename":return this.C(i,s[0],s[1],s[2]);case"copy":return this.D(i,s[0],s[1],s[2]);case"cloneFile":return this.F(i,s[0],s[1]);case"mkdir":return this.y(i,s[0]);case"delete":return this.z(i,s[0],s[1]);case"watch":return this.J(i,s[0],s[1],s[2],s[3]);case"unwatch":return this.L(s[0],s[1])}throw new Error(`IPC Command ${t} not found`)}listen(e,t,s){const i=this.c(e);switch(t){case"fileChange":return this.I(i,s[0]);case"readFileStream":return this.n(i,s[0],s[1])}throw new Error(`Unknown event ${t}`)}g(e,t){const s=this.f(e,t,!0);return this.a.stat(s)}h(e,t){const s=this.f(e,t,!0);return this.a.realpath(s)}j(e,t){const s=this.f(e,t);return this.a.readdir(s)}async m(e,t,s){const i=this.f(e,t,!0);this.b.trace(`File action: readFile ${i.path}`);const n=await this.a.readFile(i,s);return R.wrap(n)}n(e,t,s){const i=this.f(e,t,!0),n=new Oi,r=new D({onDidRemoveLastListener:()=>{n.cancel()}});this.b.trace(`File action: readFileStream ${i.path}`);const o=this.a.readFileStream(i,s,n.token);return Bu(o,{onData:a=>r.fire(R.wrap(a)),onError:a=>r.fire(a),onEnd:()=>{r.fire("end"),r.dispose(),n.dispose()}}),r.event}r(e,t,s,i){const n=this.f(e,t);return this.b.trace(`File action: writeFile ${n.path}`),this.a.writeFile(n,s.buffer,i)}s(e,t,s){const i=this.f(e,t,!0);return this.a.open(i,s)}t(e){return this.a.close(e)}async u(e,t,s){const i=R.alloc(s),r=await this.a.read(e,t,i.buffer,0,s);return[i,r]}w(e,t,s,i,n){return this.a.write(e,t,s.buffer,i,n)}y(e,t){const s=this.f(e,t);return this.a.mkdir(s)}z(e,t,s){const i=this.f(e,t);return this.a.delete(i,s)}C(e,t,s,i){const n=this.f(e,t),r=this.f(e,s);return this.a.rename(n,r,i)}D(e,t,s,i){const n=this.f(e,t),r=this.f(e,s);return this.a.copy(n,r,i)}F(e,t,s){const i=this.f(e,t),n=this.f(e,s);return this.a.cloneFile(i,n)}I(e,t){const s=new D({onWillAddFirstListener:()=>{this.G.set(t,this.M(e,s))},onDidRemoveLastListener:()=>{jt(this.G.get(t)),this.G.delete(t)}});return s.event}async J(e,t,s,i,n){const r=this.G.get(t);if(r){const o=this.f(e,i),a=r.watch(s,o,n);this.H.set(t+s,a)}}async L(e,t){const s=e+t,i=this.H.get(s);i&&(jt(i),this.H.delete(s))}dispose(){super.dispose();for(const[,e]of this.H)e.dispose();this.H.clear();for(const[,e]of this.G)e.dispose();this.G.clear()}},TE=class extends W{constructor(e,t,s,i){super(),this.c=e,this.f=i,this.a=new Map,this.b=this.B(new nl(s)),this.g(t)}g(e){const t=this.B(new D);this.B(t.event(s=>{e.fire(s.map(i=>({resource:this.c.transformOutgoingURI(i.resource),type:i.type,cId:i.cId})))})),this.B(this.b.onDidChangeFile(s=>t.fire(s))),this.B(this.b.onDidWatchError(s=>e.fire(s)))}h(e){}j(e){}watch(e,t,s){const i=this.j(this.f);return Array.isArray(i)&&(s.excludes=[...s.excludes,...i]),this.a.set(e,this.b.watch(t,s)),De(()=>{jt(this.a.get(e)),this.a.delete(e)})}dispose(){for(const[,e]of this.a)e.dispose();this.a.clear(),super.dispose()}}}}),FE,BE,ij=v({"out-build/vs/server/node/remoteFileSystemProviderServer.js"(){"use strict";Q(),Sf(),ef(),he(),sj(),FE=class extends jE{constructor(e,t,s){super(new nl(e),e),this.O=t,this.P=s,this.N=new Map,this.B(this.a)}c(e){let t=this.N.get(e.remoteAuthority);return t||(t=yl(e.remoteAuthority),this.N.set(e.remoteAuthority,t)),t}f(e,t,s=!1){if(s&&t.path==="/vscode-resource"&&t.query){const i=JSON.parse(t.query).requestResourcePath;return y.from({scheme:"file",path:i})}return y.revive(e.transformIncoming(t))}M(e,t){return new BE(e,t,this.b,this.O,this.P)}},BE=class extends TE{constructor(e,t,s,i,n){super(e,t,s,i)}h(e){const t=e.args["file-watcher-polling"];if(t){const s=t.split(Wa),i=Number(s[0]);if(i>0)return{usePolling:s.length>1?s.slice(1):!0,pollingInterval:i}}}j(e){if(e.extensionsPath)return[$e.join(e.extensionsPath,"**")]}}}}),zE,nj=v({"out-build/vs/platform/telemetry/common/remoteTelemetryChannel.js"(){"use strict";V(),zE=class extends W{constructor(e,t){super(),this.a=e,this.b=t}async call(e,t,s){switch(t){case"updateTelemetryLevel":{const{telemetryLevel:i}=s;return this.a.updateInjectedTelemetryLevel(i)}case"logTelemetry":{const{eventName:i,data:n}=s;return this.b?this.b.log(i,n):Promise.resolve()}case"flushTelemetry":return this.b?this.b.flush():Promise.resolve();case"ping":return}throw new Error(`IPC Command ${t} not found`)}listen(e,t,s){throw new Error("Not supported")}dispose(){this.a.updateInjectedTelemetryLevel(0),super.dispose()}}}});function rj(){const e=m(2258,null,Ht.nameLong),t=Ht.privacyStatementUrl?m(2260,null,"https://aka.ms/vscode-telemetry",Ht.privacyStatementUrl):m(2259,null,"https://aka.ms/vscode-telemetry"),s=Ps?"":m(2261,null),i=m(2262,null),n=m(2263,null),r=m(2264,null),o=m(2265,null),a=`
|       | ${i} | ${n} | ${r} |
|:------|:-------------:|:---------------:|:----------:|
| all   |       \u2713       |        \u2713        |     \u2713      |
| error |       \u2713       |        \u2713        |     -      |
| crash |       \u2713       |        -        |     -      |
| off   |       -       |        -        |     -      |
`,c=m(2266,null);return`
${e} ${t} ${s}

&nbsp;

${o}
${a}

&nbsp;

${c}
`}var Df,HE,oj=v({"out-build/vs/platform/telemetry/common/telemetryService.js"(){"use strict";V(),Ft(),te(),at(),ce(),Yt(),Ar(),Kc(),Kt(),ui(),Js(),hi(),Df=class{static{this.IDLE_START_EVENT_NAME="UserIdleStart"}static{this.IDLE_STOP_EVENT_NAME="UserIdleStop"}constructor(t,s,i){this.k=s,this.l=i,this.d={},this.i=new rt,this.j=[],this.b=t.appenders,this.c=t.commonProperties??Object.create(null),this.sessionId=this.c.sessionID,this.machineId=this.c["common.machineId"],this.sqmId=this.c["common.sqmId"],this.devDeviceId=this.c["common.devDeviceId"],this.firstSessionDate=this.c["common.firstSessionDate"],this.msftInternal=this.c["common.msftInternal"],this.f=t.piiPaths||[],this.g=3,this.h=!!t.sendErrorTelemetry,this.j=[/(vscode-)?file:\/\/\/.*?\/resources\/app\//gi];for(const n of this.f)this.j.push(new RegExp(On(n),"gi")),n.indexOf("\\")>=0&&this.j.push(new RegExp(On(n.replace(/\\/g,"/")),"gi"));this.m(),this.i.add(this.k.onDidChangeConfiguration(n=>{(n.affectsConfiguration(Ic)||n.affectsConfiguration(lh)||n.affectsConfiguration(km))&&this.m()}))}setExperimentProperty(t,s){this.d[t]=s}m(){let t=_9(this.k);const s=this.l.enabledTelemetryLevels;if(s){this.h=this.sendErrorTelemetry?s.error:!1;const i=s.usage?3:s.error?2:0;t=Math.min(t,i)}this.g=t}get sendErrorTelemetry(){return this.h}get telemetryLevel(){return this.g}dispose(){this.i.dispose()}n(t,s,i){this.g<s||(i=Co(i,this.d),i=$m(i,this.j),i=Co(i,this.c),this.b.forEach(n=>n.log(t,i)))}publicLog(t,s){this.n(t,3,s)}publicLog2(t,s){this.publicLog(t,s)}publicLogError(t,s){this.h&&this.n(t,2,s)}publicLogError2(t,s){this.publicLogError(t,s)}},Df=__decorate([__param(1,Zt),__param(2,dt)],Df),HE=Bt.as(qs.Configuration),HE.registerConfiguration({id:L9,order:1,type:"object",title:m(2267,null),properties:{[Ic]:{type:"string",enum:["all","error","crash","off"],enumDescriptions:[m(2268,null),m(2269,null),m(2270,null),m(2271,null)],markdownDescription:rj(),default:"all",restricted:!0,scope:1,tags:["usesOnlineServices","telemetry"],policy:{name:"TelemetryLevel",minimumVersion:"1.99",description:m(2272,null)}},"telemetry.feedback.enabled":{type:"boolean",default:!0,description:m(2273,null),policy:{name:"EnableFeedback",minimumVersion:"1.99"}},[lh]:{type:"boolean",markdownDescription:Ht.privacyStatementUrl?m(2275,null,Ht.nameLong,Ht.privacyStatementUrl):m(2274,null,Ht.nameLong),default:!0,restricted:!0,markdownDeprecationMessage:m(2276,null,`\`#${Ic}#\``),scope:1,tags:["usesOnlineServices","telemetry"]}}})}}),Af,VE,Lf,aj=v({"out-build/vs/platform/telemetry/common/serverTelemetryService.js"(){"use strict";Yt(),ie(),Kt(),Js(),oj(),hi(),Af=class extends Df{constructor(t,s,i,n){super(t,i,n),this.o=s}publicLog(t,s){if(!(this.o<3))return super.publicLog(t,s)}publicLog2(t,s){return this.publicLog(t,s)}publicLogError(t,s){return this.o<2?Promise.resolve(void 0):super.publicLogError(t,s)}publicLogError2(t,s){return this.publicLogError(t,s)}async updateInjectedTelemetryLevel(t){if(t===void 0)throw this.o=0,new Error("Telemetry level cannot be undefined. This will cause infinite looping!");this.o=this.o?Math.min(this.o,t):t,this.o===0&&this.dispose()}},Af=__decorate([__param(2,Zt),__param(3,dt)],Af),VE=new class extends Sm{async updateInjectedTelemetryLevel(){}},Lf=gs}});function cj(e){const t=gr(e);return qE[t.toLowerCase()]}function WE(e,t){const s=GE.exec(e);return s?`${s[1].toLowerCase()}/${s[2].toLowerCase()}${s[3]??""}`:t?void 0:e}var ki,qE,GE,Rf=v({"out-build/vs/base/common/mime.js"(){"use strict";he(),ki=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list",html:"text/html"}),qE={".aac":"audio/x-aac",".avi":"video/x-msvideo",".bmp":"image/bmp",".flv":"video/x-flv",".gif":"image/gif",".ico":"image/x-icon",".jpe":"image/jpg",".jpeg":"image/jpg",".jpg":"image/jpg",".m1v":"video/mpeg",".m2a":"audio/mpeg",".m2v":"video/mpeg",".m3a":"audio/mpeg",".mid":"audio/midi",".midi":"audio/midi",".mk3d":"video/x-matroska",".mks":"video/x-matroska",".mkv":"video/x-matroska",".mov":"video/quicktime",".movie":"video/x-sgi-movie",".mp2":"audio/mpeg",".mp2a":"audio/mpeg",".mp3":"audio/mpeg",".mp4":"video/mp4",".mp4a":"audio/mp4",".mp4v":"video/mp4",".mpe":"video/mpeg",".mpeg":"video/mpeg",".mpg":"video/mpeg",".mpg4":"video/mp4",".mpga":"audio/mpeg",".oga":"audio/ogg",".ogg":"audio/ogg",".opus":"audio/opus",".ogv":"video/ogg",".png":"image/png",".psd":"image/vnd.adobe.photoshop",".qt":"video/quicktime",".spx":"audio/ogg",".svg":"image/svg+xml",".tga":"image/x-tga",".tif":"image/tiff",".tiff":"image/tiff",".wav":"audio/x-wav",".webm":"video/webm",".webp":"image/webp",".wma":"audio/x-ms-wma",".wmv":"video/x-ms-wmv",".woff":"application/font-woff"},GE=/^(.+)\/(.+?)(;.+)?$/}}),JE,ZE,YE,QE=v({"out-build/vs/platform/remote/common/remoteAuthorityResolver.js"(){"use strict";ge(),ie(),JE=X("remoteAuthorityResolverService"),function(e){e[e.WebSocket=0]="WebSocket",e[e.Managed=1]="Managed"}(ZE||(ZE={})),function(e){e.Unknown="Unknown",e.NotAvailable="NotAvailable",e.TemporarilyNotAvailable="TemporarilyNotAvailable",e.NoResolverFound="NoResolverFound",e.InvalidAuthority="InvalidAuthority"}(YE||(YE={}))}});function g0(e){if(e.scheme!==Y.vscodeNotebookCell)return;const t=e.fragment.indexOf("s");if(t<0)return;const s=parseInt(e.fragment.substring(0,t).replace(e3,""),w0),i=V4(e.fragment.substring(t+1)).toString();if(!isNaN(s))return{handle:s,notebook:e.with({scheme:i,fragment:null})}}function lj(e,t){const s=t.toString(w0),n=`${s.length<Nf.length?Nf[s.length-1]:"z"}${s}s${Gp(R.fromString(e.scheme),!0,!0)}`;return e.with({scheme:Y.vscodeNotebookCell,fragment:n})}function uj(e){if(e.scheme!==Y.vscodeNotebookMetadata)return;const t=V4(e.fragment).toString();return e.with({scheme:t,fragment:null})}function hj(e){const t=`${Gp(R.fromString(e.scheme),!0,!0)}`;return e.with({scheme:Y.vscodeNotebookMetadata,fragment:t})}function XE(e){if(e.scheme!==Y.vscodeNotebookCellOutput)return;const t=new URLSearchParams(e.query),s=t.get("openIn");if(!s)return;const i=t.get("outputId")??void 0,n=g0(e.with({scheme:Y.vscodeNotebookCell,query:null})),r=t.get("outputIndex")?parseInt(t.get("outputIndex")||"",10):void 0,o=n?n.notebook:e.with({scheme:t.get("notebookScheme")||Y.file,fragment:null,query:null}),a=t.get("cellIndex")?parseInt(t.get("cellIndex")||"",10):void 0;return{notebook:o,openIn:s,outputId:i,outputIndex:r,cellHandle:n?.handle,cellFragment:e.fragment,cellIndex:a}}var KE,Nf,e3,w0,t3,fj=v({"out-build/vs/workbench/services/notebook/common/notebookDocumentService.js"(){"use strict";Le(),Jt(),Se(),_g(),ie(),KE=X("notebookDocumentService"),Nf=["W","X","Y","Z","a","b","c","d","e","f"],e3=new RegExp(`^[${Nf.join("")}]+`),w0=7,t3=class{constructor(){this.a=new wt}getNotebook(e){if(e.scheme===Y.vscodeNotebookCell){const t=g0(e);if(t){const s=this.a.get(t.notebook);if(s)return s}}if(e.scheme===Y.vscodeNotebookCellOutput){const t=XE(e);if(t){const s=this.a.get(t.notebook);if(s)return s}}return this.a.get(e)}addNotebookDocument(e){this.a.set(e.uri,e)}removeNotebookDocument(e){this.a.delete(e.uri)}},Cg(KE,t3,1)}});function dj(e){return["application/vnd.code.notebook.stdout","application/vnd.code.notebook.stderr"].includes(e)}var pa,pj,mj,s3,i3,n3,r3,o3,a3,c3,l3,u3,h3,gj,wj,f3,d3,p3,vj,bj,m3,yj,Ej,xj,g3=v({"out-build/vs/workbench/contrib/notebook/common/notebookCommon.js"(){"use strict";Le(),Sg(),wr(),Rf(),Se(),he(),te(),hc(),fj(),function(e){e[e.Markup=1]="Markup",e[e.Code=2]="Code"}(pa||(pa={})),pj=["application/json","application/javascript","text/html","image/svg+xml",ki.latex,ki.markdown,"image/png","image/jpeg",ki.text],mj=[ki.latex,ki.markdown,"application/json","text/html","image/svg+xml","image/png","image/jpeg",ki.text],function(e){e[e.Running=1]="Running",e[e.Idle=2]="Idle"}(s3||(s3={})),function(e){e[e.Unconfirmed=1]="Unconfirmed",e[e.Pending=2]="Pending",e[e.Executing=3]="Executing"}(i3||(i3={})),function(e){e[e.Unconfirmed=1]="Unconfirmed",e[e.Pending=2]="Pending",e[e.Executing=3]="Executing"}(n3||(n3={})),function(e){e[e.WithHardKernelDependency=0]="WithHardKernelDependency",e[e.WithOptionalKernelDependency=1]="WithOptionalKernelDependency",e[e.Pure=2]="Pure",e[e.Never=3]="Never"}(r3||(r3={})),function(e){e.Always="always",e.Never="never",e.Optional="optional"}(o3||(o3={})),function(e){e[e.ModelChange=1]="ModelChange",e[e.Move=2]="Move",e[e.ChangeCellLanguage=5]="ChangeCellLanguage",e[e.Initialize=6]="Initialize",e[e.ChangeCellMetadata=7]="ChangeCellMetadata",e[e.Output=8]="Output",e[e.OutputItem=9]="OutputItem",e[e.ChangeCellContent=10]="ChangeCellContent",e[e.ChangeDocumentMetadata=11]="ChangeDocumentMetadata",e[e.ChangeCellInternalMetadata=12]="ChangeCellInternalMetadata",e[e.ChangeCellMime=13]="ChangeCellMime",e[e.Unknown=100]="Unknown"}(a3||(a3={})),function(e){e[e.Handle=0]="Handle",e[e.Index=1]="Index"}(c3||(c3={})),function(e){e[e.Replace=1]="Replace",e[e.Output=2]="Output",e[e.Metadata=3]="Metadata",e[e.CellLanguage=4]="CellLanguage",e[e.DocumentMetadata=5]="DocumentMetadata",e[e.Move=6]="Move",e[e.OutputItems=7]="OutputItems",e[e.PartialMetadata=8]="PartialMetadata",e[e.PartialInternalMetadata=9]="PartialInternalMetadata"}(l3||(l3={})),function(e){e.scheme=Y.vscodeNotebookMetadata;function t(i){return hj(i)}e.generate=t;function s(i){return uj(i)}e.parse=s}(u3||(u3={})),function(e){e.scheme=Y.vscodeNotebookCell;function t(l,u){return lj(l,u)}e.generate=t;function s(l){return g0(l)}e.parse=s;function i(l,u){return l.with({scheme:Y.vscodeNotebookCellOutput,query:new URLSearchParams({openIn:"editor",outputId:u??"",notebookScheme:l.scheme!==Y.file?l.scheme:""}).toString()})}e.generateCellOutputUriWithId=i;function n(l,u,h){return l.with({scheme:Y.vscodeNotebookCellOutput,fragment:u.fragment,query:new URLSearchParams({openIn:"notebook",outputIndex:String(h)}).toString()})}e.generateCellOutputUriWithIndex=n;function r(l,u,h,f,p){return l.with({scheme:Y.vscodeNotebookCellOutput,query:new URLSearchParams({openIn:"notebookOutputEditor",notebook:l.toString(),cellIndex:String(h),outputId:f,outputIndex:String(p)}).toString()})}e.generateOutputEditorUri=r;function o(l){return XE(l)}e.parseCellOutputUri=o;function a(l,u,h){return e.generate(l,u).with({scheme:h})}e.generateCellPropertyUri=a;function c(l,u){if(l.scheme===u)return e.parse(l.with({scheme:e.scheme}))}e.parseCellPropertyUri=c}(h3||(h3={})),gj=new Dr("notebookEditorCursorAtBoundary","none"),wj=new Dr("notebookEditorCursorAtLineBoundary","none"),function(e){e.default="default",e.option="option"}(f3||(f3={})),function(e){e.Cells="cells",e.Text="text",e.None="none"}(d3||(d3={})),function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"}(p3||(p3={})),vj=class j1{static{this.d="notebook/"}static create(t,s){return`${j1.d}${t}/${s??t}`}static parse(t){if(t.startsWith(j1.d)){const s=t.substring(j1.d.length).split("/");if(s.length===2)return{notebookType:s[0],viewType:s[1]}}}},bj=new TextDecoder,m3="\x1B[A",yj=m3.split("").map(e=>e.charCodeAt(0)),Ej=8,xj=13}});function J(e){return Object.assign(e,{apply:function(...s){if(s.length===0)return Reflect.construct(e,[]);{const i=s.length===1?[]:s[1];return Reflect.construct(e,i,s[0].constructor)}},call:function(...s){if(s.length===0)return Reflect.construct(e,[]);{const[i,...n]=s;return Reflect.construct(e,n,i.constructor)}}})}function w3(e){return e.isEmpty?`[${e.start.line}:${e.start.character})`:`[${e.start.line}:${e.start.character} -> ${e.end.line}:${e.end.character})`}function kj(e){let t=w3(e);return e.isEmpty||(e.active.isEqual(e.start)?t=`|${t}`:t=`${t}|`),t}function v3(e){let t="";for(let s=0;s<e.length;s++)t+=e[s].replace(/,/g,",,")+",";return t}function Of(e){if(e){if(e.covered>e.total)throw new Error(`The total number of covered items (${e.covered}) cannot be greater than the total (${e.total})`);if(e.total<0)throw new Error(`The number of covered items (${e.total}) cannot be negative`)}}var v0,Vr,En,b0,Wr,Gn,qr,y0,E0,Cf,El,x0,Fi,Bi,k0,Es,$0,b3,y3,xl,Re,st,kl,ma,E3,Gr,_f,S0,x3,$l,ga,wa,Us,xn,Sl,Mf,Uf,jf,k3,Tf,Ff,Bf,ze,zf,Hf,Vf,Wf,P0,it,qf,I0,$3,S3,P3,D0,kn,A0,L0,R0,I3,D3,Gf,Jf,Pl,K,Zf,Yf,N0,O0,C0,va,Il,Qf,A3,zi,Dl,L3,Xf,R3,N3,ba,Kf,ed,Al,_0,td,O3,C3,_3,M3,U3,j3,T3,F3,B3,z3,M0,sd,id,H3,nd,V3,U0,Ll,W3,j0,Rl,rd,od,ad,q3,G3,cd,T0,J3,Jr,Jn,F0,Z3,ya,Y3,Ea,B0,z0,H0,V0,W0,q0,G0,ld,Q3,X3,ud,hd,fd,dd,K3,ex,tx,J0,Z0,Zn,sx,ix,nx,rx,ox,ax,cx,lx,Y0,ux,hx,fx,Q0,dx,Zr,X0,px,mx,gx,xa,wx,K0,vx,bx,yx,Ex,xx,ew,kx,$x,ka,Sx,Nl,Px,tw,pd,Ol,md,Ix,Dx,Ax,Lx,Rx,Nx,Ox,sw,Cx,_x,Mx,$a,Ux,jx,Tx,iw,nw,Fx,rw,ow,aw,cw,lw,uw,hw,Bx,fw,zx,dw,Hx,pw,Hi,Vx,Wx,qx,Xs,gd,mw,Gx,Jx,Zx,Cl,Nt,Yn,Qn,Vi,gw,Yx,Qx,Xx,Kx,ek,tk,sk,ww=v({"out-build/vs/workbench/api/common/extHostTypes.js"(){"use strict";kt(),Le(),ge(),qc(),Jt(),Rf(),at(),be(),Q(),zt(),Zs(),Ge(),QE(),g3(),function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom"}(b3||(b3={})),function(e){e[e.TerminalCommand=0]="TerminalCommand",e[e.Opener=1]="Opener",e[e.Command=3]="Command"}(y3||(y3={})),xl=v0=class{static from(...t){let s=t;return new v0(function(){if(s){for(const i of s)i&&typeof i.dispose=="function"&&i.dispose();s=void 0}})}#e;constructor(t){this.#e=t}dispose(){typeof this.#e=="function"&&(this.#e(),this.#e=void 0)}},xl=v0=__decorate([J],xl),Re=Vr=class{static Min(...t){if(t.length===0)throw new TypeError;let s=t[0];for(let i=1;i<t.length;i++){const n=t[i];n.isBefore(s)&&(s=n)}return s}static Max(...t){if(t.length===0)throw new TypeError;let s=t[0];for(let i=1;i<t.length;i++){const n=t[i];n.isAfter(s)&&(s=n)}return s}static isPosition(t){if(!t)return!1;if(t instanceof Vr)return!0;const{line:s,character:i}=t;return typeof s=="number"&&typeof i=="number"}static of(t){if(t instanceof Vr)return t;if(this.isPosition(t))return new Vr(t.line,t.character);throw new Error("Invalid argument, is NOT a position-like object")}get line(){return this.c}get character(){return this.e}constructor(t,s){if(t<0)throw Ue("line must be non-negative");if(s<0)throw Ue("character must be non-negative");this.c=t,this.e=s}isBefore(t){return this.c<t.c?!0:t.c<this.c?!1:this.e<t.e}isBeforeOrEqual(t){return this.c<t.c?!0:t.c<this.c?!1:this.e<=t.e}isAfter(t){return!this.isBeforeOrEqual(t)}isAfterOrEqual(t){return!this.isBefore(t)}isEqual(t){return this.c===t.c&&this.e===t.e}compareTo(t){return this.c<t.c?-1:this.c>t.line?1:this.e<t.e?-1:this.e>t.e?1:0}translate(t,s=0){if(t===null||s===null)throw Ue();let i;return typeof t>"u"?i=0:typeof t=="number"?i=t:(i=typeof t.lineDelta=="number"?t.lineDelta:0,s=typeof t.characterDelta=="number"?t.characterDelta:0),i===0&&s===0?this:new Vr(this.line+i,this.character+s)}with(t,s=this.character){if(t===null||s===null)throw Ue();let i;return typeof t>"u"?i=this.line:typeof t=="number"?i=t:(i=typeof t.line=="number"?t.line:this.line,s=typeof t.character=="number"?t.character:this.character),i===this.line&&s===this.character?this:new Vr(i,s)}toJSON(){return{line:this.line,character:this.character}}[Symbol.for("debug.description")](){return`(${this.line}:${this.character})`}},Re=Vr=__decorate([J],Re),st=En=class{static isRange(t){return t instanceof En?!0:t?Re.isPosition(t.start)&&Re.isPosition(t.end):!1}static of(t){if(t instanceof En)return t;if(this.isRange(t))return new En(t.start,t.end);throw new Error("Invalid argument, is NOT a range-like object")}get start(){return this.c}get end(){return this.e}constructor(t,s,i,n){let r,o;if(typeof t=="number"&&typeof s=="number"&&typeof i=="number"&&typeof n=="number"?(r=new Re(t,s),o=new Re(i,n)):Re.isPosition(t)&&Re.isPosition(s)&&(r=Re.of(t),o=Re.of(s)),!r||!o)throw new Error("Invalid arguments");r.isBefore(o)?(this.c=r,this.e=o):(this.c=o,this.e=r)}contains(t){return En.isRange(t)?this.contains(t.start)&&this.contains(t.end):Re.isPosition(t)?!(Re.of(t).isBefore(this.c)||this.e.isBefore(t)):!1}isEqual(t){return this.c.isEqual(t.c)&&this.e.isEqual(t.e)}intersection(t){const s=Re.Max(t.start,this.c),i=Re.Min(t.end,this.e);if(!s.isAfter(i))return new En(s,i)}union(t){if(this.contains(t))return this;if(t.contains(this))return t;const s=Re.Min(t.start,this.c),i=Re.Max(t.end,this.end);return new En(s,i)}get isEmpty(){return this.c.isEqual(this.e)}get isSingleLine(){return this.c.line===this.e.line}with(t,s=this.end){if(t===null||s===null)throw Ue();let i;return t?Re.isPosition(t)?i=t:(i=t.start||this.start,s=t.end||this.end):i=this.start,i.isEqual(this.c)&&s.isEqual(this.end)?this:new En(i,s)}toJSON(){return[this.start,this.end]}[Symbol.for("debug.description")](){return w3(this)}},st=En=__decorate([J],st),kl=b0=class extends st{static isSelection(t){return t instanceof b0?!0:t?st.isRange(t)&&Re.isPosition(t.anchor)&&Re.isPosition(t.active)&&typeof t.isReversed=="boolean":!1}get anchor(){return this.f}get active(){return this.g}constructor(t,s,i,n){let r,o;if(typeof t=="number"&&typeof s=="number"&&typeof i=="number"&&typeof n=="number"?(r=new Re(t,s),o=new Re(i,n)):Re.isPosition(t)&&Re.isPosition(s)&&(r=Re.of(t),o=Re.of(s)),!r||!o)throw new Error("Invalid arguments");super(r,o),this.f=r,this.g=o}get isReversed(){return this.f===this.e}toJSON(){return{start:this.start,end:this.end,active:this.active,anchor:this.anchor}}[Symbol.for("debug.description")](){return kj(this)}},kl=b0=__decorate([J],kl),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(ma||(ma={})),function(e){e[e.Replace=1]="Replace",e[e.Append=2]="Append",e[e.Prepend=3]="Prepend"}(E3||(E3={})),Gr=Wr=class{static isTextEdit(t){return t instanceof Wr?!0:t?st.isRange(t)&&typeof t.newText=="string":!1}static replace(t,s){return new Wr(t,s)}static insert(t,s){return Wr.replace(new st(t,t),s)}static delete(t){return Wr.replace(t,"")}static setEndOfLine(t){const s=new Wr(new st(new Re(0,0),new Re(0,0)),"");return s.newEol=t,s}get range(){return this.c}set range(t){if(t&&!st.isRange(t))throw Ue("range");this.c=t}get newText(){return this.e||""}set newText(t){if(t&&typeof t!="string")throw Ue("newText");this.e=t}get newEol(){return this.f}set newEol(t){if(t&&typeof t!="number")throw Ue("newEol");this.f=t}constructor(t,s){this.c=t,this.e=s}toJSON(){return{range:this.range,newText:this.newText,newEol:this.f}}},Gr=Wr=__decorate([J],Gr),_f=Gn=class{static isNotebookCellEdit(t){return t instanceof Gn?!0:t?Zr.isNotebookRange(t)&&Array.isArray(t.newCells):!1}static replaceCells(t,s){return new Gn(t,s)}static insertCells(t,s){return new Gn(new Zr(t,t),s)}static deleteCells(t){return new Gn(t,[])}static updateCellMetadata(t,s){const i=new Gn(new Zr(t,t),[]);return i.newCellMetadata=s,i}static updateNotebookMetadata(t){const s=new Gn(new Zr(0,0),[]);return s.newNotebookMetadata=t,s}constructor(t,s){this.range=t,this.newCells=s}},_f=Gn=__decorate([J],_f),S0=class T1{static isSnippetTextEdit(t){return t instanceof T1?!0:t?st.isRange(t.range)&&ga.isSnippetString(t.snippet):!1}static replace(t,s){return new T1(t,s)}static insert(t,s){return T1.replace(new st(t,t),s)}constructor(t,s){this.range=t,this.snippet=s}},function(e){e[e.File=1]="File",e[e.Text=2]="Text",e[e.Cell=3]="Cell",e[e.CellReplace=5]="CellReplace",e[e.Snippet=6]="Snippet"}(x3||(x3={})),$l=class{constructor(){this.c=[]}_allEntries(){return this.c}renameFile(t,s,i,n){this.c.push({_type:1,from:t,to:s,options:i,metadata:n})}createFile(t,s,i){this.c.push({_type:1,from:void 0,to:t,options:s,metadata:i})}deleteFile(t,s,i){this.c.push({_type:1,from:t,to:void 0,options:s,metadata:i})}e(t,s,i){this.c.push({_type:3,metadata:i,uri:t,edit:{editType:5,metadata:s}})}f(t,s,i,n){const r=s.start,o=s.end;(r!==o||i.length>0)&&this.c.push({_type:5,uri:t,index:r,count:o-r,cells:i,metadata:n})}g(t,s,i,n){this.c.push({_type:3,metadata:n,uri:t,edit:{editType:3,index:s,metadata:i}})}replace(t,s,i,n){this.c.push({_type:2,uri:t,edit:new Gr(s,i),metadata:n})}insert(t,s,i,n){this.replace(t,new st(s,s),i,n)}delete(t,s,i){this.replace(t,s,"",i)}has(t){return this.c.some(s=>s._type===2&&s.uri.toString()===t.toString())}set(t,s){if(s)for(const i of s){if(!i)continue;let n,r;Array.isArray(i)?(n=i[0],r=i[1]):n=i,_f.isNotebookCellEdit(n)?n.newCellMetadata?this.g(t,n.range.start,n.newCellMetadata,r):n.newNotebookMetadata?this.e(t,n.newNotebookMetadata,r):this.f(t,n.range,n.newCells,r):S0.isSnippetTextEdit(n)?this.c.push({_type:6,uri:t,range:n.range,edit:n.snippet,metadata:r,keepWhitespace:n.keepWhitespace}):this.c.push({_type:2,uri:t,edit:n,metadata:r})}else{for(let i=0;i<this.c.length;i++){const n=this.c[i];switch(n._type){case 2:case 6:case 3:case 5:n.uri.toString()===t.toString()&&(this.c[i]=void 0);break}}XA(this.c)}}get(t){const s=[];for(const i of this.c)i._type===2&&i.uri.toString()===t.toString()&&s.push(i.edit);return s}entries(){const t=new wt;for(const s of this.c)if(s._type===2){let i=t.get(s.uri);i||(i=[s.uri,[]],t.set(s.uri,i)),i[1].push(s.edit)}return[...t.values()]}get size(){return this.entries().length}toJSON(){return this.entries()}},$l=__decorate([J],$l),ga=qr=class{static isSnippetString(t){return t instanceof qr?!0:t?typeof t.value=="string":!1}static c(t){return t.replace(/\$|}|\\/g,"\\$&")}constructor(t){this.e=1,this.value=t||""}appendText(t){return this.value+=qr.c(t),this}appendTabstop(t=this.e++){return this.value+="$",this.value+=t,this}appendPlaceholder(t,s=this.e++){if(typeof t=="function"){const i=new qr;i.e=this.e,t(i),this.e=i.e,t=i.value}else t=qr.c(t);return this.value+="${",this.value+=s,this.value+=":",this.value+=t,this.value+="}",this}appendChoice(t,s=this.e++){const i=t.map(n=>n.replaceAll(/[|\\,]/g,"\\$&")).join(",");return this.value+="${",this.value+=s,this.value+="|",this.value+=i,this.value+="|}",this}appendVariable(t,s){if(typeof s=="function"){const i=new qr;i.e=this.e,s(i),this.e=i.e,s=i.value}else typeof s=="string"&&(s=s.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=t,s&&(this.value+=":",this.value+=s),this.value+="}",this}},ga=qr=__decorate([J],ga),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(wa||(wa={})),function(e){e[e.Hint=3]="Hint",e[e.Information=2]="Information",e[e.Warning=1]="Warning",e[e.Error=0]="Error"}(Us||(Us={})),xn=y0=class{static isLocation(t){return t instanceof y0?!0:t?st.isRange(t.range)&&y.isUri(t.uri):!1}constructor(t,s){if(this.uri=t,s)if(st.isRange(s))this.range=st.of(s);else if(Re.isPosition(s))this.range=new st(s,s);else throw new Error("Illegal argument")}toJSON(){return{uri:this.uri,range:this.range}}},xn=y0=__decorate([J],xn),Sl=class{static is(t){return t?typeof t.message=="string"&&t.location&&st.isRange(t.location.range)&&y.isUri(t.location.uri):!1}constructor(t,s){this.location=t,this.message=s}static isEqual(t,s){return t===s?!0:!t||!s?!1:t.message===s.message&&t.location.range.isEqual(s.location.range)&&t.location.uri.toString()===s.location.uri.toString()}},Sl=__decorate([J],Sl),Mf=class{constructor(t,s,i=Us.Error){if(!st.isRange(t))throw new TypeError("range must be set");if(!s)throw new TypeError("message must be set");this.range=t,this.message=s,this.severity=i}toJSON(){return{severity:Us[this.severity],message:this.message,range:this.range,source:this.source,code:this.code}}static isEqual(t,s){return t===s?!0:!t||!s?!1:t.message===s.message&&t.severity===s.severity&&t.code===s.code&&t.severity===s.severity&&t.source===s.source&&t.range.isEqual(s.range)&&rn(t.tags,s.tags)&&rn(t.relatedInformation,s.relatedInformation,Sl.isEqual)}},Mf=__decorate([J],Mf),Uf=class{constructor(t,s){if(!t)throw new Error("Illegal argument, contents must be defined");Array.isArray(t)?this.contents=t:this.contents=[t],this.range=s}},Uf=__decorate([J],Uf),jf=class extends Uf{constructor(t,s,i,n){super(t,s),this.canIncreaseVerbosity=i,this.canDecreaseVerbosity=n}},jf=__decorate([J],jf),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(k3||(k3={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Tf||(Tf={})),Ff=class{constructor(t,s=Tf.Text){this.range=t,this.kind=s}toJSON(){return{range:this.range,kind:Tf[this.kind]}}},Ff=__decorate([J],Ff),Bf=class{constructor(t,s){this.uri=t,this.highlights=s}toJSON(){return{uri:this.uri,highlights:this.highlights.map(t=>t.toJSON())}}},Bf=__decorate([J],Bf),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(ze||(ze={})),function(e){e[e.Deprecated=1]="Deprecated"}(zf||(zf={})),Hf=E0=class{static validate(t){if(!t.name)throw new Error("name must not be falsy")}constructor(t,s,i,n,r){this.name=t,this.kind=s,this.containerName=r,typeof i=="string"&&(this.containerName=i),n instanceof xn?this.location=n:i instanceof st&&(this.location=new xn(n,i)),E0.validate(this)}toJSON(){return{name:this.name,kind:ze[this.kind],location:this.location,containerName:this.containerName}}},Hf=E0=__decorate([J],Hf),Vf=Cf=class{static validate(t){if(!t.name)throw new Error("name must not be falsy");if(!t.range.contains(t.selectionRange))throw new Error("selectionRange must be contained in fullRange");t.children?.forEach(Cf.validate)}constructor(t,s,i,n,r){this.name=t,this.detail=s,this.kind=i,this.range=n,this.selectionRange=r,this.children=[],Cf.validate(this)}},Vf=Cf=__decorate([J],Vf),function(e){e[e.Invoke=1]="Invoke",e[e.Automatic=2]="Automatic"}(Wf||(Wf={})),P0=class{constructor(t,s){this.title=t,this.kind=s}},P0=__decorate([J],P0),it=class{static{El=this}static{this.c="."}constructor(t){this.value=t}append(t){return new El(this.value?this.value+El.c+t:t)}intersects(t){return this.contains(t)||t.contains(this)}contains(t){return this.value===t.value||t.value.startsWith(this.value+El.c)}},it=El=__decorate([J],it),it.Empty=new it(""),it.QuickFix=it.Empty.append("quickfix"),it.Refactor=it.Empty.append("refactor"),it.RefactorExtract=it.Refactor.append("extract"),it.RefactorInline=it.Refactor.append("inline"),it.RefactorMove=it.Refactor.append("move"),it.RefactorRewrite=it.Refactor.append("rewrite"),it.Source=it.Empty.append("source"),it.SourceOrganizeImports=it.Source.append("organizeImports"),it.SourceFixAll=it.Source.append("fixAll"),it.Notebook=it.Empty.append("notebook"),qf=class{constructor(t,s){if(this.range=t,this.parent=s,s&&!s.range.contains(this.range))throw new Error("Invalid argument: parent must contain this range")}},qf=__decorate([J],qf),I0=class{constructor(e,t,s,i,n,r){this.kind=e,this.name=t,this.detail=s,this.uri=i,this.range=n,this.selectionRange=r}},$3=class{constructor(e,t){this.fromRanges=t,this.from=e}},S3=class{constructor(e,t){this.fromRanges=t,this.to=e}},function(e){e[e.Information=0]="Information",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(P3||(P3={})),D0=class{constructor(t,s){this.range=t,this.command=s}get isResolved(){return!!this.command}},D0=__decorate([J],D0),kn=x0=class{#e;static isMarkdownString(t){return t instanceof x0?!0:t&&t.appendCodeblock&&t.appendMarkdown&&t.appendText&&t.value!==void 0}constructor(t,s=!1){this.#e=new vi(t,{supportThemeIcons:s})}get value(){return this.#e.value}set value(t){this.#e.value=t}get isTrusted(){return this.#e.isTrusted}set isTrusted(t){this.#e.isTrusted=t}get supportThemeIcons(){return this.#e.supportThemeIcons}set supportThemeIcons(t){this.#e.supportThemeIcons=t}get supportHtml(){return this.#e.supportHtml}set supportHtml(t){this.#e.supportHtml=t}get baseUri(){return this.#e.baseUri}set baseUri(t){this.#e.baseUri=t}appendText(t){return this.#e.appendText(t),this}appendMarkdown(t){return this.#e.appendMarkdown(t),this}appendCodeblock(t,s){return this.#e.appendCodeblock(s??"",t),this}},kn=x0=__decorate([J],kn),A0=class{constructor(t,s){this.label=t,this.documentation=s}},A0=__decorate([J],A0),L0=class{constructor(t,s){this.label=t,this.documentation=s,this.parameters=[]}},L0=__decorate([J],L0),R0=class{constructor(){this.activeSignature=0,this.activeParameter=0,this.signatures=[]}},R0=__decorate([J],R0),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(I3||(I3={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(D3||(D3={})),Gf=class{constructor(t){this.value=t}},Gf=__decorate([J],Gf),Jf=class{constructor(t,s,i){this.position=t,this.label=s,this.kind=i}},Jf=__decorate([J],Jf),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(Pl||(Pl={})),function(e){e[e.Text=0]="Text",e[e.Method=1]="Method",e[e.Function=2]="Function",e[e.Constructor=3]="Constructor",e[e.Field=4]="Field",e[e.Variable=5]="Variable",e[e.Class=6]="Class",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Unit=10]="Unit",e[e.Value=11]="Value",e[e.Enum=12]="Enum",e[e.Keyword=13]="Keyword",e[e.Snippet=14]="Snippet",e[e.Color=15]="Color",e[e.File=16]="File",e[e.Reference=17]="Reference",e[e.Folder=18]="Folder",e[e.EnumMember=19]="EnumMember",e[e.Constant=20]="Constant",e[e.Struct=21]="Struct",e[e.Event=22]="Event",e[e.Operator=23]="Operator",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue"}(K||(K={})),function(e){e[e.Deprecated=1]="Deprecated"}(Zf||(Zf={})),Yf=class{constructor(t,s){this.label=t,this.kind=s}toJSON(){return{label:this.label,kind:this.kind&&K[this.kind],detail:this.detail,documentation:this.documentation,sortText:this.sortText,filterText:this.filterText,preselect:this.preselect,insertText:this.insertText,textEdit:this.textEdit}}},Yf=__decorate([J],Yf),N0=class{constructor(t=[],s=!1){this.items=t,this.isIncomplete=s}},N0=__decorate([J],N0),O0=class{constructor(t,s,i){this.insertText=t,this.range=s,this.command=i}},O0=__decorate([J],O0),C0=class{constructor(t){this.commands=void 0,this.suppressSuggestions=void 0,this.items=t}},C0=__decorate([J],C0),function(e){e[e.Unknown=0]="Unknown",e[e.Word=1]="Word",e[e.Line=2]="Line",e[e.Suggest=3]="Suggest"}(va||(va={})),function(e){e[e.Accepted=0]="Accepted",e[e.Rejected=1]="Rejected",e[e.Ignored=2]="Ignored"}(Il||(Il={})),function(e){e[e.Active=-1]="Active",e[e.Beside=-2]="Beside",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Three=3]="Three",e[e.Four=4]="Four",e[e.Five=5]="Five",e[e.Six=6]="Six",e[e.Seven=7]="Seven",e[e.Eight=8]="Eight",e[e.Nine=9]="Nine"}(Qf||(Qf={})),function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"}(A3||(A3={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval"}(zi||(zi={})),function(e){e[e.Manual=1]="Manual",e[e.AfterDelay=2]="AfterDelay",e[e.FocusOut=3]="FocusOut"}(Dl||(Dl={})),function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"}(L3||(L3={})),function(e){e[e.Keyboard=1]="Keyboard",e[e.Mouse=2]="Mouse",e[e.Command=3]="Command"}(Xf||(Xf={})),function(e){e[e.Addition=1]="Addition",e[e.Deletion=2]="Deletion",e[e.Modification=3]="Modification"}(R3||(R3={})),function(e){e[e.Undo=1]="Undo",e[e.Redo=2]="Redo"}(N3||(N3={})),function(e){e[e.OpenOpen=0]="OpenOpen",e[e.ClosedClosed=1]="ClosedClosed",e[e.OpenClosed=2]="OpenClosed",e[e.ClosedOpen=3]="ClosedOpen"}(ba||(ba={})),function(e){function t(s){switch(s){case"keyboard":return e.Keyboard;case"mouse":return e.Mouse;case"api":case"code.jump":case"code.navigation":return e.Command}}e.fromValue=t}(Xf||(Xf={})),function(e){e[e.Other=0]="Other",e[e.Comment=1]="Comment",e[e.String=2]="String",e[e.RegEx=3]="RegEx"}(Kf||(Kf={})),function(e){function t(s){switch(s){case e.Other:return"other";case e.Comment:return"comment";case e.String:return"string";case e.RegEx:return"regex"}return"other"}e.toString=t}(Kf||(Kf={})),ed=class{constructor(t,s){if(s&&!y.isUri(s))throw Ue("target");if(!st.isRange(t)||t.isEmpty)throw Ue("range");this.range=t,this.target=s}},ed=__decorate([J],ed),Al=class{constructor(t,s,i,n){this.red=t,this.green=s,this.blue=i,this.alpha=n}},Al=__decorate([J],Al),_0=class{constructor(t,s){if(s&&!(s instanceof Al))throw Ue("color");if(!st.isRange(t)||t.isEmpty)throw Ue("range");this.range=t,this.color=s}},_0=__decorate([J],_0),td=class{constructor(t){if(!t||typeof t!="string")throw Ue("label");this.label=t}},td=__decorate([J],td),function(e){e[e.RGB=0]="RGB",e[e.HEX=1]="HEX",e[e.HSL=2]="HSL"}(O3||(O3={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information"}(C3||(C3={})),function(e){e[e.Unknown=0]="Unknown",e[e.Shutdown=1]="Shutdown",e[e.Process=2]="Process",e[e.User=3]="User",e[e.Extension=4]="Extension"}(_3||(_3={})),function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High"}(M3||(M3={})),function(e){e[e.Sh=1]="Sh",e[e.Bash=2]="Bash",e[e.Fish=3]="Fish",e[e.Csh=4]="Csh",e[e.Ksh=5]="Ksh",e[e.Zsh=6]="Zsh",e[e.CommandPrompt=7]="CommandPrompt",e[e.GitBash=8]="GitBash",e[e.PowerShell=9]="PowerShell",e[e.Python=10]="Python",e[e.Julia=11]="Julia",e[e.NuShell=12]="NuShell",e[e.Node=13]="Node"}(U3||(U3={})),function(e){e[e.Panel=1]="Panel",e[e.Editor=2]="Editor"}(j3||(j3={})),function(e){e[e.File=0]="File",e[e.Folder=1]="Folder",e[e.Method=2]="Method",e[e.Alias=3]="Alias",e[e.Argument=4]="Argument",e[e.Option=5]="Option",e[e.OptionValue=6]="OptionValue",e[e.Flag=7]="Flag",e[e.SymbolicLinkFile=8]="SymbolicLinkFile",e[e.SymbolicLinkFolder=9]="SymbolicLinkFolder"}(T3||(T3={})),function(e){e[e.Always=1]="Always",e[e.Silent=2]="Silent",e[e.Never=3]="Never"}(F3||(F3={})),function(e){e.Changed="changed",e.ProcessStarted="processStarted",e.ProcessEnded="processEnded",e.Terminated="terminated",e.Start="start",e.AcquiredInput="acquiredInput",e.DependsOnStarted="dependsOnStarted",e.Active="active",e.Inactive="inactive",e.End="end",e.ProblemMatcherStarted="problemMatcherStarted",e.ProblemMatcherEnded="problemMatcherEnded",e.ProblemMatcherFoundErrors="problemMatcherFoundErrors"}(B3||(B3={})),function(e){e[e.Shared=1]="Shared",e[e.Dedicated=2]="Dedicated",e[e.New=3]="New"}(z3||(z3={})),M0=class{static{Fi=this}static{this.Clean=new Fi("clean","Clean")}static{this.Build=new Fi("build","Build")}static{this.Rebuild=new Fi("rebuild","Rebuild")}static{this.Test=new Fi("test","Test")}static from(t){switch(t){case"clean":return Fi.Clean;case"build":return Fi.Build;case"rebuild":return Fi.Rebuild;case"test":return Fi.Test;default:return}}constructor(t,s){if(this.label=s,typeof t!="string"||typeof s!="string")throw Ue("name");this.c=t}get id(){return this.c}},M0=Fi=__decorate([J],M0),sd=class{constructor(t,s,i){if(typeof t!="string")throw Ue("process");this.e=[],this.c=t,s!==void 0&&(Array.isArray(s)?(this.e=s,this.f=i):this.f=s)}get process(){return this.c}set process(t){if(typeof t!="string")throw Ue("process");this.c=t}get args(){return this.e}set args(t){Array.isArray(t)||(t=[]),this.e=t}get options(){return this.f}set options(t){this.f=t}computeId(){const t=[];if(t.push("process"),this.c!==void 0&&t.push(this.c),this.e&&this.e.length>0)for(const s of this.e)t.push(s);return v3(t)}},sd=__decorate([J],sd),id=class{constructor(t,s,i){if(this.f=[],Array.isArray(s)){if(!t)throw Ue("command can't be undefined or null");if(typeof t!="string"&&typeof t.value!="string")throw Ue("command");this.e=t,s&&(this.f=s),this.g=i}else{if(typeof t!="string")throw Ue("commandLine");this.c=t,this.g=s}}get commandLine(){return this.c}set commandLine(t){if(typeof t!="string")throw Ue("commandLine");this.c=t}get command(){return this.e?this.e:""}set command(t){if(typeof t!="string"&&typeof t.value!="string")throw Ue("command");this.e=t}get args(){return this.f}set args(t){this.f=t||[]}get options(){return this.g}set options(t){this.g=t}computeId(){const t=[];if(t.push("shell"),this.c!==void 0&&t.push(this.c),this.e!==void 0&&t.push(typeof this.e=="string"?this.e:this.e.value),this.f&&this.f.length>0)for(const s of this.f)t.push(typeof s=="string"?s:s.value);return v3(t)}},id=__decorate([J],id),function(e){e[e.Escape=1]="Escape",e[e.Strong=2]="Strong",e[e.Weak=3]="Weak"}(H3||(H3={})),function(e){e[e.Global=1]="Global",e[e.Workspace=2]="Workspace"}(nd||(nd={})),V3=class{constructor(e){this.c=e}computeId(){return"customExecution"+Ve()}set callback(e){this.c=e}get callback(){return this.c}},U0=class{static{Bi=this}static{this.c="customExecution"}static{this.e="process"}static{this.f="shell"}static{this.g="$empty"}constructor(t,s,i,n,r,o){this.k=!1,this.l=this.definition=t;let a;typeof s=="string"?(this.o=this.name=s,this.w=this.source=i,this.execution=n,a=r,this.k=!0):s===nd.Global||s===nd.Workspace?(this.target=s,this.o=this.name=i,this.w=this.source=n,this.execution=r,a=o):(this.target=s,this.o=this.name=i,this.w=this.source=n,this.execution=r,a=o),typeof a=="string"?(this.r=[a],this.t=!0):Array.isArray(a)?(this.r=a,this.t=!0):(this.r=[],this.t=!1),this.u=!1,this.y=Object.create(null),this.z=Object.create(null)}get _id(){return this.j}set _id(t){this.j=t}get _deprecated(){return this.k}B(){this.j!==void 0&&(this.j=void 0,this.m=void 0,this.C())}C(){this.q instanceof sd?this.l={type:Bi.e,id:this.q.computeId()}:this.q instanceof id?this.l={type:Bi.f,id:this.q.computeId()}:this.q instanceof V3?this.l={type:Bi.c,id:this.q.computeId()}:this.l={type:Bi.g,id:Ve()}}get definition(){return this.l}set definition(t){if(t==null)throw Ue("Kind can't be undefined or null");this.B(),this.l=t}get scope(){return this.m}set target(t){this.B(),this.m=t}get name(){return this.o}set name(t){if(typeof t!="string")throw Ue("name");this.B(),this.o=t}get execution(){return this.q}set execution(t){t===null&&(t=void 0),this.B(),this.q=t;const s=this.l.type;(Bi.g===s||Bi.e===s||Bi.f===s||Bi.c===s)&&this.C()}get problemMatchers(){return this.r}set problemMatchers(t){if(Array.isArray(t))this.B(),this.r=t,this.t=!0;else{this.B(),this.r=[],this.t=!1;return}}get hasDefinedMatchers(){return this.t}get isBackground(){return this.u}set isBackground(t){t!==!0&&t!==!1&&(t=!1),this.B(),this.u=t}get source(){return this.w}set source(t){if(typeof t!="string"||t.length===0)throw Ue("source must be a string of length > 0");this.B(),this.w=t}get group(){return this.x}set group(t){t===null&&(t=void 0),this.B(),this.x=t}get detail(){return this.A}set detail(t){t===null&&(t=void 0),this.A=t}get presentationOptions(){return this.y}set presentationOptions(t){t==null&&(t=Object.create(null)),this.B(),this.y=t}get runOptions(){return this.z}set runOptions(t){t==null&&(t=Object.create(null)),this.B(),this.z=t}},U0=Bi=__decorate([J],U0),function(e){e[e.SourceControl=1]="SourceControl",e[e.Window=10]="Window",e[e.Notification=15]="Notification"}(Ll||(Ll={})),function(e){function t(s){const i=s;return Rn(i.value)?i.tooltip&&!ue(i.tooltip)?(console.log("INVALID view badge, invalid tooltip",i.tooltip),!1):!0:(console.log("INVALID view badge, invalid value",i.value),!1)}e.isViewBadge=t}(W3||(W3={})),j0=k0=class{static isTreeItem(t,s){const i=t;if(i.checkboxState!==void 0){const n=Rn(i.checkboxState)?i.checkboxState:ft(i.checkboxState)&&Rn(i.checkboxState.state)?i.checkboxState.state:void 0,r=!Rn(i.checkboxState)&&ft(i.checkboxState)?i.checkboxState.tooltip:void 0;if(n===void 0||n!==rd.Checked&&n!==rd.Unchecked||r!==void 0&&!ue(r))return console.log("INVALID tree item, invalid checkboxState",i.checkboxState),!1}if(t instanceof k0)return!0;if(i.label!==void 0&&!ue(i.label)&&!i.label?.label)return console.log("INVALID tree item, invalid label",i.label),!1;if(i.id!==void 0&&!ue(i.id))return console.log("INVALID tree item, invalid id",i.id),!1;if(i.iconPath!==void 0&&!ue(i.iconPath)&&!y.isUri(i.iconPath)&&(!i.iconPath||!ue(i.iconPath.id))){const n=i.iconPath;if(!n||!ue(n.light)&&!y.isUri(n.light)&&!ue(n.dark)&&!y.isUri(n.dark))return console.log("INVALID tree item, invalid iconPath",i.iconPath),!1}return i.description!==void 0&&!ue(i.description)&&typeof i.description!="boolean"?(console.log("INVALID tree item, invalid description",i.description),!1):i.resourceUri!==void 0&&!y.isUri(i.resourceUri)?(console.log("INVALID tree item, invalid resourceUri",i.resourceUri),!1):i.tooltip!==void 0&&!ue(i.tooltip)&&!(i.tooltip instanceof kn)?(console.log("INVALID tree item, invalid tooltip",i.tooltip),!1):i.command!==void 0&&!i.command.command?(console.log("INVALID tree item, invalid command",i.command),!1):i.collapsibleState!==void 0&&i.collapsibleState<Rl.None&&i.collapsibleState>Rl.Expanded?(console.log("INVALID tree item, invalid collapsibleState",i.collapsibleState),!1):i.contextValue!==void 0&&!ue(i.contextValue)?(console.log("INVALID tree item, invalid contextValue",i.contextValue),!1):i.accessibilityInformation!==void 0&&!i.accessibilityInformation?.label?(console.log("INVALID tree item, invalid accessibilityInformation",i.accessibilityInformation),!1):!0}constructor(t,s=Rl.None){this.collapsibleState=s,y.isUri(t)?this.resourceUri=t:this.label=t}},j0=k0=__decorate([J],j0),function(e){e[e.None=0]="None",e[e.Collapsed=1]="Collapsed",e[e.Expanded=2]="Expanded"}(Rl||(Rl={})),function(e){e[e.Unchecked=0]="Unchecked",e[e.Checked=1]="Checked"}(rd||(rd={})),od=class{async asString(){return typeof this.value=="string"?this.value:JSON.stringify(this.value)}asFile(){}constructor(t){this.value=t}},od=__decorate([J],od),ad=class extends od{},q3=class extends ad{#e;constructor(e){super(""),this.#e=e}asFile(){return this.#e}},G3=class{constructor(e,t,s,i){this.name=e,this.uri=t,this._itemId=s,this.c=i}data(){return this.c()}},cd=class{#e=new Map;constructor(t){for(const[s,i]of t??[]){const n=this.#e.get(this.#t(s));n?n.push(i):this.#e.set(this.#t(s),[i])}}get(t){return this.#e.get(this.#t(t))?.[0]}set(t,s){this.#e.set(this.#t(t),[s])}forEach(t,s){for(const[i,n]of this.#e)for(const r of n)t.call(s,r,i,this)}*[Symbol.iterator](){for(const[t,s]of this.#e)for(const i of s)yield[t,i]}#t(t){return t.toLowerCase()}},cd=__decorate([J],cd),T0=class{constructor(t,s,i){this.insertText=t,this.title=s,this.kind=i}},T0=__decorate([J],T0),function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(J3||(J3={})),Jr=class F1{static{this.c="."}constructor(t){this.value=t}append(...t){return new F1((this.value?[this.value,...t]:t).join(F1.c))}intersects(t){return this.contains(t)||t.contains(this)}contains(t){return this.value===t.value||t.value.startsWith(this.value+F1.c)}},Jr.Empty=new Jr(""),Jr.Text=new Jr("text"),Jr.TextUpdateImports=Jr.Text.append("updateImports"),Jn=class{constructor(t,s){this.id=t,this.color=s}static isThemeIcon(t){return typeof t.id!="string"?(console.log("INVALID ThemeIcon, invalid id",t.id),!1):!0}},Jn=__decorate([J],Jn),Jn.File=new Jn("file"),Jn.Folder=new Jn("folder"),F0=class{constructor(t){this.id=t}},F0=__decorate([J],F0),function(e){e[e.Global=1]="Global",e[e.Workspace=2]="Workspace",e[e.WorkspaceFolder=3]="WorkspaceFolder"}(Z3||(Z3={})),ya=class{get base(){return this.c}set base(t){this.c=t,this.e=y.file(t)}get baseUri(){return this.e}set baseUri(t){this.e=t,this.c=t.fsPath}constructor(t,s){if(typeof t!="string"&&(!t||!y.isUri(t)&&!y.isUri(t.uri)))throw Ue("base");if(typeof s!="string")throw Ue("pattern");typeof t=="string"?this.baseUri=y.file(t):y.isUri(t)?this.baseUri=t:this.baseUri=t.uri,this.pattern=s}toJSON(){return{pattern:this.pattern,base:this.base,baseUri:this.baseUri.toJSON()}}},ya=__decorate([J],ya),Y3=new WeakMap,Ea=class{constructor(t,s,i,n,r){this.enabled=typeof t=="boolean"?t:!0,typeof s=="string"&&(this.condition=s),typeof i=="string"&&(this.hitCondition=i),typeof n=="string"&&(this.logMessage=n),typeof r=="string"&&(this.mode=r)}get id(){return this.c||(this.c=Y3.get(this)??Ve()),this.c}},Ea=__decorate([J],Ea),B0=class extends Ea{constructor(t,s,i,n,r,o){if(super(s,i,n,r,o),t===null)throw Ue("location");this.location=t}},B0=__decorate([J],B0),z0=class extends Ea{constructor(t,s,i,n,r,o){super(s,i,n,r,o),this.functionName=t}},z0=__decorate([J],z0),H0=class extends Ea{constructor(t,s,i,n,r,o,a,c){if(super(n,r,o,a,c),!s)throw Ue("dataId");this.label=t,this.dataId=s,this.canPersist=i}},H0=__decorate([J],H0),V0=class{constructor(t,s,i){this.command=t,this.args=s||[],this.options=i}},V0=__decorate([J],V0),W0=class{constructor(t,s){this.port=t,this.host=s}},W0=__decorate([J],W0),q0=class{constructor(t){this.path=t}},q0=__decorate([J],q0),G0=class{constructor(t){this.implementation=t}},G0=__decorate([J],G0),ld=class{constructor(t,s){this.range=t,this.expression=s}},ld=__decorate([J],ld),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Q3||(Q3={})),function(e){e[e.Other=0]="Other",e[e.Empty=1]="Empty",e[e.TokenCancellation=2]="TokenCancellation",e[e.LostRace=3]="LostRace",e[e.NotTaken=4]="NotTaken"}(X3||(X3={})),ud=class{constructor(t,s){this.range=t,this.text=s}},ud=__decorate([J],ud),hd=class{constructor(t,s,i=!0){this.range=t,this.variableName=s,this.caseSensitiveLookup=i}},hd=__decorate([J],hd),fd=class{constructor(t,s){this.range=t,this.expression=s}},fd=__decorate([J],fd),dd=class{constructor(t,s){this.frameId=t,this.stoppedLocation=s}},dd=__decorate([J],dd),function(e){e[e.AIGenerated=1]="AIGenerated"}(K3||(K3={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(ex||(ex={})),function(e){e[e.Changed=1]="Changed",e[e.Created=2]="Created",e[e.Deleted=3]="Deleted"}(tx||(tx={})),J0=Es=class extends Error{static FileExists(t){return new Es(t,ne.FileExists,Es.FileExists)}static FileNotFound(t){return new Es(t,ne.FileNotFound,Es.FileNotFound)}static FileNotADirectory(t){return new Es(t,ne.FileNotADirectory,Es.FileNotADirectory)}static FileIsADirectory(t){return new Es(t,ne.FileIsADirectory,Es.FileIsADirectory)}static NoPermissions(t){return new Es(t,ne.NoPermissions,Es.NoPermissions)}static Unavailable(t){return new Es(t,ne.Unavailable,Es.Unavailable)}constructor(t,s=ne.Unknown,i){super(y.isUri(t)?t.toString(!0):t),this.code=i?.name??"Unknown",A7(this,s),Object.setPrototypeOf(this,Es.prototype),typeof Error.captureStackTrace=="function"&&typeof i=="function"&&Error.captureStackTrace(this,i)}},J0=Es=__decorate([J],J0),Z0=class{constructor(t,s,i){this.start=t,this.end=s,this.kind=i}},Z0=__decorate([J],Z0),function(e){e[e.Comment=1]="Comment",e[e.Imports=2]="Imports",e[e.Region=3]="Region"}(Zn||(Zn={})),function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"}(sx||(sx={})),function(e){e[e.Editing=0]="Editing",e[e.Preview=1]="Preview"}(ix||(ix={})),function(e){e[e.Published=0]="Published",e[e.Draft=1]="Draft"}(nx||(nx={})),function(e){e[e.Unresolved=0]="Unresolved",e[e.Resolved=1]="Resolved"}(rx||(rx={})),function(e){e[e.Current=0]="Current",e[e.Outdated=1]="Outdated"}(ox||(ox={})),function(e){e[e.Reply=1]="Reply",e[e.Comment=2]="Comment"}(ax||(ax={})),function(e){e[e.Separate=0]="Separate",e[e.MergeWithParent=1]="MergeWithParent"}(cx||(cx={})),function(e){e[e.Title=1]="Title",e[e.Inline=2]="Inline"}(lx||(lx={})),Y0=class{static{this.Back={iconPath:new Jn("arrow-left")}}constructor(){}},Y0=__decorate([J],Y0),function(e){e[e.Separator=-1]="Separator",e[e.Default=0]="Default"}(ux||(ux={})),function(e){e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(hx||(hx={})),function(e){e[e.UI=1]="UI",e[e.Workspace=2]="Workspace"}(fx||(fx={})),Q0=class{constructor(t){this.kind=t}},Q0=__decorate([J],Q0),function(e){e[e.Light=1]="Light",e[e.Dark=2]="Dark",e[e.HighContrast=3]="HighContrast",e[e.HighContrastLight=4]="HighContrastLight"}(dx||(dx={})),Zr=class lb{static isNotebookRange(t){return t instanceof lb?!0:t?typeof t.start=="number"&&typeof t.end=="number":!1}get start(){return this.c}get end(){return this.e}get isEmpty(){return this.c===this.e}constructor(t,s){if(t<0)throw Ue("start must be positive");if(s<0)throw Ue("end must be positive");t<=s?(this.c=t,this.e=s):(this.c=s,this.e=t)}with(t){let s=this.c,i=this.e;return t.start!==void 0&&(s=t.start),t.end!==void 0&&(i=t.end),s===this.c&&i===this.e?this:new lb(s,i)}},X0=class ub{static validate(t){if(typeof t.kind!="number")throw new Error("NotebookCellData MUST have 'kind' property");if(typeof t.value!="string")throw new Error("NotebookCellData MUST have 'value' property");if(typeof t.languageId!="string")throw new Error("NotebookCellData MUST have 'languageId' property")}static isNotebookCellDataArray(t){return Array.isArray(t)&&t.every(s=>ub.isNotebookCellData(s))}static isNotebookCellData(t){return!0}constructor(t,s,i,n,r,o,a){this.kind=t,this.value=s,this.languageId=i,this.mime=n,this.outputs=r??[],this.metadata=o,this.executionSummary=a,ub.validate(this)}},px=class{constructor(e){this.cells=e}},mx=class In{static isNotebookCellOutputItem(t){return t instanceof In?!0:t?typeof t.mime=="string"&&t.data instanceof Uint8Array:!1}static error(t){const s={name:t.name,message:t.message,stack:t.stack};return In.json(s,"application/vnd.code.notebook.error")}static stdout(t){return In.text(t,"application/vnd.code.notebook.stdout")}static stderr(t){return In.text(t,"application/vnd.code.notebook.stderr")}static bytes(t,s="application/octet-stream"){return new In(t,s)}static#e=new TextEncoder;static text(t,s=ki.text){const i=In.#e.encode(String(t));return new In(i,s)}static json(t,s="text/x-json"){const i=JSON.stringify(t,void 0,"	");return In.text(i,s)}constructor(t,s){this.data=t,this.mime=s;const i=WE(s,!0);if(!i)throw new Error(`INVALID mime type: ${s}. Must be in the format "type/subtype[;optionalparameter]"`);this.mime=i}},gx=class hb{static isNotebookCellOutput(t){return t instanceof hb?!0:!t||typeof t!="object"?!1:typeof t.id=="string"&&Array.isArray(t.items)}static ensureUniqueMimeTypes(t,s=!1){const i=new Set,n=new Set;for(let r=0;r<t.length;r++){const o=t[r],a=WE(o.mime);if(!i.has(a)||dj(a)){i.add(a);continue}n.add(r),s&&console.warn(`DUPLICATED mime type '${o.mime}' will be dropped`)}return n.size===0?t:t.filter((r,o)=>!n.has(o))}constructor(t,s,i){this.items=hb.ensureUniqueMimeTypes(t,!0),typeof s=="string"?(this.id=s,this.metadata=i):(this.id=Ve(),this.metadata=s??i)}},function(e){e[e.Markup=1]="Markup",e[e.Code=2]="Code"}(xa||(xa={})),function(e){e[e.Idle=1]="Idle",e[e.Pending=2]="Pending",e[e.Executing=3]="Executing"}(wx||(wx={})),function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"}(K0||(K0={})),function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"}(vx||(vx={})),function(e){e[e.Default=1]="Default",e[e.Preferred=2]="Preferred"}(bx||(bx={})),function(e){e[e.Default=1]="Default",e[e.Preferred=2]="Preferred",e[e.Hidden=-1]="Hidden"}(yx||(yx={})),Ex=class{constructor(e,t=[]){this.uri=e,this.provides=hy(t)}},function(e){e[e.Named=1]="Named",e[e.Indexed=2]="Indexed"}(xx||(xx={})),ew=class{constructor(t,s){this.label=t,this.timestamp=s}},ew=__decorate([J],ew),function(e){e[e.Production=1]="Production",e[e.Development=2]="Development",e[e.Test=3]="Test"}(kx||(kx={})),function(e){e[e.Node=1]="Node",e[e.Webworker=2]="Webworker"}($x||($x={})),function(e){e[e.Other=0]="Other",e[e.Comment=1]="Comment",e[e.String=2]="String",e[e.RegEx=3]="RegEx"}(ka||(ka={})),function(e){e[e.Queued=1]="Queued",e[e.Running=2]="Running",e[e.Passed=3]="Passed",e[e.Failed=4]="Failed",e[e.Skipped=5]="Skipped",e[e.Errored=6]="Errored"}(Sx||(Sx={})),function(e){e[e.Run=1]="Run",e[e.Debug=2]="Debug",e[e.Coverage=3]="Coverage"}(Nl||(Nl={})),Px=class{constructor(e,t,s){this.controllerId=e,this.profileId=t,this.kind=s}},tw=class{constructor(t=void 0,s=void 0,i=void 0,n=!1,r=!0){this.include=t,this.exclude=s,this.profile=i,this.continuous=n,this.preserveFocus=r}},tw=__decorate([J],tw),pd=$0=class{static diff(t,s,i){const n=new $0(t);return n.expectedOutput=s,n.actualOutput=i,n}constructor(t){this.message=t}},pd=$0=__decorate([J],pd),Ol=class{constructor(t){this.id=t}},Ol=__decorate([J],Ol),md=class{constructor(e,t){this.covered=e,this.total=t,Of(this)}},Ix=class wA{static fromDetails(t,s){const i=new md(0,0),n=new md(0,0),r=new md(0,0);for(const a of s)if("branches"in a){i.total+=1,i.covered+=a.executed?1:0;for(const c of a.branches)n.total+=1,n.covered+=c.executed?1:0}else r.total+=1,r.covered+=a.executed?1:0;const o=new wA(t,i,n.total>0?n:void 0,r.total>0?r:void 0);return o.detailedCoverage=s,o}constructor(t,s,i,n,r=[]){this.uri=t,this.statementCoverage=s,this.branchCoverage=i,this.declarationCoverage=n,this.includesTests=r}},Dx=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,t,s=[]){this.executed=e,this.location=t,this.branches=s}},Ax=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,t,s){this.executed=e,this.location=t,this.label=s}},Lx=class{get executionCount(){return+this.executed}set executionCount(e){this.executed=e}constructor(e,t,s){this.name=e,this.executed=t,this.location=s}},function(e){e[e.None=0]="None",e[e.Option=1]="Option",e[e.Default=2]="Default",e[e.Preferred=3]="Preferred"}(Rx||(Rx={})),function(e){e[e.Untrusted=0]="Untrusted",e[e.Trusted=1]="Trusted",e[e.Unspecified=2]="Unspecified"}(Nx||(Nx={})),function(e){e[e.Notify=1]="Notify",e[e.OpenBrowser=2]="OpenBrowser",e[e.OpenPreview=3]="OpenPreview",e[e.Silent=4]="Silent",e[e.Ignore=5]="Ignore",e[e.OpenBrowserOnce=6]="OpenBrowserOnce"}(Ox||(Ox={})),sw=class{constructor(e,t,s,i,n,r){this.kind=e,this.name=t,this.detail=s,this.uri=i,this.range=n,this.selectionRange=r}},function(e){e[e.Down=0]="Down",e[e.Up=1]="Up"}(Cx||(Cx={})),function(e){e[e.Action=1]="Action",e[e.Toolbar=2]="Toolbar"}(_x||(_x={})),function(e){e[e.Short=1]="Short",e[e.Medium=2]="Medium",e[e.Full=3]="Full"}(Mx||(Mx={})),function(e){e[e.Accepted=1]="Accepted",e[e.Rejected=2]="Rejected",e[e.Saved=3]="Saved"}($a||($a={})),function(e){e[e.Keep=1]="Keep",e[e.Undo=2]="Undo",e[e.UserModification=3]="UserModification"}(Ux||(Ux={})),function(e){e[e.Unhelpful=0]="Unhelpful",e[e.Helpful=1]="Helpful",e[e.Undone=2]="Undone",e[e.Accepted=3]="Accepted",e[e.Bug=4]="Bug"}(jx||(jx={})),function(e){e[e.Unhelpful=0]="Unhelpful",e[e.Helpful=1]="Helpful"}(Tx||(Tx={})),iw=class{constructor(e){if(typeof e!="string"&&e.isTrusted===!0)throw new Error("The boolean form of MarkdownString.isTrusted is NOT supported for chat participants.");this.value=typeof e=="string"?new kn(e):e}},nw=class{constructor(e,t){if(typeof e!="string"&&e.isTrusted===!0)throw new Error("The boolean form of MarkdownString.isTrusted is NOT supported for chat participants.");this.value=typeof e=="string"?new kn(e):e,this.vulnerabilities=t}},Fx=class{constructor(e,t,s,i){this.title=e,this.message=t,this.data=s,this.buttons=i}},rw=class{constructor(e,t){this.value=e,this.baseUri=t}},ow=class{constructor(e,t){this.value=e,this.value2=e,this.title=t}},aw=class{constructor(e){this.value=e}},cw=class{constructor(e){if(typeof e!="string"&&e.isTrusted===!0)throw new Error("The boolean form of MarkdownString.isTrusted is NOT supported for chat participants.");this.value=typeof e=="string"?new kn(e):e}},lw=class{constructor(e){this.value=e}},uw=class{constructor(e,t,s){this.value=e,this.iconPath=t,this.options=s}},hw=class{constructor(e,t){this.value=e,this.isEdit=t}},Bx=class{constructor(e,t,s){this.value=e,this.license=t,this.snippet=s}},fw=class{constructor(e,t){this.uri=e,this.range=t}},zx=class{constructor(e){this.extensions=e}},dw=class{constructor(e,t){this.uri=e,t===!0?(this.isDone=!0,this.edits=[]):this.edits=Array.isArray(t)?t:[t]}},Hx=class{constructor(e,t){this.uri=e,t===!0?(this.isDone=!0,this.edits=[]):this.edits=Array.isArray(t)?t:[t]}},pw=class{constructor(e){this.toolName=e}},function(e){e[e.Panel=1]="Panel",e[e.Terminal=2]="Terminal",e[e.Notebook=3]="Notebook",e[e.Editor=4]="Editor"}(Hi||(Hi={})),function(e){e[e.Complete=1]="Complete",e[e.Partial=2]="Partial",e[e.Omitted=3]="Omitted"}(Vx||(Vx={})),Wx=class{constructor(e,t,s){this.mimeType=e,this.data=t,this.reference=s}},qx=class{constructor(e){this.diagnostics=e}},function(e){e[e.User=1]="User",e[e.Assistant=2]="Assistant",e[e.System=3]="System"}(Xs||(Xs={})),gd=class{constructor(e,t,s){this.callId=e,this.content=t,this.isError=s??!1}},mw=class{constructor(e,t,s){this.callId=e,this.content=t,this.isError=s??!1}},function(e){e[e.Info=0]="Info",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(Gx||(Gx={})),Jx=class fb{static User(t,s){return new fb(Xs.User,t,s)}static Assistant(t,s){return new fb(Xs.Assistant,t,s)}set content(t){typeof t=="string"?this.c=[new Nt(t)]:this.c=t}get content(){return this.c}constructor(t,s,i){this.c=[],this.role=t,this.content=s,this.name=i}},Zx=class db{static User(t,s){return new db(Xs.User,t,s)}static Assistant(t,s){return new db(Xs.Assistant,t,s)}set content(t){typeof t=="string"?this.c=[new Nt(t)]:this.c=t}get content(){return this.c}set content2(t){t&&(this.content=t.map(s=>typeof s=="string"?new Nt(s):s))}get content2(){return this.content.map(t=>t instanceof Nt?t.value:t)}constructor(t,s,i){this.c=[],this.role=t,this.content=s,this.name=i}},Cl=class{constructor(e,t,s){this.callId=e,this.name=t,this.input=s}},Nt=class{constructor(e){this.value=e}toJSON(){return{$mid:21,value:this.value}}},Yn=class B1{constructor(t,s){this.mimeType=s,this.data=t}static image(t,s){return new B1(t,s)}static json(t,s="text/x-json"){const i=JSON.stringify(t,void 0,"	");return new B1(R.fromString(i).buffer,s)}static text(t,s=ki.text){return new B1(R.fromString(t).buffer,s)}toJSON(){return{$mid:23,mimeType:this.mimeType,data:this.data}}},function(e){e.PNG="image/png",e.JPEG="image/jpeg",e.GIF="image/gif",e.WEBP="image/webp",e.BMP="image/bmp"}(Qn||(Qn={})),Vi=class{constructor(e){this.value=e}toJSON(){return{$mid:22,value:this.value}}},gw=class{constructor(e){this.content=e}toJSON(){return{$mid:20,content:this.content}}},Yx=class{constructor(e){this.content=e}toJSON(){return{$mid:20,content:this.content}}},function(e){e[e.Auto=1]="Auto",e[e.Required=2]="Required"}(Qx||(Qx={})),function(e){e[e.SymbolInformation=1]="SymbolInformation",e[e.CommandInformation=2]="CommandInformation",e[e.SearchInformation=3]="SearchInformation",e[e.SettingInformation=4]="SettingInformation"}(Xx||(Xx={})),function(e){e[e.EMBEDDED=1]="EMBEDDED",e[e.LLM_RANKED=2]="LLM_RANKED",e[e.CANCELED=3]="CANCELED"}(Kx||(Kx={})),function(e){e[e.Started=1]="Started",e[e.Recognizing=2]="Recognizing",e[e.Recognized=3]="Recognized",e[e.Stopped=4]="Stopped",e[e.Error=5]="Error"}(ek||(ek={})),function(e){e[e.Started=1]="Started",e[e.Stopped=2]="Stopped",e[e.Error=3]="Error"}(tk||(tk={})),function(e){e[e.Recognized=1]="Recognized",e[e.Stopped=2]="Stopped"}(sk||(sk={}))}}),wd,$j=v({"out-build/vs/base/common/dataTransfer.js"(){"use strict";kt(),wr(),zt(),wd=Object.freeze({create:e=>Ri(e.map(t=>t.toString())).join(`\r
`),split:e=>e.split(`\r
`),parse:e=>wd.split(e).filter(t=>!t.startsWith("#"))})}});function vw(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function ik(e){Xn=e}function js(e,t){if(t){if(bw.test(e))return e.replace(ak,Ew)}else if(yw.test(e))return e.replace(ck,Ew);return e}function Je(e,t){let s=typeof e=="string"?e:e.source;t=t||"";const i={replace:(n,r)=>{let o=typeof r=="string"?r:r.source;return o=o.replace(uk,"$1"),s=s.replace(n,o),i},getRegex:()=>new RegExp(s,t)};return i}function nk(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}function rk(e,t){const s=e.replace(/\|/g,(r,o,a)=>{let c=!1,l=o;for(;--l>=0&&a[l]==="\\";)c=!c;return c?"|":" |"}),i=s.split(/ \|/);let n=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(/\\\|/g,"|");return i}function _l(e,t,s){const i=e.length;if(i===0)return"";let n=0;for(;n<i;){const r=e.charAt(i-n-1);if(r===t&&!s)n++;else if(r!==t&&s)n++;else break}return e.slice(0,i-n)}function Sj(e,t){if(e.indexOf(t[1])===-1)return-1;let s=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])s++;else if(e[i]===t[1]&&(s--,s<0))return i;return-1}function ok(e,t,s,i){const n=t.href,r=t.title?js(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){i.state.inLink=!0;const a={type:"link",raw:s,href:n,title:r,text:o,tokens:i.inlineTokens(o)};return i.state.inLink=!1,a}return{type:"image",raw:s,href:n,title:r,text:js(o)}}function Pj(e,t){const s=e.match(/^(\s+)(?:```)/);if(s===null)return t;const i=s[1];return t.split(`
`).map(n=>{const r=n.match(/^\s+/);if(r===null)return n;const[o]=r;return o.length>=i.length?n.slice(i.length):n}).join(`
`)}function He(e,t){return tr.parse(e,t)}var Xn,bw,ak,yw,ck,lk,Ew,uk,Sa,Ml,hk,fk,dk,Pa,pk,xw,kw,vd,mk,bd,gk,wk,Ul,yd,vk,$w,bk,Ed,Sw,yk,Ek,Pw,xk,Iw,kk,Ia,$k,Sk,Pk,Ik,Dk,Ak,Lk,Rk,Nk,jl,Ok,Dw,Aw,Ck,xd,_k,kd,Mk,Tl,Da,Kn,Fl,$d,er,Bl,Uk,tr,Ij,Dj,Aj,Lj,Rj,Nj,Oj,Cj=v({"out-build/vs/base/common/marked/marked.js"(){"use strict";Xn=vw(),bw=/[&<>"']/,ak=new RegExp(bw.source,"g"),yw=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ck=new RegExp(yw.source,"g"),lk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ew=e=>lk[e],uk=/(^|[^\[])\^/g,Sa={exec:()=>null},Ml=class{options;rules;lexer;constructor(e){this.options=e||Xn}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const s=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?s:_l(s,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const s=t[0],i=Pj(s,t[3]||"");return{type:"code",raw:s,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let s=t[2].trim();if(/#$/.test(s)){const i=_l(s,"#");(this.options.pedantic||!i||/ $/.test(i))&&(s=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:_l(t[0],`
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let s=_l(t[0],`
`).split(`
`),i="",n="";const r=[];for(;s.length>0;){let o=!1;const a=[];let c;for(c=0;c<s.length;c++)if(/^ {0,3}>/.test(s[c]))a.push(s[c]),o=!0;else if(!o)a.push(s[c]);else break;s=s.slice(c);const l=a.join(`
`),u=l.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
    $1`).replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i}
${l}`:l,n=n?`${n}
${u}`:u;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,r,!0),this.lexer.state.top=h,s.length===0)break;const f=r[r.length-1];if(f?.type==="code")break;if(f?.type==="blockquote"){const p=f,g=p.raw+`
`+s.join(`
`),w=this.blockquote(g);r[r.length-1]=w,i=i.substring(0,i.length-p.raw.length)+w.raw,n=n.substring(0,n.length-p.text.length)+w.text;break}else if(f?.type==="list"){const p=f,g=p.raw+`
`+s.join(`
`),w=this.list(g);r[r.length-1]=w,i=i.substring(0,i.length-f.raw.length)+w.raw,n=n.substring(0,n.length-p.raw.length)+w.raw,s=g.substring(r[r.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:i,tokens:r,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim();const i=s.length>1,n={type:"list",raw:"",ordered:i,start:i?+s.slice(0,-1):"",loose:!1,items:[]};s=i?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=i?s:"[*+-]");const r=new RegExp(`^( {0,3}${s})((?:[	 ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;e;){let a=!1,c="",l="";if(!(t=r.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let u=t[2].split(`
`,1)[0].replace(/^\t+/,b=>" ".repeat(3*b.length)),h=e.split(`
`,1)[0],f=!u.trim(),p=0;if(this.options.pedantic?(p=2,l=u.trimStart()):f?p=t[1].length+1:(p=t[2].search(/[^ ]/),p=p>4?1:p,l=u.slice(p),p+=t[1].length),f&&/^ *$/.test(h)&&(c+=h+`
`,e=e.substring(h.length+1),a=!0),!a){const b=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),x=new RegExp(`^ {0,${Math.min(3,p-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),k=new RegExp(`^ {0,${Math.min(3,p-1)}}(?:\`\`\`|~~~)`),I=new RegExp(`^ {0,${Math.min(3,p-1)}}#`);for(;e;){const M=e.split(`
`,1)[0];if(h=M,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),k.test(h)||I.test(h)||b.test(h)||x.test(e))break;if(h.search(/[^ ]/)>=p||!h.trim())l+=`
`+h.slice(p);else{if(f||u.search(/[^ ]/)>=4||k.test(u)||I.test(u)||x.test(u))break;l+=`
`+h}!f&&!h.trim()&&(f=!0),c+=M+`
`,e=e.substring(M.length+1),u=h.slice(p)}}n.loose||(o?n.loose=!0:/\n *\n *$/.test(c)&&(o=!0));let g=null,w;this.options.gfm&&(g=/^\[[ xX]\] /.exec(l),g&&(w=g[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),n.items.push({type:"list_item",raw:c,task:!!g,checked:w,loose:!1,text:l,tokens:[]}),n.raw+=c}n.items[n.items.length-1].raw=n.items[n.items.length-1].raw.trimEnd(),n.items[n.items.length-1].text=n.items[n.items.length-1].text.trimEnd(),n.raw=n.raw.trimEnd();for(let a=0;a<n.items.length;a++)if(this.lexer.state.top=!1,n.items[a].tokens=this.lexer.blockTokens(n.items[a].text,[]),!n.loose){const c=n.items[a].tokens.filter(u=>u.type==="space"),l=c.length>0&&c.some(u=>/\n.*\n/.test(u.raw));n.loose=l}if(n.loose)for(let a=0;a<n.items.length;a++)n.items[a].loose=!0;return n}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const s=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:s,raw:t[0],href:i,title:n}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const s=rk(t[1]),i=t[2].replace(/^\||\| *$/g,"").split("|"),n=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
`):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(s.length===i.length){for(const o of i)/^ *-+: *$/.test(o)?r.align.push("right"):/^ *:-+: *$/.test(o)?r.align.push("center"):/^ *:-+ *$/.test(o)?r.align.push("left"):r.align.push(null);for(let o=0;o<s.length;o++)r.header.push({text:s[o],tokens:this.lexer.inline(s[o]),header:!0,align:r.align[o]});for(const o of n)r.rows.push(rk(o,r.header.length).map((a,c)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:r.align[c]})));return r}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const s=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:s,tokens:this.lexer.inline(s)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:js(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const s=t[2].trim();if(!this.options.pedantic&&/^</.test(s)){if(!/>$/.test(s))return;const r=_l(s.slice(0,-1),"\\");if((s.length-r.length)%2===0)return}else{const r=Sj(t[2],"()");if(r>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let i=t[2],n="";if(this.options.pedantic){const r=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);r&&(i=r[1],n=r[3])}else n=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(s)?i=i.slice(1):i=i.slice(1,-1)),ok(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let s;if((s=this.rules.inline.reflink.exec(e))||(s=this.rules.inline.nolink.exec(e))){const i=(s[2]||s[1]).replace(/\s+/g," "),n=t[i.toLowerCase()];if(!n){const r=s[0].charAt(0);return{type:"text",raw:r,text:r}}return ok(s,n,s[0],this.lexer)}}emStrong(e,t,s=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||i[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const r=[...i[0]].length-1;let o,a,c=r,l=0;const u=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+r);(i=u.exec(t))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(a=[...o].length,i[3]||i[4]){c+=a;continue}else if((i[5]||i[6])&&r%3&&!((r+a)%3)){l+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+l);const h=[...i[0]][0].length,f=e.slice(0,r+i.index+h+a);if(Math.min(r,a)%2){const g=f.slice(1,-1);return{type:"em",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}const p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let s=t[2].replace(/\n/g," ");const i=/[^ ]/.test(s),n=/^ /.test(s)&&/ $/.test(s);return i&&n&&(s=s.substring(1,s.length-1)),s=js(s,!0),{type:"codespan",raw:t[0],text:s}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let s,i;return t[2]==="@"?(s=js(t[1]),i="mailto:"+s):(s=js(t[1]),i=s),{type:"link",raw:t[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let s,i;if(t[2]==="@")s=js(t[0]),i="mailto:"+s;else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0]);s=js(t[0]),t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let s;return this.lexer.state.inRawBlock?s=t[0]:s=js(t[0]),{type:"text",raw:t[0],text:s}}}},hk=/^(?: *(?:\n|$))+/,fk=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,dk=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Pa=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,pk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xw=/(?:[*+-]|\d{1,9}[.)])/,kw=Je(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,xw).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),vd=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,mk=/^[^\n]+/,bd=/(?!\s*\])(?:\\.|[^\[\]\\])+/,gk=Je(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",bd).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),wk=Je(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xw).getRegex(),Ul="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",yd=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,vk=Je("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",yd).replace("tag",Ul).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$w=Je(vd).replace("hr",Pa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ul).getRegex(),bk=Je(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$w).getRegex(),Ed={blockquote:bk,code:fk,def:gk,fences:dk,heading:pk,hr:Pa,html:vk,lheading:kw,list:wk,newline:hk,paragraph:$w,table:Sa,text:mk},Sw=Je("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Pa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ul).getRegex(),yk={...Ed,table:Sw,paragraph:Je(vd).replace("hr",Pa).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Sw).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ul).getRegex()},Ek={...Ed,html:Je(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yd).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Sa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Je(vd).replace("hr",Pa).replace("heading",` *#{1,6} *[^
]`).replace("lheading",kw).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Pw=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,xk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Iw=/^( {2,}|\\)\n(?!\s*$)/,kk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ia="\\p{P}\\p{S}",$k=Je(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Ia).getRegex(),Sk=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Pk=Je(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Ia).getRegex(),Ik=Je("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Ia).getRegex(),Dk=Je("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Ia).getRegex(),Ak=Je(/\\([punct])/,"gu").replace(/punct/g,Ia).getRegex(),Lk=Je(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Rk=Je(yd).replace("(?:-->|$)","-->").getRegex(),Nk=Je("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Rk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),jl=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ok=Je(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",jl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dw=Je(/^!?\[(label)\]\[(ref)\]/).replace("label",jl).replace("ref",bd).getRegex(),Aw=Je(/^!?\[(ref)\](?:\[\])?/).replace("ref",bd).getRegex(),Ck=Je("reflink|nolink(?!\\()","g").replace("reflink",Dw).replace("nolink",Aw).getRegex(),xd={_backpedal:Sa,anyPunctuation:Ak,autolink:Lk,blockSkip:Sk,br:Iw,code:xk,del:Sa,emStrongLDelim:Pk,emStrongRDelimAst:Ik,emStrongRDelimUnd:Dk,escape:Pw,link:Ok,nolink:Aw,punctuation:$k,reflink:Dw,reflinkSearch:Ck,tag:Nk,text:kk,url:Sa},_k={...xd,link:Je(/^!?\[(label)\]\((.*?)\)/).replace("label",jl).getRegex(),reflink:Je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",jl).getRegex()},kd={...xd,escape:Je(Pw).replace("])","~|])").getRegex(),url:Je(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Mk={...kd,br:Je(Iw).replace("{2,}","*").getRegex(),text:Je(kd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Tl={normal:Ed,gfm:yk,pedantic:Ek},Da={normal:xd,gfm:kd,breaks:Mk,pedantic:_k},Kn=class pb{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Xn,this.options.tokenizer=this.options.tokenizer||new Ml,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const s={block:Tl.normal,inline:Da.normal};this.options.pedantic?(s.block=Tl.pedantic,s.inline=Da.pedantic):this.options.gfm&&(s.block=Tl.gfm,this.options.breaks?s.inline=Da.breaks:s.inline=Da.gfm),this.tokenizer.rules=s}static get rules(){return{block:Tl,inline:Da}}static lex(t,s){return new pb(s).lex(t)}static lexInline(t,s){return new pb(s).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
`),this.blockTokens(t,this.tokens);for(let s=0;s<this.inlineQueue.length;s++){const i=this.inlineQueue[s];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,s=[],i=!1){this.options.pedantic?t=t.replace(/\t/g,"    ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(a,c,l)=>c+"    ".repeat(l.length));let n,r,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(n=a.call({lexer:this},t,s))?(t=t.substring(n.raw.length),s.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&s.length>0?s[s.length-1].raw+=`
`:s.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),r=s[s.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
`+n.raw,r.text+=`
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):s.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),r=s[s.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
`+n.raw,r.text+=`
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),s.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),s.push(n);continue}if(o=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const c=t.slice(1);let l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},c),typeof l=="number"&&l>=0&&(a=Math.min(a,l))}),a<1/0&&a>=0&&(o=t.substring(0,a+1))}if(this.state.top&&(n=this.tokenizer.paragraph(o))){r=s[s.length-1],i&&r?.type==="paragraph"?(r.raw+=`
`+n.raw,r.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):s.push(n),i=o.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),r=s[s.length-1],r&&r.type==="text"?(r.raw+=`
`+n.raw,r.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):s.push(n);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,s}inline(t,s=[]){return this.inlineQueue.push({src:t,tokens:s}),s}inlineTokens(t,s=[]){let i,n,r,o=t,a,c,l;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(c||(l=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(i=u.call({lexer:this},t,s))?(t=t.substring(i.raw.length),s.push(i),!0):!1))){if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.tag(t)){t=t.substring(i.raw.length),n=s[s.length-1],n&&i.type==="text"&&n.type==="text"?(n.raw+=i.raw,n.text+=i.text):s.push(i);continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length),n=s[s.length-1],n&&i.type==="text"&&n.type==="text"?(n.raw+=i.raw,n.text+=i.text):s.push(i);continue}if(i=this.tokenizer.emStrong(t,o,l)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.del(t)){t=t.substring(i.raw.length),s.push(i);continue}if(i=this.tokenizer.autolink(t)){t=t.substring(i.raw.length),s.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(t))){t=t.substring(i.raw.length),s.push(i);continue}if(r=t,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const h=t.slice(1);let f;this.options.extensions.startInline.forEach(p=>{f=p.call({lexer:this},h),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),u<1/0&&u>=0&&(r=t.substring(0,u+1))}if(i=this.tokenizer.inlineText(r)){t=t.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(l=i.raw.slice(-1)),c=!0,n=s[s.length-1],n&&n.type==="text"?(n.raw+=i.raw,n.text+=i.text):s.push(i);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return s}},Fl=class{options;parser;constructor(e){this.options=e||Xn}space(e){return""}code({text:e,lang:t,escaped:s}){const i=(t||"").match(/^\S*/)?.[0],n=e.replace(/\n$/,"")+`
`;return i?'<pre><code class="language-'+js(i)+'">'+(s?n:js(n,!0))+`</code></pre>
`:"<pre><code>"+(s?n:js(n,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){const t=e.ordered,s=e.start;let i="";for(let o=0;o<e.items.length;o++){const a=e.items[o];i+=this.listitem(a)}const n=t?"ol":"ul",r=t&&s!==1?' start="'+s+'"':"";return"<"+n+r+`>
`+i+"</"+n+`>
`}listitem(e){let t="";if(e.task){const s=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&e.tokens[0].type==="paragraph"?(e.tokens[0].text=s+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=s+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:s+" ",text:s+" "}):t+=s+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",s="";for(let n=0;n<e.header.length;n++)s+=this.tablecell(e.header[n]);t+=this.tablerow({text:s});let i="";for(let n=0;n<e.rows.length;n++){const r=e.rows[n];s="";for(let o=0;o<r.length;o++)s+=this.tablecell(r[o]);i+=this.tablerow({text:s})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+i+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){const t=this.parser.parseInline(e.tokens),s=e.header?"th":"td";return(e.align?`<${s} align="${e.align}">`:`<${s}>`)+t+`</${s}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:s}){const i=this.parser.parseInline(s),n=nk(e);if(n===null)return i;e=n;let r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+i+"</a>",r}image({href:e,title:t,text:s}){const i=nk(e);if(i===null)return s;e=i;let n=`<img src="${e}" alt="${s}"`;return t&&(n+=` title="${t}"`),n+=">",n}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}},$d=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},er=class mb{options;renderer;textRenderer;constructor(t){this.options=t||Xn,this.options.renderer=this.options.renderer||new Fl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $d}static parse(t,s){return new mb(s).parse(t)}static parseInline(t,s){return new mb(s).parseInline(t)}parse(t,s=!0){let i="";for(let n=0;n<t.length;n++){const r=t[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const a=r,c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){i+=c||"";continue}}const o=r;switch(o.type){case"space":{i+=this.renderer.space(o);continue}case"hr":{i+=this.renderer.hr(o);continue}case"heading":{i+=this.renderer.heading(o);continue}case"code":{i+=this.renderer.code(o);continue}case"table":{i+=this.renderer.table(o);continue}case"blockquote":{i+=this.renderer.blockquote(o);continue}case"list":{i+=this.renderer.list(o);continue}case"html":{i+=this.renderer.html(o);continue}case"paragraph":{i+=this.renderer.paragraph(o);continue}case"text":{let a=o,c=this.renderer.text(a);for(;n+1<t.length&&t[n+1].type==="text";)a=t[++n],c+=`
`+this.renderer.text(a);s?i+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c}]}):i+=c;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}parseInline(t,s){s=s||this.renderer;let i="";for(let n=0;n<t.length;n++){const r=t[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const a=this.options.extensions.renderers[r.type].call({parser:this},r);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){i+=a||"";continue}}const o=r;switch(o.type){case"escape":{i+=s.text(o);break}case"html":{i+=s.html(o);break}case"link":{i+=s.link(o);break}case"image":{i+=s.image(o);break}case"strong":{i+=s.strong(o);break}case"em":{i+=s.em(o);break}case"codespan":{i+=s.codespan(o);break}case"br":{i+=s.br(o);break}case"del":{i+=s.del(o);break}case"text":{i+=s.text(o);break}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}},Bl=class{options;constructor(e){this.options=e||Xn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}},Uk=class{defaults=vw();options=this.setOptions;parse=this.parseMarkdown(Kn.lex,er.parse);parseInline=this.parseMarkdown(Kn.lexInline,er.parseInline);Parser=er;Renderer=Fl;TextRenderer=$d;Lexer=Kn;Tokenizer=Ml;Hooks=Bl;constructor(...e){this.use(...e)}walkTokens(e,t){let s=[];for(const i of e)switch(s=s.concat(t.call(this,i)),i.type){case"table":{const n=i;for(const r of n.header)s=s.concat(this.walkTokens(r.tokens,t));for(const r of n.rows)for(const o of r)s=s.concat(this.walkTokens(o.tokens,t));break}case"list":{const n=i;s=s.concat(this.walkTokens(n.items,t));break}default:{const n=i;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(r=>{const o=n[r].flat(1/0);s=s.concat(this.walkTokens(o,t))}):n.tokens&&(s=s.concat(this.walkTokens(n.tokens,t)))}}return s}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(s=>{const i={...s};if(i.async=this.defaults.async||i.async||!1,s.extensions&&(s.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){const r=t.renderers[n.name];r?t.renderers[n.name]=function(...o){let a=n.renderer.apply(this,o);return a===!1&&(a=r.apply(this,o)),a}:t.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const r=t[n.level];r?r.unshift(n.tokenizer):t[n.level]=[n.tokenizer],n.start&&(n.level==="block"?t.startBlock?t.startBlock.push(n.start):t.startBlock=[n.start]:n.level==="inline"&&(t.startInline?t.startInline.push(n.start):t.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(t.childTokens[n.name]=n.childTokens)}),i.extensions=t),s.renderer){const n=this.defaults.renderer||new Fl(this.defaults);for(const r in s.renderer){if(!(r in n))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;const o=r,a=s.renderer[o],c=n[o];n[o]=(...l)=>{let u=a.apply(n,l);return u===!1&&(u=c.apply(n,l)),u||""}}i.renderer=n}if(s.tokenizer){const n=this.defaults.tokenizer||new Ml(this.defaults);for(const r in s.tokenizer){if(!(r in n))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;const o=r,a=s.tokenizer[o],c=n[o];n[o]=(...l)=>{let u=a.apply(n,l);return u===!1&&(u=c.apply(n,l)),u}}i.tokenizer=n}if(s.hooks){const n=this.defaults.hooks||new Bl;for(const r in s.hooks){if(!(r in n))throw new Error(`hook '${r}' does not exist`);if(r==="options")continue;const o=r,a=s.hooks[o],c=n[o];Bl.passThroughHooks.has(r)?n[o]=l=>{if(this.defaults.async)return Promise.resolve(a.call(n,l)).then(h=>c.call(n,h));const u=a.call(n,l);return c.call(n,u)}:n[o]=(...l)=>{let u=a.apply(n,l);return u===!1&&(u=c.apply(n,l)),u}}i.hooks=n}if(s.walkTokens){const n=this.defaults.walkTokens,r=s.walkTokens;i.walkTokens=function(o){let a=[];return a.push(r.call(this,o)),n&&(a=a.concat(n.call(this,o))),a}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Kn.lex(e,t??this.defaults)}parser(e,t){return er.parse(e,t??this.defaults)}parseMarkdown(e,t){return(i,n)=>{const r={...n},o={...this.defaults,...r},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(i):i).then(c=>e(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>t(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(a);try{o.hooks&&(i=o.hooks.preprocess(i));let c=e(i,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let l=t(c,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(c){return a(c)}}}onError(e,t){return s=>{if(s.message+=`
Please report this to https://github.com/markedjs/marked.`,e){const i="<p>An error occurred:</p><pre>"+js(s.message+"",!0)+"</pre>";return t?Promise.resolve(i):i}if(t)return Promise.reject(s);throw s}}},tr=new Uk,He.options=He.setOptions=function(e){return tr.setOptions(e),He.defaults=tr.defaults,ik(He.defaults),He},He.getDefaults=vw,He.defaults=Xn,He.use=function(...e){return tr.use(...e),He.defaults=tr.defaults,ik(He.defaults),He},He.walkTokens=function(e,t){return tr.walkTokens(e,t)},He.parseInline=tr.parseInline,He.Parser=er,He.parser=er.parse,He.Renderer=Fl,He.TextRenderer=$d,He.Lexer=Kn,He.lexer=Kn.lex,He.Tokenizer=Ml,He.Hooks=Bl,He.parse=He,Ij=He.options,Dj=He.setOptions,Aj=He.use,Lj=He.walkTokens,Rj=He.parseInline,Nj=er.parse,Oj=Kn.lex}});function*jk(e){const t=[e];for(;t.length>0;){const s=t.pop();if(yield s,s.children)for(const i of s.children.values())t.push(i)}}var ts,Tk,Sd,_j=v({"out-build/vs/base/common/prefixTree.js"(){"use strict";wr(),ts=Symbol("unset"),Tk=class{constructor(){this.root=new Sd,this.a=0}get size(){return this.a}get nodes(){return this.root.children?.values()||Ni.empty()}get entries(){return this.root.children?.entries()||Ni.empty()}insert(e,t,s){this.c(e,i=>i._value=t,s)}mutate(e,t){this.c(e,s=>s._value=t(s._value===ts?void 0:s._value))}mutatePath(e,t){this.c(e,()=>{},s=>t(s))}delete(e){const t=this.b(e);if(!t)return;let s=t.length-1;const i=t[s].node._value;if(i!==ts){for(this.a--,t[s].node._value=ts;s>0;s--){const{node:n,part:r}=t[s];if(n.children?.size||n._value!==ts)break;t[s-1].node.children.delete(r)}return i}}*deleteRecursive(e){const t=this.b(e);if(!t)return;const s=t[t.length-1].node;for(let i=t.length-1;i>0;i--){const n=t[i-1];if(n.node.children.delete(t[i].part),n.node.children.size>0||n.node._value!==ts)break}for(const i of jk(s))i._value!==ts&&(this.a--,yield i._value);s===this.root&&(this.root._value=ts,this.root.children=void 0)}find(e){let t=this.root;for(const s of e){const i=t.children?.get(s);if(!i)return;t=i}return t._value===ts?void 0:t._value}hasKeyOrParent(e){let t=this.root;for(const s of e){const i=t.children?.get(s);if(!i)return!1;if(i._value!==ts)return!0;t=i}return!1}hasKeyOrChildren(e){let t=this.root;for(const s of e){const i=t.children?.get(s);if(!i)return!1;t=i}return!0}hasKey(e){let t=this.root;for(const s of e){const i=t.children?.get(s);if(!i)return!1;t=i}return t._value!==ts}b(e){const t=[{part:"",node:this.root}];let s=0;for(const i of e){const n=t[s].node.children?.get(i);if(!n)return;t.push({part:i,node:n}),s++}return t}c(e,t,s){let i=this.root;for(const o of e){if(i.children)if(i.children.has(o))i=i.children.get(o);else{const a=new Sd;i.children.set(o,a),i=a}else{const a=new Sd;i.children=new Map([[o,a]]),i=a}s?.(i)}const n=i._value===ts?0:1;t(i);const r=i._value===ts?0:1;this.a+=r-n}*values(){for(const{_value:e}of jk(this.root))e!==ts&&(yield e)}},Sd=class{constructor(){this._value=ts}get value(){return this._value===ts?void 0:this._value}set value(e){this._value=e===void 0?ts:e}}}}),Yr,Lw=v({"out-build/vs/editor/common/core/position.js"(){"use strict";Yr=class ao{constructor(t,s){this.lineNumber=t,this.column=s}with(t=this.lineNumber,s=this.column){return t===this.lineNumber&&s===this.column?this:new ao(t,s)}delta(t=0,s=0){return this.with(Math.max(1,this.lineNumber+t),Math.max(1,this.column+s))}equals(t){return ao.equals(this,t)}static equals(t,s){return!t&&!s?!0:!!t&&!!s&&t.lineNumber===s.lineNumber&&t.column===s.column}isBefore(t){return ao.isBefore(this,t)}static isBefore(t,s){return t.lineNumber<s.lineNumber?!0:s.lineNumber<t.lineNumber?!1:t.column<s.column}isBeforeOrEqual(t){return ao.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,s){return t.lineNumber<s.lineNumber?!0:s.lineNumber<t.lineNumber?!1:t.column<=s.column}static compare(t,s){const i=t.lineNumber|0,n=s.lineNumber|0;if(i===n){const r=t.column|0,o=s.column|0;return r-o}return i-n}clone(){return new ao(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new ao(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}}}),Ks,Aa=v({"out-build/vs/editor/common/core/range.js"(){"use strict";Lw(),Ks=class Pt{constructor(t,s,i,n){t>i||t===i&&s>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=t,this.endColumn=s):(this.startLineNumber=t,this.startColumn=s,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return Pt.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return Pt.containsPosition(this,t)}static containsPosition(t,s){return!(s.lineNumber<t.startLineNumber||s.lineNumber>t.endLineNumber||s.lineNumber===t.startLineNumber&&s.column<t.startColumn||s.lineNumber===t.endLineNumber&&s.column>t.endColumn)}static strictContainsPosition(t,s){return!(s.lineNumber<t.startLineNumber||s.lineNumber>t.endLineNumber||s.lineNumber===t.startLineNumber&&s.column<=t.startColumn||s.lineNumber===t.endLineNumber&&s.column>=t.endColumn)}containsRange(t){return Pt.containsRange(this,t)}static containsRange(t,s){return!(s.startLineNumber<t.startLineNumber||s.endLineNumber<t.startLineNumber||s.startLineNumber>t.endLineNumber||s.endLineNumber>t.endLineNumber||s.startLineNumber===t.startLineNumber&&s.startColumn<t.startColumn||s.endLineNumber===t.endLineNumber&&s.endColumn>t.endColumn)}strictContainsRange(t){return Pt.strictContainsRange(this,t)}static strictContainsRange(t,s){return!(s.startLineNumber<t.startLineNumber||s.endLineNumber<t.startLineNumber||s.startLineNumber>t.endLineNumber||s.endLineNumber>t.endLineNumber||s.startLineNumber===t.startLineNumber&&s.startColumn<=t.startColumn||s.endLineNumber===t.endLineNumber&&s.endColumn>=t.endColumn)}plusRange(t){return Pt.plusRange(this,t)}static plusRange(t,s){let i,n,r,o;return s.startLineNumber<t.startLineNumber?(i=s.startLineNumber,n=s.startColumn):s.startLineNumber===t.startLineNumber?(i=s.startLineNumber,n=Math.min(s.startColumn,t.startColumn)):(i=t.startLineNumber,n=t.startColumn),s.endLineNumber>t.endLineNumber?(r=s.endLineNumber,o=s.endColumn):s.endLineNumber===t.endLineNumber?(r=s.endLineNumber,o=Math.max(s.endColumn,t.endColumn)):(r=t.endLineNumber,o=t.endColumn),new Pt(i,n,r,o)}intersectRanges(t){return Pt.intersectRanges(this,t)}static intersectRanges(t,s){let i=t.startLineNumber,n=t.startColumn,r=t.endLineNumber,o=t.endColumn;const a=s.startLineNumber,c=s.startColumn,l=s.endLineNumber,u=s.endColumn;return i<a?(i=a,n=c):i===a&&(n=Math.max(n,c)),r>l?(r=l,o=u):r===l&&(o=Math.min(o,u)),i>r||i===r&&n>o?null:new Pt(i,n,r,o)}equalsRange(t){return Pt.equalsRange(this,t)}static equalsRange(t,s){return!t&&!s?!0:!!t&&!!s&&t.startLineNumber===s.startLineNumber&&t.startColumn===s.startColumn&&t.endLineNumber===s.endLineNumber&&t.endColumn===s.endColumn}getEndPosition(){return Pt.getEndPosition(this)}static getEndPosition(t){return new Yr(t.endLineNumber,t.endColumn)}getStartPosition(){return Pt.getStartPosition(this)}static getStartPosition(t){return new Yr(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,s){return new Pt(this.startLineNumber,this.startColumn,t,s)}setStartPosition(t,s){return new Pt(t,s,this.endLineNumber,this.endColumn)}collapseToStart(){return Pt.collapseToStart(this)}static collapseToStart(t){return new Pt(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return Pt.collapseToEnd(this)}static collapseToEnd(t){return new Pt(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new Pt(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}isSingleLine(){return this.startLineNumber===this.endLineNumber}static fromPositions(t,s=t){return new Pt(t.lineNumber,t.column,s.lineNumber,s.column)}static lift(t){return t?new Pt(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,s){return!(t.endLineNumber<s.startLineNumber||t.endLineNumber===s.startLineNumber&&t.endColumn<s.startColumn||s.endLineNumber<t.startLineNumber||s.endLineNumber===t.startLineNumber&&s.endColumn<t.startColumn)}static areIntersecting(t,s){return!(t.endLineNumber<s.startLineNumber||t.endLineNumber===s.startLineNumber&&t.endColumn<=s.startColumn||s.endLineNumber<t.startLineNumber||s.endLineNumber===t.startLineNumber&&s.endColumn<=t.startColumn)}static areOnlyIntersecting(t,s){return!(t.endLineNumber<s.startLineNumber-1||t.endLineNumber===s.startLineNumber&&t.endColumn<s.startColumn-1||s.endLineNumber<t.startLineNumber-1||s.endLineNumber===t.startLineNumber&&s.endColumn<t.startColumn-1)}static compareRangesUsingStarts(t,s){if(t&&s){const r=t.startLineNumber|0,o=s.startLineNumber|0;if(r===o){const a=t.startColumn|0,c=s.startColumn|0;if(a===c){const l=t.endLineNumber|0,u=s.endLineNumber|0;if(l===u){const h=t.endColumn|0,f=s.endColumn|0;return h-f}return l-u}return a-c}return r-o}return(t?1:0)-(s?1:0)}static compareRangesUsingEnds(t,s){return t.endLineNumber===s.endLineNumber?t.endColumn===s.endColumn?t.startLineNumber===s.startLineNumber?t.startColumn-s.startColumn:t.startLineNumber-s.startLineNumber:t.endColumn-s.endColumn:t.endLineNumber-s.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}}}}),Mj=v({"out-build/vs/editor/common/core/editOperation.js"(){"use strict";Aa()}}),Fk,Bk,Uj=v({"out-build/vs/editor/common/tokenizationRegistry.js"(){"use strict";re(),V(),Fk=class{constructor(){this.a=new Map,this.b=new Map,this.c=new D,this.onDidChange=this.c.event,this.d=null}handleChange(e){this.c.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this.a.set(e,t),this.handleChange([e]),De(()=>{this.a.get(e)===t&&(this.a.delete(e),this.handleChange([e]))})}get(e){return this.a.get(e)||null}registerFactory(e,t){this.b.get(e)?.dispose();const s=new Bk(this,e,t);return this.b.set(e,s),De(()=>{const i=this.b.get(e);!i||i!==s||(this.b.delete(e),i.dispose())})}async getOrCreate(e){const t=this.get(e);if(t)return t;const s=this.b.get(e);return!s||s.isResolved?null:(await s.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const s=this.b.get(e);return!!(!s||s.isResolved)}setColorMap(e){this.d=e,this.c.fire({changedLanguages:Array.from(this.a.keys()),changedColorMap:!0})}getColorMap(){return this.d}getDefaultBackground(){return this.d&&this.d.length>2?this.d[2]:null}},Bk=class extends W{get isResolved(){return this.c}constructor(e,t,s){super(),this.f=e,this.g=t,this.h=s,this.a=!1,this.b=null,this.c=!1}dispose(){this.a=!0,super.dispose()}async resolve(){return this.b||(this.b=this.j()),this.b}async j(){const e=await this.h.tokenizationSupport;this.c=!0,e&&!this.a&&this.B(this.f.register(this.g,e))}}}});function jj(e){return e&&y.isUri(e.uri)&&Ks.isIRange(e.range)}var zk,Hk,Vk,Wk,qk,Gk,Jk,Zk,Pd,Yk,Qk,Xk,Kk,e$,Tj,t$,s$,Qr,i$,n$,Rw,r$,o$,a$,c$,l$,u$,Fj,h$,f$=v({"out-build/vs/editor/common/languages.js"(){"use strict";Hn(),Q(),Mj(),Aa(),Uj(),ce(),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(zk||(zk={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Tool=27]="Tool",e[e.Snippet=28]="Snippet"}(Hk||(Hk={})),function(e){const t=new Map;t.set(0,U.symbolMethod),t.set(1,U.symbolFunction),t.set(2,U.symbolConstructor),t.set(3,U.symbolField),t.set(4,U.symbolVariable),t.set(5,U.symbolClass),t.set(6,U.symbolStruct),t.set(7,U.symbolInterface),t.set(8,U.symbolModule),t.set(9,U.symbolProperty),t.set(10,U.symbolEvent),t.set(11,U.symbolOperator),t.set(12,U.symbolUnit),t.set(13,U.symbolValue),t.set(15,U.symbolEnum),t.set(14,U.symbolConstant),t.set(15,U.symbolEnum),t.set(16,U.symbolEnumMember),t.set(17,U.symbolKeyword),t.set(28,U.symbolSnippet),t.set(18,U.symbolText),t.set(19,U.symbolColor),t.set(20,U.symbolFile),t.set(21,U.symbolReference),t.set(22,U.symbolCustomColor),t.set(23,U.symbolFolder),t.set(24,U.symbolTypeParameter),t.set(25,U.account),t.set(26,U.issues),t.set(27,U.tools);function s(o){let a=t.get(o);return a||(console.info("No codicon found for CompletionItemKind "+o),a=U.symbolProperty),a}e.toIcon=s;function i(o){switch(o){case 0:return m(824,null);case 1:return m(825,null);case 2:return m(826,null);case 3:return m(827,null);case 4:return m(828,null);case 5:return m(829,null);case 6:return m(830,null);case 7:return m(831,null);case 8:return m(832,null);case 9:return m(833,null);case 10:return m(834,null);case 11:return m(835,null);case 12:return m(836,null);case 13:return m(837,null);case 14:return m(838,null);case 15:return m(839,null);case 16:return m(840,null);case 17:return m(841,null);case 18:return m(842,null);case 19:return m(843,null);case 20:return m(844,null);case 21:return m(845,null);case 22:return m(846,null);case 23:return m(847,null);case 24:return m(848,null);case 25:return m(849,null);case 26:return m(850,null);case 27:return m(851,null);case 28:return m(852,null);default:return""}}e.toLabel=i;const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",28),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),n.set("tool",27);function r(o,a){let c=n.get(o);return typeof c>"u"&&!a&&(c=9),c}e.fromString=r}(Vk||(Vk={})),function(e){e[e.Deprecated=1]="Deprecated"}(Wk||(Wk={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(qk||(qk={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(Gk||(Gk={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(Jk||(Jk={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Zk||(Zk={})),function(e){e[e.Accepted=0]="Accepted",e[e.Rejected=1]="Rejected",e[e.Ignored=2]="Ignored"}(Pd||(Pd={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(Yk||(Yk={})),function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(Qk||(Qk={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(Xk||(Xk={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Kk||(Kk={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(e$||(e$={})),Tj={17:m(853,null),16:m(854,null),4:m(855,null),13:m(856,null),8:m(857,null),9:m(858,null),21:m(859,null),23:m(860,null),7:m(861,null),0:m(862,null),11:m(863,null),10:m(864,null),19:m(865,null),5:m(866,null),1:m(867,null),2:m(868,null),20:m(869,null),15:m(870,null),18:m(871,null),24:m(872,null),3:m(873,null),6:m(874,null),14:m(875,null),22:m(876,null),25:m(877,null),12:m(878,null)},function(e){e[e.Deprecated=1]="Deprecated"}(t$||(t$={})),function(e){const t=new Map;t.set(0,U.symbolFile),t.set(1,U.symbolModule),t.set(2,U.symbolNamespace),t.set(3,U.symbolPackage),t.set(4,U.symbolClass),t.set(5,U.symbolMethod),t.set(6,U.symbolProperty),t.set(7,U.symbolField),t.set(8,U.symbolConstructor),t.set(9,U.symbolEnum),t.set(10,U.symbolInterface),t.set(11,U.symbolFunction),t.set(12,U.symbolVariable),t.set(13,U.symbolConstant),t.set(14,U.symbolString),t.set(15,U.symbolNumber),t.set(16,U.symbolBoolean),t.set(17,U.symbolArray),t.set(18,U.symbolObject),t.set(19,U.symbolKey),t.set(20,U.symbolNull),t.set(21,U.symbolEnumMember),t.set(22,U.symbolStruct),t.set(23,U.symbolEvent),t.set(24,U.symbolOperator),t.set(25,U.symbolTypeParameter);function s(r){let o=t.get(r);return o||(console.info("No codicon found for SymbolKind "+r),o=U.symbolProperty),o}e.toIcon=s;const i=new Map;i.set(0,20),i.set(1,8),i.set(2,8),i.set(3,8),i.set(4,5),i.set(5,0),i.set(6,9),i.set(7,3),i.set(8,2),i.set(9,15),i.set(10,7),i.set(11,1),i.set(12,4),i.set(13,14),i.set(14,18),i.set(15,13),i.set(16,13),i.set(17,13),i.set(18,13),i.set(19,17),i.set(20,13),i.set(21,16),i.set(22,6),i.set(23,10),i.set(24,11),i.set(25,24);function n(r){let o=i.get(r);return o===void 0&&(console.info("No completion kind found for SymbolKind "+r),o=20),o}e.toCompletionKind=n}(s$||(s$={})),Qr=class lr{static{this.Comment=new lr("comment")}static{this.Imports=new lr("imports")}static{this.Region=new lr("region")}static fromValue(t){switch(t){case"comment":return lr.Comment;case"imports":return lr.Imports;case"region":return lr.Region}return new lr(t)}constructor(t){this.value=t}},function(e){e[e.AIGenerated=1]="AIGenerated"}(i$||(i$={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(n$||(n$={})),function(e){function t(s){return!s||typeof s!="object"?!1:typeof s.id=="string"&&typeof s.title=="string"}e.is=t}(Rw||(Rw={})),function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"}(r$||(r$={})),function(e){e[e.Unresolved=0]="Unresolved",e[e.Resolved=1]="Resolved"}(o$||(o$={})),function(e){e[e.Current=0]="Current",e[e.Outdated=1]="Outdated"}(a$||(a$={})),function(e){e[e.Editing=0]="Editing",e[e.Preview=1]="Preview"}(c$||(c$={})),function(e){e[e.Published=0]="Published",e[e.Draft=1]="Draft"}(l$||(l$={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(u$||(u$={})),Fj=new Fk,function(e){e[e.None=0]="None",e[e.Option=1]="Option",e[e.Default=2]="Default",e[e.Preferred=3]="Preferred"}(h$||(h$={}))}}),d$,Ns,p$,Bj,zj=v({"out-build/vs/platform/markers/common/markers.js"(){"use strict";mh(),ce(),ie(),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(d$||(d$={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(Ns||(Ns={})),function(e){function t(c,l){return l-c}e.compare=t;const s=Object.create(null);s[e.Error]=m(2130,null),s[e.Warning]=m(2131,null),s[e.Info]=m(2132,null);function i(c){return s[c]||""}e.toString=i;const n=Object.create(null);n[e.Error]=m(2133,null),n[e.Warning]=m(2134,null),n[e.Info]=m(2135,null);function r(c){return n[c]||""}e.toStringPlural=r;function o(c){switch(c){case Ye.Error:return e.Error;case Ye.Warning:return e.Warning;case Ye.Info:return e.Info;case Ye.Ignore:return e.Hint}}e.fromSeverity=o;function a(c){switch(c){case e.Error:return Ye.Error;case e.Warning:return Ye.Warning;case e.Info:return Ye.Info;case e.Hint:return Ye.Ignore}}e.toSeverity=a}(Ns||(Ns={})),function(e){const t="";function s(n){return i(n,!0)}e.makeKey=s;function i(n,r){const o=[t];return n.source?o.push(n.source.replace("\xA6","\\\xA6")):o.push(t),n.code?typeof n.code=="string"?o.push(n.code.replace("\xA6","\\\xA6")):o.push(n.code.value.replace("\xA6","\\\xA6")):o.push(t),n.severity!==void 0&&n.severity!==null?o.push(Ns.toString(n.severity)):o.push(t),n.message&&r?o.push(n.message.replace("\xA6","\\\xA6")):o.push(t),n.startLineNumber!==void 0&&n.startLineNumber!==null?o.push(n.startLineNumber.toString()):o.push(t),n.startColumn!==void 0&&n.startColumn!==null?o.push(n.startColumn.toString()):o.push(t),n.endLineNumber!==void 0&&n.endLineNumber!==null?o.push(n.endLineNumber.toString()):o.push(t),n.endColumn!==void 0&&n.endColumn!==null?o.push(n.endColumn.toString()):o.push(t),o.push(t),o.join("\xA6")}e.makeKeyOptionalMessage=i}(p$||(p$={})),Bj=X("markerService")}}),m$,Hj,Vj,Wj=v({"out-build/vs/base/common/actions.js"(){"use strict";re(),V(),ce(),m$=class extends W{constructor(e,t="",s="",i=!0,n){super(),this.j=this.B(new D),this.onDidChange=this.j.event,this.z=!0,this.m=e,this.n=t,this.w=s,this.z=i,this.D=n}get id(){return this.m}get label(){return this.n}set label(e){this.F(e)}F(e){this.n!==e&&(this.n=e,this.j.fire({label:e}))}get tooltip(){return this.u||""}set tooltip(e){this.G(e)}G(e){this.u!==e&&(this.u=e,this.j.fire({tooltip:e}))}get class(){return this.w}set class(e){this.H(e)}H(e){this.w!==e&&(this.w=e,this.j.fire({class:e}))}get enabled(){return this.z}set enabled(e){this.I(e)}I(e){this.z!==e&&(this.z=e,this.j.fire({enabled:e}))}get checked(){return this.C}set checked(e){this.J(e)}J(e){this.C!==e&&(this.C=e,this.j.fire({checked:e}))}async run(e,t){this.D&&await this.D(e)}},Hj=class gb{constructor(){this.id=gb.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...t){let s=[];for(const i of t)i.length&&(s.length?s=[...s,new gb,...i]:s=i);return s}static{this.ID="vs.actions.separator"}async run(){}},Vj=class vA extends m${static{this.ID="vs.actions.empty"}constructor(){super(vA.ID,m(44,null),void 0,!1)}}}});function Id(e){if(sr(e))return!1;const t=e;return t?.original!==void 0&&t.modified!==void 0}function g$(e){if(sr(e))return!1;const t=e;return!t||t.resources&&!Array.isArray(t.resources)?!1:!!t.resources||!!t.multiDiffSource}function Nw(e){if(sr(e)||Id(e))return!1;const t=e;return t?.primary!==void 0&&t.secondary!==void 0}function Dd(e){if(sr(e))return!1;const t=e;return y.isUri(t?.base?.resource)&&y.isUri(t?.input1?.resource)&&y.isUri(t?.input2?.resource)&&y.isUri(t?.result?.resource)}function sr(e){return e instanceof S$}function qj(e){const t=e;return y.isUri(t?.preferredResource)}function Gj(e){const t=e;return sr(t?.primary)&&sr(t?.secondary)}function Jj(e){const t=e;return sr(t?.modified)&&sr(t?.original)}var w$,v$,b$,y$,E$,x$,k$,Zj,$$,S$,P$,I$,$n,D$,A$,Ad,L$,R$,N$,Ow=v({"out-build/vs/workbench/common/editor.js"(){"use strict";ce(),be(),Q(),V(),ie(),ui(),Ge(),Se(),Eo(),Wj(),mh(),w$={EditorPane:"workbench.contributions.editors",EditorFactory:"workbench.contributions.editor.inputFactories"},v$={id:"default",displayName:m(4341,null),providerDisplayName:m(4342,null)},function(e){e[e.PROGRAMMATIC=1]="PROGRAMMATIC",e[e.USER=2]="USER",e[e.EDIT=3]="EDIT",e[e.NAVIGATION=4]="NAVIGATION",e[e.JUMP=5]="JUMP"}(b$||(b$={})),function(e){e[e.IDENTICAL=1]="IDENTICAL",e[e.SIMILAR=2]="SIMILAR",e[e.DIFFERENT=3]="DIFFERENT"}(y$||(y$={})),function(e){e[e.SHORT=0]="SHORT",e[e.MEDIUM=1]="MEDIUM",e[e.LONG=2]="LONG"}(E$||(E$={})),function(e){e[e.EXPLICIT=1]="EXPLICIT",e[e.AUTO=2]="AUTO",e[e.FOCUS_CHANGE=3]="FOCUS_CHANGE",e[e.WINDOW_CHANGE=4]="WINDOW_CHANGE"}(x$||(x$={})),k$=class{constructor(){this.a=new Map}registerSource(e,t){let s=this.a.get(e);return s||(s={source:e,label:t},this.a.set(e,s)),s.source}getSourceLabel(e){return this.a.get(e)?.label??e}},Zj=new k$,function(e){e[e.None=0]="None",e[e.Readonly=2]="Readonly",e[e.Untitled=4]="Untitled",e[e.Singleton=8]="Singleton",e[e.RequiresTrust=16]="RequiresTrust",e[e.CanSplitInGroup=32]="CanSplitInGroup",e[e.ForceDescription=64]="ForceDescription",e[e.CanDropIntoEditor=128]="CanDropIntoEditor",e[e.MultipleEditors=256]="MultipleEditors",e[e.Scratchpad=512]="Scratchpad"}($$||($$={})),S$=class extends W{},function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.REPLACE=1]="REPLACE",e[e.MOVE=2]="MOVE",e[e.UNPIN=3]="UNPIN"}(P$||(P$={})),function(e){e[e.GROUP_ACTIVE=0]="GROUP_ACTIVE",e[e.GROUP_INDEX=1]="GROUP_INDEX",e[e.GROUP_LABEL=2]="GROUP_LABEL",e[e.GROUP_LOCKED=3]="GROUP_LOCKED",e[e.EDITORS_SELECTION=4]="EDITORS_SELECTION",e[e.EDITOR_OPEN=5]="EDITOR_OPEN",e[e.EDITOR_CLOSE=6]="EDITOR_CLOSE",e[e.EDITOR_MOVE=7]="EDITOR_MOVE",e[e.EDITOR_ACTIVE=8]="EDITOR_ACTIVE",e[e.EDITOR_LABEL=9]="EDITOR_LABEL",e[e.EDITOR_CAPABILITIES=10]="EDITOR_CAPABILITIES",e[e.EDITOR_PIN=11]="EDITOR_PIN",e[e.EDITOR_TRANSIENT=12]="EDITOR_TRANSIENT",e[e.EDITOR_STICKY=13]="EDITOR_STICKY",e[e.EDITOR_DIRTY=14]="EDITOR_DIRTY",e[e.EDITOR_WILL_DISPOSE=15]="EDITOR_WILL_DISPOSE"}(I$||(I$={})),function(e){e[e.PRIMARY=1]="PRIMARY",e[e.SECONDARY=2]="SECONDARY",e[e.BOTH=3]="BOTH",e[e.ANY=4]="ANY"}($n||($n={})),D$=class{getOriginalUri(e,t){if(!e)return;if(Dd(e))return Ad.getOriginalUri(e.result,t);if(t?.supportSideBySide){const{primary:i,secondary:n}=this.a(e);if(i&&n){if(t?.supportSideBySide===$n.BOTH)return{primary:this.getOriginalUri(i,{filterByScheme:t.filterByScheme}),secondary:this.getOriginalUri(n,{filterByScheme:t.filterByScheme})};if(t?.supportSideBySide===$n.ANY)return this.getOriginalUri(i,{filterByScheme:t.filterByScheme})??this.getOriginalUri(n,{filterByScheme:t.filterByScheme});e=t.supportSideBySide===$n.PRIMARY?i:n}}if(Id(e)||g$(e)||Nw(e)||Dd(e))return;const s=qj(e)?e.preferredResource:e.resource;return!s||!t||!t.filterByScheme?s:this.b(s,t.filterByScheme)}a(e){return Gj(e)||Nw(e)?{primary:e.primary,secondary:e.secondary}:Jj(e)||Id(e)?{primary:e.modified,secondary:e.original}:{primary:void 0,secondary:void 0}}getCanonicalUri(e,t){if(!e)return;if(Dd(e))return Ad.getCanonicalUri(e.result,t);if(t?.supportSideBySide){const{primary:i,secondary:n}=this.a(e);if(i&&n){if(t?.supportSideBySide===$n.BOTH)return{primary:this.getCanonicalUri(i,{filterByScheme:t.filterByScheme}),secondary:this.getCanonicalUri(n,{filterByScheme:t.filterByScheme})};if(t?.supportSideBySide===$n.ANY)return this.getCanonicalUri(i,{filterByScheme:t.filterByScheme})??this.getCanonicalUri(n,{filterByScheme:t.filterByScheme});e=t.supportSideBySide===$n.PRIMARY?i:n}}if(Id(e)||g$(e)||Nw(e)||Dd(e))return;const s=e.resource;return!s||!t||!t.filterByScheme?s:this.b(s,t.filterByScheme)}b(e,t){if(Array.isArray(t)){if(t.some(s=>e.scheme===s))return e}else if(t===e.scheme)return e}},function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.KEYBOARD=1]="KEYBOARD",e[e.MOUSE=2]="MOUSE"}(A$||(A$={})),Ad=new D$,function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT"}(L$||(L$={})),R$=class{constructor(){this.c=new Map,this.d=new Map}start(e){const t=this.a=e.get(Mn);for(const[s,i]of this.c)this.e(s,i,t);this.c.clear()}e(e,t,s){const i=s.createInstance(t);this.d.set(e,i)}registerFileEditorFactory(e){if(this.b)throw new Error("Can only register one file editor factory.");this.b=e}getFileEditorFactory(){return fp(this.b)}registerEditorSerializer(e,t){if(this.c.has(e)||this.d.has(e))throw new Error(`A editor serializer with type ID '${e}' was already registered.`);return this.a?this.e(e,t,this.a):this.c.set(e,t),De(()=>{this.c.delete(e),this.d.delete(e)})}getEditorSerializer(e){return this.d.get(typeof e=="string"?e:e.typeId)}},Bt.add(w$.EditorFactory,new R$),function(e){e[e.MOST_RECENTLY_ACTIVE=0]="MOST_RECENTLY_ACTIVE",e[e.SEQUENTIAL=1]="SEQUENTIAL"}(N$||(N$={}))}});function Yj(e){return e.kind==="image"}var O$,C$,_$,M$,Qj=v({"out-build/vs/workbench/contrib/chat/common/chatVariableEntries.js"(){"use strict";Hn(),ct(),Q(),f$(),ce(),function(e){e[e.NotOmitted=0]="NotOmitted",e[e.Partial=1]="Partial",e[e.Full=2]="Full"}(O$||(O$={})),function(e){e.icon=U.error;function t(r){return{filterUri:r.resource,owner:r.owner,problemMessage:r.message,filterRange:{startLineNumber:r.startLineNumber,endLineNumber:r.endLineNumber,startColumn:r.startColumn,endColumn:r.endColumn}}}e.fromMarker=t;function s(r){return{id:i(r),name:n(r),icon:e.icon,value:r,kind:"diagnostic",...r}}e.toEntry=s;function i(r){return[r.filterUri,r.owner,r.filterSeverity,r.filterRange?.startLineNumber].join(":")}e.id=i;function n(r){let o;if(function(c){c[c.MaxChars=30]="MaxChars",c[c.MaxSpaceLookback=10]="MaxSpaceLookback"}(o||(o={})),r.problemMessage){if(r.problemMessage.length<30)return r.problemMessage;const c=r.problemMessage.lastIndexOf(" ",30);return c===-1||c+10<30?r.problemMessage.substring(0,30)+"\u2026":r.problemMessage.substring(0,c)+"\u2026"}let a=m(5791,null);return r.filterUri&&(a=m(5792,null,ln(r.filterUri))),a}e.label=n}(C$||(C$={})),function(e){function t(s){return y.isUri(s.value)?s.value:jj(s.value)?s.value.uri:void 0}e.toUri=t}(_$||(_$={})),function(e){e.Instruction="vscode.prompt.instructions.root",e.InstructionReference="vscode.prompt.instructions",e.PromptFile="vscode.prompt.file"}(M$||(M$={}))}}),U$,j$,La,Ld=v({"out-build/vs/workbench/contrib/testing/common/testId.js"(){"use strict";(function(e){e.Delimiter="\0"})(U$||(U$={})),function(e){e[e.IsSame=0]="IsSame",e[e.Disconnected=1]="Disconnected",e[e.IsChild=2]="IsChild",e[e.IsParent=3]="IsParent"}(j$||(j$={})),La=class si{static fromExtHostTestItem(t,s,i=t.parent){if(t._isRoot)return new si([s]);const n=[t.id];for(let r=i;r&&r.id!==s;r=r.parent)n.push(r.id);return n.push(s),new si(n.reverse())}static isRoot(t){return!t.includes("\0")}static root(t){const s=t.indexOf("\0");return s===-1?t:t.slice(0,s)}static fromString(t){return new si(t.split("\0"))}static join(t,s){return new si([...t.path,s])}static split(t){return t.split("\0")}static joinToString(t,s){return t.toString()+"\0"+s}static parentId(t){const s=t.lastIndexOf("\0");return s===-1?void 0:t.slice(0,s)}static localId(t){const s=t.lastIndexOf("\0");return s===-1?t:t.slice(s+1)}static isChild(t,s){return s[t.length]==="\0"&&s.startsWith(t)}static compare(t,s){return t===s?0:si.isChild(t,s)?2:si.isChild(s,t)?3:1}static getLengthOfCommonPrefix(t,s){if(t===0)return 0;let i=0;for(;i<t-1;){for(let n=1;n<t;n++){const r=s(n-1),o=s(n);if(r.path[i]!==o.path[i])return i}i++}return i}constructor(t,s=t.length){if(this.path=t,this.d=s,t.length===0||s<1)throw new Error("cannot create test with empty path")}get rootId(){return new si(this.path,1)}get parentId(){return this.d>1?new si(this.path,this.d-1):void 0}get localId(){return this.path[this.d-1]}get controllerId(){return this.path[0]}get isRoot(){return this.d===1}*idsFromRoot(){for(let t=1;t<=this.d;t++)yield new si(this.path,t)}*idsToRoot(){for(let t=this.d;t>0;t--)yield new si(this.path,t)}compare(t){if(typeof t=="string")return si.compare(this.toString(),t);for(let s=0;s<t.d&&s<this.d;s++)if(t.path[s]!==this.path[s])return 1;return t.d>this.d?2:t.d<this.d?3:0}toJSON(){return this.toString()}toString(){if(!this.c){this.c=this.path[0];for(let t=1;t<this.d;t++)this.c+="\0",this.c+=this.path[t]}return this.c}}}});function Cw(e){return{...e,location:e.location?.toJSON()}}function _w(e){return e.location=e.location?Yr.isIPosition(e.location)?Yr.lift(e.location):Ks.lift(e.location):void 0,e}var T$,F$,B$,z$,Xj,Ra,H$,Rd,Nd,Od,Cd,zl,Mw,V$,W$,_d,q$,Xr,Md,G$,Uw,J$,Z$,Y$,Ud,jd,Td,Q$,X$,jw=v({"out-build/vs/workbench/contrib/testing/common/testTypes.js"(){"use strict";Q(),Lw(),Aa(),ce(),Ld(),function(e){e[e.Unset=0]="Unset",e[e.Queued=1]="Queued",e[e.Running=2]="Running",e[e.Passed=3]="Passed",e[e.Failed=4]="Failed",e[e.Skipped=5]="Skipped",e[e.Errored=6]="Errored"}(T$||(T$={})),function(e){e[e.Run=1]="Run",e[e.Debug=2]="Debug",e[e.Coverage=3]="Coverage"}(F$||(F$={})),function(e){e[e.Refresh=2]="Refresh",e[e.CodeRelatedToTest=4]="CodeRelatedToTest",e[e.TestRelatedToCode=8]="TestRelatedToCode"}(B$||(B$={})),function(e){e[e.Run=2]="Run",e[e.Debug=4]="Debug",e[e.Coverage=8]="Coverage",e[e.HasNonDefaultProfile=16]="HasNonDefaultProfile",e[e.HasConfigurable=32]="HasConfigurable",e[e.SupportsContinuousRun=64]="SupportsContinuousRun"}(z$||(z$={})),Xj={2:m(12765,null),4:m(12766,null),8:m(12767,null)},function(e){e.serialize=t=>({range:t.range.toJSON(),uri:t.uri.toJSON()}),e.deserialize=(t,s)=>({range:Ks.lift(s.range),uri:t.asCanonicalUri(y.revive(s.uri))})}(Ra||(Ra={})),function(e){e[e.Error=0]="Error",e[e.Output=1]="Output"}(H$||(H$={})),function(e){e.serialize=t=>({label:t.label,uri:t.uri?.toJSON(),position:t.position?.toJSON()}),e.deserialize=(t,s)=>({label:s.label,uri:s.uri?t.asCanonicalUri(y.revive(s.uri)):void 0,position:s.position?Yr.lift(s.position):void 0})}(Rd||(Rd={})),function(e){e.serialize=t=>({message:t.message,type:0,expected:t.expected,actual:t.actual,contextValue:t.contextValue,location:t.location&&Ra.serialize(t.location),stackTrace:t.stackTrace?.map(Rd.serialize)}),e.deserialize=(t,s)=>({message:s.message,type:0,expected:s.expected,actual:s.actual,contextValue:s.contextValue,location:s.location&&Ra.deserialize(t,s.location),stackTrace:s.stackTrace&&s.stackTrace.map(i=>Rd.deserialize(t,i))})}(Nd||(Nd={})),function(e){e.serialize=t=>({message:t.message,type:1,offset:t.offset,length:t.length,location:t.location&&Ra.serialize(t.location)}),e.deserialize=(t,s)=>({message:s.message,type:1,offset:s.offset,length:s.length,location:s.location&&Ra.deserialize(t,s.location)})}(Od||(Od={})),function(e){e.serialize=t=>t.type===0?Nd.serialize(t):Od.serialize(t),e.deserialize=(t,s)=>s.type===0?Nd.deserialize(t,s):Od.deserialize(t,s),e.isDiffable=t=>t.type===0&&t.actual!==void 0&&t.expected!==void 0}(Cd||(Cd={})),function(e){e.serializeWithoutMessages=t=>({state:t.state,duration:t.duration,messages:[]}),e.serialize=t=>({state:t.state,duration:t.duration,messages:t.messages.map(Cd.serialize)}),e.deserialize=(t,s)=>({state:s.state,duration:s.duration,messages:s.messages.map(i=>Cd.deserialize(t,i))})}(zl||(zl={})),Mw="\0",V$=(e,t)=>e+Mw+t,W$=e=>{const t=e.indexOf(Mw);return{ctrlId:e.slice(0,t),tagId:e.slice(t+1)}},function(e){e.serialize=t=>({extId:t.extId,label:t.label,tags:t.tags,busy:t.busy,children:void 0,uri:t.uri?.toJSON(),range:t.range?.toJSON()||null,description:t.description,error:t.error,sortText:t.sortText}),e.deserialize=(t,s)=>({extId:s.extId,label:s.label,tags:s.tags,busy:s.busy,children:void 0,uri:s.uri?t.asCanonicalUri(y.revive(s.uri)):void 0,range:s.range?Ks.lift(s.range):null,description:s.description,error:s.error,sortText:s.sortText})}(_d||(_d={})),function(e){e[e.NotExpandable=0]="NotExpandable",e[e.Expandable=1]="Expandable",e[e.BusyExpanding=2]="BusyExpanding",e[e.Expanded=3]="Expanded"}(q$||(q$={})),function(e){e.serialize=t=>({expand:t.expand,item:_d.serialize(t.item)}),e.deserialize=(t,s)=>({controllerId:La.root(s.item.extId),expand:s.expand,item:_d.deserialize(t,s.item)})}(Xr||(Xr={})),function(e){e.serialize=t=>{let s;return t.item&&(s={},t.item.label!==void 0&&(s.label=t.item.label),t.item.tags!==void 0&&(s.tags=t.item.tags),t.item.busy!==void 0&&(s.busy=t.item.busy),t.item.uri!==void 0&&(s.uri=t.item.uri?.toJSON()),t.item.range!==void 0&&(s.range=t.item.range?.toJSON()),t.item.description!==void 0&&(s.description=t.item.description),t.item.error!==void 0&&(s.error=t.item.error),t.item.sortText!==void 0&&(s.sortText=t.item.sortText)),{extId:t.extId,expand:t.expand,item:s}},e.deserialize=t=>{let s;return t.item&&(s={},t.item.label!==void 0&&(s.label=t.item.label),t.item.tags!==void 0&&(s.tags=t.item.tags),t.item.busy!==void 0&&(s.busy=t.item.busy),t.item.range!==void 0&&(s.range=t.item.range?Ks.lift(t.item.range):null),t.item.description!==void 0&&(s.description=t.item.description),t.item.error!==void 0&&(s.error=t.item.error),t.item.sortText!==void 0&&(s.sortText=t.item.sortText)),{extId:t.extId,expand:t.expand,item:s}}}(Md||(Md={})),function(e){e.serializeWithoutMessages=t=>({...Xr.serialize(t),ownComputedState:t.ownComputedState,computedState:t.computedState,tasks:t.tasks.map(zl.serializeWithoutMessages)}),e.serialize=t=>({...Xr.serialize(t),ownComputedState:t.ownComputedState,computedState:t.computedState,tasks:t.tasks.map(zl.serialize)}),e.deserialize=(t,s)=>({...Xr.deserialize(t,s),ownComputedState:s.ownComputedState,computedState:s.computedState,tasks:s.tasks.map(i=>zl.deserialize(t,i)),retired:!0})}(G$||(G$={})),function(e){e.empty=()=>({covered:0,total:0}),e.sum=(t,s)=>{t.covered+=s.covered,t.total+=s.total}}(Uw||(Uw={})),function(e){e.serialize=t=>({id:t.id,statement:t.statement,branch:t.branch,declaration:t.declaration,testIds:t.testIds,uri:t.uri.toJSON()}),e.deserialize=(t,s)=>({id:s.id,statement:s.statement,branch:s.branch,declaration:s.declaration,testIds:s.testIds,uri:t.asCanonicalUri(y.revive(s.uri))}),e.empty=(t,s)=>({id:t,uri:s,statement:Uw.empty()})}(J$||(J$={})),function(e){e[e.Declaration=0]="Declaration",e[e.Statement=1]="Statement",e[e.Branch=2]="Branch"}(Z$||(Z$={})),function(e){e.serialize=t=>t.type===0?jd.serialize(t):Td.serialize(t),e.deserialize=t=>t.type===0?jd.deserialize(t):Td.deserialize(t)}(Y$||(Y$={})),function(e){e.serialize=Cw,e.deserialize=_w}(Ud||(Ud={})),function(e){e.serialize=Cw,e.deserialize=_w}(jd||(jd={})),function(e){e.serialize=t=>({...Cw(t),branches:t.branches?.map(Ud.serialize)}),e.deserialize=t=>({..._w(t),branches:t.branches?.map(Ud.deserialize)})}(Td||(Td={})),function(e){e[e.Add=0]="Add",e[e.Update=1]="Update",e[e.DocumentSynced=2]="DocumentSynced",e[e.Remove=3]="Remove",e[e.IncrementPendingExtHosts=4]="IncrementPendingExtHosts",e[e.Retire=5]="Retire",e[e.AddTag=6]="AddTag",e[e.RemoveTag=7]="RemoveTag"}(Q$||(Q$={})),function(e){e.deserialize=(t,s)=>s.op===0?{op:s.op,item:Xr.deserialize(t,s.item)}:s.op===1?{op:s.op,item:Md.deserialize(s.item)}:s.op===2?{op:s.op,uri:t.asCanonicalUri(y.revive(s.uri)),docv:s.docv}:s,e.serialize=t=>t.op===0?{op:t.op,item:Xr.serialize(t.item)}:t.op===1?{op:t.op,item:Md.serialize(t.item)}:t}(X$||(X$={}))}}),Kj,K$,eS,tS,sS,iS,nS,rS,eT=v({"out-build/vs/workbench/services/editor/common/editorGroupsService.js"(){"use strict";ie(),Ow(),Kj=X("editorGroupsService"),function(e){e[e.UP=0]="UP",e[e.DOWN=1]="DOWN",e[e.LEFT=2]="LEFT",e[e.RIGHT=3]="RIGHT"}(K$||(K$={})),function(e){e[e.HORIZONTAL=0]="HORIZONTAL",e[e.VERTICAL=1]="VERTICAL"}(eS||(eS={})),function(e){e[e.FIRST=0]="FIRST",e[e.LAST=1]="LAST",e[e.NEXT=2]="NEXT",e[e.PREVIOUS=3]="PREVIOUS"}(tS||(tS={})),function(e){e[e.MAXIMIZE=0]="MAXIMIZE",e[e.EXPAND=1]="EXPAND",e[e.EVEN=2]="EVEN"}(sS||(sS={})),function(e){e[e.COPY_EDITORS=0]="COPY_EDITORS",e[e.MOVE_EDITORS=1]="MOVE_EDITORS"}(iS||(iS={})),function(e){e[e.CREATION_TIME=0]="CREATION_TIME",e[e.MOST_RECENTLY_ACTIVE=1]="MOST_RECENTLY_ACTIVE",e[e.GRID_APPEARANCE=2]="GRID_APPEARANCE"}(nS||(nS={})),function(e){e[e.NEW_EDITOR=1]="NEW_EDITOR",e[e.MOVE_EDITOR=2]="MOVE_EDITOR",e[e.COPY_EDITOR=3]="COPY_EDITOR"}(rS||(rS={}))}}),oS,aS,cS,lS=v({"out-build/vs/workbench/services/editor/common/editorService.js"(){"use strict";ie(),eT(),oS=X("editorService"),aS=-1,cS=-2}}),uS,tT,sT=v({"out-build/vs/platform/extensionManagement/common/implicitActivationEvents.js"(){"use strict";ge(),Zs(),uS=class{constructor(){this.a=new Map,this.b=new WeakMap}register(e,t){this.a.set(e,t)}readActivationEvents(e){return this.b.has(e)||this.b.set(e,this.c(e)),this.b.get(e)}createActivationEventsMap(e){const t=Object.create(null);for(const s of e){const i=this.readActivationEvents(s);i.length>0&&(t[di.toKey(s.identifier)]=i)}return t}c(e){if(typeof e.main>"u"&&typeof e.browser>"u")return[];const t=Array.isArray(e.activationEvents)?e.activationEvents.slice(0):[];for(let s=0;s<t.length;s++)t[s]==="onUri"&&(t[s]=`onUri:${di.toKey(e.identifier)}`);if(!e.contributes)return t;for(const s in e.contributes){const i=this.a.get(s);if(!i)continue;const n=e.contributes[s],r=Array.isArray(n)?n:[n];try{i(r,t)}catch(o){Gt(o)}}return t}},tT=new uS}});function Tw(e,t){return!0}function hS(e,t){if(!Tw(e,t))throw new Error(`Extension '${e.identifier.value}' CANNOT use API proposal: ${t}.
Its package.json#enabledApiProposals-property declares: ${e.enabledApiProposals?.join(", ")??"[]"} but NOT ${t}.
 The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api ${e.identifier.value}`)}var iT,nT,fS,dS,rT=v({"out-build/vs/workbench/services/extensions/common/extensions.js"(){"use strict";re(),Q(),mi(),sT(),Zs(),ie(),iT=Object.freeze({identifier:new di("nullExtensionDescription"),name:"Null Extension Description",version:"0.0.0",publisher:"vscode",engines:{vscode:""},extensionLocation:y.parse("void:location"),isBuiltin:!1,targetPlatform:"undefined",isUserBuiltin:!1,isUnderDevelopment:!1,preRelease:!1}),nT=X("extensionService"),function(e){e[e.EagerAutoStart=1]="EagerAutoStart",e[e.EagerManualStart=2]="EagerManualStart",e[e.Lazy=3]="Lazy"}(fS||(fS={})),function(e){e[e.Normal=0]="Normal",e[e.Immediate=1]="Immediate"}(dS||(dS={}))}});function S(e){const t=new pS(e);return mS[t.nid]=t,t}var pS,mS,Fw,Bw=v({"out-build/vs/workbench/services/extensions/common/proxyIdentifier.js"(){"use strict";pS=class bA{static{this.count=0}constructor(t){this._proxyIdentifierBrand=void 0,this.sid=t,this.nid=++bA.count}},mS=[],Fw=class{constructor(e){this.value=e}}}}),gS,Na,wS,oT,vS,Fd,bS,yS,ES=v({"out-build/vs/workbench/contrib/testing/common/testItemCollection.js"(){"use strict";Ae(),re(),V(),Ln(),jw(),Ld(),function(e){e[e.Upsert=0]="Upsert",e[e.SetTags=1]="SetTags",e[e.UpdateCanResolveChildren=2]="UpdateCanResolveChildren",e[e.RemoveChild=3]="RemoveChild",e[e.SetProp=4]="SetProp",e[e.Bulk=5]="Bulk",e[e.DocumentSynced=6]="DocumentSynced"}(gS||(gS={})),Na=(e,t)=>e===t,wS={range:(e,t)=>e===t?!0:!e||!t?!1:e.equalsRange(t),busy:Na,label:Na,description:Na,error:Na,sortText:Na,tags:(e,t)=>!(e.length!==t.length||e.some(s=>!t.includes(s)))},oT=Object.entries(wS),vS=class extends Error{constructor(e){super(`Attempted to insert a duplicate test item ID ${e}`)}},Fd=class extends Error{constructor(e){super(`TestItem with ID "${e}" is invalid. Make sure to create it from the createTestItem method.`)}},bS=class extends Error{constructor(e,t,s){super(`TestItem with ID "${e}" is from controller "${t}" and cannot be added as a child of an item from controller "${s}".`)}},yS=(e,t,s)=>{let i=new Map;return{get size(){return i.size},forEach(n,r){for(const o of i.values())n.call(r,o,this)},[Symbol.iterator](){return i.entries()},replace(n){const r=new Map,o=new Set(i.keys()),a={op:5,ops:[]};for(const c of n){if(!(c instanceof s))throw new Fd(c.id);const l=t(c).controllerId;if(l!==e.controllerId)throw new bS(c.id,l,e.controllerId);if(r.has(c.id))throw new vS(c.id);r.set(c.id,c),o.delete(c.id),a.ops.push({op:0,item:c})}for(const c of o.keys())a.ops.push({op:3,id:c});e.listener?.(a),i=r},add(n){if(!(n instanceof s))throw new Fd(n.id);i.set(n.id,n),e.listener?.({op:0,item:n})},delete(n){i.delete(n)&&e.listener?.({op:3,id:n})},get(n){return i.get(n)},toJSON(){return Array.from(i.values())}}}}}),zw,xS,Hw,kS=v({"out-build/vs/workbench/api/common/extHostTestingPrivateApi.js"(){"use strict";ES(),zw=new WeakMap,xS=(e,t)=>{const s={controllerId:t};return zw.set(e,s),s},Hw=e=>{const t=zw.get(e);if(!t)throw new Fd(e?.id||"<unknown>");return t}}}),$S,SS,ei,aT=v({"out-build/vs/workbench/contrib/chat/common/constants.js"(){"use strict";(function(e){e.UseFileStorage="chat.useFileStorage",e.AgentEnabled="chat.agent.enabled",e.Edits2Enabled="chat.edits2.enabled",e.ExtensionToolsEnabled="chat.extensionTools.enabled",e.EditRequests="chat.editRequests"})($S||($S={})),function(e){e.Ask="ask",e.Edit="edit",e.Agent="agent"}(SS||(SS={})),function(e){e.Panel="panel",e.Terminal="terminal",e.Notebook="notebook",e.Editor="editor"}(ei||(ei={})),function(e){function t(s){switch(s){case"panel":return e.Panel;case"terminal":return e.Terminal;case"notebook":return e.Notebook;case"editor":return e.Editor}return e.Panel}e.fromRaw=t}(ei||(ei={}))}}),cT,ir,lT=v({"out-build/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.js"(){"use strict";ie(),cT=X("IAiSettingsSearchService"),function(e){e[e.EMBEDDED=1]="EMBEDDED",e[e.LLM_RANKED=2]="LLM_RANKED",e[e.CANCELED=3]="CANCELED"}(ir||(ir={}))}});function Bd(e,t,s,i){return Kr.registerIcon(e,t,s,i)}function uT(){const e=QC();for(const t in e){const s="\\"+e[t].toString(16);Kr.registerIcon(t,{fontCharacter:s})}}var PS,IS,DS,AS,LS,RS,Kr,Vw,Ww,qw,hT,fT,dT,pT,mT,gT=v({"out-build/vs/platform/theme/common/iconRegistry.js"(){"use strict";Ae(),Hn(),og(),Oh(),re(),be(),Q(),ce(),j5(),ui(),V(),PS={IconContribution:"base.contributions.icons"},function(e){function t(s,i){let n=s.defaults;for(;vs.isThemeIcon(n);){const r=Kr.getIcon(n.id);if(!r)return;n=r.defaults}return n}e.getDefinition=t}(IS||(IS={})),function(e){function t(i){return{weight:i.weight,style:i.style,src:i.src.map(n=>({format:n.format,location:n.location.toString()}))}}e.toJSONObject=t;function s(i){const n=r=>ue(r)?r:void 0;if(i&&Array.isArray(i.src)&&i.src.every(r=>ue(r.format)&&ue(r.location)))return{weight:n(i.weight),style:n(i.style),src:i.src.map(r=>({format:r.format,location:y.parse(r.location)}))}}e.fromJSONObject=s}(DS||(DS={})),AS=/^([\w_-]+)$/,LS=m(2567,null),RS=class extends W{constructor(){super(),this.a=this.B(new D),this.onDidChange=this.a.event,this.f={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:m(2568,null),pattern:AS.source,patternErrorMessage:LS},fontCharacter:{type:"string",description:m(2569,null)}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.g={type:"string",pattern:`^${vs.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.b={},this.h={}}registerIcon(e,t,s,i){const n=this.b[e];if(n){if(s&&!n.description){n.description=s,this.f.properties[e].markdownDescription=`${s} $(${e})`;const a=this.g.enum.indexOf(e);a!==-1&&(this.g.enumDescriptions[a]=s),this.a.fire()}return n}const r={id:e,description:s,defaults:t,deprecationMessage:i};this.b[e]=r;const o={$ref:"#/definitions/icons"};return i&&(o.deprecationMessage=i),s&&(o.markdownDescription=`${s}: $(${e})`),this.f.properties[e]=o,this.g.enum.push(e),this.g.enumDescriptions.push(s||""),this.a.fire(),{id:e}}deregisterIcon(e){delete this.b[e],delete this.f.properties[e];const t=this.g.enum.indexOf(e);t!==-1&&(this.g.enum.splice(t,1),this.g.enumDescriptions.splice(t,1)),this.a.fire()}getIcons(){return Object.keys(this.b).map(e=>this.b[e])}getIcon(e){return this.b[e]}getIconSchema(){return this.f}getIconReferenceSchema(){return this.g}registerIconFont(e,t){const s=this.h[e];return s||(this.h[e]=t,this.a.fire(),t)}deregisterIconFont(e){delete this.h[e]}getIconFont(e){return this.h[e]}toString(){const e=(n,r)=>n.id.localeCompare(r.id),t=n=>{for(;vs.isThemeIcon(n.defaults);)n=this.b[n.defaults.id];return`codicon codicon-${n?n.id:""}`},s=[];s.push("| preview     | identifier                        | default codicon ID                | description"),s.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const i=Object.keys(this.b).map(n=>this.b[n]);for(const n of i.filter(r=>!!r.description).sort(e))s.push(`|<i class="${t(n)}"></i>|${n.id}|${vs.isThemeIcon(n.defaults)?n.defaults.id:n.id}|${n.description||""}|`);s.push("| preview     | identifier                        "),s.push("| ----------- | --------------------------------- |");for(const n of i.filter(r=>!vs.isThemeIcon(r.defaults)).sort(e))s.push(`|<i class="${t(n)}"></i>|${n.id}|`);return s.join(`
`)}},Kr=new RS,Bt.add(PS.IconContribution,Kr),uT(),Vw="vscode://schemas/icons",Ww=Bt.as(Qu.JSONContribution),Ww.registerSchema(Vw,Kr.getIconSchema()),qw=new kr(()=>Ww.notifySchemaChanged(Vw),200),Kr.onDidChange(()=>{qw.isScheduled()||qw.schedule()}),hT=Bd("widget-close",U.close,m(2570,null)),fT=Bd("goto-previous-location",U.arrowUp,m(2571,null)),dT=Bd("goto-next-location",U.arrowDown,m(2572,null)),pT=vs.modify(U.sync,"spin"),mT=vs.modify(U.loading,"spin")}}),NS,wT=v({"out-build/vs/workbench/contrib/mcp/common/modelContextProtocol.js"(){"use strict";(function(e){e.LATEST_PROTOCOL_VERSION="2025-06-18",e.JSONRPC_VERSION="2.0",e.PARSE_ERROR=-32700,e.INVALID_REQUEST=-32600,e.METHOD_NOT_FOUND=-32601,e.INVALID_PARAMS=-32602,e.INTERNAL_ERROR=-32603})(NS||(NS={}))}}),OS,CS,_S,Gw,MS,vT,US,jS,zd,TS,FS,BS,zS,Jw,bT,yT,ET,HS,VS,xT,WS,kT,$T=v({"out-build/vs/workbench/contrib/mcp/common/mcpTypes.js"(){"use strict";kt(),Ln(),Le(),Hn(),V(),Ft(),Q(),ce(),hc(),Zs(),ie(),gT(),wT(),function(e){e[e.WorkspaceFolder=0]="WorkspaceFolder",e[e.Workspace=100]="Workspace",e[e.User=200]="User",e[e.Extension=300]="Extension",e[e.Filesystem=400]="Filesystem",e[e.RemoteBoost=-50]="RemoteBoost"}(OS||(OS={})),function(e){function t(s,i){return s.id===i.id&&s.remoteAuthority===i.remoteAuthority&&s.label===i.label&&s.isTrustedByDefault===i.isTrustedByDefault}e.equals=t}(CS||(CS={})),function(e){function t(n){return n}e.toSerialized=t;function s(n){return{id:n.id,label:n.label,cacheNonce:n.cacheNonce,launch:zd.fromSerialized(n.launch),variableReplacement:n.variableReplacement?Gw.fromSerialized(n.variableReplacement):void 0}}e.fromSerialized=s;function i(n,r){return n.id===r.id&&n.label===r.label&&rn(n.roots,r.roots,(o,a)=>o.toString()===a.toString())&&ms(n.launch,r.launch)&&ms(n.presentation,r.presentation)&&ms(n.variableReplacement,r.variableReplacement)&&ms(n.devMode,r.devMode)}e.equals=i}(_S||(_S={})),function(e){function t(i){return i}e.toSerialized=t;function s(i){return{section:i.section,folder:i.folder?{...i.folder,uri:y.revive(i.folder.uri)}:void 0,target:i.target}}e.fromSerialized=s}(Gw||(Gw={})),function(e){e[e.HasUnknown=0]="HasUnknown",e[e.LoadingUnknown=1]="LoadingUnknown",e[e.AllKnown=2]="AllKnown"}(MS||(MS={})),vT=X("IMcpService"),function(e){e[e.Unknown=0]="Unknown",e[e.Cached=1]="Cached",e[e.Outdated=2]="Outdated",e[e.RefreshingFromUnknown=3]="RefreshingFromUnknown",e[e.RefreshingFromCached=4]="RefreshingFromCached",e[e.Live=5]="Live"}(US||(US={})),function(e){e[e.Stdio=1]="Stdio",e[e.HTTP=2]="HTTP"}(jS||(jS={})),function(e){function t(i){return i}e.toSerialized=t;function s(i){switch(i.type){case 2:return{type:i.type,uri:y.revive(i.uri),headers:i.headers};case 1:return{type:i.type,cwd:i.cwd,command:i.command,args:i.args,env:i.env,envFile:i.envFile}}}e.fromSerialized=s}(zd||(zd={})),function(e){let t;(function(s){s[s.Stopped=0]="Stopped",s[s.Starting=1]="Starting",s[s.Running=2]="Running",s[s.Error=3]="Error"})(t=e.Kind||(e.Kind={})),e.toString=s=>{switch(s.state){case 0:return m(9051,null);case 1:return m(9052,null);case 2:return m(9053,null);case 3:return m(9054,null,s.message);default:up(s)}},e.toKindString=s=>{switch(s){case 0:return"stopped";case 1:return"starting";case 2:return"running";case 3:return"error";default:up(s)}},e.canBeStarted=s=>s===3||s===0,e.isRunning=s=>!e.canBeStarted(s.state)}(TS||(TS={})),function(e){e[e.Installing=0]="Installing",e[e.Installed=1]="Installed",e[e.Uninstalling=2]="Uninstalling",e[e.Uninstalled=3]="Uninstalled"}(FS||(FS={})),function(e){e.Readme="readme",e.Manifest="manifest",e.Configuration="configuration"}(BS||(BS={})),zS=X("IMcpWorkbenchService"),Jw=class extends W{constructor(t,s){super(),this.f=t,this.B(s.onChange(this.update,this))}set mcpServer(t){this.f.forEach(s=>s.mcpServer=t)}update(t){for(const s of this.f)t&&s.mcpServer?t.name===s.mcpServer.name&&(s.mcpServer=t):s.update()}},Jw=__decorate([__param(1,zS)],Jw),bT=new Dr("mcpServersGalleryEnabled",!1),yT=new Dr("hasInstalledMcpServers",!0),ET=Bd("mcp-server",U.mcp,m(9055,null)),function(e){e.scheme="mcp-resource";const t="dylo78gyp";function s(n,r){return typeof r=="string"&&(r=y.parse(r)),r.with({scheme:e.scheme,authority:W4(R.fromString(n.id)),path:["",r.scheme,r.authority||t].join("/")+r.path})}e.fromServer=s;function i(n){if(typeof n=="string"&&(n=y.parse(n)),n.scheme!==e.scheme)throw new Error(`Invalid MCP resource URI: ${n.toString()}`);const r=n.path.split("/");if(r.length<3)throw new Error(`Invalid MCP resource URI: ${n.toString()}`);const[,o,a,...c]=r,l=new URL(`${o}://${a.toLowerCase()===t?"":a}`);return l.pathname=c.length?"/"+c.join("/"):"",l.search=n.query,l.hash=n.fragment,{definitionId:PR(n.authority).toString(),resourceURL:l}}e.toServer=i}(HS||(HS={})),function(e){e[e.Logging=1]="Logging",e[e.Completions=2]="Completions",e[e.Prompts=4]="Prompts",e[e.PromptsListChanged=8]="PromptsListChanged",e[e.Resources=16]="Resources",e[e.ResourcesSubscribe=32]="ResourcesSubscribe",e[e.ResourcesListChanged=64]="ResourcesListChanged",e[e.Tools=128]="Tools",e[e.ToolsListChanged=256]="ToolsListChanged"}(VS||(VS={})),xT=X("IMcpServerSampling"),function(e){e.Prefix="mcp_",e[e.MaxPrefixLen=18]="MaxPrefixLen",e[e.MaxLength=64]="MaxLength"}(WS||(WS={})),kT=X("IMcpElicitationService")}});function Zw(e){return typeof e>"u"?e:typeof e=="string"?y.file(e):e}function ST(e){switch(e.mimeType){case Qn.PNG:case Qn.JPEG:case Qn.GIF:case Qn.WEBP:case Qn.BMP:return!0;default:return!1}}var Yw,q,Wi,qS,Sn,GS,Hd,JS,Vd,Hl,ZS,Qe,Oa,Wd,Qw,YS,$i,QS,qi,nr,qd,XS,Vl,KS,eP,rr,tP,sP,iP,nP,rP,Gd,oP,Xw,aP,Kw,cP,ev,lP,Jd,Zd,uP,hP,tv,sv,fP,dP,pP,mP,gP,wP,Yd,vP,bP,Qd,yP,Gi,EP,iv,Xd,Kd,xP,Ca,e1,t1,kP,$P,SP,PP,IP,nv,or,rv,ov,s1,DP,AP,LP,av,RP,Wl,NP,cv,_a,OP,CP,i1,lv,uv,hv,n1,r1,fv,dv,pv,mv,gv,_P,MP,o1,wv,vv,bv,a1,yv,UP,jP,TP,Ev,xv,kv,FP,$v,BP,zP,c1,HP,Sv,VP,Pv,WP,qP,GP,JP,ZP,Iv,YP,QP,XP=v({"out-build/vs/workbench/api/common/extHostTypeConverters.js"(){"use strict";kt(),Le(),$j(),yu(),qc(),Jt(),Cj(),Oc(),Rf(),Ft(),_j(),ct(),Oh(),be(),Q(),zt(),Aa(),f$(),zj(),Ow(),Qj(),g3(),Ld(),jw(),lS(),rT(),Bw(),kS(),ww(),ww(),aT(),lT(),$T(),function(e){function t(i){const{selectionStartLineNumber:n,selectionStartColumn:r,positionLineNumber:o,positionColumn:a}=i,c=new Re(n-1,r-1),l=new Re(o-1,a-1);return new kl(c,l)}e.to=t;function s(i){const{anchor:n,active:r}=i;return{selectionStartLineNumber:n.line+1,selectionStartColumn:n.character+1,positionLineNumber:r.line+1,positionColumn:r.character+1}}e.from=s}(Yw||(Yw={})),function(e){function t(i){if(!i)return;const{start:n,end:r}=i;return{startLineNumber:n.line+1,startColumn:n.character+1,endLineNumber:r.line+1,endColumn:r.character+1}}e.from=t;function s(i){if(!i)return;const{startLineNumber:n,startColumn:r,endLineNumber:o,endColumn:a}=i;return new st(n-1,r-1,o-1,a-1)}e.to=s}(q||(q={})),function(e){function t(i){return{uri:i.uri,range:q.from(i.range)}}e.from=t;function s(i){return new xn(y.revive(i.uri),q.to(i.range))}e.to=s}(Wi||(Wi={})),function(e){function t(s){switch(s){case 1:return ka.Comment;case 0:return ka.Other;case 3:return ka.RegEx;case 2:return ka.String}}e.to=t}(qS||(qS={})),function(e){function t(i){return new Re(i.lineNumber-1,i.column-1)}e.to=t;function s(i){return{lineNumber:i.line+1,column:i.character+1}}e.from=s}(Sn||(Sn={})),function(e){function t(n,r,o){return ai(hy(n).map(a=>s(a,r,o)))}e.from=t;function s(n,r,o){if(typeof n=="string")return{$serialized:!0,language:n,isBuiltin:o?.isBuiltin};if(n)return{$serialized:!0,language:n.language,scheme:i(n.scheme,r),pattern:Gi.from(n.pattern)??void 0,exclusive:n.exclusive,notebookType:n.notebookType,isBuiltin:o?.isBuiltin}}function i(n,r){return r&&typeof n=="string"?r.transformOutgoingScheme(n):n}}(GS||(GS={})),function(e){function t(i){switch(i){case wa.Unnecessary:return 1;case wa.Deprecated:return 2}}e.from=t;function s(i){switch(i){case 1:return wa.Unnecessary;case 2:return wa.Deprecated;default:return}}e.to=s}(Hd||(Hd={})),function(e){function t(i){let n;return i.code&&(ue(i.code)||Rn(i.code)?n=String(i.code):n={value:String(i.code.value),target:i.code.target}),{...q.from(i.range),message:i.message,source:i.source,code:n,severity:Hl.from(i.severity),relatedInformation:i.relatedInformation&&i.relatedInformation.map(Vd.from),tags:Array.isArray(i.tags)?ai(i.tags.map(Hd.from)):void 0}}e.from=t;function s(i){const n=new Mf(q.to(i),i.message,Hl.to(i.severity));return n.source=i.source,n.code=ue(i.code)?i.code:i.code?.value,n.relatedInformation=i.relatedInformation&&i.relatedInformation.map(Vd.to),n.tags=i.tags&&ai(i.tags.map(Hd.to)),n}e.to=s}(JS||(JS={})),function(e){function t(i){return{...q.from(i.location.range),message:i.message,resource:i.location.uri}}e.from=t;function s(i){return new Sl(new xn(i.resource,q.to(i)),i.message)}e.to=s}(Vd||(Vd={})),function(e){function t(i){switch(i){case Us.Error:return Ns.Error;case Us.Warning:return Ns.Warning;case Us.Information:return Ns.Info;case Us.Hint:return Ns.Hint}return Ns.Error}e.from=t;function s(i){switch(i){case Ns.Info:return Us.Information;case Ns.Warning:return Us.Warning;case Ns.Error:return Us.Error;case Ns.Hint:return Us.Hint;default:return Us.Error}}e.to=s}(Hl||(Hl={})),function(e){function t(i){return typeof i=="number"&&i>=Qf.One?i-1:i===Qf.Beside?cS:aS}e.from=t;function s(i){if(typeof i=="number"&&i>=0)return i+1;throw new Error("invalid 'EditorGroupColumn'")}e.to=s}(ZS||(ZS={})),function(e){function t(a){return a.map(e.from)}e.fromMany=t;function s(a){return a&&typeof a=="object"&&typeof a.language=="string"&&typeof a.value=="string"}function i(a){let c;if(s(a)){const{language:h,value:f}=a;c={value:"```"+h+`
`+f+"\n```\n"}}else kn.isMarkdownString(a)?c={value:a.value,isTrusted:a.isTrusted,supportThemeIcons:a.supportThemeIcons,supportHtml:a.supportHtml,baseUri:a.baseUri}:typeof a=="string"?c={value:a}:c={value:""};const l=Object.create(null);c.uris=l;const u=({href:h})=>{try{let f=y.parse(h,!0);f=f.with({query:n(f.query,l)}),l[h]=f}catch{}return""};return He.walkTokens(He.lexer(c.value),h=>{h.type==="link"?u({href:h.href}):h.type==="image"&&typeof h.href=="string"&&u(o_(h.href))}),c}e.from=i;function n(a,c){if(!a)return a;let l;try{l=j7(a)}catch{}if(!l)return a;let u=!1;return l=Ci(l,h=>{if(y.isUri(h)){const f=`__uri_${Math.random().toString(16).slice(2,8)}`;return c[f]=h,u=!0,f}else return}),u?JSON.stringify(l):a}function r(a){const c=new kn(a.value,a.supportThemeIcons);return c.isTrusted=a.isTrusted,c.supportHtml=a.supportHtml,c.baseUri=a.baseUri?y.from(a.baseUri):void 0,c}e.to=r;function o(a){if(a)return typeof a=="string"?a:e.from(a)}e.fromStrict=o}(Qe||(Qe={})),function(e){function t(s){return typeof s>"u"?s:{contentText:s.contentText,contentIconPath:s.contentIconPath?Zw(s.contentIconPath):void 0,border:s.border,borderColor:s.borderColor,fontStyle:s.fontStyle,fontWeight:s.fontWeight,textDecoration:s.textDecoration,color:s.color,backgroundColor:s.backgroundColor,margin:s.margin,width:s.width,height:s.height}}e.from=t}(Oa||(Oa={})),function(e){function t(s){return typeof s>"u"?s:{backgroundColor:s.backgroundColor,outline:s.outline,outlineColor:s.outlineColor,outlineStyle:s.outlineStyle,outlineWidth:s.outlineWidth,border:s.border,borderColor:s.borderColor,borderRadius:s.borderRadius,borderSpacing:s.borderSpacing,borderStyle:s.borderStyle,borderWidth:s.borderWidth,fontStyle:s.fontStyle,fontWeight:s.fontWeight,textDecoration:s.textDecoration,cursor:s.cursor,color:s.color,opacity:s.opacity,letterSpacing:s.letterSpacing,gutterIconPath:s.gutterIconPath?Zw(s.gutterIconPath):void 0,gutterIconSize:s.gutterIconSize,overviewRulerColor:s.overviewRulerColor,before:s.before?Oa.from(s.before):void 0,after:s.after?Oa.from(s.after):void 0}}e.from=t}(Wd||(Wd={})),function(e){function t(s){if(typeof s>"u")return s;switch(s){case ba.OpenOpen:return 0;case ba.ClosedClosed:return 1;case ba.OpenClosed:return 2;case ba.ClosedOpen:return 3}}e.from=t}(Qw||(Qw={})),function(e){function t(s){return{isWholeLine:s.isWholeLine,rangeBehavior:s.rangeBehavior?Qw.from(s.rangeBehavior):void 0,overviewRulerLane:s.overviewRulerLane,light:s.light?Wd.from(s.light):void 0,dark:s.dark?Wd.from(s.dark):void 0,backgroundColor:s.backgroundColor,outline:s.outline,outlineColor:s.outlineColor,outlineStyle:s.outlineStyle,outlineWidth:s.outlineWidth,border:s.border,borderColor:s.borderColor,borderRadius:s.borderRadius,borderSpacing:s.borderSpacing,borderStyle:s.borderStyle,borderWidth:s.borderWidth,fontStyle:s.fontStyle,fontWeight:s.fontWeight,textDecoration:s.textDecoration,cursor:s.cursor,color:s.color,opacity:s.opacity,letterSpacing:s.letterSpacing,gutterIconPath:s.gutterIconPath?Zw(s.gutterIconPath):void 0,gutterIconSize:s.gutterIconSize,overviewRulerColor:s.overviewRulerColor,before:s.before?Oa.from(s.before):void 0,after:s.after?Oa.from(s.after):void 0}}e.from=t}(YS||(YS={})),function(e){function t(i){return{text:i.newText,eol:i.newEol&&Yd.from(i.newEol),range:q.from(i.range)}}e.from=t;function s(i){const n=new Gr(q.to(i.range),i.text);return n.newEol=typeof i.eol>"u"?void 0:Yd.to(i.eol),n}e.to=s}($i||($i={})),function(e){function t(i,n){const r={edits:[]};if(i instanceof $l){const o=new xu;for(const a of i._allEntries())a._type===1&&y.isUri(a.to)&&a.from===void 0&&o.add(a.to);for(const a of i._allEntries())if(a._type===1){let c;a.options?.contents&&(ArrayBuffer.isView(a.options.contents)?c={type:"base64",value:Gp(R.wrap(a.options.contents))}:c={type:"dataTransferItem",id:a.options.contents._itemId}),r.edits.push({oldResource:a.from,newResource:a.to,options:{...a.options,contents:c},metadata:a.metadata})}else a._type===2?r.edits.push({resource:a.uri,textEdit:$i.from(a.edit),versionId:o.has(a.uri)?void 0:n?.getTextDocumentVersion(a.uri),metadata:a.metadata}):a._type===6?r.edits.push({resource:a.uri,textEdit:{range:q.from(a.range),text:a.edit.value,insertAsSnippet:!0,keepWhitespace:a.keepWhitespace},versionId:o.has(a.uri)?void 0:n?.getTextDocumentVersion(a.uri),metadata:a.metadata}):a._type===3?r.edits.push({metadata:a.metadata,resource:a.uri,cellEdit:a.edit,notebookVersionId:n?.getNotebookDocumentVersion(a.uri)}):a._type===5&&r.edits.push({metadata:a.metadata,resource:a.uri,notebookVersionId:n?.getNotebookDocumentVersion(a.uri),cellEdit:{editType:1,index:a.index,count:a.count,cells:a.cells.map(Ca.from)}})}return r}e.from=t;function s(i){const n=new $l,r=new wt;for(const o of i.edits)if(o.textEdit){const a=o,c=y.revive(a.resource),l=q.to(a.textEdit.range),u=a.textEdit.text,h=a.textEdit.insertAsSnippet;let f;h?f=S0.replace(l,new ga(u)):f=Gr.replace(l,u);const p=r.get(c);p?p.push(f):r.set(c,[f])}else n.renameFile(y.revive(o.oldResource),y.revive(o.newResource),o.options);for(const[o,a]of r)n.set(o,a);return n}e.to=s}(QS||(QS={})),function(e){const t=Object.create(null);t[ze.File]=0,t[ze.Module]=1,t[ze.Namespace]=2,t[ze.Package]=3,t[ze.Class]=4,t[ze.Method]=5,t[ze.Property]=6,t[ze.Field]=7,t[ze.Constructor]=8,t[ze.Enum]=9,t[ze.Interface]=10,t[ze.Function]=11,t[ze.Variable]=12,t[ze.Constant]=13,t[ze.String]=14,t[ze.Number]=15,t[ze.Boolean]=16,t[ze.Array]=17,t[ze.Object]=18,t[ze.Key]=19,t[ze.Null]=20,t[ze.EnumMember]=21,t[ze.Struct]=22,t[ze.Event]=23,t[ze.Operator]=24,t[ze.TypeParameter]=25;function s(n){return typeof t[n]=="number"?t[n]:6}e.from=s;function i(n){for(const r in t)if(t[r]===n)return Number(r);return ze.Property}e.to=i}(qi||(qi={})),function(e){function t(i){switch(i){case zf.Deprecated:return 1}}e.from=t;function s(i){switch(i){case 1:return zf.Deprecated}}e.to=s}(nr||(nr={})),function(e){function t(i){return{name:i.name,kind:qi.from(i.kind),tags:i.tags&&i.tags.map(nr.from),containerName:i.containerName,location:rr.from(i.location)}}e.from=t;function s(i){const n=new Hf(i.name,qi.to(i.kind),i.containerName,rr.to(i.location));return n.tags=i.tags&&i.tags.map(nr.to),n}e.to=s}(qd||(qd={})),function(e){function t(i){const n={name:i.name||"!!MISSING: name!!",detail:i.detail,range:q.from(i.range),selectionRange:q.from(i.selectionRange),kind:qi.from(i.kind),tags:i.tags?.map(nr.from)??[]};return i.children&&(n.children=i.children.map(t)),n}e.from=t;function s(i){const n=new Vf(i.name,i.detail,qi.to(i.kind),q.to(i.range),q.to(i.selectionRange));return Eu(i.tags)&&(n.tags=i.tags.map(nr.to)),i.children&&(n.children=i.children.map(s)),n}e.to=s}(XS||(XS={})),function(e){function t(i){const n=new I0(qi.to(i.kind),i.name,i.detail||"",y.revive(i.uri),q.to(i.range),q.to(i.selectionRange));return n._sessionId=i._sessionId,n._itemId=i._itemId,n}e.to=t;function s(i,n,r){if(n=n??i._sessionId,r=r??i._itemId,n===void 0||r===void 0)throw new Error("invalid item");return{_sessionId:n,_itemId:r,name:i.name,detail:i.detail,kind:qi.from(i.kind),uri:i.uri,range:q.from(i.range),selectionRange:q.from(i.selectionRange),tags:i.tags?.map(nr.from)}}e.from=s}(Vl||(Vl={})),function(e){function t(s){return new $3(Vl.to(s.from),s.fromRanges.map(i=>q.to(i)))}e.to=t}(KS||(KS={})),function(e){function t(s){return new S3(Vl.to(s.to),s.fromRanges.map(i=>q.to(i)))}e.to=t}(eP||(eP={})),function(e){function t(i){return{range:i.range&&q.from(i.range),uri:i.uri}}e.from=t;function s(i){return new xn(y.revive(i.uri),q.to(i.range))}e.to=s}(rr||(rr={})),function(e){function t(i){const n=i,r=i;return{originSelectionRange:n.originSelectionRange?q.from(n.originSelectionRange):void 0,uri:n.targetUri?n.targetUri:r.uri,range:q.from(n.targetRange?n.targetRange:r.range),targetSelectionRange:n.targetSelectionRange?q.from(n.targetSelectionRange):void 0}}e.from=t;function s(i){return{targetUri:y.revive(i.uri),targetRange:q.to(i.range),targetSelectionRange:i.targetSelectionRange?q.to(i.targetSelectionRange):void 0,originSelectionRange:i.originSelectionRange?q.to(i.originSelectionRange):void 0}}e.to=s}(tP||(tP={})),function(e){function t(i){return{range:q.from(i.range),contents:Qe.fromMany(i.contents),canIncreaseVerbosity:i.canIncreaseVerbosity,canDecreaseVerbosity:i.canDecreaseVerbosity}}e.from=t;function s(i){const n=i.contents.map(Qe.to),r=q.to(i.range),o=i.canIncreaseVerbosity,a=i.canDecreaseVerbosity;return new jf(n,r,o,a)}e.to=s}(sP||(sP={})),function(e){function t(i){return{range:q.from(i.range),expression:i.expression}}e.from=t;function s(i){return new ld(q.to(i.range),i.expression)}e.to=s}(iP||(iP={})),function(e){function t(i){if(i instanceof ud)return{type:"text",range:q.from(i.range),text:i.text};if(i instanceof hd)return{type:"variable",range:q.from(i.range),variableName:i.variableName,caseSensitiveLookup:i.caseSensitiveLookup};if(i instanceof fd)return{type:"expression",range:q.from(i.range),expression:i.expression};throw new Error("Unknown 'InlineValue' type")}e.from=t;function s(i){switch(i.type){case"text":return{range:q.to(i.range),text:i.text};case"variable":return{range:q.to(i.range),variableName:i.variableName,caseSensitiveLookup:i.caseSensitiveLookup};case"expression":return{range:q.to(i.range),expression:i.expression}}}e.to=s}(nP||(nP={})),function(e){function t(i){return{frameId:i.frameId,stoppedLocation:q.from(i.stoppedLocation)}}e.from=t;function s(i){return new dd(i.frameId,q.to(i.stoppedLocation))}e.to=s}(rP||(rP={})),function(e){function t(i){return{range:q.from(i.range),kind:i.kind}}e.from=t;function s(i){return new Ff(q.to(i.range),i.kind)}e.to=s}(Gd||(Gd={})),function(e){function t(i){return{uri:i.uri,highlights:i.highlights.map(Gd.from)}}e.from=t;function s(i){return new Bf(y.revive(i.uri),i.highlights.map(Gd.to))}e.to=s}(oP||(oP={})),function(e){function t(s){switch(s){case 1:return Pl.TriggerCharacter;case 2:return Pl.TriggerForIncompleteCompletions;case 0:default:return Pl.Invoke}}e.to=t}(Xw||(Xw={})),function(e){function t(s){return{triggerKind:Xw.to(s.triggerKind),triggerCharacter:s.triggerCharacter}}e.to=t}(aP||(aP={})),function(e){function t(i){switch(i){case Zf.Deprecated:return 1}}e.from=t;function s(i){switch(i){case 1:return Zf.Deprecated}}e.to=s}(Kw||(Kw={})),function(e){function t(s,i,n){return"icon"in s&&"command"in s?{command:i.toInternal(s.command,n),icon:Iv.fromThemeIcon(s.icon)}:{command:i.toInternal(s,n)}}e.from=t}(cP||(cP={})),function(e){const t=new Map([[K.Method,0],[K.Function,1],[K.Constructor,2],[K.Field,3],[K.Variable,4],[K.Class,5],[K.Interface,7],[K.Struct,6],[K.Module,8],[K.Property,9],[K.Unit,12],[K.Value,13],[K.Constant,14],[K.Enum,15],[K.EnumMember,16],[K.Keyword,17],[K.Snippet,28],[K.Text,18],[K.Color,19],[K.File,20],[K.Reference,21],[K.Folder,23],[K.Event,10],[K.Operator,11],[K.TypeParameter,24],[K.Issue,26],[K.User,25]]);function s(r){return t.get(r)??9}e.from=s;const i=new Map([[0,K.Method],[1,K.Function],[2,K.Constructor],[3,K.Field],[4,K.Variable],[5,K.Class],[7,K.Interface],[6,K.Struct],[8,K.Module],[9,K.Property],[12,K.Unit],[13,K.Value],[14,K.Constant],[15,K.Enum],[16,K.EnumMember],[17,K.Keyword],[28,K.Snippet],[18,K.Text],[19,K.Color],[20,K.File],[21,K.Reference],[23,K.Folder],[10,K.Event],[11,K.Operator],[24,K.TypeParameter],[25,K.User],[26,K.Issue]]);function n(r){return i.get(r)??K.Property}e.to=n}(ev||(ev={})),function(e){function t(s,i){const n=new Yf(s.label);return n.insertText=s.insertText,n.kind=ev.to(s.kind),n.tags=s.tags?.map(Kw.to),n.detail=s.detail,n.documentation=Wc(s.documentation)?Qe.to(s.documentation):s.documentation,n.sortText=s.sortText,n.filterText=s.filterText,n.preselect=s.preselect,n.commitCharacters=s.commitCharacters,Ks.isIRange(s.range)?n.range=q.to(s.range):typeof s.range=="object"&&(n.range={inserting:q.to(s.range.insert),replacing:q.to(s.range.replace)}),n.keepWhitespace=typeof s.insertTextRules>"u"?!1:!!(s.insertTextRules&1),typeof s.insertTextRules<"u"&&s.insertTextRules&4?n.insertText=new ga(s.insertText):(n.insertText=s.insertText,n.textEdit=n.range instanceof st?new Gr(n.range,n.insertText):void 0),s.additionalTextEdits&&s.additionalTextEdits.length>0&&(n.additionalTextEdits=s.additionalTextEdits.map(r=>$i.to(r))),n.command=i&&s.command?i.fromInternal(s.command):void 0,n}e.to=t}(lP||(lP={})),function(e){function t(i){if(typeof i.label!="string"&&!Array.isArray(i.label))throw new TypeError("Invalid label");return{label:i.label,documentation:Qe.fromStrict(i.documentation)}}e.from=t;function s(i){return{label:i.label,documentation:Wc(i.documentation)?Qe.to(i.documentation):i.documentation}}e.to=s}(Jd||(Jd={})),function(e){function t(i){return{label:i.label,documentation:Qe.fromStrict(i.documentation),parameters:Array.isArray(i.parameters)?i.parameters.map(Jd.from):[],activeParameter:i.activeParameter}}e.from=t;function s(i){return{label:i.label,documentation:Wc(i.documentation)?Qe.to(i.documentation):i.documentation,parameters:Array.isArray(i.parameters)?i.parameters.map(Jd.to):[],activeParameter:i.activeParameter}}e.to=s}(Zd||(Zd={})),function(e){function t(i){return{activeSignature:i.activeSignature,activeParameter:i.activeParameter,signatures:Array.isArray(i.signatures)?i.signatures.map(Zd.from):[]}}e.from=t;function s(i){return{activeSignature:i.activeSignature,activeParameter:i.activeParameter,signatures:Array.isArray(i.signatures)?i.signatures.map(Zd.to):[]}}e.to=s}(uP||(uP={})),function(e){function t(s,i){const n=new Jf(Sn.to(i.position),typeof i.label=="string"?i.label:i.label.map(tv.to.bind(void 0,s)),i.kind&&sv.to(i.kind));return n.textEdits=i.textEdits&&i.textEdits.map($i.to),n.tooltip=Wc(i.tooltip)?Qe.to(i.tooltip):i.tooltip,n.paddingLeft=i.paddingLeft,n.paddingRight=i.paddingRight,n}e.to=t}(hP||(hP={})),function(e){function t(s,i){const n=new Gf(i.label);return n.tooltip=Wc(i.tooltip)?Qe.to(i.tooltip):i.tooltip,Rw.is(i.command)&&(n.command=s.fromInternal(i.command)),i.location&&(n.location=rr.to(i.location)),n}e.to=t}(tv||(tv={})),function(e){function t(i){return i}e.from=t;function s(i){return i}e.to=s}(sv||(sv={})),function(e){function t(i){return{range:q.from(i.range),url:i.target,tooltip:i.tooltip}}e.from=t;function s(i){let n;if(i.url)try{n=typeof i.url=="string"?y.parse(i.url,!0):y.revive(i.url)}catch{}const r=new ed(q.to(i.range),n);return r.tooltip=i.tooltip,r}e.to=s}(fP||(fP={})),function(e){function t(i){const n=new td(i.label);return i.textEdit&&(n.textEdit=$i.to(i.textEdit)),i.additionalTextEdits&&(n.additionalTextEdits=i.additionalTextEdits.map(r=>$i.to(r))),n}e.to=t;function s(i){return{label:i.label,textEdit:i.textEdit?$i.from(i.textEdit):void 0,additionalTextEdits:i.additionalTextEdits?i.additionalTextEdits.map(n=>$i.from(n)):void 0}}e.from=s}(dP||(dP={})),function(e){function t(i){return new Al(i[0],i[1],i[2],i[3])}e.to=t;function s(i){return[i.red,i.green,i.blue,i.alpha]}e.from=s}(pP||(pP={})),function(e){function t(i){return{range:q.from(i.range)}}e.from=t;function s(i){return new qf(q.to(i.range))}e.to=s}(mP||(mP={})),function(e){function t(s){switch(s){case 2:return Dl.AfterDelay;case 1:return Dl.Manual;case 3:case 4:return Dl.FocusOut}}e.to=t}(gP||(gP={})),function(e){function t(i){switch(i){case zi.Off:return 0;case zi.Relative:return 2;case zi.Interval:return 3;case zi.On:default:return 1}}e.from=t;function s(i){switch(i){case 0:return zi.Off;case 2:return zi.Relative;case 3:return zi.Interval;case 1:default:return zi.On}}e.to=s}(wP||(wP={})),function(e){function t(i){if(i===ma.CRLF)return 1;if(i===ma.LF)return 0}e.from=t;function s(i){if(i===1)return ma.CRLF;if(i===0)return ma.LF}e.to=s}(Yd||(Yd={})),function(e){function t(s){if(typeof s=="object")return s.viewId;switch(s){case Ll.SourceControl:return 3;case Ll.Window:return 10;case Ll.Notification:return 15}throw new Error("Unknown 'ProgressLocation'")}e.from=t}(vP||(vP={})),function(e){function t(i){const n={start:i.start+1,end:i.end+1};return i.kind&&(n.kind=Qd.from(i.kind)),n}e.from=t;function s(i){const n={start:i.start-1,end:i.end-1};return i.kind&&(n.kind=Qd.to(i.kind)),n}e.to=s}(bP||(bP={})),function(e){function t(i){if(i)switch(i){case Zn.Comment:return Qr.Comment;case Zn.Imports:return Qr.Imports;case Zn.Region:return Qr.Region}}e.from=t;function s(i){if(i)switch(i.value){case Qr.Comment.value:return Zn.Comment;case Qr.Imports.value:return Zn.Imports;case Qr.Region.value:return Zn.Region}}e.to=s}(Qd||(Qd={})),function(e){function t(s){if(s)return{pinned:typeof s.preview=="boolean"?!s.preview:void 0,inactive:s.background,preserveFocus:s.preserveFocus,selection:typeof s.selection=="object"?q.from(s.selection):void 0,override:typeof s.override=="boolean"?v$.id:void 0}}e.from=t}(yP||(yP={})),function(e){function t(r){return r instanceof ya?r.toJSON():typeof r=="string"?r:s(r)||i(r)?new ya(r.baseUri??r.base,r.pattern).toJSON():r}e.from=t;function s(r){const o=r;return o?y.isUri(o.baseUri)&&typeof o.pattern=="string":!1}function i(r){const o=r;return o?typeof o.base=="string"&&typeof o.pattern=="string":!1}function n(r){return typeof r=="string"?r:new ya(y.revive(r.baseUri),r.pattern)}e.to=n}(Gi||(Gi={})),function(e){function t(s){if(s){if(Array.isArray(s))return s.map(t);if(typeof s=="string")return s;{const i=s;return{language:i.language,scheme:i.scheme,pattern:Gi.from(i.pattern)??void 0,exclusive:i.exclusive,notebookType:i.notebookType}}}else return}e.from=t}(EP||(EP={})),function(e){function t(i){return{start:i.start,end:i.end}}e.from=t;function s(i){return new Zr(i.start,i.end)}e.to=s}(iv||(iv={})),function(e){function t(i){return{timing:typeof i.runStartTime=="number"&&typeof i.runEndTime=="number"?{startTime:i.runStartTime,endTime:i.runEndTime}:void 0,executionOrder:i.executionOrder,success:i.lastRunSuccess}}e.to=t;function s(i){return{lastRunSuccess:i.success,runStartTime:i.timing?.startTime,runEndTime:i.timing?.endTime,executionOrder:i.executionOrder}}e.from=s}(Xd||(Xd={})),function(e){function t(i){switch(i){case xa.Markup:return pa.Markup;case xa.Code:default:return pa.Code}}e.from=t;function s(i){switch(i){case pa.Markup:return xa.Markup;case pa.Code:default:return xa.Code}}e.to=s}(Kd||(Kd={})),function(e){function t(i){const n={metadata:i.metadata??Object.create(null),cells:[]};for(const r of i.cells)X0.validate(r),n.cells.push(Ca.from(r));return n}e.from=t;function s(i){const n=new px(i.cells.map(Ca.to));return dp(i.metadata)||(n.metadata=i.metadata),n}e.to=s}(xP||(xP={})),function(e){function t(i){return{cellKind:Kd.from(i.kind),language:i.languageId,mime:i.mime,source:i.value,metadata:i.metadata,internalMetadata:Xd.from(i.executionSummary??{}),outputs:i.outputs?i.outputs.map(t1.from):[]}}e.from=t;function s(i){return new X0(Kd.to(i.cellKind),i.source,i.language,i.mime,i.outputs?i.outputs.map(t1.to):void 0,i.metadata,i.internalMetadata?Xd.to(i.internalMetadata):void 0)}e.to=s}(Ca||(Ca={})),function(e){function t(i){return{mime:i.mime,valueBytes:R.wrap(i.data)}}e.from=t;function s(i){return new mx(i.valueBytes.buffer,i.mime)}e.to=s}(e1||(e1={})),function(e){function t(i){return{outputId:i.id,items:i.items.map(e1.from),metadata:i.metadata}}e.from=t;function s(i){const n=i.items.map(e1.to);return new gx(n,i.outputId,i.metadata)}e.to=s}(t1||(t1={})),function(e){function t(n){return i(n)?{include:Gi.from(n.include)??void 0,exclude:Gi.from(n.exclude)??void 0}:Gi.from(n)??void 0}e.from=t;function s(n){return i(n)?{include:Gi.to(n.include),exclude:Gi.to(n.exclude)}:Gi.to(n)}e.to=s;function i(n){const r=n;return r?!At(r.include)&&!At(r.exclude):!1}}(kP||(kP={})),function(e){function t(s,i,n){const r=typeof s.command=="string"?{title:"",command:s.command}:s.command;return{alignment:s.alignment===K0.Left?1:2,command:i.toInternal(r,n),text:s.text,tooltip:s.tooltip,accessibilityInformation:s.accessibilityInformation,priority:s.priority}}e.from=t}($P||($P={})),function(e){function t(s,i,n){const r=typeof s.command=="string"?{title:"",command:s.command}:s.command;return{command:i.toInternal(r,n),label:s.label,description:s.description,detail:s.detail,documentation:s.documentation}}e.from=t}(SP||(SP={})),function(e){function t(s){return{transientOutputs:s?.transientOutputs??!1,transientCellMetadata:s?.transientCellMetadata??{},transientDocumentMetadata:s?.transientDocumentMetadata??{},cellContentMetadata:s?.cellContentMetadata??{}}}e.from=t}(PP||(PP={})),function(e){function t(i){return{uri:i.uri,provides:i.provides}}e.from=t;function s(i){return new Ex(y.revive(i.uri),i.provides)}e.to=s}(IP||(IP={})),function(e){function t(i){return{message:Qe.fromStrict(i.message)||"",type:0,expected:i.expectedOutput,actual:i.actualOutput,contextValue:i.contextValue,location:i.location&&{range:q.from(i.location.range),uri:i.location.uri},stackTrace:i.stackTrace?.map(n=>({label:n.label,position:n.position&&Sn.from(n.position),uri:n.uri&&y.revive(n.uri).toJSON()}))}}e.from=t;function s(i){const n=new pd(typeof i.message=="string"?i.message:Qe.to(i.message));return n.actualOutput=i.actual,n.expectedOutput=i.expected,n.contextValue=i.contextValue,n.location=i.location?rr.to(i.location):void 0,n}e.to=s}(nv||(nv={})),function(e){e.namespace=V$,e.denamespace=W$}(or||(or={})),function(e){function t(s){return{controllerId:s.controllerId,profileId:s.profileId,group:ov.from(s.kind)}}e.from=t}(rv||(rv={})),function(e){const t={[Nl.Coverage]:8,[Nl.Debug]:4,[Nl.Run]:2};function s(i){return t.hasOwnProperty(i)?t[i]:2}e.from=s}(ov||(ov={})),function(e){function t(i){const n=Hw(i).controllerId;return{extId:La.fromExtHostTestItem(i,n).toString(),label:i.label,uri:y.revive(i.uri),busy:i.busy,tags:i.tags.map(r=>or.namespace(n,r.id)),range:Ks.lift(q.from(i.range)),description:i.description||null,sortText:i.sortText||null,error:i.error&&Qe.fromStrict(i.error)||null}}e.from=t;function s(i){return{parent:void 0,error:void 0,id:La.fromString(i.extId).localId,label:i.label,uri:y.revive(i.uri),tags:(i.tags||[]).map(n=>{const{tagId:r}=or.denamespace(n);return new Ol(r)}),children:{add:()=>{},delete:()=>{},forEach:()=>{},*[Symbol.iterator](){},get:()=>{},replace:()=>{},size:0},range:q.to(i.range||void 0),canResolveChildren:!1,busy:i.busy,description:i.description||void 0,sortText:i.sortText||void 0}}e.toPlain=s}(s1||(s1={})),function(e){function t(i){return{id:i.id}}e.from=t;function s(i){return new Ol(i.id)}e.to=s}(or||(or={})),function(e){const t=(i,n)=>{const r=i.value;if(!r)return;const o={...s1.toPlain(r.item),parent:n,taskStates:r.tasks.map(a=>({state:a.state,duration:a.duration,messages:a.messages.filter(c=>c.type===0).map(nv.to)})),children:[]};if(i.children)for(const a of i.children.values()){const c=t(a,o);c&&o.children.push(c)}return o};function s(i){const n=new Tk;for(const a of i.items)n.insert(La.fromString(a.item.extId).path,a);const r=[n.nodes],o=[];for(;r.length;)for(const a of r.pop())a.value?o.push(a):a.children&&r.push(a.children.values());return{completedAt:i.completedAt,results:o.map(a=>t(a)).filter(ku)}}e.to=s}(DP||(DP={})),function(e){function t(a){return{covered:a.covered,total:a.total}}function s(a){return"line"in a?Sn.from(a):q.from(a)}function i(a){if(a)return"endLineNumber"in a?q.to(a):Sn.to(a)}function n(a){if(a.type===1){const c=[];if(a.branches)for(const l of a.branches)c.push({executed:l.count,location:i(l.location),label:l.label});return new Dx(a.count,i(a.location),a.branches?.map(l=>new Ax(l.count,i(l.location),l.label)))}else return new Lx(a.name,a.count,i(a.location))}e.to=n;function r(a){if(typeof a.executed=="number"&&a.executed<0)throw new Error(`Invalid coverage count ${a.executed}`);return"branches"in a?{count:a.executed,location:s(a.location),type:1,branches:a.branches.length?a.branches.map(c=>({count:c.executed,location:c.location&&s(c.location),label:c.label})):void 0}:{type:0,name:a.name,count:a.executed,location:s(a.location)}}e.fromDetails=r;function o(a,c,l){return Of(l.statementCoverage),Of(l.branchCoverage),Of(l.declarationCoverage),{id:c,uri:l.uri,statement:t(l.statementCoverage),branch:l.branchCoverage&&t(l.branchCoverage),declaration:l.declarationCoverage&&t(l.declarationCoverage),testIds:l instanceof Ix&&l.includesTests.length?l.includesTests.map(u=>La.fromExtHostTestItem(u,a).toString()):void 0}}e.fromFile=o}(AP||(AP={})),function(e){function t(s){switch(s){case 1:return Wf.Invoke;case 2:return Wf.Automatic}}e.to=t}(LP||(LP={})),function(e){function t(i){const n=new sw(qi.to(i.kind),i.name,i.detail||"",y.revive(i.uri),q.to(i.range),q.to(i.selectionRange));return n._sessionId=i._sessionId,n._itemId=i._itemId,n}e.to=t;function s(i,n,r){if(n=n??i._sessionId,r=r??i._itemId,n===void 0||r===void 0)throw new Error("invalid item");return{_sessionId:n,_itemId:r,kind:qi.from(i.kind),name:i.name,detail:i.detail??"",uri:i.uri,range:q.from(i.range),selectionRange:q.from(i.selectionRange),tags:i.tags?.map(nr.from)}}e.from=s}(av||(av={})),function(e){function t(s){if(s)return{value:s.value,tooltip:s.tooltip}}e.from=t}(RP||(RP={})),function(e){function t(r,o,a){const c=o.fileData;return c?new q3(new G3(c.name,y.revive(c.uri),c.id,bu(()=>a(c.id)))):r===ki.uriList&&o.uriListData?new ad(n(o.uriListData)):new ad(o.asString)}e.to=t;async function s(r,o,a=Ve()){const c=await o.asString();if(r===ki.uriList)return{id:a,asString:c,fileData:void 0,uriListData:i(c)};const l=o.asFile();return{id:a,asString:c,fileData:l?{name:l.name,uri:l.uri,id:l._itemId??l.id}:void 0}}e.from=s;function i(r){return wd.split(r).map(o=>{if(o.startsWith("#"))return o;try{return y.parse(o)}catch{}return o})}function n(r){return wd.create(r.map(o=>typeof o=="string"?o:y.revive(o)))}}(Wl||(Wl={})),function(e){function t(n,r){const o=n.items.map(([a,c])=>[a,Wl.to(a,c,r)]);return new cd(o)}e.toDataTransfer=t;async function s(n){return{items:await Promise.all(Array.from(n,async([o,a])=>[o,await Wl.from(o,a)]))}}e.from=s;async function i(n){return{items:await Promise.all(Array.from(n,async([o,a])=>[o,await Wl.from(o,a,a.id)]))}}e.fromList=i}(NP||(NP={})),function(e){function t(i,n){return{kind:"reply",agentId:i.participant??n?.agentId??"",subCommand:i.command??n?.command,message:i.prompt,title:i.label}}e.from=t;function s(i){return{prompt:i.message,label:i.title,participant:i.agentId,command:i.subCommand}}e.to=s}(cv||(cv={})),function(e){function t(i){switch(i){case 0:return Xs.System;case 1:return Xs.User;case 2:return Xs.Assistant}}e.to=t;function s(i){switch(i){case Xs.System:return 0;case Xs.User:return 1;case Xs.Assistant:return 2}return 1}e.from=s}(_a||(_a={})),function(e){function t(i){const n=i.content.map(a=>{if(a.type==="text")return new Nt(a.value);if(a.type==="tool_result"){const c=a.value.map(l=>l.type==="text"?new Nt(l.value):new Vi(l.value));return new gd(a.toolCallId,c,a.isError)}else{if(a.type==="image_url")return;if(a.type==="tool_use")return new Cl(a.toolCallId,a.name,a.parameters)}}).filter(a=>a!==void 0),r=_a.to(i.role);return new Jx(r,n,i.name)}e.to=t;function s(i){const n=_a.from(i.role),r=i.name;let o=i.content;typeof o=="string"&&(o=[new Nt(o)]);const a=o.map(c=>{if(c instanceof gd)return{type:"tool_result",toolCallId:c.callId,value:ai(c.content.map(l=>l instanceof Nt?{type:"text",value:l.value}:l instanceof Vi?{type:"prompt_tsx",value:l.value}:void 0)),isError:c.isError};if(c instanceof Cl)return{type:"tool_use",toolCallId:c.callId,name:c.name,parameters:c.input};if(c instanceof Nt)return{type:"text",value:c.value};if(typeof c!="string")throw new Error("Unexpected chat message content type");return{type:"text",value:c}});return{role:n,name:r,content:a}}e.from=s}(OP||(OP={})),function(e){function t(i){const n=i.content.map(a=>{if(a.type==="text")return new Nt(a.value);if(a.type==="tool_result"){const c=a.value.map(l=>l.type==="text"?new Nt(l.value):l.type==="data"?new Yn(l.value.data.buffer,l.value.mimeType):new Vi(l.value));return new mw(a.toolCallId,c,a.isError)}else return a.type==="image_url"?new Yn(a.value.data.buffer,a.value.mimeType):a.type==="data"?new Yn(a.data.buffer,a.mimeType):new Cl(a.toolCallId,a.name,a.parameters)}),r=_a.to(i.role);return new Zx(r,n,i.name)}e.to=t;function s(i){const n=_a.from(i.role),r=i.name;let o=i.content;typeof o=="string"&&(o=[new Nt(o)]);const a=o.map(c=>{if(c instanceof mw||c instanceof gd)return{type:"tool_result",toolCallId:c.callId,value:ai(c.content.map(l=>l instanceof Nt?{type:"text",value:l.value}:l instanceof Vi?{type:"prompt_tsx",value:l.value}:l instanceof Yn?{type:"data",value:{mimeType:l.mimeType,data:R.wrap(l.data)}}:void 0)),isError:c.isError};if(c instanceof Yn)return ST(c)?{type:"image_url",value:{mimeType:c.mimeType,data:R.wrap(c.data)}}:{type:"data",mimeType:c.mimeType,data:R.wrap(c.data)};if(c instanceof Cl)return{type:"tool_use",toolCallId:c.callId,name:c.name,parameters:c.input};if(c instanceof Nt)return{type:"text",value:c.value};if(typeof c!="string")throw new Error("Unexpected chat message content type llm 2");return{type:"text",value:c}});return{role:n,name:r,content:a}}e.from=s}(CP||(CP={})),function(e){function t(i){return{kind:"markdownContent",content:Qe.from(i.value)}}e.from=t;function s(i){return new iw(Qe.to(i.content))}e.to=s}(i1||(i1={})),function(e){function t(i){return{kind:"codeblockUri",uri:i.value,isEdit:i.isEdit}}e.from=t;function s(i){return new hw(y.revive(i.uri),i.isEdit)}e.to=s}(lv||(lv={})),function(e){function t(i){return{kind:"markdownVuln",content:Qe.from(i.value),vulnerabilities:i.vulnerabilities}}e.from=t;function s(i){return new nw(Qe.to(i.content),i.vulnerabilities)}e.to=s}(uv||(uv={})),function(e){function t(s){return{kind:"confirmation",title:s.title,message:s.message,data:s.data,buttons:s.buttons}}e.from=t}(hv||(hv={})),function(e){function t(i){const{value:n,baseUri:r}=i;function o(a,c){return a.map(l=>{const u=y.joinPath(c,l.name);return{label:l.name,uri:u,children:l.children&&o(l.children,u)}})}return{kind:"treeData",treeData:{label:ln(r),uri:r,children:o(n,r)}}}e.from=t;function s(i){const n=Qs(i.treeData);function r(c){return c.map(l=>({name:l.label,children:l.children&&r(l.children)}))}const o=n.uri,a=n.children?r(n.children):[];return new rw(a,o)}e.to=s}(n1||(n1={})),function(e){function t(i){const n=o=>y.isUri(o),r=o=>"name"in o;return{kind:"inlineReference",name:i.title,inlineReference:n(i.value)?i.value:r(i.value)?qd.from(i.value):Wi.from(i.value)}}e.from=t;function s(i){const n=Qs(i);return new ow(y.isUri(n.inlineReference)?n.inlineReference:"location"in n.inlineReference?qd.to(n.inlineReference):Wi.to(n.inlineReference),i.name)}e.to=s}(r1||(r1={})),function(e){function t(i){return{kind:"progressMessage",content:Qe.from(i.value)}}e.from=t;function s(i){return new aw(i.content.value)}e.to=s}(fv||(fv={})),function(e){function t(i){return{kind:"warning",content:Qe.from(i.value)}}e.from=t;function s(i){return new cw(i.content.value)}e.to=s}(dv||(dv={})),function(e){function t(s){return{kind:"extensions",extensions:s.extensions}}e.from=t}(pv||(pv={})),function(e){function t(i){return{kind:"move",uri:i.uri,range:q.from(i.range)}}e.from=t;function s(i){return new fw(y.revive(i.uri),q.to(i.range))}e.to=s}(mv||(mv={})),function(e){function t(i){return{kind:"prepareToolInvocation",toolName:i.toolName}}e.from=t;function s(i){return new pw(i.toolName)}e.to=s}(gv||(gv={})),function(e){function t(s){return{kind:"progressTask",content:Qe.from(s.value)}}e.from=t}(_P||(_P={})),function(e){function t(s){return{kind:"progressTaskResult",content:typeof s=="string"?Qe.from(s):void 0}}e.from=t}(MP||(MP={})),function(e){function t(i,n,r){return{kind:"command",command:n.toInternal(i.value,r)??{command:i.value.command,title:i.value.title}}}e.from=t;function s(i,n){return new lw(n.fromInternal(i.command)??{command:i.command.id,title:i.command.title})}e.to=s}(o1||(o1={})),function(e){function t(i){return{kind:"textEdit",uri:i.uri,edits:i.edits.map(n=>$i.from(n)),done:i.isDone}}e.from=t;function s(i){const n=new dw(y.revive(i.uri),i.edits.map(r=>$i.to(r)));return n.isDone=i.done,n}e.to=s}(wv||(wv={})),function(e){function t(s){return s.newCellMetadata?{editType:3,index:s.range.start,metadata:s.newCellMetadata}:s.newNotebookMetadata?{editType:5,metadata:s.newNotebookMetadata}:{editType:1,index:s.range.start,count:s.range.end-s.range.start,cells:s.newCells.map(Ca.from)}}e.from=t}(vv||(vv={})),function(e){function t(s){return{kind:"notebookEdit",uri:s.uri,edits:s.edits.map(vv.from),done:s.isDone}}e.from=t}(bv||(bv={})),function(e){function t(i){const n=vs.isThemeIcon(i.iconPath)?i.iconPath:y.isUri(i.iconPath)?{light:y.revive(i.iconPath)}:i.iconPath&&"light"in i.iconPath&&"dark"in i.iconPath&&y.isUri(i.iconPath.light)&&y.isUri(i.iconPath.dark)?{light:y.revive(i.iconPath.light),dark:y.revive(i.iconPath.dark)}:void 0;return typeof i.value=="object"&&"variableName"in i.value?{kind:"reference",reference:{variableName:i.value.variableName,value:y.isUri(i.value.value)||!i.value.value?i.value.value:Wi.from(i.value.value)},iconPath:n,options:i.options}:{kind:"reference",reference:y.isUri(i.value)||typeof i.value=="string"?i.value:Wi.from(i.value),iconPath:n,options:i.options}}e.from=t;function s(i){const n=Qs(i),r=o=>y.isUri(o)?o:Wi.to(o);return new uw(typeof n.reference=="string"?n.reference:"variableName"in n.reference?{variableName:n.reference.variableName,value:n.reference.value&&r(n.reference.value)}:r(n.reference))}e.to=s}(a1||(a1={})),function(e){function t(s){return{kind:"codeCitation",value:s.value,license:s.license,snippet:s.snippet}}e.from=t}(yv||(yv={})),function(e){function t(n,r,o){return n instanceof iw?i1.from(n):n instanceof ow?r1.from(n):n instanceof uw?a1.from(n):n instanceof aw?fv.from(n):n instanceof rw?n1.from(n):n instanceof lw?o1.from(n,r,o):n instanceof dw?wv.from(n):n instanceof Hx?bv.from(n):n instanceof nw?uv.from(n):n instanceof hw?lv.from(n):n instanceof cw?dv.from(n):n instanceof Fx?hv.from(n):n instanceof Bx?yv.from(n):n instanceof fw?mv.from(n):n instanceof zx?pv.from(n):n instanceof pw?gv.from(n):{kind:"markdownContent",content:Qe.from("")}}e.from=t;function s(n,r){switch(n.kind){case"reference":return a1.to(n);case"markdownContent":case"inlineReference":case"progressMessage":case"treeData":case"command":return i(n,r)}}e.to=s;function i(n,r){switch(n.kind){case"markdownContent":return i1.to(n);case"inlineReference":return r1.to(n);case"progressMessage":return;case"treeData":return n1.to(n);case"command":return o1.to(n,r)}}e.toContent=i}(UP||(UP={})),function(e){function t(s,i,n,r,o,a,c){const l=[],u=[];for(const f of s.variables.variables)f.kind==="tool"?l.push(f):f.kind==="toolset"?l.push(...f.value):u.push(f);const h={id:s.requestId,prompt:s.message,command:s.command,attempt:s.attempt??0,enableCommandDetection:s.enableCommandDetection??!0,isParticipantDetected:s.isParticipantDetected??!1,references:u.map(f=>xv.to(f,r,c)).filter(ku),toolReferences:l.map(kv.to),location:Ev.to(s.location),acceptedConfirmationData:s.acceptedConfirmationData,rejectedConfirmationData:s.rejectedConfirmationData,location2:i,toolInvocationToken:Object.freeze({sessionId:s.sessionId}),tools:o,model:n,editedFileEvents:s.editedFileEvents,modeInstructions:s.modeInstructions};return Tw(a,"chatParticipantPrivate")||(delete h.id,delete h.attempt,delete h.enableCommandDetection,delete h.isParticipantDetected,delete h.location,delete h.location2,delete h.editedFileEvents),Tw(a,"chatParticipantAdditions")||(delete h.acceptedConfirmationData,delete h.rejectedConfirmationData,delete h.tools),h}e.to=t}(jP||(jP={})),function(e){function t(s){return{prompt:s.prompt,files:s.files.map(i=>y.revive(i))}}e.to=t}(TP||(TP={})),function(e){function t(i){switch(i){case ei.Notebook:return Hi.Notebook;case ei.Terminal:return Hi.Terminal;case ei.Panel:return Hi.Panel;case ei.Editor:return Hi.Editor}}e.to=t;function s(i){switch(i){case Hi.Notebook:return ei.Notebook;case Hi.Terminal:return ei.Terminal;case Hi.Panel:return ei.Panel;case Hi.Editor:return ei.Editor}}e.from=s}(Ev||(Ev={})),function(e){function t(s,i,n){let r=s.value;if(!r){let o;try{o=JSON.stringify(s)}catch{o=`kind=${s.kind}, id=${s.id}, name=${s.name}`}n.error(`[ChatPromptReference] Ignoring invalid reference in variable: ${o}`);return}if(Ky(r))r=y.revive(r);else if(r&&typeof r=="object"&&"uri"in r&&"range"in r&&Ky(r.uri))r=Wi.to(Qs(r));else if(Yj(s)){const o=s.references?.[0]?.reference;r=new Wx(s.mimeType??"image/png",()=>Promise.resolve(new Uint8Array(Object.values(s.value))),o&&y.isUri(o)?o:void 0)}else if(s.kind==="diagnostic"){const o=s.filterSeverity&&Hl.to(s.filterSeverity),a=s.filterUri&&y.revive(s.filterUri).toString();r=new qx(i.map(([c,l])=>s.filterUri&&c.toString()!==a?[c,[]]:[c,l.filter(u=>!(o&&u.severity>o||s.filterRange&&!Ks.areIntersectingOrTouching(s.filterRange,q.from(u.range))))]).filter(([,c])=>c.length>0))}return{id:s.id,name:s.name,range:s.range&&[s.range.start,s.range.endExclusive],value:r,modelDescription:s.modelDescription}}e.to=t}(xv||(xv={})),function(e){function t(s){if(s.value)throw new Error("Invalid tool reference");return{name:s.id,range:s.range&&[s.range.start,s.range.endExclusive]}}e.to=t}(kv||(kv={})),function(e){function t(s,i,n){return{id:s.id,label:s.label,fullName:s.fullName,icon:s.icon?.id,value:s.values[0].value,insertText:s.insertText,detail:s.detail,documentation:s.documentation,command:i.toInternal(s.command,n)}}e.from=t}(FP||(FP={})),function(e){function t(n){return{errorDetails:n.errorDetails,metadata:i(n.metadata),nextQuestion:n.nextQuestion}}e.to=t;function s(n){return{errorDetails:n.errorDetails,metadata:n.metadata,nextQuestion:n.nextQuestion}}e.from=s;function i(n){return Ci(n,r=>{if(r.$mid===20)return new gw(Ci(r.content,i));if(r.$mid===21)return new Nt(r.value);if(r.$mid===22)return new Vi(r.value)})}}($v||($v={})),function(e){function t(s,i,n){if(i.action.kind==="vote")return;const r=$v.to(s);if(i.action.kind==="command"){const o=i.action.commandButton.command;return{action:{kind:"command",commandButton:{command:n.fromInternal(o)??{command:o.id,title:o.title}}},result:r}}else return i.action.kind==="followUp"?{action:{kind:"followUp",followup:cv.to(i.action.followup)},result:r}:i.action.kind==="inlineChat"?{action:{kind:"editor",accepted:i.action.action==="accepted"},result:r}:i.action.kind==="chatEditingSessionAction"?{action:{kind:"chatEditingSessionAction",outcome:new Map([["accepted",$a.Accepted],["rejected",$a.Rejected],["saved",$a.Saved]]).get(i.action.outcome)??$a.Rejected,uri:y.revive(i.action.uri),hasRemainingEdits:i.action.hasRemainingEdits},result:r}:{action:i.action,result:r}}e.to=t}(BP||(BP={})),function(e){function t(s,i,n){return"terminalCommand"in s?{terminalCommand:s.terminalCommand,shouldExecute:s.shouldExecute}:"uri"in s?{uri:s.uri}:i.toInternal(s,n)}e.from=t}(zP||(zP={})),function(e){function t(s){return{...s,documentation:Qe.fromStrict(s.documentation)}}e.from=t}(c1||(c1={})),function(e){function t(s,i){return Array.isArray(s)?{items:s.map(n=>c1.from(n))}:{items:s.items.map(n=>c1.from(n)),resourceRequestConfig:s.resourceRequestConfig?Sv.from(s.resourceRequestConfig,i):void 0}}e.from=t}(HP||(HP={})),function(e){function t(s,i){return{...s,pathSeparator:i,cwd:s.cwd}}e.from=t}(Sv||(Sv={})),function(e){function t(s){return{kind:Pv.to(s.kind),acceptedLength:s.acceptedLength}}e.to=t}(VP||(VP={})),function(e){function t(s){switch(s){case 0:return va.Word;case 1:return va.Line;case 2:return va.Suggest;default:return va.Unknown}}e.to=t}(Pv||(Pv={})),function(e){function t(s,i){if(s.kind===Pd.Ignored){const n=s.supersededBy?i(s.supersededBy):void 0;return{kind:Il.Ignored,supersededBy:n,userTypingDisagreed:s.userTypingDisagreed}}else if(s.kind===Pd.Accepted)return{kind:Il.Accepted};return{kind:Il.Rejected}}e.to=t}(WP||(WP={})),function(e){function t(s,i){return{id:i,label:s.label,description:s.description,canEdit:s.canEdit,collapsibleState:s.collapsibleState||0,contextValue:s.contextValue}}e.from=t}(qP||(qP={})),function(e){function t(s){return{name:s.id,description:s.modelDescription,inputSchema:s.inputSchema,tags:s.tags??[]}}e.to=t}(GP||(GP={})),function(e){function t(i){return new gw(i.content.map(n=>n.kind==="text"?new Nt(n.value):new Vi(n.value)))}e.to=t;function s(i,n){return i.toolResultMessage&&hS(n,"chatParticipantPrivate"),{content:i.content.map(r=>{if(r instanceof Nt)return{kind:"text",value:r.value};if(r instanceof Vi)return{kind:"promptTsx",value:r.value};throw new Error("Unknown LanguageModelToolResult part type")}),toolResultMessage:Qe.fromStrict(i.toolResultMessage),toolResultDetails:i.toolResultDetails?.map(r=>y.isUri(r)?r:Wi.from(r))}}e.from=s}(JP||(JP={})),function(e){function t(i){return new Yx(i.content.map(n=>{if(n.kind==="text")return new Nt(n.value);if(n.kind==="data"){const r=Object.values(Qn).includes(n.value.mimeType)?n.value.mimeType:void 0;if(!r)throw new Error("Invalid MIME type");return new Yn(n.value.data.buffer,r)}else return new Vi(n.value)}))}e.to=t;function s(i,n){i.toolResultMessage&&hS(n,"chatParticipantPrivate");let r=!1;const o={content:i.content.map(a=>{if(a instanceof Nt)return{kind:"text",value:a.value};if(a instanceof Vi)return{kind:"promptTsx",value:a.value};if(a instanceof Yn)return r=!0,{kind:"data",value:{mimeType:a.mimeType,data:R.wrap(a.data)}};throw new Error("Unknown LanguageModelToolResult part type")}),toolResultMessage:Qe.fromStrict(i.toolResultMessage),toolResultDetails:i.toolResultDetails?.map(a=>y.isUri(a)?a:Wi.from(a))};return r?new Fw(o):o}e.from=s}(ZP||(ZP={})),function(e){function t(s){return s}e.fromThemeIcon=t}(Iv||(Iv={})),function(e){function t(i){return{query:i.query,kind:s(i.kind),settings:i.settings}}e.fromSettingsSearchResult=t;function s(i){switch(i){case ir.EMBEDDED:return ir.EMBEDDED;case ir.LLM_RANKED:return ir.LLM_RANKED;case ir.CANCELED:return ir.CANCELED;default:throw new Error("Unknown AiSettingsSearchResultKind")}}}(YP||(YP={})),function(e){function t(i){return!!i.uri}function s(i){return zd.toSerialized(t(i)?{type:2,uri:i.uri,headers:Object.entries(i.headers)}:{type:1,cwd:i.cwd?.fsPath,args:i.args,command:i.command,env:i.env,envFile:void 0})}e.from=s}(QP||(QP={}))}}),KP,eI,tI,sI,iI,nI,rI,oI,PT,aI,cI,lI,Dv,IT,DT=v({"out-build/vs/workbench/api/common/extHost.protocol.js"(){"use strict";Bw(),function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"}(KP||(KP={})),function(e){e[e.UnknownInput=0]="UnknownInput",e[e.TextInput=1]="TextInput",e[e.TextDiffInput=2]="TextDiffInput",e[e.TextMergeInput=3]="TextMergeInput",e[e.NotebookInput=4]="NotebookInput",e[e.NotebookDiffInput=5]="NotebookDiffInput",e[e.CustomEditorInput=6]="CustomEditorInput",e[e.WebviewEditorInput=7]="WebviewEditorInput",e[e.TerminalEditorInput=8]="TerminalEditorInput",e[e.InteractiveEditorInput=9]="InteractiveEditorInput",e[e.ChatEditorInput=10]="ChatEditorInput",e[e.MultiDiffEditorInput=11]="MultiDiffEditorInput"}(eI||(eI={})),function(e){e[e.TAB_OPEN=0]="TAB_OPEN",e[e.TAB_CLOSE=1]="TAB_CLOSE",e[e.TAB_UPDATE=2]="TAB_UPDATE",e[e.TAB_MOVE=3]="TAB_MOVE"}(tI||(tI={})),function(e){e[e.Editable=0]="Editable",e[e.SupportsHotExit=1]="SupportsHotExit"}(sI||(sI={})),function(e){e[e.Int8Array=1]="Int8Array",e[e.Uint8Array=2]="Uint8Array",e[e.Uint8ClampedArray=3]="Uint8ClampedArray",e[e.Int16Array=4]="Int16Array",e[e.Uint16Array=5]="Uint16Array",e[e.Int32Array=6]="Int32Array",e[e.Uint32Array=7]="Uint32Array",e[e.Float32Array=8]="Float32Array",e[e.Float64Array=9]="Float64Array",e[e.BigInt64Array=10]="BigInt64Array",e[e.BigUint64Array=11]="BigUint64Array"}(iI||(iI={})),function(e){e[e.Text=1]="Text",e[e.Error=2]="Error",e[e.Rich=3]="Rich"}(nI||(nI={})),function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"}(rI||(rI={})),function(e){e[e.None=0]="None",e[e.Process=1]="Process",e[e.Output=2]="Output",e[e.Hybrid=3]="Hybrid"}(oI||(oI={})),PT=class yA{static{this.a=0}static mixin(t){return t._id=yA.a++,t}},function(e){e.label="a",e.kind="b",e.detail="c",e.documentation="d",e.sortText="e",e.filterText="f",e.preselect="g",e.insertText="h",e.insertTextRules="i",e.range="j",e.commitCharacters="k",e.additionalTextEdits="l",e.kindModifier="m",e.commandIdent="n",e.commandId="o",e.commandArguments="p"}(aI||(aI={})),function(e){e.defaultRanges="a",e.completions="b",e.isIncomplete="c",e.duration="d"}(cI||(cI={})),function(e){e[e.Workspace=0]="Workspace",e[e.TextDocument=1]="TextDocument"}(lI||(lI={})),Dv={MainThreadAuthentication:S("MainThreadAuthentication"),MainThreadBulkEdits:S("MainThreadBulkEdits"),MainThreadLanguageModels:S("MainThreadLanguageModels"),MainThreadEmbeddings:S("MainThreadEmbeddings"),MainThreadChatAgents2:S("MainThreadChatAgents2"),MainThreadCodeMapper:S("MainThreadCodeMapper"),MainThreadLanguageModelTools:S("MainThreadChatSkills"),MainThreadClipboard:S("MainThreadClipboard"),MainThreadCommands:S("MainThreadCommands"),MainThreadComments:S("MainThreadComments"),MainThreadConfiguration:S("MainThreadConfiguration"),MainThreadConsole:S("MainThreadConsole"),MainThreadDebugService:S("MainThreadDebugService"),MainThreadDecorations:S("MainThreadDecorations"),MainThreadDiagnostics:S("MainThreadDiagnostics"),MainThreadDialogs:S("MainThreadDiaglogs"),MainThreadDocuments:S("MainThreadDocuments"),MainThreadDocumentContentProviders:S("MainThreadDocumentContentProviders"),MainThreadTextEditors:S("MainThreadTextEditors"),MainThreadEditorInsets:S("MainThreadEditorInsets"),MainThreadEditorTabs:S("MainThreadEditorTabs"),MainThreadErrors:S("MainThreadErrors"),MainThreadTreeViews:S("MainThreadTreeViews"),MainThreadDownloadService:S("MainThreadDownloadService"),MainThreadLanguageFeatures:S("MainThreadLanguageFeatures"),MainThreadLanguages:S("MainThreadLanguages"),MainThreadLogger:S("MainThreadLogger"),MainThreadMessageService:S("MainThreadMessageService"),MainThreadOutputService:S("MainThreadOutputService"),MainThreadProgress:S("MainThreadProgress"),MainThreadQuickDiff:S("MainThreadQuickDiff"),MainThreadQuickOpen:S("MainThreadQuickOpen"),MainThreadStatusBar:S("MainThreadStatusBar"),MainThreadSecretState:S("MainThreadSecretState"),MainThreadStorage:S("MainThreadStorage"),MainThreadSpeech:S("MainThreadSpeechProvider"),MainThreadTelemetry:S("MainThreadTelemetry"),MainThreadTerminalService:S("MainThreadTerminalService"),MainThreadTerminalShellIntegration:S("MainThreadTerminalShellIntegration"),MainThreadWebviews:S("MainThreadWebviews"),MainThreadWebviewPanels:S("MainThreadWebviewPanels"),MainThreadWebviewViews:S("MainThreadWebviewViews"),MainThreadCustomEditors:S("MainThreadCustomEditors"),MainThreadUrls:S("MainThreadUrls"),MainThreadUriOpeners:S("MainThreadUriOpeners"),MainThreadProfileContentHandlers:S("MainThreadProfileContentHandlers"),MainThreadWorkspace:S("MainThreadWorkspace"),MainThreadFileSystem:S("MainThreadFileSystem"),MainThreadFileSystemEventService:S("MainThreadFileSystemEventService"),MainThreadExtensionService:S("MainThreadExtensionService"),MainThreadSCM:S("MainThreadSCM"),MainThreadSearch:S("MainThreadSearch"),MainThreadShare:S("MainThreadShare"),MainThreadTask:S("MainThreadTask"),MainThreadWindow:S("MainThreadWindow"),MainThreadLabelService:S("MainThreadLabelService"),MainThreadNotebook:S("MainThreadNotebook"),MainThreadNotebookDocuments:S("MainThreadNotebookDocumentsShape"),MainThreadNotebookEditors:S("MainThreadNotebookEditorsShape"),MainThreadNotebookKernels:S("MainThreadNotebookKernels"),MainThreadNotebookRenderers:S("MainThreadNotebookRenderers"),MainThreadInteractive:S("MainThreadInteractive"),MainThreadTheming:S("MainThreadTheming"),MainThreadTunnelService:S("MainThreadTunnelService"),MainThreadManagedSockets:S("MainThreadManagedSockets"),MainThreadTimeline:S("MainThreadTimeline"),MainThreadTesting:S("MainThreadTesting"),MainThreadLocalization:S("MainThreadLocalizationShape"),MainThreadMcp:S("MainThreadMcpShape"),MainThreadAiRelatedInformation:S("MainThreadAiRelatedInformation"),MainThreadAiEmbeddingVector:S("MainThreadAiEmbeddingVector"),MainThreadChatStatus:S("MainThreadChatStatus"),MainThreadAiSettingsSearch:S("MainThreadAiSettingsSearch")},IT={ExtHostCodeMapper:S("ExtHostCodeMapper"),ExtHostCommands:S("ExtHostCommands"),ExtHostConfiguration:S("ExtHostConfiguration"),ExtHostDiagnostics:S("ExtHostDiagnostics"),ExtHostDebugService:S("ExtHostDebugService"),ExtHostDecorations:S("ExtHostDecorations"),ExtHostDocumentsAndEditors:S("ExtHostDocumentsAndEditors"),ExtHostDocuments:S("ExtHostDocuments"),ExtHostDocumentContentProviders:S("ExtHostDocumentContentProviders"),ExtHostDocumentSaveParticipant:S("ExtHostDocumentSaveParticipant"),ExtHostEditors:S("ExtHostEditors"),ExtHostTreeViews:S("ExtHostTreeViews"),ExtHostFileSystem:S("ExtHostFileSystem"),ExtHostFileSystemInfo:S("ExtHostFileSystemInfo"),ExtHostFileSystemEventService:S("ExtHostFileSystemEventService"),ExtHostLanguages:S("ExtHostLanguages"),ExtHostLanguageFeatures:S("ExtHostLanguageFeatures"),ExtHostQuickOpen:S("ExtHostQuickOpen"),ExtHostQuickDiff:S("ExtHostQuickDiff"),ExtHostStatusBar:S("ExtHostStatusBar"),ExtHostShare:S("ExtHostShare"),ExtHostExtensionService:S("ExtHostExtensionService"),ExtHostLogLevelServiceShape:S("ExtHostLogLevelServiceShape"),ExtHostTerminalService:S("ExtHostTerminalService"),ExtHostTerminalShellIntegration:S("ExtHostTerminalShellIntegration"),ExtHostSCM:S("ExtHostSCM"),ExtHostSearch:S("ExtHostSearch"),ExtHostTask:S("ExtHostTask"),ExtHostWorkspace:S("ExtHostWorkspace"),ExtHostWindow:S("ExtHostWindow"),ExtHostWebviews:S("ExtHostWebviews"),ExtHostWebviewPanels:S("ExtHostWebviewPanels"),ExtHostCustomEditors:S("ExtHostCustomEditors"),ExtHostWebviewViews:S("ExtHostWebviewViews"),ExtHostEditorInsets:S("ExtHostEditorInsets"),ExtHostEditorTabs:S("ExtHostEditorTabs"),ExtHostProgress:S("ExtHostProgress"),ExtHostComments:S("ExtHostComments"),ExtHostSecretState:S("ExtHostSecretState"),ExtHostStorage:S("ExtHostStorage"),ExtHostUrls:S("ExtHostUrls"),ExtHostUriOpeners:S("ExtHostUriOpeners"),ExtHostProfileContentHandlers:S("ExtHostProfileContentHandlers"),ExtHostOutputService:S("ExtHostOutputService"),ExtHostLabelService:S("ExtHostLabelService"),ExtHostNotebook:S("ExtHostNotebook"),ExtHostNotebookDocuments:S("ExtHostNotebookDocuments"),ExtHostNotebookEditors:S("ExtHostNotebookEditors"),ExtHostNotebookKernels:S("ExtHostNotebookKernels"),ExtHostNotebookRenderers:S("ExtHostNotebookRenderers"),ExtHostNotebookDocumentSaveParticipant:S("ExtHostNotebookDocumentSaveParticipant"),ExtHostInteractive:S("ExtHostInteractive"),ExtHostChatAgents2:S("ExtHostChatAgents"),ExtHostLanguageModelTools:S("ExtHostChatSkills"),ExtHostChatProvider:S("ExtHostChatProvider"),ExtHostSpeech:S("ExtHostSpeech"),ExtHostEmbeddings:S("ExtHostEmbeddings"),ExtHostAiRelatedInformation:S("ExtHostAiRelatedInformation"),ExtHostAiEmbeddingVector:S("ExtHostAiEmbeddingVector"),ExtHostAiSettingsSearch:S("ExtHostAiSettingsSearch"),ExtHostTheming:S("ExtHostTheming"),ExtHostTunnelService:S("ExtHostTunnelService"),ExtHostManagedSockets:S("ExtHostManagedSockets"),ExtHostAuthentication:S("ExtHostAuthentication"),ExtHostTimeline:S("ExtHostTimeline"),ExtHostTesting:S("ExtHostTesting"),ExtHostTelemetry:S("ExtHostTelemetry"),ExtHostLocalization:S("ExtHostLocalization"),ExtHostMcp:S("ExtHostMcp")}}}),uI,AT=v({"out-build/vs/workbench/api/common/extHostRpcService.js"(){"use strict";ie(),uI=X("IExtHostRpcService")}}),ar,eo,Pn,to,hI,Av,fI,LT=v({"out-build/vs/workbench/api/common/extHostTestItem.js"(){"use strict";Q(),Aa(),Ld(),ES(),jw(),kS(),XP(),ar=(e,t,s,i)=>{let n=t;return{enumerable:!0,configurable:!1,get(){return n},set(r){if(!s(n,r)){const o=n;n=r,e.listener?.(i(r,o))}}}},eo=(e,t)=>e===t,Pn={range:(e,t)=>e===t?!0:!e||!t?!1:e.isEqual(t),label:eo,description:eo,sortText:eo,busy:eo,error:eo,canResolveChildren:eo,tags:(e,t)=>!(e.length!==t.length||e.some(s=>!t.find(i=>s.id===i.id)))},to=e=>t=>({op:4,update:e(t)}),hI=(e,t)=>({range:(()=>{let s;const i=to(n=>({range:Ks.lift(q.from(n))}));return{enumerable:!0,configurable:!1,get(){return s},set(n){e.listener?.({op:6}),Pn.range(s,n)||(s=n,e.listener?.(i(n)))}}})(),label:ar(e,t,Pn.label,to(s=>({label:s}))),description:ar(e,void 0,Pn.description,to(s=>({description:s}))),sortText:ar(e,void 0,Pn.sortText,to(s=>({sortText:s}))),canResolveChildren:ar(e,!1,Pn.canResolveChildren,s=>({op:2,state:s})),busy:ar(e,!1,Pn.busy,to(s=>({busy:s}))),error:ar(e,void 0,Pn.error,to(s=>({error:Qe.fromStrict(s)||null}))),tags:ar(e,[],Pn.tags,(s,i)=>({op:1,new:s.map(or.from),old:i.map(or.from)}))}),Av=class EA{constructor(t,s,i,n){if(s.includes("\0"))throw new Error(`Test IDs may not include the ${JSON.stringify(s)} symbol`);const r=xS(this,t);Object.defineProperties(this,{id:{value:s,enumerable:!0,writable:!1},uri:{value:n,enumerable:!0,writable:!1},parent:{enumerable:!1,get(){return r.parent instanceof fI?void 0:r.parent}},children:{value:yS(r,Hw,EA),enumerable:!0,writable:!1},...hI(r,i)})}},fI=class extends Av{constructor(e,t){super(e,e,t,void 0),this._isRoot=!0}}}}),dI,RT=v({"out-build/vs/workbench/api/common/extHostInitDataService.js"(){"use strict";ie(),dI=X("IExtHostInitDataService")}}),l1,pI,mI,gI,NT=v({"out-build/vs/workbench/services/extensions/common/extensionHostProtocol.js"(){"use strict";Le(),function(e){e[e.Desktop=1]="Desktop",e[e.Web=2]="Web"}(l1||(l1={})),function(e){e[e.VersionMismatch=55]="VersionMismatch",e[e.UnexpectedError=81]="UnexpectedError"}(pI||(pI={})),function(e){e[e.Initialized=0]="Initialized",e[e.Ready=1]="Ready",e[e.Terminate=2]="Terminate"}(mI||(mI={})),function(e){e.Start="START_NATIVE_LOG",e.End="END_NATIVE_LOG"}(gI||(gI={}))}});function OT(e){const t=Date.now()-new Date(e).getTime();return isNaN(t)?!1:t<1e3*60*60*24}var Lv,wI,vI,CT=v({"out-build/vs/workbench/api/common/extHostTelemetry.js"(){"use strict";ie(),re(),Ie(),RT(),NT(),xm(),hi(),Ft(),V(),ce(),Lv=class extends W{constructor(t,s,i){super(),this.n=s,this.a=this.B(new D),this.onDidChangeTelemetryEnabled=this.a.event,this.b=this.B(new D),this.onDidChangeTelemetryConfiguration=this.b.event,this.c={usage:!0,error:!0},this.f=0,this.h=!1,this.m=new Map,this.h=this.n.environment.isExtensionTelemetryLoggingOnly;const n=s.remote.isRemote?"remoteExtHostTelemetry":t?"workerExtHostTelemetry":"extHostTelemetry";this.j=this.B(i.createLogger(n,{name:m(2939,null,this.h?" (Not Sent)":""),hidden:!0,group:Im}))}getTelemetryConfiguration(){return this.f===3}getTelemetryDetails(){return{isCrashEnabled:this.f>=1,isErrorsEnabled:this.c.error?this.f>=2:!1,isUsageEnabled:this.c.usage?this.f>=3:!1}}instantiateLogger(t,s,i){const n=this.getTelemetryDetails(),r=new wI(s,i,t,this.j,this.h,this.getBuiltInCommonProperties(t),{isUsageEnabled:n.isUsageEnabled,isErrorsEnabled:n.isErrorsEnabled}),o=this.m.get(t.identifier.value)??[];return this.m.set(t.identifier.value,[...o,r]),r.apiTelemetryLogger}$initializeTelemetryLevel(t,s,i){this.f=t,this.c=i??{usage:!0,error:!0}}getBuiltInCommonProperties(t){const s=Object.create(null);switch(s["common.extname"]=`${t.publisher}.${t.name}`,s["common.extversion"]=t.version,s["common.vscodemachineid"]=this.n.telemetryInfo.machineId,s["common.vscodesessionid"]=this.n.telemetryInfo.sessionId,s["common.vscodecommithash"]=this.n.commit,s["common.sqmid"]=this.n.telemetryInfo.sqmId,s["common.devDeviceId"]=this.n.telemetryInfo.devDeviceId,s["common.vscodeversion"]=this.n.version,s["common.vscodereleasedate"]=this.n.date,s["common.isnewappinstall"]=OT(this.n.telemetryInfo.firstSessionDate),s["common.product"]=this.n.environment.appHost,this.n.uiKind){case l1.Web:s["common.uikind"]="web";break;case l1.Desktop:s["common.uikind"]="desktop";break;default:s["common.uikind"]="unknown"}return s["common.remotename"]=D9(FN(this.n.remote.authority)),s}$onDidChangeTelemetryLevel(t){this.g=this.getTelemetryConfiguration(),this.f=t;const s=this.getTelemetryDetails();this.m.forEach((i,n)=>{const r=i.filter(o=>!o.isDisposed);r.length===0?this.m.delete(n):this.m.set(n,r)}),this.m.forEach(i=>{for(const n of i)n.updateTelemetryEnablements(s.isUsageEnabled,s.isErrorsEnabled)}),this.g!==this.getTelemetryConfiguration()&&this.a.fire(this.getTelemetryConfiguration()),this.b.fire(this.getTelemetryDetails())}onExtensionError(t,s){const n=this.m.get(t.value)?.filter(o=>!o.isDisposed);if(!n)return this.m.delete(t.value),!1;let r=!1;for(const o of n)o.ignoreUnhandledExtHostErrors||(o.logError(s),r=!0);return r}},Lv=__decorate([__param(1,dI),__param(2,Lo)],Lv),wI=class{static validateSender(e){if(typeof e!="object")throw new TypeError("TelemetrySender argument is invalid");if(typeof e.sendEventData!="function")throw new TypeError("TelemetrySender.sendEventData must be a function");if(typeof e.sendErrorData!="function")throw new TypeError("TelemetrySender.sendErrorData must be a function");if(typeof e.flush<"u"&&typeof e.flush!="function")throw new TypeError("TelemetrySender.flush must be a function or undefined")}constructor(e,t,s,i,n,r,o){this.g=s,this.h=i,this.i=n,this.j=r,this.a=new D,this.ignoreUnhandledExtHostErrors=t?.ignoreUnhandledErrors??!1,this.b=t?.ignoreBuiltInCommonProperties??!1,this.c=t?.additionalCommonProperties,this.f=e,this.d={isUsageEnabled:o.isUsageEnabled,isErrorsEnabled:o.isErrorsEnabled}}updateTelemetryEnablements(e,t){this.e&&(this.d={isUsageEnabled:e,isErrorsEnabled:t},this.a.fire(this.e))}mixInCommonPropsAndCleanData(e){let t="properties"in e?e.properties??{}:e;return t=$m(t,[]),this.c&&(t=Co(t,this.c)),this.b||(t=Co(t,this.j)),"properties"in e?e.properties=t:e=t,e}k(e,t){this.f&&(this.g.publisher==="vscode"?e=this.g.name+"/"+e:e=this.g.identifier.value+"/"+e,t=this.mixInCommonPropsAndCleanData(t||{}),this.i||this.f?.sendEventData(e,t),this.h.trace(e,t))}logUsage(e,t){this.d.isUsageEnabled&&this.k(e,t)}logError(e,t){if(!(!this.d.isErrorsEnabled||!this.f))if(typeof e=="string")this.k(e,t);else{const s={name:e.name,message:e.message,stack:e.stack,cause:e.cause},i=$m(s,[]),n=new Error(i.message,{cause:i.cause});n.stack=i.stack,n.name=i.name,t=this.mixInCommonPropsAndCleanData(t||{}),this.i||this.f.sendErrorData(n,t),this.h.trace("exception",t)}}get apiTelemetryLogger(){if(!this.e){const e=this,t={logUsage:e.logUsage.bind(e),get isUsageEnabled(){return e.d.isUsageEnabled},get isErrorsEnabled(){return e.d.isErrorsEnabled},logError:e.logError.bind(e),dispose:e.dispose.bind(e),onDidChangeEnableStates:e.a.event.bind(e)};this.e=Object.freeze(t)}return this.e}get isDisposed(){return!this.f}dispose(){if(this.f?.flush){let e=this.f;this.f=void 0,Promise.resolve(e.flush()).then(e=void 0),this.e=void 0}else this.f=void 0}},vI=X("IExtHostTelemetry")}}),Rv,bI,yI,_T,EI,MT=v({"out-build/vs/workbench/api/common/extHostCommands.js"(){"use strict";be(),ww(),XP(),Ft(),DT(),kt(),Ie(),Oc(),Aa(),Lw(),Q(),V(),ie(),AT(),LT(),Le(),Bw(),Eo(),mo(),hi(),CT(),zt(),ge(),Rv=class{#e;#t;#s;constructor(t,s,i){this.b=new Map,this.c=new Map,this.#e=t.getProxy(Dv.MainThreadCommands),this.d=s,this.#s=i,this.#t=t.getProxy(Dv.MainThreadTelemetry),this.converter=new yI(this,n=>{const r=this.c.get(n);return r?.result===EI.Void?r:void 0},s),this.f=[{processArgument(n){return Qs(n)}},{processArgument(n){return Ci(n,function(r){if(Ks.isIRange(r))return q.to(r);if(Yr.isIPosition(r))return Sn.to(r);if(Ks.isIRange(r.range)&&y.isUri(r.uri))return rr.to(r);if(r instanceof R)return r.buffer.buffer;if(!Array.isArray(r))return r})}}]}registerArgumentProcessor(t){this.f.push(t)}registerApiCommand(t){const s=this.registerCommand(!1,t.id,async(...i)=>{const n=t.args.map((o,a)=>{if(!o.validate(i[a]))throw new Error(`Invalid argument '${o.name}' when running '${t.id}', received: ${typeof i[a]=="object"?JSON.stringify(i[a],null,"	"):i[a]} `);return o.convert(i[a])}),r=await this.executeCommand(t.internalId,...n);return t.result.convert(r,i,this.converter)},void 0,{description:t.description,args:t.args,returns:t.result.description});return this.c.set(t.id,t),new xl(()=>{s.dispose(),this.c.delete(t.id)})}registerCommand(t,s,i,n,r,o){if(this.d.trace("ExtHostCommands#registerCommand",s),!s.trim().length)throw new Error("invalid id");if(this.b.has(s))throw new Error(`command '${s}' already exists`);return this.b.set(s,{callback:i,thisArg:n,metadata:r,extension:o}),t&&this.#e.$registerCommand(s),new xl(()=>{this.b.delete(s)&&t&&this.#e.$unregisterCommand(s)})}executeCommand(t,...s){return this.d.trace("ExtHostCommands#executeCommand",t),this.g(t,s,!0)}async g(t,s,i){if(this.b.has(t))return this.#e.$fireCommandActivationEvent(t),this.h(t,s,!1);{let n=!1;const r=Ci(s,function(o){if(o instanceof Re)return Sn.from(o);if(o instanceof st)return q.from(o);if(o instanceof xn)return rr.from(o);if(Zr.isNotebookRange(o))return iv.from(o);if(o instanceof ArrayBuffer)return n=!0,R.wrap(new Uint8Array(o));if(o instanceof Uint8Array)return n=!0,R.wrap(o);if(o instanceof R)return n=!0,o;if(!Array.isArray(o))return o});try{const o=await this.#e.$executeCommand(t,n?new Fw(r):r,i);return Qs(o)}catch(o){if(o instanceof Error&&o.message==="$executeCommand:retry")return this.g(t,s,!1);throw o}}}async h(t,s,i){const n=this.b.get(t);if(!n)throw new Error("Unknown command");const{callback:r,thisArg:o,metadata:a}=n;if(a?.args)for(let l=0;l<a.args.length;l++)try{oL(s[l],a.args[l].constraint)}catch{throw new Error(`Running the contributed command: '${t}' failed. Illegal argument '${a.args[l].name}' - ${a.args[l].description}`)}const c=on.create();try{return await r.apply(o,s)}catch(l){if(t===this.converter.delegatingCommandId){const u=this.converter.getActualCommand(...s);u&&(t=u.command)}if(sn(l)||this.d.error(l,t,n.extension?.identifier),!i)throw l;if(n.extension?.identifier){const u=this.#s.onExtensionError(n.extension.identifier,l);this.d.trace("forwarded error to extension?",u,n.extension?.identifier)}throw new class extends Error{constructor(){super($r(l)),this.id=t,this.source=n.extension?.displayName??n.extension?.name}}}finally{this.j(n,t,c.elapsed())}}j(t,s,i){t.extension&&(s.startsWith("code.copilot.logStructured")||this.#t.$publicLog2("Extension:ActionExecuted",{extensionId:t.extension.identifier.value,id:new Fo(s),duration:i}))}$executeContributedCommand(t,...s){this.d.trace("ExtHostCommands#$executeContributedCommand",t);const i=this.b.get(t);return i?(s=s.map(n=>this.f.reduce((r,o)=>o.processArgument(r,i.extension),n)),this.h(t,s,!0)):Promise.reject(new Error(`Contributed command '${t}' does not exist.`))}getCommands(t=!1){return this.d.trace("ExtHostCommands#getCommands",t),this.#e.$getCommands().then(s=>(t&&(s=s.filter(i=>i[0]!=="_")),s))}$getContributedCommandMetadata(){const t=Object.create(null);for(const[s,i]of this.b){const{metadata:n}=i;n&&(t[s]=n)}return Promise.resolve(t)}},Rv=__decorate([__param(0,uI),__param(1,fe),__param(2,vI)],Rv),bI=X("IExtHostCommands"),yI=class{constructor(e,t,s){this.d=e,this.f=t,this.g=s,this.delegatingCommandId=`__vsc${Ve()}`,this.b=new Map,this.c=0,this.d.registerCommand(!0,this.delegatingCommandId,this.h,this)}toInternal(e,t){if(!e)return;const s={$ident:void 0,id:e.command,title:e.title,tooltip:e.tooltip};if(!e.command)return s;const i=this.f(e.command);if(i)s.id=i.internalId,s.arguments=i.args.map((n,r)=>n.convert(e.arguments&&e.arguments[r]));else if(Eu(e.arguments)){const n=`${e.command} /${++this.c}`;this.b.set(n,e),t.add(De(()=>{this.b.delete(n),this.g.trace("CommandsConverter#DISPOSE",n)})),s.$ident=n,s.id=this.delegatingCommandId,s.arguments=[n],this.g.trace("CommandsConverter#CREATE",e.command,n)}return s}fromInternal(e){return typeof e.$ident=="string"?this.b.get(e.$ident):{command:e.id,title:e.title,arguments:e.arguments}}getActualCommand(...e){return this.b.get(e[0])}h(...e){const t=this.getActualCommand(...e);return this.g.trace("CommandsConverter#EXECUTE",e[0],t?t.command:"MISSING"),t?this.d.executeCommand(t.command,...t.arguments||[]):Promise.reject(`Actual command not found, wanted to execute ${e[0]}`)}},_T=class Os{static{this.Uri=new Os("uri","Uri of a text document",t=>y.isUri(t),t=>t)}static{this.Position=new Os("position","A position in a text document",t=>Re.isPosition(t),Sn.from)}static{this.Range=new Os("range","A range in a text document",t=>st.isRange(t),q.from)}static{this.Selection=new Os("selection","A selection in a text document",t=>kl.isSelection(t),Yw.from)}static{this.Number=new Os("number","",t=>typeof t=="number",t=>t)}static{this.String=new Os("string","",t=>typeof t=="string",t=>t)}static Arr(t){return new Os(`${t.name}_array`,`Array of ${t.name}, ${t.description}`,s=>Array.isArray(s)&&s.every(i=>t.validate(i)),s=>s.map(i=>t.convert(i)))}static{this.CallHierarchyItem=new Os("item","A call hierarchy item",t=>t instanceof I0,Vl.from)}static{this.TypeHierarchyItem=new Os("item","A type hierarchy item",t=>t instanceof sw,av.from)}static{this.TestItem=new Os("testItem","A VS Code TestItem",t=>t instanceof Av,s1.from)}static{this.TestProfile=new Os("testProfile","A VS Code test profile",t=>t instanceof Px,rv.from)}constructor(t,s,i,n){this.name=t,this.description=s,this.validate=i,this.convert=n}optional(){return new Os(this.name,`(optional) ${this.description}`,t=>t==null||this.validate(t),t=>t===void 0?void 0:t===null?null:this.convert(t))}with(t,s){return new Os(t??this.name,s??this.description,this.validate,this.convert)}},EI=class xA{static{this.Void=new xA("no result",t=>t)}constructor(t,s){this.description=t,this.convert=s}}}});import*as UT from"http";import*as xI from"fs";var Nv,Ov,jT=v({"out-build/vs/workbench/api/node/extHostCLIServer.js"(){"use strict";pf(),MT(),Q(),Ie(),qm(),Nv=class{constructor(e,t,s){this.b=e,this.c=t,this.f=s,this.a=UT.createServer((i,n)=>this.h(i,n)),this.g().catch(i=>(t.error(i),""))}get ipcHandlePath(){return this.f}async g(){try{this.a.listen(this.ipcHandlePath),this.a.on("error",e=>this.c.error(e))}catch{this.c.error("Could not start open from terminal server.")}return this.f}h(e,t){const s=(n,r)=>{t.writeHead(n,{"content-type":"application/json"}),t.end(JSON.stringify(r||null),o=>o&&this.c.error(o))},i=[];e.setEncoding("utf8"),e.on("data",n=>i.push(n)),e.on("end",async()=>{try{const n=JSON.parse(i.join(""));let r;switch(n.type){case"open":r=await this.i(n);break;case"openExternal":r=await this.j(n);break;case"status":r=await this.l(n);break;case"extensionManagement":r=await this.k(n);break;case"clipboard":r=await this.m(n);break;default:s(404,`Unknown message type: ${n.type}`);break}s(200,r)}catch(n){const r=n instanceof Error?n.message:JSON.stringify(n);s(500,r),this.c.error("Error while processing pipe request",n)}})}async i(e){const{fileURIs:t,folderURIs:s,forceNewWindow:i,diffMode:n,mergeMode:r,addMode:o,removeMode:a,forceReuseWindow:c,gotoLineMode:l,waitMarkerFilePath:u,remoteAuthority:h}=e,f=[];if(Array.isArray(s))for(const b of s)try{f.push({folderUri:y.parse(b)})}catch{}if(Array.isArray(t))for(const b of t)try{nC(b)?f.push({workspaceUri:y.parse(b)}):f.push({fileUri:y.parse(b)})}catch{}const p=u?y.file(u):void 0,w={forceNewWindow:i,diffMode:n,mergeMode:r,addMode:o,removeMode:a,gotoLineMode:l,forceReuseWindow:c,preferNewWindow:!c&&!p&&!o&&!a,waitMarkerFileURI:p,remoteAuthority:h};this.b.executeCommand("_remoteCLI.windowOpen",f,w)}async j(e){for(const t of e.uris){const s=y.parse(t),i=s.scheme==="file"?s:t;await this.b.executeCommand("_remoteCLI.openExternal",i)}}async k(e){const t=i=>i?.map(n=>/\.vsix$/i.test(n)?y.parse(n):n),s={list:e.list,install:t(e.install),uninstall:t(e.uninstall),force:e.force};return await this.b.executeCommand("_remoteCLI.manageExtensions",s)}async l(e){return await this.b.executeCommand("_remoteCLI.getSystemStatus")}async m(e){return await this.b.executeCommand("_remoteCLI.setClipboard",e.content)}dispose(){this.a.close(),this.f&&process.platform!=="win32"&&xI.existsSync(this.f)&&xI.unlinkSync(this.f)}},Ov=class extends Nv{constructor(t,s){super(t,s,Zg())}},Ov=__decorate([__param(0,bI),__param(1,fe)],Ov)}});function kI(e){return e.match(/^['"].*['"]$/)&&(e=e.substring(1,e.length-1)),dr===1&&e&&e[1]===":"?e[0].toUpperCase()+e.substring(1):e}function TT(e){return!e.strictEnv}var $I=v({"out-build/vs/platform/terminal/common/terminalEnvironment.js"(){"use strict";te()}});function SI(e,t){if(t)if(me)for(const s in t){let i=s;for(const r in e)if(s.toLowerCase()===r.toLowerCase()){i=r;break}const n=t[s];n!==void 0&&PI(e,i,n)}else Object.keys(t).forEach(s=>{const i=t[s];i!==void 0&&PI(e,s,i)})}function PI(e,t,s){typeof s=="string"?e[t]=s:delete e[t]}function FT(e,t,s,i){e.TERM_PROGRAM="vscode",t&&(e.TERM_PROGRAM_VERSION=t),BT(e,i)&&(e.LANG=zT(s)),e.COLORTERM="truecolor"}function II(e,t){if(t)for(const s of Object.keys(t)){const i=t[s];i!=null&&(e[s]=i)}}async function DI(e,t){return await Promise.all(Object.entries(t).map(async([s,i])=>{if(typeof i=="string")try{t[s]=await e(i)}catch{t[s]=i}})),t}function BT(e,t){if(t==="on")return!0;if(t==="auto"){const s=e.LANG;return!s||s.search(/\.UTF\-8$/)===-1&&s.search(/\.utf8$/)===-1&&s.search(/\.euc.+/)===-1}return!1}function zT(e){const t=e?e.split("-"):[],s=t.length;if(s===0)return"en_US.UTF-8";if(s===1){const i={af:"ZA",am:"ET",be:"BY",bg:"BG",ca:"ES",cs:"CZ",da:"DK",de:"DE",el:"GR",en:"US",es:"ES",et:"EE",eu:"ES",fi:"FI",fr:"FR",he:"IL",hr:"HR",hu:"HU",hy:"AM",is:"IS",it:"IT",ja:"JP",kk:"KZ",ko:"KR",lt:"LT",nl:"NL",no:"NO",pl:"PL",pt:"BR",ro:"RO",ru:"RU",sk:"SK",sl:"SI",sr:"YU",sv:"SE",tr:"TR",uk:"UA",zh:"CN"};t[0]in i&&t.push(i[t[0]])}else t[1]=t[1].toUpperCase();return t.join("_")+".UTF-8"}async function HT(e,t,s,i,n,r){if(e.cwd){const a=typeof e.cwd=="object"?e.cwd.fsPath:e.cwd,c=await AI(a,s);return kI(c||a)}let o;return!e.ignoreConfigurationCwd&&n&&(s&&(n=await AI(n,s,r)),n&&(mr(n)?o=n:i&&(o=_(i.fsPath,n)))),o||(o=i?i.fsPath:t||""),kI(o)}async function AI(e,t,s){if(t)try{return await t(e)}catch(i){s?.error("Could not resolve terminal cwd",i);return}return e}function VT(e,t,s){if(s)return i=>s.resolveWithEnvironment(t,e,i)}async function WT(e,t,s,i,n,r){const o={};if(e.strictEnv)II(o,e.env);else{II(o,r);const a={...t};s&&(a&&await DI(s,a),e.env&&await DI(s,e.env)),Cs&&(o.VSCODE_NODE_OPTIONS&&(o.NODE_OPTIONS=o.VSCODE_NODE_OPTIONS,delete o.VSCODE_NODE_OPTIONS),o.VSCODE_NODE_REPL_EXTERNAL_MODULE&&(o.NODE_REPL_EXTERNAL_MODULE=o.VSCODE_NODE_REPL_EXTERNAL_MODULE,delete o.VSCODE_NODE_REPL_EXTERNAL_MODULE)),fN(o,"VSCODE_IPC_HOOK_CLI","VSCODE_PROXY_URI"),SI(o,a),SI(o,e.env),FT(o,i,Is,n)}return o}var qT=v({"out-build/vs/workbench/contrib/terminal/common/terminalEnvironment.js"(){"use strict";he(),Q(),nh(),te(),$I(),be()}});function ql(e,t=me){return Yy(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}var LI,GT=v({"out-build/vs/base/common/labels.js"(){"use strict";an(),he(),te(),ct(),at(),function(e){e[e.TEXT=0]="TEXT",e[e.VARIABLE=1]="VARIABLE",e[e.SEPARATOR=2]="SEPARATOR"}(LI||(LI={}))}}),RI,Be,NI,as,OI=v({"out-build/vs/workbench/services/configurationResolver/common/configurationResolver.js"(){"use strict";ge(),ie(),RI=X("configurationResolverService"),function(e){e.Unknown="unknown",e.Env="env",e.Config="config",e.Command="command",e.Input="input",e.ExtensionInstallFolder="extensionInstallFolder",e.WorkspaceFolder="workspaceFolder",e.Cwd="cwd",e.WorkspaceFolderBasename="workspaceFolderBasename",e.UserHome="userHome",e.LineNumber="lineNumber",e.ColumnNumber="columnNumber",e.SelectedText="selectedText",e.File="file",e.FileWorkspaceFolder="fileWorkspaceFolder",e.FileWorkspaceFolderBasename="fileWorkspaceFolderBasename",e.RelativeFile="relativeFile",e.RelativeFileDirname="relativeFileDirname",e.FileDirname="fileDirname",e.FileExtname="fileExtname",e.FileBasename="fileBasename",e.FileBasenameNoExtension="fileBasenameNoExtension",e.FileDirnameBasename="fileDirnameBasename",e.ExecPath="execPath",e.ExecInstallFolder="execInstallFolder",e.PathSeparator="pathSeparator",e.PathSeparatorAlias="/"}(Be||(Be={})),NI=Object.values(Be).filter(e=>typeof e=="string"),as=class extends nn{constructor(e,t){super(t),this.variable=e}}}}),u1,CI=v({"out-build/vs/workbench/services/configurationResolver/common/configurationResolverExpression.js"(){"use strict";wr(),te(),u1=class wb{static{this.VARIABLE_LHS="${"}constructor(t){this.a=new Map,this.d=new Set,typeof t=="string"?(this.c=!0,this.b={value:t}):(this.c=!1,this.b=structuredClone(t))}static parse(t){if(t instanceof wb)return t;const s=new wb(t);return s.e(),s.g(s.b),s}e(){const t=this.b,s=me?"windows":Cs?"osx":ut?"linux":void 0;s&&t&&typeof t=="object"&&t.hasOwnProperty(s)&&Object.keys(t[s]).forEach(i=>t[i]=t[s][i]),delete t.windows,delete t.osx,delete t.linux}f(t,s){if(t[s]!=="$"||t[s+1]!=="{")return;let i=s+2,n=1;for(;i<t.length;){if(t[i]==="{")n++;else if(t[i]==="}"&&(n--,n===0))break;i++}if(n!==0)return;const r=t.slice(s,i+1),o=t.substring(s+2,i),a=o.indexOf(":");return a===-1?{replacement:{id:r,name:o,inner:o},end:i}:{replacement:{id:r,inner:o,name:o.slice(0,a),arg:o.slice(a+1)},end:i}}g(t){if(!(typeof t!="object"||t===null)){if(Array.isArray(t)){for(let s=0;s<t.length;s++){const i=t[s];typeof i=="string"?this.h(t,s,i):this.g(i)}return}for(const[s,i]of Object.entries(t))this.h(t,s,s,!0),typeof i=="string"?this.h(t,s,i):this.g(i)}}h(t,s,i,n,r){let o=0;for(;o<i.length;){const a=i.indexOf("${",o);if(a===-1)break;const c=this.f(i,a);if(c){if(o=c.end+1,r?.includes(c.replacement.id))continue;const l=this.a.get(c.replacement.id)||{locations:[],replacement:c.replacement},u={object:t,propertyName:s,replaceKeyName:n};l.locations.push(u),this.a.set(c.replacement.id,l),l.resolved?this.j(c.replacement,u,l.resolved,r):this.d.forEach(h=>h(c.replacement))}else o=a+2}}*unresolved(){const t=new Map,s=i=>{t.set(i.id,i)};for(const i of this.a.values())i.resolved===void 0&&t.set(i.replacement.id,i.replacement);for(this.d.add(s);;){const i=Ni.first(t);if(!i)break;const[n,r]=i;yield r,t.delete(n)}this.d.delete(s)}resolved(){return Ni.map(Ni.filter(this.a.values(),t=>!!t.resolved),t=>[t.replacement,t.resolved])}resolve(t,s){typeof s!="object"&&(s={value:String(s)});const i=this.a.get(t.id);if(i&&(i.resolved=s,s.value!==void 0))for(const n of i.locations||Ni.empty())this.j(t,n,s)}j(t,{replaceKeyName:s,propertyName:i,object:n},r,o=[]){if(r.value!==void 0){if(o.push(t.id),s&&typeof i=="string"){const a=n[i],c=i.replaceAll(t.id,r.value);delete n[i],n[c]=a,this.m(n,i,c),this.h(n,c,r.value,!0,o)}else n[i]=n[i].replaceAll(t.id,r.value),this.h(n,i,r.value,!1,o);o.pop()}}m(t,s,i){for(const n of this.a.values())for(const r of n.locations)r.object===t&&r.propertyName===s&&(r.propertyName=i)}toObject(){return this.c?this.b.value:this.b}}}}),_I,JT=v({"out-build/vs/workbench/services/configurationResolver/common/variableResolver.js"(){"use strict";GT(),he(),te(),ri(),be(),ce(),OI(),CI(),_I=class{constructor(e,t,s,i){this.h=new Map,this.resolvableVariables=new Set(NI),this.a=e,this.b=t,this.g=s,i&&(this.c=i.then(n=>this.i(n)))}i(e){if(me){const t=Object.create(null);return Object.keys(e).forEach(s=>{t[s.toLowerCase()]=e[s]}),t}return e}async resolveWithEnvironment(e,t,s){const i=u1.parse(s);for(const n of i.unresolved()){const r=await this.l(n,t?.uri,e);r!==void 0&&i.resolve(n,String(r))}return i.toObject()}async resolveAsync(e,t){const s=u1.parse(t);for(const i of s.unresolved()){const n=await this.l(i,e?.uri);n!==void 0&&s.resolve(i,String(n))}return s.toObject()}resolveWithInteractionReplace(e,t){throw new Error("resolveWithInteractionReplace not implemented.")}resolveWithInteraction(e,t){throw new Error("resolveWithInteraction not implemented.")}contributeVariable(e,t){if(this.h.has(e))throw new Error("Variable "+e+" is contributed twice.");this.resolvableVariables.add(e),this.h.set(e,t)}j(e){return this.b?this.b.getUriLabel(e,{noPrefix:!0}):e.fsPath}async l(e,t,s,i){const n={env:s!==void 0?this.i(s):await this.c,userHome:s!==void 0?void 0:await this.g},{name:r,arg:o}=e,a=u=>{const h=this.a.getFilePath();if(h)return ql(h);throw new as(u,m(14096,null,e.id))},c=u=>{const h=a(u);if(this.a.getWorkspaceFolderPathForFile){const f=this.a.getWorkspaceFolderPathForFile();if(f)return ql(f)}throw new as(u,m(14097,null,e.id,ht(h)))},l=u=>{if(o){const h=this.a.getFolderUri(o);if(h)return h;throw new as(u,m(14098,null,u,o))}if(t)return t;throw this.a.getWorkspaceFolderCount()>1?new as(u,m(14099,null,u)):new as(u,m(14100,null,u))};switch(r){case"env":if(o){if(n.env){const u=n.env[me?o.toLowerCase():o];if(ue(u))return u}return""}throw new as(Be.Env,m(14101,null,e.id));case"config":if(o){const u=this.a.getConfigurationValue(t,o);if(At(u))throw new as(Be.Config,m(14102,null,e.id,o));if(ft(u))throw new as(Be.Config,m(14103,null,e.id,o));return u}throw new as(Be.Config,m(14104,null,e.id));case"command":return this.m(Be.Command,e.id,o,i,"command");case"input":return this.m(Be.Input,e.id,o,i,"input");case"extensionInstallFolder":if(o){const u=await this.a.getExtension(o);if(!u)throw new as(Be.ExtensionInstallFolder,m(14105,null,e.id,o));return this.j(u.extensionLocation)}throw new as(Be.ExtensionInstallFolder,m(14106,null,e.id));default:switch(r){case"workspaceRoot":case"workspaceFolder":{const u=l(Be.WorkspaceFolder);return u?ql(this.j(u)):void 0}case"cwd":{if(!t&&!o)return en();const u=l(Be.Cwd);return u?ql(this.j(u)):void 0}case"workspaceRootFolderName":case"workspaceFolderBasename":{const u=l(Be.WorkspaceFolderBasename);return u?ql(ht(this.j(u))):void 0}case"userHome":if(n.userHome)return n.userHome;throw new as(Be.UserHome,m(14107,null,e.id));case"lineNumber":{const u=this.a.getLineNumber();if(u)return u;throw new as(Be.LineNumber,m(14108,null,e.id))}case"columnNumber":{const u=this.a.getColumnNumber();if(u)return u;throw new Error(m(14109,null,e.id))}case"selectedText":{const u=this.a.getSelectedText();if(u)return u;throw new as(Be.SelectedText,m(14110,null,e.id))}case"file":return a(Be.File);case"fileWorkspaceFolder":return c(Be.FileWorkspaceFolder);case"fileWorkspaceFolderBasename":return ht(c(Be.FileWorkspaceFolderBasename));case"relativeFile":return t||o?po(this.j(l(Be.RelativeFile)),a(Be.RelativeFile)):a(Be.RelativeFile);case"relativeFileDirname":{const u=Ut(a(Be.RelativeFileDirname));if(t||o){const h=po(this.j(l(Be.RelativeFileDirname)),u);return h.length===0?".":h}return u}case"fileDirname":return Ut(a(Be.FileDirname));case"fileExtname":return gr(a(Be.FileExtname));case"fileBasename":return ht(a(Be.FileBasename));case"fileBasenameNoExtension":{const u=ht(a(Be.FileBasenameNoExtension));return u.slice(0,u.length-gr(u).length)}case"fileDirnameBasename":return ht(Ut(a(Be.FileDirnameBasename)));case"execPath":{const u=this.a.getExecPath();return u||e.id}case"execInstallFolder":{const u=this.a.getAppRoot();return u||e.id}case"pathSeparator":case"/":return qt;default:try{return this.m(Be.Unknown,e.id,o,i,void 0)}catch{return e.id}}}}m(e,t,s,i,n){if(s&&i){const r=n===void 0?i[s]:i[n+":"+s];if(typeof r=="string")return r;throw new as(e,m(14111,null,t))}return t}}}});import*as MI from"os";var UI,jI,ZT=v({"out-build/vs/server/node/remoteTerminalChannel.js"(){"use strict";re(),Ft(),V(),he(),te(),Q(),pf(),Sf(),jT(),IE(),l0(),qT(),JT(),C2(),Ae(),$I(),UI=class extends _I{constructor(e,t,s,i,n){super({getFolderUri:r=>{const o=t.filter(a=>a.name===r);if(o&&o.length>0)return o[0].uri},getWorkspaceFolderCount:()=>t.length,getConfigurationValue:(r,o)=>i[`config:${o}`],getExecPath:()=>e.VSCODE_EXEC_PATH,getAppRoot:()=>e.VSCODE_CWD,getFilePath:()=>{if(s)return Hs(s.fsPath)},getSelectedText:()=>i.selectedText,getLineNumber:()=>i.lineNumber,getColumnNumber:()=>i.columnNumber,getExtension:async r=>{const a=(await n.getInstalled()).find(c=>c.identifier.id===r);return a&&{extensionLocation:a.location}}},void 0,Promise.resolve(MI.homedir()),Promise.resolve(e))}},jI=class extends W{constructor(e,t,s,i,n,r){super(),this.g=e,this.h=t,this.j=s,this.m=i,this.n=n,this.r=r,this.a=0,this.b=new Map,this.c=this.B(new D),this.onExecuteCommand=this.c.event}async call(e,t,s){switch(t){case"$restartPtyHost":return this.j.restartPtyHost.apply(this.j,s);case"$createProcess":{const i=yl(e.remoteAuthority);return this.s(i,s)}case"$attachToProcess":return this.j.attachToProcess.apply(this.j,s);case"$detachFromProcess":return this.j.detachFromProcess.apply(this.j,s);case"$listProcesses":return this.j.listProcesses.apply(this.j,s);case"$getLatency":return this.j.getLatency.apply(this.j,s);case"$getPerformanceMarks":return this.j.getPerformanceMarks.apply(this.j,s);case"$orphanQuestionReply":return this.j.orphanQuestionReply.apply(this.j,s);case"$acceptPtyHostResolvedVariables":return this.j.acceptPtyHostResolvedVariables.apply(this.j,s);case"$start":return this.j.start.apply(this.j,s);case"$input":return this.j.input.apply(this.j,s);case"$sendSignal":return this.j.sendSignal.apply(this.j,s);case"$acknowledgeDataEvent":return this.j.acknowledgeDataEvent.apply(this.j,s);case"$shutdown":return this.j.shutdown.apply(this.j,s);case"$resize":return this.j.resize.apply(this.j,s);case"$clearBuffer":return this.j.clearBuffer.apply(this.j,s);case"$getInitialCwd":return this.j.getInitialCwd.apply(this.j,s);case"$getCwd":return this.j.getCwd.apply(this.j,s);case"$processBinary":return this.j.processBinary.apply(this.j,s);case"$sendCommandResult":return this.u(s[0],s[1],s[2]);case"$installAutoReply":return this.j.installAutoReply.apply(this.j,s);case"$uninstallAllAutoReplies":return this.j.uninstallAllAutoReplies.apply(this.j,s);case"$getDefaultSystemShell":return this.w.apply(this,s);case"$getProfiles":return this.y.apply(this,s);case"$getEnvironment":return this.z();case"$getWslPath":return this.C(s[0],s[1]);case"$getTerminalLayoutInfo":return this.j.getTerminalLayoutInfo(s);case"$setTerminalLayoutInfo":return this.j.setTerminalLayoutInfo(s);case"$serializeTerminalState":return this.j.serializeTerminalState.apply(this.j,s);case"$reviveTerminalProcesses":return this.j.reviveTerminalProcesses.apply(this.j,s);case"$getRevivedPtyNewId":return this.j.getRevivedPtyNewId.apply(this.j,s);case"$setUnicodeVersion":return this.j.setUnicodeVersion.apply(this.j,s);case"$reduceConnectionGraceTime":return this.D();case"$updateIcon":return this.j.updateIcon.apply(this.j,s);case"$updateTitle":return this.j.updateTitle.apply(this.j,s);case"$updateProperty":return this.j.updateProperty.apply(this.j,s);case"$refreshProperty":return this.j.refreshProperty.apply(this.j,s);case"$requestDetachInstance":return this.j.requestDetachInstance(s[0],s[1]);case"$acceptDetachedInstance":return this.j.acceptDetachInstanceReply(s[0],s[1]);case"$freePortKillProcess":return this.j.freePortKillProcess.apply(this.j,s);case"$acceptDetachInstanceReply":return this.j.acceptDetachInstanceReply.apply(this.j,s)}throw new Error(`IPC Command ${t} not found`)}listen(e,t,s){switch(t){case"$onPtyHostExitEvent":return this.j.onPtyHostExit||B.None;case"$onPtyHostStartEvent":return this.j.onPtyHostStart||B.None;case"$onPtyHostUnresponsiveEvent":return this.j.onPtyHostUnresponsive||B.None;case"$onPtyHostResponsiveEvent":return this.j.onPtyHostResponsive||B.None;case"$onPtyHostRequestResolveVariablesEvent":return this.j.onPtyHostRequestResolveVariables||B.None;case"$onProcessDataEvent":return this.j.onProcessData;case"$onProcessReadyEvent":return this.j.onProcessReady;case"$onProcessExitEvent":return this.j.onProcessExit;case"$onProcessReplayEvent":return this.j.onProcessReplay;case"$onProcessOrphanQuestion":return this.j.onProcessOrphanQuestion;case"$onExecuteCommand":return this.onExecuteCommand;case"$onDidRequestDetach":return this.j.onDidRequestDetach||B.None;case"$onDidChangeProperty":return this.j.onDidChangeProperty}throw new Error(`IPC Command ${t} not found`)}async s(e,t){const s={name:t.shellLaunchConfig.name,executable:t.shellLaunchConfig.executable,args:t.shellLaunchConfig.args,cwd:typeof t.shellLaunchConfig.cwd=="string"||typeof t.shellLaunchConfig.cwd>"u"?t.shellLaunchConfig.cwd:y.revive(e.transformIncoming(t.shellLaunchConfig.cwd)),env:t.shellLaunchConfig.env,useShellEnvironment:t.shellLaunchConfig.useShellEnvironment,reconnectionProperties:t.shellLaunchConfig.reconnectionProperties,type:t.shellLaunchConfig.type,isFeatureTerminal:t.shellLaunchConfig.isFeatureTerminal,tabActions:t.shellLaunchConfig.tabActions,shellIntegrationEnvironmentReporting:t.shellLaunchConfig.shellIntegrationEnvironmentReporting},i=await O2(t.resolverEnv,!!t.shellLaunchConfig.useShellEnvironment,Is,this.g,this.h,this.r);this.h.trace("baseEnv",i);const n=k=>({uri:y.revive(e.transformIncoming(k.uri)),name:k.name,index:k.index,toResource:()=>{throw new Error("Not implemented")}}),r=t.workspaceFolders.map(n),o=t.activeWorkspaceFolder?n(t.activeWorkspaceFolder):void 0,a=t.activeFileResource?y.revive(e.transformIncoming(t.activeFileResource)):void 0,c=new UI(i,r,a,t.resolvedVariables,this.n),l=VT(o,process.env,c),u=await HT(s,MI.homedir(),l,o?.uri,t.configuration["terminal.integrated.cwd"],this.h);s.cwd=u;const h=me?"terminal.integrated.env.windows":Cs?"terminal.integrated.env.osx":"terminal.integrated.env.linux",f=t.configuration[h],p=await WT(s,f,l,this.m.version,t.configuration["terminal.integrated.detectLocale"],i);if(TT(s)){const k=[];for(const[Ee,O,z]of t.envVariableCollections)k.push([Ee,{map:AU(O),descriptionMap:LU(z)}]);const I=new Map(k),M=new PE(I),j=o?o??void 0:void 0;await M.applyToProcessEnvironment(p,{workspaceFolder:j},l)}this.h.debug("Terminal process launching on remote agent",{shellLaunchConfig:s,initialCwd:u,cols:t.cols,rows:t.rows,env:p});const g=Zg();p.VSCODE_IPC_HOOK_CLI=g;const w=await this.j.createProcess(s,u,t.cols,t.rows,t.unicodeVersion,p,i,t.options,t.shouldPersistTerminal,t.workspaceId,t.workspaceName),b={executeCommand:(k,...I)=>this.t(w,k,I,e)},x=new Nv(b,this.h,g);return this.j.onProcessExit(k=>k.id===w&&x.dispose()),{persistentTerminalId:w,resolvedShellLaunchConfig:s}}t(e,t,s,i){const{resolve:n,reject:r,promise:o}=BL(),a=++this.a;this.b.set(a,{resolve:n,reject:r,uriTransformer:i});const c=Ci(s,l=>{if(l&&l.$mid===1)return i.transformOutgoing(l);if(l&&l instanceof y)return i.transformOutgoingURI(l)});return this.c.fire({reqId:a,persistentProcessId:e,commandId:t,commandArgs:c}),o}u(e,t,s){const i=this.b.get(e);if(!i)return;this.b.delete(e);const n=Ci(s,r=>{if(r&&r.$mid===1)return i.uriTransformer.transformIncoming(r)});t?i.reject(n):i.resolve(n)}w(e){return this.j.getDefaultSystemShell(e)}async y(e,t,s,i){return this.j.getProfiles(e,t,s,i)||[]}z(){return{...process.env}}C(e,t){return this.j.getWslPath(e,t)}D(){return this.j.reduceConnectionGraceTime()}}}}),Gl,TI,YT,FI,QT,Jl,Cv,Zl,h1,_v,BI,XT=v({"out-build/vs/workbench/services/configuration/common/configuration.js"(){"use strict";Yt(),ie(),Gl=".vscode",TI="settings",YT=`${Gl}/${TI}.json`,FI=[4,5,6],QT=[1,...FI],Jl="tasks",Cv="launch",Zl="mcp",h1=Object.create(null),h1[Jl]=`${Gl}/${Jl}.json`,h1[Cv]=`${Gl}/${Cv}.json`,h1[Zl]=`${Gl}/${Zl}.json`,_v=Object.create(null),_v[Jl]=`${Jl}.json`,_v[Zl]=`${Zl}.json`,BI=Zt}}),zI,HI,KT=v({"out-build/vs/platform/label/common/label.js"(){"use strict";ie(),zI=X("labelService"),function(e){e[e.SHORT=0]="SHORT",e[e.MEDIUM=1]="MEDIUM",e[e.LONG=2]="LONG"}(HI||(HI={}))}}),VI,eF=v({"out-build/vs/workbench/contrib/terminal/common/environmentVariable.js"(){"use strict";ie(),VI=X("environmentVariableService")}}),WI,Mv,tF=v({"out-build/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js"(){"use strict";XT(),QE(),qm(),l0(),OI(),Ow(),lS(),Se(),KT(),eF(),o0(),CI(),WI="remoteterminal",Mv=class{get onPtyHostExit(){return this.b.listen("$onPtyHostExitEvent")}get onPtyHostStart(){return this.b.listen("$onPtyHostStartEvent")}get onPtyHostUnresponsive(){return this.b.listen("$onPtyHostUnresponsiveEvent")}get onPtyHostResponsive(){return this.b.listen("$onPtyHostResponsiveEvent")}get onPtyHostRequestResolveVariables(){return this.b.listen("$onPtyHostRequestResolveVariablesEvent")}get onProcessData(){return this.b.listen("$onProcessDataEvent")}get onProcessExit(){return this.b.listen("$onProcessExitEvent")}get onProcessReady(){return this.b.listen("$onProcessReadyEvent")}get onProcessReplay(){return this.b.listen("$onProcessReplayEvent")}get onProcessOrphanQuestion(){return this.b.listen("$onProcessOrphanQuestion")}get onExecuteCommand(){return this.b.listen("$onExecuteCommand")}get onDidRequestDetach(){return this.b.listen("$onDidRequestDetach")}get onDidChangeProperty(){return this.b.listen("$onDidChangeProperty")}constructor(t,s,i,n,r,o,a,c,l,u){this.a=t,this.b=s,this.c=i,this.d=n,this.e=r,this.f=o,this.g=a,this.h=c,this.i=l,this.j=u}restartPtyHost(){return this.b.call("$restartPtyHost",[])}async createProcess(t,s,i,n,r,o,a,c){await this.c.whenRemoteConfigurationLoaded();const l=Object.create(null),u=i?this.d.getWorkspaceFolder(i)??void 0:void 0,h=u1.parse({shellLaunchConfig:t,configuration:s});try{await this.e.resolveAsync(u,h)}catch(M){this.h.error(M)}for(const[{inner:M},j]of h.resolved())(/^config:/.test(M)||M==="selectedText"||M==="lineNumber")&&(l[M]=j.value);const f=[];for(const[M,j]of this.f.collections.entries())f.push([M,IU(j.map),DU(j.descriptionMap)]);const p=await this.g.resolveAuthority(this.a),g=p.options&&p.options.extensionHostEnv,w=this.d.getWorkspace(),b=w.folders,x=i?this.d.getWorkspaceFolder(i):null,k=Ad.getOriginalUri(this.i.activeEditor,{supportSideBySide:$n.PRIMARY,filterByScheme:[Y.file,Y.vscodeUserData,Y.vscodeRemote]}),I={configuration:s,resolvedVariables:l,envVariableCollections:f,shellLaunchConfig:t,workspaceId:w.id,workspaceName:this.j.getWorkspaceLabel(w),workspaceFolders:b,activeWorkspaceFolder:x,activeFileResource:k,shouldPersistTerminal:r,options:n,cols:o,rows:a,unicodeVersion:c,resolverEnv:g};return await this.b.call("$createProcess",I)}requestDetachInstance(t,s){return this.b.call("$requestDetachInstance",[t,s])}acceptDetachInstanceReply(t,s){return this.b.call("$acceptDetachInstanceReply",[t,s])}attachToProcess(t){return this.b.call("$attachToProcess",[t])}detachFromProcess(t,s){return this.b.call("$detachFromProcess",[t,s])}listProcesses(){return this.b.call("$listProcesses")}getLatency(){return this.b.call("$getLatency")}getPerformanceMarks(){return this.b.call("$getPerformanceMarks")}reduceConnectionGraceTime(){return this.b.call("$reduceConnectionGraceTime")}processBinary(t,s){return this.b.call("$processBinary",[t,s])}start(t){return this.b.call("$start",[t])}input(t,s){return this.b.call("$input",[t,s])}sendSignal(t,s){return this.b.call("$sendSignal",[t,s])}acknowledgeDataEvent(t,s){return this.b.call("$acknowledgeDataEvent",[t,s])}setUnicodeVersion(t,s){return this.b.call("$setUnicodeVersion",[t,s])}shutdown(t,s){return this.b.call("$shutdown",[t,s])}resize(t,s,i){return this.b.call("$resize",[t,s,i])}clearBuffer(t){return this.b.call("$clearBuffer",[t])}getInitialCwd(t){return this.b.call("$getInitialCwd",[t])}getCwd(t){return this.b.call("$getCwd",[t])}orphanQuestionReply(t){return this.b.call("$orphanQuestionReply",[t])}sendCommandResult(t,s,i){return this.b.call("$sendCommandResult",[t,s,i])}freePortKillProcess(t){return this.b.call("$freePortKillProcess",[t])}getDefaultSystemShell(t){return this.b.call("$getDefaultSystemShell",[t])}getProfiles(t,s,i){return this.b.call("$getProfiles",[this.d.getWorkspace().id,t,s,i])}acceptPtyHostResolvedVariables(t,s){return this.b.call("$acceptPtyHostResolvedVariables",[t,s])}getEnvironment(){return this.b.call("$getEnvironment")}getWslPath(t,s){return this.b.call("$getWslPath",[t,s])}setTerminalLayoutInfo(t){const i={workspaceId:this.d.getWorkspace().id,tabs:t?t.tabs:[]};return this.b.call("$setTerminalLayoutInfo",i)}updateTitle(t,s,i){return this.b.call("$updateTitle",[t,s,i])}updateIcon(t,s,i,n){return this.b.call("$updateIcon",[t,s,i,n])}refreshProperty(t,s){return this.b.call("$refreshProperty",[t,s])}updateProperty(t,s,i){return this.b.call("$updateProperty",[t,s,i])}getTerminalLayoutInfo(){const s={workspaceId:this.d.getWorkspace().id};return this.b.call("$getTerminalLayoutInfo",s)}reviveTerminalProcesses(t,s,i){return this.b.call("$reviveTerminalProcesses",[t,s,i])}getRevivedPtyNewId(t){return this.b.call("$getRevivedPtyNewId",[t])}serializeTerminalState(t){return this.b.call("$serializeTerminalState",[t])}installAutoReply(t,s){return this.b.call("$installAutoReply",[t,s])}uninstallAllAutoReplies(){return this.b.call("$uninstallAllAutoReplies",[])}},Mv=__decorate([__param(2,BI),__param(3,T7),__param(4,RI),__param(5,VI),__param(6,JE),__param(7,mE),__param(8,oS),__param(9,zI)],Mv)}}),sF=v({"out-build/vs/platform/files/common/diskFileSystemProviderClient.js"(){"use strict";Le(),Eo(),ge(),re(),V(),nc(),zt(),Ge(),Qo()}}),qI,iF=v({"out-build/vs/workbench/services/remote/common/remoteFileSystemProviderClient.js"(){"use strict";ge(),V(),Se(),sF(),qI="remoteFilesystem"}});import{AppInsightsCore as nF}from"@microsoft/1ds-core-js";import*as rF from"https";import*as oF from"http";import*as Ma from"os";var GI,aF=v({"out-build/vs/server/node/telemetryClient.js"(){"use strict";GI=class extends nF{constructor(e,t,s){super(),this.b=e,this.a={measurements:{},properties:{}};try{const i=Ma.cpus();this.a.measurements.cores=i.length,this.a.properties["common.cpuModel"]=i[0].model}catch{}try{this.a.properties["common.shell"]=Ma.userInfo().shell,this.a.properties["common.release"]=Ma.release(),this.a.properties["common.arch"]=Ma.arch()}catch{}this.a.properties["common.remoteMachineId"]=t,this.a.properties["common.isContainer"]=s}track(e){const t=e.baseData||{};t.measurements={...t.measurements||{},...this.a.measurements},t.properties={...t.properties||{},...this.a.properties};try{t.measurements.memoryFree=Ma.freemem(),t.measurements.memoryTotal=Ma.totalmem()}catch{}try{const s=(/^http:/.test(this.b)?oF:rF).request(this.b,{method:"POST",headers:{"Content-Type":"application/json"}});s.on("error",()=>{}),s.write(JSON.stringify(t)),s.end()}catch{}}}}});async function JI(e,t,s){s===void 0&&(s=!!(globalThis._VSCODE_PRODUCT_JSON??globalThis.vscode?.context?.configuration()?.product)?.commit);const i=t?`${e}/${t}`:e;if(f1.has(i))return f1.get(i);let n;if(/^\w[\w\d+.-]*:\/\//.test(i))n=i;else{const c=`${ZI&&s&&!Ps?h4:u4}/${i}`;n=Ct.asBrowserUri(c).toString(!0)}const r=QI.INSTANCE.load(n);return f1.set(i,r),r}var ZI,YI,so,QI,f1,cF=v({"out-build/vs/amdX.js"(){"use strict";Se(),te(),Q(),zt(),ZI=!1,YI=class{constructor(e,t,s){this.id=e,this.dependencies=t,this.callback=s}},function(e){e[e.Uninitialized=1]="Uninitialized",e[e.InitializedInternal=2]="InitializedInternal",e[e.InitializedExternal=3]="InitializedExternal"}(so||(so={})),QI=class kA{static{this.INSTANCE=new kA}constructor(){this.a=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",this.b=typeof document=="object",this.c=[],this.d=so.Uninitialized}g(){if(this.d===so.Uninitialized){if(globalThis.define){this.d=so.InitializedExternal;return}}else return;this.d=so.InitializedInternal,globalThis.define=(t,s,i)=>{typeof t!="string"&&(i=s,s=t,t=null),(typeof s!="object"||!Array.isArray(s))&&(i=s,s=null),this.c.push(new YI(t,s,i))},globalThis.define.amd=!0,this.b?this.f=globalThis._VSCODE_WEB_PACKAGE_TTP??window.trustedTypes?.createPolicy("amdLoader",{createScriptURL(t){if(t.startsWith(window.location.origin)||t.startsWith(`${Y.vscodeFileResource}://${Ip}`))return t;throw new Error(`[trusted_script_src] Invalid script url: ${t}`)}}):this.a&&(this.f=globalThis._VSCODE_WEB_PACKAGE_TTP??globalThis.trustedTypes?.createPolicy("amdLoader",{createScriptURL(t){return t}}))}async load(t){if(this.g(),this.d===so.InitializedExternal)return new Promise(o=>{const a=Ve();globalThis.define(a,[t],function(c){o(c)})});const s=await(this.a?this.i(t):this.b?this.h(t):this.j(t));if(!s){console.warn(`Did not receive a define call from script ${t}`);return}const i={},n=[],r=[];if(Array.isArray(s.dependencies))for(const o of s.dependencies)o==="exports"?n.push(i):r.push(o);if(r.length>0)throw new Error(`Cannot resolve dependencies for script ${t}. The dependencies are: ${r.join(", ")}`);return typeof s.callback=="function"?s.callback(...n)??i:s.callback}h(t){return new Promise((s,i)=>{const n=document.createElement("script");n.setAttribute("async","async"),n.setAttribute("type","text/javascript");const r=()=>{n.removeEventListener("load",o),n.removeEventListener("error",a)},o=c=>{r(),s(this.c.pop())},a=c=>{r(),i(c)};n.addEventListener("load",o),n.addEventListener("error",a),this.f&&(t=this.f.createScriptURL(t)),n.setAttribute("src",t),window.document.getElementsByTagName("head")[0].appendChild(n)})}async i(t){return this.f&&(t=this.f.createScriptURL(t)),await import(t),this.c.pop()}async j(t){try{const s=(await import("fs")).default,i=(await import("vm")).default,n=(await import("module")).default,r=y.parse(t).fsPath,o=s.readFileSync(r).toString(),a=n.wrap(o.replace(/^#!.*/,""));return new i.Script(a).runInThisContext().apply(),this.c.pop()}catch(s){throw s}}},f1=new Map}});async function lF(e,t,s){const i=Ps?await JI("@microsoft/1ds-core-js","bundle/ms.core.min.js"):await import("@microsoft/1ds-core-js"),n=Ps?await JI("@microsoft/1ds-post-js","bundle/ms.post.min.js"):await import("@microsoft/1ds-post-js"),r=new i.AppInsightsCore,o=new n.PostChannel,a={instrumentationKey:e,endpointUrl:Uv,loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[o]]};if(s){a.extensionConfig={};const c={alwaysUseXhrOverride:!0,ignoreMc1Ms0CookieProcessing:!0,httpXHROverride:s};a.extensionConfig[o.identifier]=c}return r.initialize(a,[]),r.addTelemetryInitializer(c=>{c.ext=c.ext??{},c.ext.web=c.ext.web??{},c.ext.web.consentDetails='{"GPC_DataSharingOptIn":false}',t&&(c.ext.utc=c.ext.utc??{},c.ext.utc.flags=8462029)}),r}var Uv,XI,KI,uF=v({"out-build/vs/platform/telemetry/common/1dsAppender.js"(){"use strict";cF(),ge(),Ft(),te(),hi(),Uv="https://mobile.events.data.microsoft.com/OneCollector/1.0",XI="https://mobile.events.data.microsoft.com/ping",KI=class{constructor(e,t,s,i,n){this.e=e,this.f=t,this.g=s,this.h=n,this.c=Uv,this.d=XI,this.g||(this.g={}),typeof i=="function"?this.a=i():this.a=i,this.b=null}i(e){if(this.a){if(typeof this.a!="string"){e(this.a);return}this.b||(this.b=lF(this.a,this.e,this.h)),this.b.then(t=>{e(t)},t=>{Gt(t),console.error(t)})}}log(e,t){if(!this.a)return;t=Co(t,this.g),t=M9(t);const s=this.f+"/"+e;try{this.i(i=>{i.pluginVersionString=t?.properties.version??"Unknown",i.track({name:s,baseData:{name:s,properties:t?.properties,measurements:t?.measurements}})})}catch{}}flush(){return this.a?new Promise(e=>{this.i(t=>{t.unload(!0,()=>{this.a=void 0,e(void 0)})})}):Promise.resolve(void 0)}}}});import*as hF from"https";async function fF(e,t){const s=await t.request(e,Ne.None),i=(await fn(s.stream)).toString(),n=s.res.statusCode??200;return{headers:s.res.headers,statusCode:n,responseData:i}}async function dF(e){const t={method:e.type,headers:e.headers};return new Promise((i,n)=>{const r=hF.request(e.url??"",t,o=>{o.on("data",function(a){i({headers:o.headers,statusCode:o.statusCode??200,responseData:a.toString()})}),o.on("error",function(a){n(a)})});r.write(e.data,o=>{o&&n(o)}),r.end()})}async function pF(e,t,s){const i=typeof t.data=="string"?t.data:new TextDecoder().decode(t.data),n={type:"POST",headers:{...t.headers,"Content-Type":"application/json","Content-Length":Buffer.byteLength(t.data).toString()},url:t.urlString,data:i};try{const r=e?await fF(n,e):await dF(n);s(r.statusCode,r.headers,r.responseData)}catch{s(0,{})}}var eD,mF=v({"out-build/vs/platform/telemetry/node/1dsAppender.js"(){"use strict";Le(),Lt(),uF(),eD=class extends KI{constructor(e,t,s,i,n){const r={sendPOST:(o,a)=>{pF(e,o,a)}};super(t,s,i,n,r)}}}});function gF(e,t,s,i,n){const r=new Om;return e.forEach(o=>{const a=r.get(o.identifier);a&&n.warn(m(14384,null,a.extensionLocation.fsPath,o.extensionLocation.fsPath)),r.set(o.identifier,o)}),t.forEach(o=>{const a=r.get(o.identifier);if(a)if(a.isBuiltin){if(i7(a.version,o.version)){n.warn(`Skipping extension ${o.extensionLocation.path} in favour of the builtin extension ${a.extensionLocation.path}.`);return}o.isBuiltin=!0}else n.warn(m(14385,null,a.extensionLocation.fsPath,o.extensionLocation.fsPath));else if(o.isBuiltin){n.warn(`Skipping obsolete builtin extension ${o.extensionLocation.path}`);return}r.set(o.identifier,o)}),s.forEach(o=>{const a=r.get(o.identifier);a&&n.warn(m(14386,null,a.extensionLocation.fsPath,o.extensionLocation.fsPath)),r.set(o.identifier,o)}),i.forEach(o=>{n.info(m(14387,null,o.extensionLocation.fsPath));const a=r.get(o.identifier);a&&a.isBuiltin&&(o.isBuiltin=!0),r.set(o.identifier,o)}),Array.from(r.values())}var wF=v({"out-build/vs/workbench/services/extensions/common/extensionsUtil.js"(){"use strict";Zs(),ce(),Nr()}}),tD,sD,vF=v({"out-build/vs/server/node/remoteExtensionsScanner.js"(){"use strict";he(),te(),ri(),Q(),Ki(),zr(),hc(),Yc(),wF(),Se(),mi(),tD=class{constructor(e,t,s,i,n,r,o,a){this.c=e,this.d=s,this.g=i,this.h=n,this.i=r,this.j=o,this.k=a,this.a=Promise.resolve({failed:[]}),this.b=Promise.resolve({failed:[]});const c=t.args["install-builtin-extension"];if(c){n.trace("Installing builtin extensions passed via args...");const u={isMachineScoped:!!t.args["do-not-sync"],installPreReleaseVersion:!!t.args["pre-release"]};It("code/server/willInstallBuiltinExtensions"),this.b=this.a=e.installExtensions([],this.l(c),u,!!t.args.force).then(()=>(It("code/server/didInstallBuiltinExtensions"),n.trace("Finished installing builtin extensions"),{failed:[]}),h=>(n.error(h),{failed:[]}))}const l=t.args["install-extension"];if(l){n.trace("Installing extensions passed via args...");const u={isMachineScoped:!!t.args["do-not-sync"],installPreReleaseVersion:!!t.args["pre-release"],isApplicationScoped:!0};this.b=this.a.then(()=>e.installExtensions(this.l(l),[],u,!!t.args.force)).then(async()=>(n.trace("Finished installing extensions"),{failed:[]}),async h=>{n.error(h);const f=[],p=await this.k.getInstalled(1);for(const g of this.l(l))typeof g=="string"&&(p.some(w=>pe(w.identifier,{id:g}))||f.push({id:g,installOptions:u}));return f.length?(n.info(`Relaying the following extensions to install later: ${f.map(g=>g.id).join(", ")}`),{failed:f}):(n.trace("No extensions to report as failed"),{failed:[]})})}}l(e){return e.map(t=>/\.vsix$/i.test(t)?y.file(mr(t)?t:_(en(),t)):t)}whenExtensionsReady(){return this.b}async scanExtensions(e,t,s,i,n){It("code/server/willScanExtensions"),this.h.trace(`Scanning extensions using UI language: ${e}`),await this.a;const r=i?i.filter(a=>a.scheme===Y.file).map(a=>a.fsPath):void 0;t=t??this.d.defaultProfile.extensionsResource;const o=await this.m(t,e??Is,s,r,n);return this.h.trace("Scanned Extensions",o),this.t(o),It("code/server/didScanExtensions"),o}async m(e,t,s,i,n){await this.s(t,n);const[r,o,a,c]=await Promise.all([this.q(t),this.r(e,t),this.o(t,s),this.n(t,i)]);return gF(r,o,a,c,this.h)}async n(e,t){return t?(await Promise.all(t.map(s=>this.g.scanOneOrMultipleExtensions(y.file(oi(s)),1,{language:e})))).flat().map(s=>Th(s,!0)):[]}async o(e,t){const s=[];if(t?.length){const i=await Promise.all(t.map(n=>this.g.scanExistingExtension(n,1,{language:e})));for(const n of i)n&&s.push(Th(n,!1))}return s}async q(e){return(await this.g.scanSystemExtensions({language:e})).map(s=>Th(s,!1))}async r(e,t){return(await this.g.scanUserExtensions({profileLocation:e,language:t,useCache:!0})).map(i=>Th(i,!1))}async s(e,t){if(!(e===Dn||!this.i.isEnabled())){try{if((await this.j.getInstalledLanguages()).find(i=>i.id===e)){this.h.trace(`Language Pack ${e} is already installed. Skipping language pack installation.`);return}}catch(s){this.h.error(s)}if(!t){this.h.trace(`No language pack id provided for language ${e}. Skipping language pack installation.`);return}this.h.trace(`Language Pack ${t} for language ${e} is not installed. It will be installed now.`);try{await this.c.installExtensions([t],[],{isMachineScoped:!0},!0)}catch(s){this.h.error(s)}}}t(e){const t=(a,c)=>a.replace(/file/g,"vscode-remote"),s=a=>{let c="";return c+=a.global?"g":"",c+=a.ignoreCase?"i":"",c+=a.multiline?"m":"",new RegExp(t(a.source,!0),c)},i=new class{mapDefined(a){return Pr.create(a)}mapNot(a){return Ir.create(a)}mapEquals(a,c){return a==="resourceScheme"&&typeof c=="string"?So.create(a,t(c,!1)):So.create(a,c)}mapNotEquals(a,c){return a==="resourceScheme"&&typeof c=="string"?Po.create(a,t(c,!1)):Po.create(a,c)}mapGreater(a,c){return Io.create(a,c)}mapGreaterEquals(a,c){return cc.create(a,c)}mapSmaller(a,c){return lc.create(a,c)}mapSmallerEquals(a,c){return uc.create(a,c)}mapRegex(a,c){return a==="resourceScheme"&&c?Do.create(a,s(c)):Do.create(a,c)}mapIn(a,c){return Hu.create(a,c)}mapNotIn(a,c){return Vu.create(a,c)}},n=a=>{if(!a||!a.when||!/resourceScheme/.test(a.when))return;const c=Tt.deserialize(a.when);if(!c)return;const l=c.map(i);a.when=l.serialize()},r=a=>{if(Array.isArray(a))for(const c of a)n(c);else n(a)},o=a=>{for(const c in a)r(a[c])};e.forEach(a=>{a.contributes&&(a.contributes.menus&&o(a.contributes.menus),a.contributes.keybindings&&r(a.contributes.keybindings),a.contributes.views&&o(a.contributes.views))})}},sD=class{constructor(e,t){this.a=e,this.b=t}listen(e,t){throw new Error("Invalid listen")}async call(e,t,s){const i=this.b(e);switch(t){case"whenExtensionsReady":return await this.a.whenExtensionsReady();case"scanExtensions":{const n=s[0],r=s[1]?y.revive(i.transformIncoming(s[1])):void 0,o=Array.isArray(s[2])?s[2].map(u=>y.revive(i.transformIncoming(u))):void 0,a=Array.isArray(s[3])?s[3].map(u=>y.revive(i.transformIncoming(u))):void 0,c=s[4];return(await this.a.scanExtensions(n,r,o,a,c)).map(u=>bn(u,i))}}throw new Error("Invalid call")}}}}),bF,iD,yF=v({"out-build/vs/platform/remote/common/remoteExtensionsScanner.js"(){"use strict";ie(),bF=X("IRemoteExtensionsScannerService"),iD="remoteExtensionsScanner"}}),nD,EF=v({"out-build/vs/platform/userDataProfile/common/userDataProfileIpc.js"(){"use strict";re(),V(),Ms(),zr(),nD=class{constructor(e,t){this.a=e,this.b=t}listen(e,t){const s=this.b(e);switch(t){case"onDidChangeProfiles":return B.map(this.a.onDidChangeProfiles,i=>({all:i.all.map(n=>bn({...n},s)),added:i.added.map(n=>bn({...n},s)),removed:i.removed.map(n=>bn({...n},s)),updated:i.updated.map(n=>bn({...n},s))}))}throw new Error(`Invalid listen ${t}`)}async call(e,t,s){const i=this.b(e);switch(t){case"createProfile":{const n=await this.a.createProfile(s[0],s[1],s[2]);return bn({...n},i)}case"updateProfile":{let n=z7(W2(s[0],i),this.a.profilesHome.scheme);return n=await this.a.updateProfile(n,s[1]),bn({...n},i)}case"removeProfile":{const n=z7(W2(s[0],i),this.a.profilesHome.scheme);return this.a.removeProfile(n)}}throw new Error(`Invalid call ${t}`)}}}}),d1,xF=v({"out-build/vs/platform/terminal/node/nodePtyHostStarter.js"(){"use strict";V(),Se(),b8(),Qt(),R8(),d1=class extends W{constructor(t,s){super(),this.a=t,this.b=s}start(){const t={serverName:"Pty Host",args:["--type=ptyHost","--logsPath",this.b.logsHome.with({scheme:Y.file}).fsPath],env:{VSCODE_ESM_ENTRYPOINT:"vs/platform/terminal/node/ptyHostMain",VSCODE_PIPE_LOGGING:"true",VSCODE_VERBOSE_LOGGING:"true",VSCODE_RECONNECT_GRACE_TIME:this.a.graceTime,VSCODE_RECONNECT_SHORT_GRACE_TIME:this.a.shortGraceTime,VSCODE_RECONNECT_SCROLLBACK:this.a.scrollback}},s=fM(this.b.args,this.b.isBuilt);s&&(s.break&&s.port?t.debugBrk=s.port:!s.break&&s.port&&(t.debug=s.port));const i=new Ag(Ct.asFileUri("bootstrap-fork").fsPath,t),n=new rt;return n.add(i),{client:i,store:n,onDidProcessExit:i.onDidProcessExit}}},d1=__decorate([__param(1,rs)],d1)}});import{spawn as kF}from"child_process";var jv,p1,rD=v({"out-build/vs/platform/cssDev/node/cssDevService.js"(){"use strict";he(),Se(),mo(),Qt(),ie(),Ie(),jv=X("ICSSDevelopmentService"),p1=class{constructor(t,s){this.b=t,this.c=s}get isEnabled(){return!this.b.isBuilt}getCssModules(){return this.a??=this.d(),this.a}async d(){if(!this.isEnabled)return[];const t=await import("@vscode/ripgrep");return await new Promise(s=>{const i=on.create(),n=[],r=Ct.asFileUri("").fsPath,o=kF(t.rgPath,["-g","**/*.css","--files","--no-ignore",r],{});o.stdout.on("data",a=>{n.push(a)}),o.on("error",a=>{this.c.error("[CSS_DEV] FAILED to compute CSS data",a),s([])}),o.on("close",()=>{const a=Buffer.concat(n).toString("utf8"),c=a.split(`
`).filter(Boolean).map(l=>po(r,l).replace(/\\/g,"/")).filter(Boolean).sort();c.some(l=>l.indexOf("vs/")!==0)&&this.c.error(`[CSS_DEV] Detected invalid paths in css modules, raw output: ${a}`),s(c),this.c.info(`[CSS_DEV] DONE, ${c.length} css modules (${Math.round(i.elapsed())}ms)`)})})}},p1=__decorate([__param(0,rs),__param(1,fe)],p1)}}),m1,$F=v({"out-build/vs/platform/telemetry/common/telemetryLogAppender.js"(){"use strict";V(),ce(),Qt(),Ie(),Kt(),hi(),m1=class extends W{constructor(t,s,i,n,r){super(),this.b=t;const o=s?"remoteTelemetry":Pm,a=i.getLogger(o);if(a)this.a=this.B(a);else{const l=C9(r,n)?" (Not Sent)":"";this.a=this.B(i.createLogger(o,{name:m(2257,null,l),group:Im,hidden:!0}))}}flush(){return Promise.resolve()}log(t,s){this.a.trace(`${this.b}telemetry/${t}`,M9(s))}},m1=__decorate([__param(2,Lo),__param(3,rs),__param(4,dt)],m1)}}),Tv,oD,aD=v({"out-build/vs/platform/mcp/common/nativeMcpDiscoveryHelper.js"(){"use strict";ie(),Tv=X("INativeMcpDiscoveryHelperService"),oD="NativeMcpDiscoveryHelper"}}),g1,SF=v({"out-build/vs/platform/mcp/node/nativeMcpDiscoveryHelperChannel.js"(){"use strict";zr(),aD(),g1=class{constructor(t,s){this.a=t,this.b=s}listen(t,s){throw new Error("Invalid listen")}async call(t,s,i){const n=this.a?.(t);switch(s){case"load":{const r=await this.b.load();return n?bn(r,n):r}}throw new Error("Invalid call")}},g1=__decorate([__param(1,Tv)],g1)}});import{homedir as PF}from"os";var cD,IF=v({"out-build/vs/platform/mcp/node/nativeMcpDiscoveryHelperService.js"(){"use strict";te(),Q(),cD=class{constructor(){}load(){return Promise.resolve({platform:fr,homedir:y.file(PF()),winAppData:this.a("APPDATA"),xdgHome:this.a("XDG_CONFIG_HOME")})}a(e){const t=process.env[e];if(t)return y.file(t)}}}}),w1,DF=v({"out-build/vs/platform/extensionManagement/common/extensionGalleryManifestServiceIpc.js"(){"use strict";Ae(),re(),Kt(),o2(),w1=class extends dl{constructor(t,s){super(s),this.b=this.B(new D),this.onDidChangeExtensionGalleryManifest=this.b.event,this.f=new Cu,t.registerChannel("extensionGalleryManifest",{listen:()=>B.None,call:async(i,n,r)=>{switch(n){case"setExtensionGalleryManifest":return Promise.resolve(this.g(r[0]))}throw new Error("Invalid call")}})}async getExtensionGalleryManifest(){return await this.f.wait(),this.c??null}g(t){this.c=t,this.b.fire(t),this.f.open()}},w1=__decorate([__param(1,dt)],w1)}}),lD,v1,Fv,uD,Bv=v({"out-build/vs/platform/mcp/common/mcpManagement.js"(){"use strict";ie(),function(e){e.NODE="npm",e.DOCKER="docker",e.PYTHON="pypi",e.REMOTE="remote"}(lD||(lD={})),v1=X("IMcpGalleryService"),Fv=X("IMcpManagementService"),uD="chat.mcp.gallery.serviceUrl"}}),Yl,Ql,hD=v({"out-build/vs/platform/mcp/common/mcpResourceScannerService.js"(){"use strict";Ln(),Ae(),Le(),jn(),V(),Jt(),Yt(),Ge(),_g(),ie(),Rs(),Yl=X("IMcpResourceScannerService"),Ql=class extends W{constructor(t,s){super(),this.b=t,this.c=s,this.a=new wt}async scanMcpServers(t,s){return this.f(t,s)}async addMcpServers(t,s,i){await this.f(s,i,n=>{let r=n.inputs??[];const o=n.servers??{};for(const{name:a,config:c,inputs:l}of t)if(o[a]=c,l){const u=new Set(r.map(f=>f.id)),h=l.filter(f=>!u.has(f.id));r=[...r,...h]}return{servers:o,inputs:r}})}async removeMcpServers(t,s,i){await this.f(s,i,n=>{for(const r of t)n.servers?.[r]&&delete n.servers[r];return n})}async f(t,s,i){return this.s(t).queue(async()=>{s=s??2;let n={};try{const r=await this.b.readFile(t),o=[],a=Un(r.value.toString(),o,{allowTrailingComma:!0,allowEmptyContent:!0});if(o.length>0)throw new Error("Failed to parse scanned MCP servers: "+o.join(", "));if(s===2)n=this.m(a);else if(s===6)n=this.n(a);else if(s===5){const c=a;c.settings?.mcp&&(n=this.n(c.settings?.mcp))}}catch(r){if(St(r)!==1)throw r}return i&&(n=i(n??{}),s===2?await this.g(t,n):s===6?await this.h(t,n):s===5?await this.j(t,n):up(s,`Invalid Target: ${JR(s)}`)),n})}async g(t,s){s.servers&&Object.keys(s.servers).length>0||s.inputs&&s.inputs.length>0?await this.b.writeFile(t,R.fromString(JSON.stringify(s,null,"	"))):await this.b.del(t)}async h(t,s){await this.b.writeFile(t,R.fromString(JSON.stringify(s,null,"	")))}async j(t,s){let i;try{const n=await this.b.readFile(t),r=[];if(i=Un(n.value.toString(),r,{allowTrailingComma:!0,allowEmptyContent:!0}),r.length>0)throw new Error("Failed to parse scanned MCP servers: "+r.join(", "))}catch(n){if(St(n)!==1)throw n;i={settings:{}}}i.settings||(i.settings={}),i.settings.mcp=s,await this.b.writeFile(t,R.fromString(JSON.stringify(i,null,"	")))}m(t){const s={inputs:t.inputs},i=Object.entries(t.servers??{});if(i.length>0){s.servers={};for(const[n,r]of i)s.servers[n]=this.r(r)}return s}n(t){const s={inputs:t.inputs},i=Object.entries(t.servers??{});if(i.length>0){s.servers={};for(const[n,r]of i)s.servers[n]=this.r(r)}return s}r(t){let s;if(t.config){const i=t;s={...i.config,version:i.version,gallery:i.gallery}}else s=t;return(s.type===void 0||s.type!=="http"&&s.type!=="stdio")&&(s.type=s.command?"stdio":"http"),s}s(t){let s=this.a.get(t);return s||(s=new xr,this.a.set(t,s)),s}},Ql=__decorate([__param(0,Xe),__param(1,bt)],Ql),Cg(Yl,Ql,1)}}),b1,y1,E1,AF=v({"out-build/vs/platform/mcp/common/mcpManagementService.js"(){"use strict";Ae(),Le(),Lt(),re(),V(),Jt(),Ft(),Q(),Qt(),Ge(),ie(),Ie(),Rs(),Ms(),Bv(),hD(),b1=class extends W{get onDidInstallMcpServers(){return this.g.event}get onDidUpdateMcpServers(){return this.h.event}get onUninstallMcpServer(){return this.j.event}get onDidUninstallMcpServer(){return this.m.event}constructor(t,s,i,n,r,o,a){super(),this.n=t,this.r=s,this.t=i,this.u=n,this.w=r,this.y=o,this.z=a,this.c=new Map,this.f=this.B(new D),this.onInstallMcpServer=this.f.event,this.g=this.B(new D),this.h=this.B(new D),this.j=this.B(new D),this.m=this.B(new D),this.b=this.B(new kr(()=>this.G(),50))}C(){return this.a||(this.a=(async()=>{this.c=await this.D(),this.F()})()),this.a}async D(){this.y.trace("AbstractMcpResourceManagementService#populateLocalServers",this.n.toString());const t=new Map;try{const s=await this.z.scanMcpServers(this.n,this.r);s.servers&&await Promise.allSettled(Object.entries(s.servers).map(async([i,n])=>{const r=await this.H(i,n);t.set(i,r)}))}catch(s){throw this.y.debug("Could not read user MCP servers:",s),s}return t}F(){this.B(this.u.watch(this.n)),this.B(this.u.onDidFilesChange(t=>{t.affects(this.n)&&this.b.schedule()}))}async G(){try{const t=await this.D(),s=[],i=[],n=[...this.c.keys()].filter(r=>!t.has(r));for(const r of n)this.c.delete(r);for(const[r,o]of t){const a=this.c.get(r);a?ms(a,o)||(i.push(o),this.c.set(r,o)):(s.push(o),this.c.set(r,o))}for(const r of n)this.c.delete(r),this.m.fire({name:r,mcpResource:this.n});i.length&&this.h.fire(i.map(r=>({name:r.name,local:r,mcpResource:this.n}))),s.length&&this.g.fire(s.map(r=>({name:r.name,local:r,mcpResource:this.n})))}catch(t){this.y.error("Failed to load installed MCP servers:",t)}}async getInstalled(){return await this.C(),Array.from(this.c.values())}async H(t,s){let i=await this.M(t,s);return i||(i={name:t,version:s.version}),{name:t,config:s,mcpResource:this.n,version:i.version,location:i.location,id:i.id,displayName:i.displayName,description:i.description,publisher:i.publisher,publisherDisplayName:i.publisherDisplayName,repositoryUrl:i.repositoryUrl,readmeUrl:i.readmeUrl,icon:i.icon,codicon:i.codicon,manifest:i.manifest,source:s.gallery?"gallery":"local"}}async install(t,s){this.y.trace("MCP Management Service: install",t.name),this.f.fire({name:t.name,mcpResource:this.n});try{await this.z.addMcpServers([t],this.n,this.r),await this.G();const i=this.c.get(t.name);if(!i)throw new Error(`Failed to install MCP server: ${t.name}`);return i}catch(i){throw this.g.fire([{name:t.name,error:i,mcpResource:this.n}]),i}}async uninstall(t,s){this.y.trace("MCP Management Service: uninstall",t.name),this.j.fire({name:t.name,mcpResource:this.n});try{if(!(await this.z.scanMcpServers(this.n,this.r)).servers)return;await this.z.removeMcpServers([t.name],this.n,this.r),t.location&&await this.u.del(y.revive(t.location),{recursive:!0}),await this.G()}catch(i){throw this.m.fire({name:t.name,error:i,mcpResource:this.n}),i}}I(t,s){s===void 0&&(s=t.packages?.[0]?.registry_name??"remote");let i;const n=[];if(s==="remote"&&t.remotes?.length){const r={};for(const o of t.remotes[0].headers??[]){const a=o.variables?this.L(o.variables):[];let c=o.value;for(const l of a)c=c.replace(`{${l.id}}`,`{input:${l.id}}`);r[o.name]=c,a.length&&n.push(...a)}i={type:"http",url:t.remotes[0].url,headers:Object.keys(r).length?r:void 0}}else{const r=t.packages?.find(c=>c.registry_name===s)??t.packages?.[0];if(!r)throw new Error("No server package found");const o=[],a={};r.registry_name==="docker"&&(o.push("run"),o.push("-i"),o.push("--rm"));for(const c of r.runtime_arguments??[]){const l=c.variables?this.L(c.variables):[];if(c.type==="positional"){let u=c.value;if(u)for(const h of l)u=u.replace(`{${h.id}}`,`{input:${h.id}}`);o.push(u??c.value_hint)}else if(c.type==="named"&&(o.push(c.name),c.value)){let u=c.value;for(const h of l)u=u.replace(`{${h.id}}`,`{input:${h.id}}`);o.push(u)}l.length&&n.push(...l)}for(const c of r.environment_variables??[]){const l=c.variables?this.L(c.variables):[];let u=c.value;for(const h of l)u=u.replace(`{${h.id}}`,`{input:${h.id}}`);a[c.name]=u,l.length&&n.push(...l),r.registry_name==="docker"&&(o.push("-e"),o.push(c.name))}r.registry_name==="npm"?o.push(r.version?`${r.name}@${r.version}`:r.name):r.registry_name==="pypi"?o.push(r.version?`${r.name}==${r.version}`:r.name):r.registry_name==="docker"&&o.push(r.version?`${r.name}:${r.version}`:r.name);for(const c of r.package_arguments??[]){const l=c.variables?this.L(c.variables):[];if(c.type==="positional"){let u=c.value;if(u)for(const h of l)u=u.replace(`{${h.id}}`,`{input:${h.id}}`);o.push(u??c.value_hint)}else if(c.type==="named"&&(o.push(c.name),c.value)){let u=c.value;for(const h of l)u=u.replace(`{${h.id}}`,`{input:${h.id}}`);o.push(u)}l.length&&n.push(...l)}i={type:"stdio",command:this.J(r.registry_name),args:o.length?o:void 0,env:Object.keys(a).length?a:void 0}}return{config:i,inputs:n.length?n:void 0}}J(t){switch(t){case"npm":return"npx";case"docker":return"docker";case"pypi":return"uvx"}return t}L(t){const s=[];for(const[i,n]of Object.entries(t))s.push({id:i,type:n.choices?"pickString":"promptString",description:n.description??"",password:!!n.is_secret,default:n.default,options:n.choices});return s}},b1=__decorate([__param(2,v1),__param(3,Xe),__param(4,bt),__param(5,fe),__param(6,Yl)],b1),y1=class extends b1{constructor(t,s,i,n,r,o,a){super(t,2,s,i,n,r,o),this.N=n.extUri.joinPath(a.userRoamingDataHome,"mcp")}async installFromGallery(t,s){this.y.trace("MCP Management Service: installGallery",t.url),this.f.fire({name:t.name,mcpResource:this.n});try{const i=await this.O(t),{config:n,inputs:r}=this.I(i,s?.packageType),o={name:t.name,config:{...n,gallery:!0,version:t.version},inputs:r};await this.z.addMcpServers([o],this.n,this.r),await this.G();const a=(await this.getInstalled()).find(c=>c.name===t.name);if(!a)throw new Error(`Failed to install MCP server: ${t.name}`);return a}catch(i){throw this.g.fire([{name:t.name,source:t,error:i,mcpResource:this.n}]),i}}async updateMetadata(t,s){await this.O(s),await this.G();const i=(await this.getInstalled()).find(n=>n.name===t.name);if(!i)throw new Error(`Failed to find MCP server: ${t.name}`);return i}async O(t){const s=await this.t.getManifest(t,Ne.None),i=this.Q(t.name,t.version),n=this.w.extUri.joinPath(i,"manifest.json"),r={id:t.id,name:t.name,displayName:t.displayName,description:t.description,version:t.version,publisher:t.publisher,publisherDisplayName:t.publisherDisplayName,repositoryUrl:t.repositoryUrl,licenseUrl:t.licenseUrl,icon:t.icon,codicon:t.codicon,manifest:s};if(await this.u.writeFile(n,R.fromString(JSON.stringify(r))),t.readmeUrl){const o=await this.t.getReadme(t,Ne.None);await this.u.writeFile(this.w.extUri.joinPath(i,"README.md"),R.fromString(o))}return s}async M(t,s){let i,n,r;if(s.gallery){n=this.Q(t,s.version);const o=this.w.extUri.joinPath(n,"manifest.json");try{const a=await this.u.readFile(o);i=JSON.parse(a.value.toString()),i.location=n,r=this.w.extUri.joinPath(n,"README.md"),await this.u.exists(r)||(r=void 0),i.readmeUrl=r}catch(a){this.y.error("MCP Management Service: failed to read manifest",n.toString(),a)}}return i}Q(t,s){return t=t.replace("/","."),this.w.extUri.joinPath(this.N,s?`${t}-${s}`:t)}},y1=__decorate([__param(1,v1),__param(2,Xe),__param(3,bt),__param(4,fe),__param(5,Yl),__param(6,rs)],y1),E1=class extends W{constructor(t,s){super(),this.j=t,this.m=s,this.a=this.B(new D),this.onInstallMcpServer=this.a.event,this.b=this.B(new D),this.onDidInstallMcpServers=this.b.event,this.c=this.B(new D),this.onDidUpdateMcpServers=this.c.event,this.f=this.B(new D),this.onUninstallMcpServer=this.f.event,this.g=this.B(new D),this.onDidUninstallMcpServer=this.g.event,this.h=new wt}n(t){let s=this.h.get(t);if(!s){const i=new rt,n=i.add(this.m.createInstance(y1,t));i.add(n.onInstallMcpServer(r=>this.a.fire(r))),i.add(n.onDidInstallMcpServers(r=>this.b.fire(r))),i.add(n.onDidUpdateMcpServers(r=>this.c.fire(r))),i.add(n.onUninstallMcpServer(r=>this.f.fire(r))),i.add(n.onDidUninstallMcpServer(r=>this.g.fire(r))),this.h.set(t,s={service:n,dispose:()=>i.dispose()})}return s.service}async getInstalled(t){const s=t||this.j.defaultProfile.mcpResource;return this.n(s).getInstalled()}async install(t,s){const i=s?.mcpResource||this.j.defaultProfile.mcpResource;return this.n(i).install(t,s)}async uninstall(t,s){const i=s?.mcpResource||this.j.defaultProfile.mcpResource;return this.n(i).uninstall(t,s)}async installFromGallery(t,s){const i=s?.mcpResource||this.j.defaultProfile.mcpResource;return this.n(i).installFromGallery(t,s)}async updateMetadata(t,s,i){return this.n(i||this.j.defaultProfile.mcpResource).updateMetadata(t,s)}dispose(){this.h.forEach(t=>t.dispose()),this.h.clear(),super.dispose()}},E1=__decorate([__param(0,_s),__param(1,Mn)],E1)}}),x1,LF=v({"out-build/vs/platform/mcp/common/mcpGalleryService.js"(){"use strict";Lt(),qc(),V(),Se(),ct(),at(),be(),Q(),ce(),Yt(),Ge(),Ie(),Kt(),Rr(),Bv(),x1=class extends W{constructor(t,s,i,n,r){super(),this.a=t,this.b=s,this.c=i,this.f=n,this.g=r}isEnabled(){return this.n()!==void 0}async query(t,s=Ne.None){let{servers:i}=await this.j(s);if(t?.text){const r=t.text.toLowerCase();i=i.filter(o=>o.name.toLowerCase().includes(r)||o.description.toLowerCase().includes(r))}const n=[];for(const r of i)n.push(this.h(r));return n}async getMcpServers(t){const s=this.n()??this.f.extensionsGallery?.mcpUrl;if(!s)return[];const{servers:i}=await this.j(s,Ne.None);return i.filter(r=>t.includes(r.name)).map(r=>this.h(r))}async getManifest(t,s){if(t.manifest)return t.manifest;if(!t.manifestUrl)throw new Error(`No manifest URL found for ${t.name}`);const i=y.parse(t.manifestUrl);if(i.scheme===Y.file)try{const a=(await this.c.readFile(i)).value.toString();return JSON.parse(a)}catch(o){this.g.error(`Failed to read file from ${i}: ${o}`)}const n=await this.b.request({type:"GET",url:t.manifestUrl},s),r=await Uo(n);if(!r)throw new Error(`Failed to fetch manifest from ${t.manifestUrl}`);return{packages:r.packages,remotes:r.remotes}}async getReadme(t,s){const i=t.readmeUrl;if(!i)return Promise.resolve(m(2138,null));const n=y.parse(i);if(n.scheme===Y.file)try{return(await this.c.readFile(n)).value.toString()}catch(a){this.g.error(`Failed to read file from ${n}: ${a}`)}if(n.authority!=="raw.githubusercontent.com")return new vi(m(2139,null,i)).value;const r=await this.b.request({type:"GET",url:i},s),o=await K5(r);if(!o)throw new Error(`Failed to fetch README from ${i}`);return o}h(t){let s="";const i=t.name.split("/");if(i.length>0){const n=i[0].split(".");n.length>0&&(s=n[n.length-1])}return{id:t.id??t.name,name:t.name,displayName:t.displayName??i[i.length-1].split("-").map(n=>wL(n)).join(" "),url:t.repository?.url,description:t.description,version:t.version_detail?.version,lastUpdated:t.version_detail?Date.parse(t.version_detail.release_date):void 0,repositoryUrl:t.repository?.url,codicon:t.codicon,readmeUrl:t.readmeUrl,manifestUrl:this.m(t),packageTypes:t.package_types??[],publisher:s,publisherDisplayName:t.publisher?.displayName,publisherDomain:t.publisher?{link:t.publisher.url,verified:t.publisher.is_verified}:void 0,manifest:t.manifest}}async j(t,s){const i=ue(t)?t:this.n();if(!i)return Promise.resolve({servers:[]});const n=ue(t)?s:t,r=y.parse(i);if(r.scheme===Y.file)try{const l=(await this.c.readFile(r)).value.toString();return JSON.parse(l)}catch(c){this.g.error(`Failed to read file from ${r}: ${c}`)}const o=await this.b.request({type:"GET",url:i},n);return await Uo(o)||{servers:[]}}m(t){const s=this.n();if(!s)return;const i=y.parse(s);return i.scheme===Y.file?oe(Lp(i),t.id??t.name).fsPath:`${s}/${t.id}`}n(){if(this.f.quality!=="stable")return this.a.getValue(uD)}},x1=__decorate([__param(0,Zt),__param(1,Mi),__param(2,Xe),__param(3,dt),__param(4,fe)],x1)}});function fD(e,t){return e?y.revive(t?t.transformIncoming(e):e):void 0}function dD(e,t){t=t||pl;const s=e.manifest;return{...bf({...e,manifest:void 0},t),manifest:s}}function zv(e,t){return e?.mcpResource?bf(e,t??pl):e}function Hv(e,t){return t?Ci(e,s=>s instanceof y?t.transformOutgoingURI(s):void 0):e}function Xl(e,t){return t?t.transformOutgoingURI(e):e}var pD,RF=v({"out-build/vs/platform/mcp/common/mcpManagementIpc.js"(){"use strict";re(),V(),Ft(),Q(),zr(),pD=class{constructor(e,t){this.a=e,this.b=t,this.onInstallMcpServer=B.buffer(e.onInstallMcpServer,!0),this.onDidInstallMcpServers=B.buffer(e.onDidInstallMcpServers,!0),this.onDidUpdateMcpServers=B.buffer(e.onDidUpdateMcpServers,!0),this.onUninstallMcpServer=B.buffer(e.onUninstallMcpServer,!0),this.onDidUninstallMcpServer=B.buffer(e.onDidUninstallMcpServer,!0)}listen(e,t){const s=this.b(e);switch(t){case"onInstallMcpServer":return B.map(this.onInstallMcpServer,i=>({...i,mcpResource:Xl(i.mcpResource,s)}));case"onDidInstallMcpServers":return B.map(this.onDidInstallMcpServers,i=>i.map(n=>({...n,local:n.local?Hv(n.local,s):n.local,mcpResource:Xl(n.mcpResource,s)})));case"onDidUpdateMcpServers":return B.map(this.onDidUpdateMcpServers,i=>i.map(n=>({...n,local:n.local?Hv(n.local,s):n.local,mcpResource:Xl(n.mcpResource,s)})));case"onUninstallMcpServer":return B.map(this.onUninstallMcpServer,i=>({...i,mcpResource:Xl(i.mcpResource,s)}));case"onDidUninstallMcpServer":return B.map(this.onDidUninstallMcpServer,i=>({...i,mcpResource:Xl(i.mcpResource,s)}))}throw new Error("Invalid listen")}async call(e,t,s){const i=this.b(e);switch(t){case"getInstalled":return(await this.a.getInstalled(fD(s[0],i))).map(r=>Hv(r,i));case"install":return this.a.install(s[0],zv(s[1],i));case"installFromGallery":return this.a.installFromGallery(s[0],zv(s[1],i));case"uninstall":return this.a.uninstall(dD(s[0],i),zv(s[1],i));case"updateMetadata":return this.a.updateMetadata(dD(s[0],i),s[1],fD(s[2],i))}throw new Error("Invalid call")}}}});import{hostname as NF,release as OF}from"os";import{promises as mD}from"fs";async function CF(e,t,s,i){const n=new ju,r=new wD,o={_serviceBrand:void 0,...Ht};n.set(dt,o);const a=new oa(t,o);n.set(rs,a),n.set(Gs,a);const c=new zg(sm(a),a.logsHome);n.set(Lo,c),r.registerChannel("logger",new gE(c,F=>io(F.remoteAuthority)));const l=c.createLogger("remoteagent",{name:m(2721,null)}),u=new Bg(l,[new vD(sm(a))]);n.set(fe,u),setTimeout(()=>_F(a.logsHome.with({scheme:Y.file}).fsPath).then(null,F=>u.error(F)),1e4),u.onDidChangeLogLevel(F=>_R(u,F,`Log level changed to ${w5(u.getLevel())}`)),u.trace(`Remote configuration data at ${s}`),u.trace("process arguments:",a.args),Array.isArray(o.serverGreeting)&&u.info(`

${o.serverGreeting.join(`
`)}

`),r.registerChannel(i0.ChannelName,new i0);const h=new v8(F=>F.clientId==="renderer"),f=i.add(new el(u));n.set(Xe,f),f.registerProvider(Y.file,i.add(new nl(u)));const p=new la(f);n.set(bt,p);const g=new pm(a.machineSettingsResource,f,new Ku,u);n.set(Zt,g);const w=new ul(p,a,f,u);n.set(_s,w),r.registerChannel("userDataProfiles",new nD(w,F=>io(F.remoteAuthority))),n.set(jv,new Te(p1,void 0,!0));const[,,b,x,k]=await Promise.all([g.initialize(),w.init(),aU(u.error.bind(u)),lU(u.error.bind(u)),uU(u.error.bind(u))]),I=new D2;n.set(Qg,I);const M=new Pc("remote",g,a,u);n.set(Mi,M);let j;try{await mD.stat("/run/.containerenv"),j=!0}catch{}if(!j)try{j=(await mD.readFile("/proc/self/cgroup","utf8")).includes("docker")}catch{}let Ee=T9;const O=BN(o,g);if(O9(o,a)){!C9(o,a)&&o.telemetryEndpoint&&(Ee=new eD(M,O,gD,null,()=>new GI(o.telemetryEndpoint,b,j)),i.add(De(()=>Ee?.flush())));const F={appenders:[Ee,new m1("",!0,c,a,o)],commonProperties:UN(OF(),NF(),process.arch,o.commit,o.version+"-remote",b,x,k,O,o.date,"remoteAgent"),piiPaths:zN(a)},Ke=a.args["telemetry-level"];let C=3;Ke==="all"?C=3:Ke==="error"?C=2:Ke==="crash"?C=1:Ke!==void 0&&(C=0),n.set(Lf,new Te(Af,[F,C]))}else n.set(Lf,VE);n.set(Ur,new w1(r,o)),n.set(fi,new Te(zc));const z=r.getChannel("download",h);n.set(Lh,new z2(z,()=>io("renderer"))),n.set(ji,new Te(hl)),n.set(jr,new Te(ll)),n.set(Bh,new Te(Qc)),n.set(gn,new Te(fl)),n.set(Wh,new Te(Xc)),n.set(Tv,new Te(cD));const A=new wg(n);n.set(al,A.createInstance(cl));const ee=A.createInstance(d1,{graceTime:108e5,shortGraceTime:3e5,scrollback:g.getValue("terminal.integrated.persistentSessionScrollback")??100}),Ce=A.createInstance($f,ee);return n.set(nE,Ce),n.set(Yl,new Te(Ql)),n.set(v1,new Te(x1)),n.set(Fv,new Te(E1)),A.invokeFunction(F=>{const Ke=F.get(Fv),C=F.get(Wh),N=F.get(jr),H=F.get(fi),L=F.get(al),T=new UE(e,a,w,I);r.registerChannel("remoteextensionsenvironment",T);const se=new zE(F.get(Lf),Ee);r.registerChannel("telemetry",se),r.registerChannel(WI,new jI(a,u,Ce,o,C,g));const we=new tD(A.createInstance(ol,u),a,w,N,u,H,L,C);r.registerChannel(iD,new sD(we,cs=>io(cs.remoteAuthority))),r.registerChannel(oD,A.createInstance(g1,cs=>io(cs.remoteAuthority)));const et=i.add(new FE(u,a,g));r.registerChannel(qI,et),r.registerChannel("request",new J2(F.get(Mi)));const lt=new G2(C,cs=>io(cs.remoteAuthority));r.registerChannel("extensions",lt),r.registerChannel("mcpManagement",new pD(Ke,cs=>io(cs.remoteAuthority)));const Bs=sa.fromService(F.get(al),i);return r.registerChannel("languagePacks",Bs),we.whenExtensionsReady().then(()=>C.cleanUp()),i.add(new Y2(F.get(gs))),{telemetryService:F.get(gs)}}),{socketServer:r,instantiationService:A}}function io(e){return k1[e]||(k1[e]=yl(e)),k1[e]}function Ji(){const e=new Date;return`${Vv(e.getHours())}:${Vv(e.getMinutes())}:${Vv(e.getSeconds())}`}function Vv(e){return e<10?`0${e}`:String(e)}async function _F(e){const t=ht(e),s=Ut(e),r=(await ke.readdir(s)).filter(a=>/^\d{8}T\d{6}$/.test(a)).sort().filter(a=>a!==t),o=r.slice(0,Math.max(0,r.length-9));await Promise.all(o.map(a=>ke.rm(_(s,a))))}var gD,k1,wD,vD,MF=v({"out-build/vs/server/node/serverServices.js"(){"use strict";re(),V(),Se(),he(),B2(),ds(),ia(),Yt(),Q5(),hU(),Km(),fU(),Qt(),n6(),As(),pg(),O8(),dU(),M6(),Ge(),H6(),ef(),qu(),F6(),Vp(),Og(),C8(),Ie(),Kc(),Kt(),Rr(),pU(),I9(),A9(),Js(),hi(),gU(),o0(),GU(),Rs(),T8(),tj(),ij(),nj(),aj(),ZT(),Sf(),aa(),tF(),iF(),A2(),Yc(),H8(),Jo(),Ms(),aF(),eh(),mF(),t2(),Z8(),Y8(),Q8(),vE(),ce(),vF(),yF(),EF(),xF(),rD(),r2(),$F(),aD(),SF(),IF(),Sh(),DF(),Bv(),AF(),LF(),hD(),RF(),gD="monacoworkbench",k1=Object.create(null),wD=class extends w8{constructor(){const e=new D;super(e.event),this.b=e}acceptConnection(e,t){this.b.fire({protocol:e,onDidClientDisconnect:t})}},vD=class extends dc{constructor(e=fc){super(),this.setLevel(e),this.h=!!process.stdout.isTTY}trace(e,...t){this.g(G.Trace)&&(this.h?console.log(`\x1B[90m[${Ji()}]\x1B[0m`,e,...t):console.log(`[${Ji()}]`,e,...t))}debug(e,...t){this.g(G.Debug)&&(this.h?console.log(`\x1B[90m[${Ji()}]\x1B[0m`,e,...t):console.log(`[${Ji()}]`,e,...t))}info(e,...t){this.g(G.Info)&&(this.h?console.log(`\x1B[90m[${Ji()}]\x1B[0m`,e,...t):console.log(`[${Ji()}]`,e,...t))}warn(e,...t){this.g(G.Warning)&&(this.h?console.warn(`\x1B[93m[${Ji()}]\x1B[0m`,e,...t):console.warn(`[${Ji()}]`,e,...t))}error(e,...t){this.g(G.Error)&&(this.h?console.error(`\x1B[91m[${Ji()}]\x1B[0m`,e,...t):console.error(`[${Ji()}]`,e,...t))}flush(){}}}});import{createReadStream as UF,promises as Kl}from"fs";import*as jF from"url";import*as Wv from"cookie";import*as TF from"crypto";async function Ts(e,t,s,i){t.writeHead(s,{"Content-Type":"text/plain"}),t.end(i)}async function bD(e,t,s,i,n,r){try{const o=await Kl.stat(e);if(t===1){const a=`W/"${[o.ino,o.size,o.mtime.getTime()].join("-")}"`;if(i.headers["if-none-match"]===a)return n.writeHead(304),void n.end();r.Etag=a}else t===2?r["Cache-Control"]="public, max-age=31536000":t===0&&(r["Cache-Control"]="no-store");r["Content-Type"]=yD[gr(e)]||cj(e)||"text/plain",n.writeHead(200,r),UF(e).pipe(n)}catch(o){return o.code!=="ENOENT"?(s.error(o),console.error(o.toString())):console.error(`File not found: ${e}`),n.writeHead(404,{"Content-Type":"text/plain"}),void n.end("Not found")}}var yD,ED,$1,eu,qv,S1,P1,Gv,xD,kD,Jv,FF=v({"out-build/vs/server/node/webClientServer.js"(){"use strict";an(),Rf(),te(),Ie(),aa(),he(),Se(),zt(),Kt(),Rr(),Lt(),Q(),Le(),be(),Fg(),rD(),yD={".html":"text/html",".js":"text/javascript",".json":"application/json",".css":"text/css",".svg":"image/svg+xml"},function(e){e[e.NO_CACHING=0]="NO_CACHING",e[e.ETAG=1]="ETAG",e[e.NO_EXPIRY=2]="NO_EXPIRY"}(ED||(ED={})),$1=Ut(Ct.asFileUri("").fsPath),eu="/static",qv="/callback",S1="/web-extension-resource",P1=class{constructor(t,s,i,n,r,o,a,c){this.b=t,this.c=s,this.d=i,this.f=n,this.g=r,this.h=o,this.i=a,this.j=c,this.a=this.i.extensionsGallery?.resourceUrlTemplate?y.parse(this.i.extensionsGallery.resourceUrlTemplate):void 0}async handle(t,s,i,n){try{return n.startsWith(eu)&&n.charCodeAt(eu.length)===47?this.k(t,s,n.substring(eu.length)):n==="/"?this.n(t,s,i):n===qv?this.p(s):n.startsWith(S1)&&n.charCodeAt(S1.length)===47?this.m(t,s,n.substring(S1.length)):Ts(t,s,404,"Not found.")}catch(r){return this.g.error(r),console.error(r.toString()),Ts(t,s,500,"Internal Server Error.")}}async k(t,s,i){const n=Object.create(null),r=decodeURIComponent(i),o=_($1,r);return _n(o,$1,!ut)?bD(o,this.f.isBuilt?2:1,this.g,t,s,n):Ts(t,s,400,"Bad request.")}l(t){const s=t.authority.indexOf(".");return s!==-1?t.authority.substring(s+1):void 0}async m(t,s,i){if(!this.a)return Ts(t,s,500,"No extension gallery service configured.");const n=decodeURIComponent(i),r=Hs(n),o=y.parse(r).with({scheme:this.a.scheme,authority:r.substring(0,r.indexOf("/")),path:r.substring(r.indexOf("/")+1)});if(this.l(this.a)!==this.l(o))return Ts(t,s,403,"Request Forbidden");const a={},c=g=>{const w=t.headers[g];w&&(ue(w)||w[0])?a[g]=ue(w)?w:w[0]:g!==g.toLowerCase()&&c(g.toLowerCase())};c("X-Client-Name"),c("X-Client-Version"),c("X-Machine-Id"),c("X-Client-Commit");const l=await this.h.request({type:"GET",url:o.toString(!0),headers:a},Ne.None),u=l.res.statusCode||500;if(u!==200){let g=null;try{g=await Lr(l)}catch{}return Ts(t,s,u,g||`Request failed with status ${u}`)}const h=Object.create(null),f=g=>{const w=l.res.headers[g];w?h[g]=w:g!==g.toLowerCase()&&f(g.toLowerCase())};f("Cache-Control"),f("Content-Type"),s.writeHead(200,h);const p=await fn(l.stream);return void s.end(p.buffer)}async n(t,s,i){const n=L=>{const T=t.headers[L];return Array.isArray(T)?T[0]:T},r=xD(Jv(t)),o=kD(Jv(t)),a=o||n("x-forwarded-prefix")||this.c,c=i.query[vo];if(typeof c=="string"){const L=Object.create(null);L["Set-Cookie"]=Wv.serialize(Nu,c,{sameSite:"lax",maxAge:60*60*24*7});const T=Object.create(null);for(const we in i.query)we!==vo&&(T[we]=i.query[we]);const se=jF.format({pathname:a,query:T});return L.Location=se,s.writeHead(302,L),void s.end()}const l=(L,T)=>{const se=L?.indexOf(":");return se!==-1&&(L=L?.substring(0,se)),L+=`:${T}`,L},u=!this.f.isBuilt&&this.f.args["use-test-resolver"];let h=u?"test+test":"remote";if(!h)return Ts(t,s,400,"Bad request.");const f=n("x-forwarded-port");f&&(h=l(h,f));function p(L){return JSON.stringify(L).replace(/"/g,"&quot;")}let g;this.f.args["enable-smoke-test-driver"]&&(g=!1),this.g.getLevel()===G.Trace&&(["x-original-host","x-forwarded-host","x-forwarded-port","host"].forEach(L=>{const T=n(L);T&&this.g.trace(`[WebClientServer] ${L}: ${T}`)}),this.g.trace(`[WebClientServer] Request URL: ${t.url}, basePath: ${a}, remoteAuthority: ${h}`));const w=$e.join(a,this.d,eu),b=$e.join(a,this.d,qv),x=L=>L&&y.file(oi(L)).with({scheme:Y.vscodeRemote,authority:h}),k=Ct.asFileUri(`vs/code/browser/workbench/workbench${this.f.isBuilt?"":"-dev"}.html`).fsPath,I=!this.f.isBuilt&&this.f.args["github-auth"]?{id:Ve(),providerId:"github",accessToken:this.f.args["github-auth"],scopes:[["user:email"],["repo"]]}:void 0,M=[];this.f.args["link-protection-trusted-domains"]&&M.push(...this.f.args["link-protection-trusted-domains"]),this.i.linkProtectionTrustedDomains&&M.push(...this.i.linkProtectionTrustedDomains);const j={codeServerVersion:this.i.codeServerVersion,rootEndpoint:r,updateEndpoint:this.f.args["disable-update-check"]?void 0:r+"/update/check",logoutEndpoint:this.f.args.auth&&this.f.args.auth!=="none"?r+"/logout":void 0,proxyEndpointTemplate:process.env.VSCODE_PROXY_URI??r+"/proxy/{{port}}/",serviceWorker:{scope:o+"/",path:r+"/_static/out/browser/serviceWorker.js"},enableTelemetry:this.i.enableTelemetry,telemetryEndpoint:this.i.telemetryEndpoint,embedderIdentifier:"server-distro",extensionsGallery:this.i.extensionsGallery,linkProtectionTrustedDomains:M},Ee=this.f.args["enable-proposed-api"];if(Ee?.length&&(j.extensionsEnabledWithApiProposalVersion??=[],j.extensionsEnabledWithApiProposalVersion.push(...Ee)),!this.f.isBuilt)try{const L=JSON.parse((await Kl.readFile(_($1,"product.overrides.json"))).toString());Object.assign(j,L)}catch{}const O={remoteAuthority:h,serverBasePath:a,webviewEndpoint:w+"/out/vs/workbench/contrib/webview/browser/pre",userDataPath:this.f.userDataPath,isEnabledFileDownloads:!this.f.args["disable-file-downloads"],isEnabledFileUploads:!this.f.args["disable-file-uploads"],isEnabledCoderGettingStarted:!this.f.args["disable-getting-started-override"],_wrapWebWorkerExtHostInIframe:g,developmentOptions:{enableSmokeTestDriver:this.f.args["enable-smoke-test-driver"]?!0:void 0,logLevel:this.g.getLevel()},settingsSyncOptions:!this.f.isBuilt&&this.f.args["enable-sync"]?{enabled:!0}:void 0,enableWorkspaceTrust:!this.f.args["disable-workspace-trust"],folderUri:x(this.f.args["default-folder"]),workspaceUri:x(this.f.args["default-workspace"]),productConfiguration:j,callbackRoute:b},z=Wv.parse(t.headers.cookie||""),A=this.f.args.locale||await B8(this.f.argvResource.fsPath)||z["vscode.nls.locale"]||t.headers["accept-language"]?.split(",")[0]?.toLowerCase()||"en";let ee,Ce;if(!A.startsWith("en")&&this.i.nlsCoreBaseUrl)ee=this.i.nlsCoreBaseUrl,Ce=`${ee}${this.i.commit}/${this.i.version}/${A}/nls.messages.js`;else try{const L=await bM(A,this.f.userDataPath);Ce=L?`${o}/vscode-remote-resource?path=${encodeURIComponent(L)}`:""}catch(L){console.error("Failed to generate translations",L),Ce=""}const F={WORKBENCH_WEB_CONFIGURATION:p(O),WORKBENCH_AUTH_SESSION:I?p(I):"",WORKBENCH_WEB_BASE_URL:w,WORKBENCH_NLS_URL:Ce,WORKBENCH_NLS_FALLBACK_URL:`${w}/out/nls.messages.js`,BASE:r,VS_BASE:a};if(this.j.isEnabled){const L=await this.j.getCssModules();F.WORKBENCH_DEV_CSS_MODULES=JSON.stringify(L)}if(u){const L=[];for(const T of["vscode-test-resolver","github-authentication"]){const se=JSON.parse((await Kl.readFile(Ct.asFileUri(`${l4}/${T}/package.json`).fsPath)).toString());L.push({extensionPath:T,packageJSON:se})}F.WORKBENCH_BUILTIN_EXTENSIONS=p(L)}let Ke;try{Ke=(await Kl.readFile(k)).toString().replace(/\{\{([^}]+)\}\}/g,(T,se)=>F[se]??"undefined")}catch{return s.writeHead(404,{"Content-Type":"text/plain"}),void s.end("Not found")}const H={"Content-Type":"text/html","Content-Security-Policy":["default-src 'self';","img-src 'self' https: data: blob:;","media-src 'self';",`script-src 'self' 'unsafe-eval' ${ee??""} blob: 'nonce-1nline-m4p' ${this.o(Ke).join(" ")} 'sha256-2Q+j4hfT09+1+imS46J2YlkCtHWQt0/BE79PXjJ0ZJ8=' 'sha256-/r7rqQ+yrxt57sxLuQ6AMYcy/lUpvAIzHjIJt/OeLWU=' ;`,"child-src 'self';","frame-src 'self' https://*.vscode-cdn.net data:;","worker-src 'self' data: blob:;","style-src 'self' 'unsafe-inline';","connect-src 'self' ws: wss: https:;","font-src 'self' blob:;","manifest-src 'self';"].join(" ")};return this.b.type!==0&&(H["Set-Cookie"]=Wv.serialize(Nu,this.b.value,{sameSite:"lax",maxAge:60*60*24*7})),s.writeHead(200,H),void s.end(Ke)}o(t){const s=/<script>([\s\S]+?)<\/script>/img,i=[];let n;for(;n=s.exec(t);){const r=TF.createHash("sha256"),o=n[1].replace(/\r\n/g,`
`),a=r.update(Buffer.from(o)).digest().toString("base64");i.push(`'sha256-${a}'`)}return i}async p(t){const s=Ct.asFileUri("vs/code/browser/workbench/callback.html").fsPath,i=(await Kl.readFile(s)).toString(),n=["default-src 'self';","img-src 'self' https: data: blob:;","media-src 'none';",`script-src 'self' ${this.o(i).join(" ")};`,"style-src 'self' 'unsafe-inline';","font-src 'self' blob:;"].join(" ");return t.writeHead(200,{"Content-Type":"text/html","Content-Security-Policy":n}),void t.end(i)}},P1=__decorate([__param(3,rl),__param(4,fe),__param(5,Mi),__param(6,dt),__param(7,jv)],P1),Gv=(e,t=!1)=>e.replace(/\/\/+/g,"/").replace(/\/+$/,t?"/":""),xD=e=>{const t=(e.split("?",1)[0].match(/\//g)||[]).length;return Gv("./"+(t>1?"../".repeat(t-1):""))},kD=e=>{const t=e.split("?",1)[0].split("/");return Gv("./"+t[t.length-1])},Jv=e=>e.originalUrl||e.url}});import*as BF from"crypto";import*as I1 from"fs";import*as zF from"net";import{performance as HF}from"perf_hooks";import*as $D from"url";import{createRequire as VF}from"node:module";async function WF(e,t,s){const i=await KM(t);i instanceof Br&&(console.warn(i.message),process.exit(1));function n(k){iy(I=>{ny(I)&&I.stack&&/unexpectedErrorHandler/.test(I.stack)||k(I)})}const r=[];n(k=>{r.push(k),console.error(k)});let o=!1;process.on("SIGPIPE",()=>{o||(o=!0,Gt(new Error("Unexpected SIGPIPE")))});const a=new rt,{socketServer:c,instantiationService:l}=await CF(i,t,s,a);l.invokeFunction(k=>{const I=k.get(fe);r.forEach(M=>I.error(M)),r.length=0,n(M=>I.error(M))}),l.invokeFunction(k=>{const I=k.get(Zt);me&&(I.getValue("security.restrictUNCAccess")===!1?s2():Hg(I.getValue("security.allowedUNCHosts")))}),l.invokeFunction(k=>{const I=k.get(fe);if(me&&process.env.HOMEDRIVE&&process.env.HOMEPATH){const M=_(process.env.HOMEDRIVE,"node_modules"),j=Ut(_(process.env.HOMEDRIVE,process.env.HOMEPATH)),Ee=_(j,"node_modules");if(I1.existsSync(M)||I1.existsSync(Ee)){const O=`

*
* !!!! Server terminated due to presence of CVE-2020-1416 !!!!
*
* Please remove the following directories and re-try
* ${M}
* ${Ee}
*
* For more information on the vulnerability https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-1416
*

`;I.warn(O),console.warn(O),process.exit(0)}}});const u=l.invokeFunction(k=>{const I=k.get(fe);if(I1.existsSync(_(Ct.asFileUri("").fsPath,"../node_modules/vsda")))try{return SD("vsda")}catch(j){I.error(j)}return null});let h=t["server-base-path"];h&&!h.startsWith("/")&&(h=`/${h}`);const f=I1.existsSync(Ct.asFileUri("vs/code/browser/workbench/workbench.html").fsPath);if(f&&e&&typeof e!="string"){const k=i.type!==0?`?${vo}=${i.value}`:"";console.log(`Web UI available at http://localhost${e.port===80?"":`:${e.port}`}${h??""}${k}`)}const p=l.createInstance(D1,c,i,u,f,h);It("code/server/ready");const g=HF.now(),w=global.vscodeServerStartTime,b=global.vscodeServerListenTime,x=global.vscodeServerCodeLoadedTime;if(l.invokeFunction(async k=>{const I=k.get(gs);if(I.publicLog2("serverStart",{startTime:w,startedTime:b,codeLoadedTime:x,readyTime:g}),ut){const M=k.get(fe),j=await OM(M.error.bind(M));j&&I.publicLog2("serverPlatformInfo",{platformId:j.id,platformVersionId:j.version_id,platformIdLike:j.id_like})}}),t["print-startup-performance"]){let k="";k+=`Start-up time: ${b-w}
`,k+=`Code loading time: ${x-w}
`,k+=`Initialized time: ${g-w}
`,k+=`
`,console.log(k)}return p}var SD,PD,D1,ID,qF=v({"out-build/vs/server/node/remoteExtensionHostAgentServer.js"(){"use strict";Le(),ge(),an(),V(),Se(),he(),Ki(),te(),at(),Q(),zt(),CM(),UM(),i2(),b2(),pf(),Yt(),ie(),Ie(),Kt(),Js(),C2(),YM(),tU(),aa(),MF(),FF(),SD=VF(import.meta.url),PD=5*60*1e3,D1=class extends W{constructor(t,s,i,n,r,o,a,c,l){super(),this.r=t,this.s=s,this.t=i,this.u=o,this.w=a,this.y=c,this.z=l,this.h=ID.create(this.w),r!==void 0&&r.charCodeAt(r.length-1)===47&&(r=r.substring(0,r.length-1)),this.j=r,this.m=`/${o4(a)}`,this.a=Object.create(null),this.b=Object.create(null),this.f=new Set,this.g=n?this.z.createInstance(P1,this.s,r??"/",this.m):null,this.y.info("Extension host agent started."),this.M(!0)}async handleRequest(t,s){if(t.method!=="GET")return Ts(t,s,405,`Unsupported method ${t.method}`);if(!t.url)return Ts(t,s,400,"Bad request.");const i=$D.parse(t.url,!0);let n=i.pathname;if(!n)return Ts(t,s,400,"Bad request.");if(this.j!==void 0&&n.startsWith(this.j)&&(n=n.substring(this.j.length)||"/"),n.startsWith(this.m)&&n.charCodeAt(this.m.length)===47&&(n=n.substring(this.m.length)),n==="/version")return s.writeHead(200,{"Content-Type":"text/plain"}),void s.end(this.w.commit||"");if(n==="/delay-shutdown")return this.O(),s.writeHead(200),void s.end("OK");if(!eU(this.s,t,i))return Ts(t,s,403,"Forbidden.");if(n==="/vscode-remote-resource"){const r=i.query.path;if(typeof r!="string")return Ts(t,s,400,"Bad request.");let o;try{o=y.from({scheme:Y.file,path:r}).fsPath}catch{return Ts(t,s,400,"Bad request.")}const a=Object.create(null);this.u.isBuilt&&(_n(o,this.u.builtinExtensionsPath,!ut)||_n(o,this.u.extensionsPath,!ut))&&(a["Cache-Control"]="public, max-age=31536000"),a.Vary="Origin";const c=t.headers.origin;return c&&this.h.matches(c)&&(a["Access-Control-Allow-Origin"]=c),bD(o,1,this.y,t,s,a)}if(this.g){this.g.handle(t,s,i,n);return}return s.writeHead(404,{"Content-Type":"text/plain"}),void s.end("Not found")}handleUpgrade(t,s){let i=Ve(),n=!1,r=!1;if(t.url){const h=$D.parse(t.url,!0).query;typeof h.reconnectionToken=="string"&&(i=h.reconnectionToken),h.reconnection==="true"&&(n=!0),h.skipWebSocketFrames==="true"&&(r=!0)}if(t.headers.upgrade===void 0||t.headers.upgrade.toLowerCase()!=="websocket"){s.end("HTTP/1.1 400 Bad Request");return}const o=t.headers["sec-websocket-key"],a=BF.createHash("sha1");a.update(o+"258EAFA5-E914-47DA-95CA-C5AB0DC85B11");const l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${a.digest("base64")}`];let u=!1;if(!r&&!this.u.args["disable-websocket-compression"]&&t.headers["sec-websocket-extensions"]){const h=Array.isArray(t.headers["sec-websocket-extensions"])?t.headers["sec-websocket-extensions"]:[t.headers["sec-websocket-extensions"]];for(const f of h)if(!/\b((server_max_window_bits)|(server_no_context_takeover)|(client_no_context_takeover))\b/.test(f)){if(/\b(permessage-deflate)\b/.test(f)){u=!0,l.push("Sec-WebSocket-Extensions: permessage-deflate");break}if(/\b(x-webkit-deflate-frame)\b/.test(f)){u=!0,l.push("Sec-WebSocket-Extensions: x-webkit-deflate-frame");break}}}s.write(l.join(`\r
`)+`\r
\r
`),s.setTimeout(0),s.setNoDelay(!0),r?this.F(new fa(s,`server-connection-${i}`),n,i):this.F(new k2(new fa(s,`server-connection-${i}`),u,null,!0),n,i)}handleServerError(t){this.y.error("Error occurred in server"),this.y.error(t)}C(t){let s;return t instanceof fa?s=t.socket:s=t.socket.socket,s.remoteAddress||"<unknown>"}async D(t,s,i){const n=s.getSocket();this.y.error(`${t} ${i}.`);const r={type:"error",reason:i};s.sendControl(R.fromString(JSON.stringify(r))),s.dispose(),await n.drain(),n.dispose()}F(t,s,i){const n=this.C(t),r=`[${n}][${i.substr(0,8)}]`,o=new v2({socket:t}),a=this.t?new this.t.validator:null,c=this.t?new this.t.signer:null;let l;(function(p){p[p.WaitingForAuth=0]="WaitingForAuth",p[p.WaitingForConnectionType=1]="WaitingForConnectionType",p[p.Done=2]="Done",p[p.Error=3]="Error"})(l||(l={}));let u=0;const h=p=>{u=3,f.dispose(),this.D(r,o,p)},f=o.onControlMessage(p=>{if(u===0){let g;try{g=JSON.parse(p.toString())}catch{return h("Malformed first message")}if(g.type!=="auth")return h("Invalid first message");if(this.s.type===2&&!this.s.validate(g.auth))return h("Unauthorized client refused: auth mismatch");let w=Ve();if(c)try{w=c.sign(g.data)}catch{}let b=Ve();if(a)try{b=a.createNewMessage(b)}catch{}const x={type:"sign",data:b,signedData:w};o.sendControl(R.fromString(JSON.stringify(x))),u=1}else if(u===1){let g;try{g=JSON.parse(p.toString())}catch{return h("Malformed second message")}if(g.type!=="connectionType")return h("Invalid second message");if(typeof g.signedData!="string")return h("Invalid second message field type");const w=g.commit,b=this.w.commit;if(w&&b&&w!==b)return h("Client refused: version mismatch");let x=!1;if(!a)x=!0;else if(this.s.validate(g.signedData))x=!0;else try{x=a.validate(g.signedData)==="ok"}catch{}if(!x){if(this.u.isBuilt)return h("Unauthorized client refused");this.y.error(`${r} Unauthorized client handshake failed but we proceed because of dev mode.`)}for(const k in this.b)this.b[k].shortenReconnectionGraceTimeIfNecessary();for(const k in this.a)this.a[k].shortenReconnectionGraceTimeIfNecessary();u=2,f.dispose(),this.G(n,r,o,t,s,i,g)}})}async G(t,s,i,n,r,o,a){const c=a.desiredConnectionType===1?`${s}[ManagementConnection]`:a.desiredConnectionType===2?`${s}[ExtensionHostConnection]`:s;if(a.desiredConnectionType===1)if(r){if(!this.b[o])return this.f.has(o)?this.D(c,i,"Unknown reconnection token (seen before)"):this.D(c,i,"Unknown reconnection token (never seen)");i.sendControl(R.fromString(JSON.stringify({type:"ok"})));const l=i.readEntireBuffer();i.dispose(),this.b[o].acceptReconnection(t,n,l)}else{if(this.b[o])return this.D(c,i,"Duplicate reconnection token");i.sendControl(R.fromString(JSON.stringify({type:"ok"})));const l=new _2(this.y,o,t,i);this.r.acceptConnection(l.protocol,l.onClose),this.b[o]=l,this.f.add(o),l.onClose(()=>{delete this.b[o]})}else if(a.desiredConnectionType===2){const l=a.args||{language:"en"},u=await this.J(l);if(u.port&&this.y.trace(`${c} - startParams debug port ${u.port}`),this.y.trace(`${c} - startParams language: ${u.language}`),this.y.trace(`${c} - startParams env: ${JSON.stringify(u.env)}`),r){if(!this.a[o])return this.f.has(o)?this.D(c,i,"Unknown reconnection token (seen before)"):this.D(c,i,"Unknown reconnection token (never seen)");i.sendPause(),i.sendControl(R.fromString(JSON.stringify(u.port?{debugPort:u.port}:{})));const h=i.readEntireBuffer();i.dispose(),this.a[o].acceptReconnection(t,n,h)}else{if(this.a[o])return this.D(c,i,"Duplicate reconnection token");i.sendPause(),i.sendControl(R.fromString(JSON.stringify(u.port?{debugPort:u.port}:{})));const h=i.readEntireBuffer();i.dispose();const f=this.z.createInstance(mf,o,t,n,h);this.a[o]=f,this.f.add(o),f.onClose(()=>{f.dispose(),delete this.a[o],this.L()}),f.start(u)}}else if(a.desiredConnectionType===3){const l=a.args;this.H(i,l)}else return this.D(c,i,"Unknown initial data received")}async H(t,s){const i=t.getSocket().socket,n=t.readEntireBuffer();t.dispose(),i.pause();const r=await this.I(s.host,s.port);n.byteLength>0&&r.write(n.buffer),r.on("end",()=>i.end()),r.on("close",()=>i.end()),r.on("error",()=>i.destroy()),i.on("end",()=>r.end()),i.on("close",()=>r.end()),i.on("error",()=>r.destroy()),r.pipe(i),i.pipe(r)}I(t,s){return new Promise((i,n)=>{const r=zF.createConnection({host:t,port:s,autoSelectFamily:!0},()=>{r.removeListener("error",n),r.pause(),i(r)});r.once("error",n)})}J(t){return typeof t.port=="number"?MM(t.port,10,5e3).then(s=>(t.port=s,t)):(t.debugId=void 0,t.port=void 0,t.break=void 0,Promise.resolve(t))}async L(){if(!this.u.args["enable-remote-auto-shutdown"])return;this.P(),!!Object.keys(this.a).length||(console.log("Last EH closed, waiting before shutting down"),this.y.info("Last EH closed, waiting before shutting down"),this.M())}M(t=!1){this.u.args["enable-remote-auto-shutdown"]&&(this.u.args["remote-auto-shutdown-without-delay"]&&!t?this.N():this.n=setTimeout(()=>{this.n=void 0,this.N()},PD))}N(){if(!!Object.keys(this.a).length){console.log("New EH opened, aborting shutdown"),this.y.info("New EH opened, aborting shutdown");return}else console.log("Last EH closed, shutting down"),this.y.info("Last EH closed, shutting down"),this.dispose(),process.exit(0)}O(){this.n&&(console.log("Got delay-shutdown request while in shutdown timeout, delaying"),this.y.info("Got delay-shutdown request while in shutdown timeout, delaying"),this.P(),this.M())}P(){this.n&&(console.log("Cancelling previous shutdown timeout"),this.y.info("Cancelling previous shutdown timeout"),clearTimeout(this.n),this.n=void 0)}},D1=__decorate([__param(5,rl),__param(6,dt),__param(7,fe),__param(8,Mn)],D1),ID=class z1{static create(t){const s=t.webEndpointUrlTemplate,i=t.commit,n=t.quality;if(!s||!i||!n)return new z1(null);const r=Ve(),a=new URL(s.replace("{{uuid}}",r).replace("{{commit}}",i).replace("{{quality}}",n)).origin,c=On(a).replace(r,"[a-zA-Z0-9\\-]+");try{const l=pL(`^${c}$`,!0,{matchCase:!1});return new z1(l)}catch{return new z1(null)}}constructor(t){this.a=t}matches(t){return this.a?this.a.test(t):!1}}}}),DD={};OA(DD,{createServer:()=>YF,spawnCli:()=>ZF});import*as GF from"os";import*as AD from"fs";import{performance as JF}from"perf_hooks";function LD(){return w9(process.argv.slice(2),Rg,ND)}function RD(e){const t=e["server-data-dir"]||e["user-data-dir"]||process.env.VSCODE_AGENT_FOLDER||_(GF.homedir(),Ht.serverDataFolderName||".vscode-remote"),s=e["user-data-dir"]||_(t,"data"),i=_(s,"User"),n=_(i,"globalStorage"),r=_(i,"History"),o=_(s,"Machine");e["user-data-dir"]=s;const a=Ut(Ct.asFileUri("").fsPath),c=e["builtin-extensions-dir"]||_(a,"extensions");return e["builtin-extensions-dir"]=c,e["extensions-dir"]=e["extensions-dir"]||_(t,"extensions"),[t,e["extensions-dir"],s,i,o,n,r].forEach(l=>{try{AD.existsSync(l)||AD.mkdirSync(l,{mode:448})}catch(u){console.error(u)}}),t}function ZF(e=LD()){return DM(e,RD(e),Rg)}function YF(e,t=LD()){return WF(e,t,RD(t))}var ND,QF=v({"out-build/vs/server/node/server.main.js"(){"use strict";Se(),AM(),qF(),ah(),he(),aa(),Kc(),Ki(),It("code/server/codeLoaded"),global.vscodeServerCodeLoadedTime=JF.now(),ND={onMultipleValues:(e,t)=>{console.error(`Option '${e}' can only be defined once. Using value ${t}.`)},onEmptyValue:e=>{console.error(`Ignoring option '${e}': Value must not be empty.`)},onUnknownOption:e=>{console.error(`Ignoring option '${e}': not supported for server.`)},onDeprecatedOption:(e,t)=>{console.warn(`Option '${e}' is deprecated: ${t}`)}}}});delete process.env.ELECTRON_RUN_AS_NODE;var XF=xb(kb(),1);import*as OD from"path";import*as CD from"http";import*as KF from"os";import*as eB from"readline";import{performance as _D}from"perf_hooks";import{fileURLToPath as tB}from"url";import*as no from"path";import"fs";import{fileURLToPath as sB}from"url";import{createRequire as iB}from"node:module";var MD=iB(import.meta.url),WV=no.dirname(sB(import.meta.url)),nB=process.platform==="win32";if(Error.stackTraceLimit=100,!process.env.VSCODE_HANDLES_SIGPIPE){let e=!1;process.on("SIGPIPE",()=>{e||(e=!0,console.error(new Error("Unexpected SIGPIPE")))})}function rB(){try{typeof process.env.VSCODE_CWD!="string"&&(process.env.VSCODE_CWD=process.cwd()),process.platform==="win32"&&process.chdir(no.dirname(process.execPath))}catch(e){console.error(e)}}rB();function oB(e){if(!process.env.VSCODE_DEV)return;if(!e)throw new Error("Missing injectPath");MD("node:module").register("./bootstrap-import.js",{parentURL:import.meta.url,data:e})}function aB(){if(typeof process?.versions?.electron=="string")return;const e=MD("module"),t=e.globalPaths,s=e._resolveLookupPaths;e._resolveLookupPaths=function(n,r){const o=s(n,r);if(Array.isArray(o)){let a=0;for(;a<o.length&&o[o.length-1-a]===t[t.length-1-a];)a++;return o.slice(0,o.length-a)}return o};const i=e._nodeModulePaths;e._nodeModulePaths=function(n){let r=i(n);if(!nB)return r;const o=a=>a.length>=3&&a.endsWith(":\\");if(o(n)||(r=r.filter(a=>!o(no.dirname(a)))),process.env.HOMEDRIVE&&process.env.HOMEPATH){const a=no.dirname(no.join(process.env.HOMEDRIVE,process.env.HOMEPATH)),c=l=>no.relative(l,a).length===0;c(n)||(r=r.filter(l=>!c(no.dirname(l))))}return r}}import*as cB from"path";import*as Zv from"fs";import{fileURLToPath as lB}from"url";import{createRequire as uB,register as hB}from"node:module";import{createRequire as fB}from"node:module";var UD=fB(import.meta.url),Yv={BUILD_INSERT_PRODUCT_CONFIGURATION:"BUILD_INSERT_PRODUCT_CONFIGURATION"};Yv.BUILD_INSERT_PRODUCT_CONFIGURATION&&(Yv=UD("../product.json"));var Qv={"name":"code-server","version":"1.102.2","private":true,"overrides":{"node-gyp-build":"4.8.1","kerberos@2.1.1":{"node-addon-api":"7.1.0"}},"type":"module"};Qv.BUILD_INSERT_PACKAGE_CONFIGURATION&&(Qv=UD("../package.json"));var Si=Yv,dB=Qv;Ki();var pB=uB(import.meta.url),mB=cB.dirname(lB(import.meta.url));if((process.env.ELECTRON_RUN_AS_NODE||process.versions.electron)&&hB(`data:text/javascript;base64,${Buffer.from(`
	export async function resolve(specifier, context, nextResolve) {
		if (specifier === 'fs') {
			return {
				format: 'builtin',
				shortCircuit: true,
				url: 'node:original-fs'
			};
		}

		// Defer to the next hook in the chain, which would be the
		// Node.js default resolve if this is the last user-specified loader.
		return nextResolve(specifier, context);
	}`).toString("base64")}`,import.meta.url),globalThis._VSCODE_PRODUCT_JSON={...Si},process.env.VSCODE_DEV)try{const e=pB("../product.overrides.json");globalThis._VSCODE_PRODUCT_JSON=Object.assign(globalThis._VSCODE_PRODUCT_JSON,e)}catch{}globalThis._VSCODE_PACKAGE_JSON={...dB},globalThis._VSCODE_FILE_ROOT=mB;var Xv=void 0;function gB(){return Xv||(Xv=wB()),Xv}async function wB(){It("code/willLoadNls");let e,t;if(process.env.VSCODE_NLS_CONFIG)try{e=JSON.parse(process.env.VSCODE_NLS_CONFIG),e?.languagePack?.messagesFile?t=e.languagePack.messagesFile:e?.defaultMessagesFile&&(t=e.defaultMessagesFile),globalThis._VSCODE_NLS_LANGUAGE=e?.resolvedLanguage}catch(s){console.error(`Error reading VSCODE_NLS_CONFIG from environment: ${s}`)}if(!(process.env.VSCODE_DEV||!t)){try{globalThis._VSCODE_NLS_MESSAGES=JSON.parse((await Zv.promises.readFile(t)).toString())}catch(s){if(console.error(`Error reading NLS messages file ${t}: ${s}`),e?.languagePack?.corruptMarkerFile)try{await Zv.promises.writeFile(e.languagePack.corruptMarkerFile,"corrupted")}catch(i){console.error(`Error writing corrupted NLS marker file: ${i}`)}if(e?.defaultMessagesFile&&e.defaultMessagesFile!==t)try{globalThis._VSCODE_NLS_MESSAGES=JSON.parse((await Zv.promises.readFile(e.defaultMessagesFile)).toString())}catch(i){console.error(`Error reading default NLS messages file ${e.defaultMessagesFile}: ${i}`)}}return It("code/didLoadNls"),e}}async function vB(){await gB()}j4(),Ki();var Kv=OD.dirname(tB(import.meta.url));It("code/server/start"),globalThis.vscodeServerStartTime=_D.now();async function bB(){const e=(0,XF.default)(process.argv.slice(2),{boolean:["start-server","list-extensions","print-ip-address","help","version","accept-server-license-terms","update-extensions"],string:["install-extension","install-builtin-extension","uninstall-extension","locate-extension","socket-path","host","port","compatibility"],alias:{help:"h",version:"v"}});["host","port","accept-server-license-terms"].forEach(r=>{if(!e[r]){const o=process.env[`VSCODE_SERVER_${r.toUpperCase().replace("-","_")}`];o&&(e[r]=o)}});const t=["list-extensions","locate-extension"],s=["install-extension","install-builtin-extension","uninstall-extension","update-extensions"],i=e.help||e.version||t.some(r=>!!e[r])||s.some(r=>!!e[r])&&!e["start-server"],n=await Hp({userLocale:"en",osLocale:"en",commit:Si.commit,userDataPath:"",nlsMetadataPath:Kv});if(i)tb(n).then(r=>{r.spawnCli()});else{let r=null,o=null;const a=()=>(o||(o=tb(n).then(async g=>{const w=await g.createServer(u);return r=w,w})),o);if(Array.isArray(Si.serverLicense)&&Si.serverLicense.length&&(console.log(Si.serverLicense.join(`
`)),Si.serverLicensePrompt&&e["accept-server-license-terms"]!==!0)){kB()&&(console.log("To accept the license terms, start the server with --accept-server-license-terms"),process.exit(1));try{await jD(Si.serverLicensePrompt)||process.exit(1)}catch(g){console.log(g),process.exit(1)}}let c=!0,l=!0,u=null;const h=CD.createServer(async(g,w)=>(c&&(c=!1,It("code/server/firstRequest")),(await a()).handleRequest(g,w)));h.on("upgrade",async(g,w)=>(l&&(l=!1,It("code/server/firstWebSocket")),(await a()).handleUpgrade(g,w))),h.on("error",async g=>(await a()).handleServerError(g));const f=eb(e.host)||(e.compatibility!=="1.63"?"localhost":void 0),p=e["socket-path"]?{path:eb(e["socket-path"])}:{host:f,port:await yB(f,eb(e.port))};h.listen(p,async()=>{let g=Array.isArray(Si.serverGreeting)&&Si.serverGreeting.length?`

${Si.serverGreeting.join(`
`)}

`:"";if(typeof p.port=="number"&&e["print-ip-address"]){const w=KF.networkInterfaces();Object.keys(w).forEach(function(b){w[b]?.forEach(function(x){!x.internal&&x.family==="IPv4"&&(g+=`IP Address: ${x.address}
`)})})}if(u=h.address(),u===null)throw new Error("Unexpected server address");g+=`Server bound to ${typeof u=="string"?u:`${u.address}:${u.port} (${u.family})`}
`,g+=`Extension host agent listening on ${typeof u=="string"?u:u.port}
`,console.log(g),It("code/server/started"),globalThis.vscodeServerListenTime=_D.now(),await a()}),process.on("exit",()=>{h.close(),r&&r.dispose()})}}function eb(e){return Array.isArray(e)&&(e=e.pop()),typeof e=="string"?e:void 0}async function yB(e,t){if(t){let s;if(t.match(/^\d+$/))return parseInt(t,10);if(s=EB(t)){const i=await xB(e,s.start,s.end);if(i!==void 0)return i;console.warn(`--port: Could not find free port in range: ${s.start} - ${s.end} (inclusive).`),process.exit(1)}else console.warn(`--port "${t}" is not a valid number or range. Ranges must be in the form 'from-to' with 'from' an integer larger than 0 and not larger than 'end'.`),process.exit(1)}return 8e3}function EB(e){const t=e.match(/^(\d+)-(\d+)$/);if(t){const s=parseInt(t[1],10),i=parseInt(t[2],10);if(s>0&&s<=i&&i<=65535)return{start:s,end:i}}}async function xB(e,t,s){const i=n=>new Promise(r=>{const o=CD.createServer();o.listen(n,e,()=>{o.close(),r(!0)}).on("error",()=>{r(!1)})});for(let n=t;n<=s;n++)if(await i(n))return n}async function tb(e){return process.env.VSCODE_NLS_CONFIG=JSON.stringify(e),process.env.VSCODE_HANDLES_SIGPIPE="true",process.env.VSCODE_DEV?(process.env.VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH=process.env.VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH||OD.join(Kv,"..","remote","node_modules"),oB(process.env.VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH)):delete process.env.VSCODE_DEV_INJECT_NODE_MODULE_LOOKUP_PATH,aB(),await vB(),Promise.resolve().then(()=>(QF(),DD))}function kB(){try{return!process.stdin.isTTY}catch{}return!1}function jD(e){const t=eB.createInterface({input:process.stdin,output:process.stdout});return new Promise((s,i)=>{t.question(e+" ",async function(n){t.close();const r=n.toString().trim().toLowerCase();r===""||r==="y"||r==="yes"?s(!0):r==="n"||r==="no"?s(!1):(process.stdout.write(`
Invalid Response. Answer either yes (y, yes) or no (n, no)
`),s(await jD(e)))})})}async function $B(){const e=await Hp({userLocale:"en",osLocale:"en",commit:Si.commit,userDataPath:"",nlsMetadataPath:Kv});return tb(e)}process.env.CODE_SERVER_PARENT_PID||bB();export{$B as loadCodeWithNls};

//# sourceMappingURL=server-main.js.map

CasperSecurity Mini