code-server
Version:
Run VS Code on a remote server.
384 lines (343 loc) • 1.38 MB
JavaScript
/*!--------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/
/******************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise, SuppressedError, Symbol */
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
export function __extends(d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
export var __assign = function() {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
}
return t;
}
return __assign.apply(this, arguments);
}
export function __rest(s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
export function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
export function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
}
export function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
var _, done = false;
for (var i = decorators.length - 1; i >= 0; i--) {
var context = {};
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
if (kind === "accessor") {
if (result === void 0) continue;
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
if (_ = accept(result.get)) descriptor.get = _;
if (_ = accept(result.set)) descriptor.set = _;
if (_ = accept(result.init)) initializers.unshift(_);
}
else if (_ = accept(result)) {
if (kind === "field") initializers.unshift(_);
else descriptor[key] = _;
}
}
if (target) Object.defineProperty(target, contextIn.name, descriptor);
done = true;
};
export function __runInitializers(thisArg, initializers, value) {
var useValue = arguments.length > 2;
for (var i = 0; i < initializers.length; i++) {
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
}
return useValue ? value : void 0;
};
export function __propKey(x) {
return typeof x === "symbol" ? x : "".concat(x);
};
export function __setFunctionName(f, name, prefix) {
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
};
export function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
}
export function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
export function __generator(thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
}
export var __createBinding = Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
});
export function __exportStar(m, o) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
}
export function __values(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
export function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
}
/** @deprecated */
export function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
/** @deprecated */
export function __spreadArrays() {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
}
export function __spreadArray(to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
}
export function __await(v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
}
export function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
}
export function __asyncDelegator(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
}
export function __asyncValues(o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
}
export function __makeTemplateObject(cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
var __setModuleDefault = Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
};
export function __importStar(mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
}
export function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
}
export function __classPrivateFieldGet(receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
}
export function __classPrivateFieldSet(receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
}
export function __classPrivateFieldIn(state, receiver) {
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
return typeof state === "function" ? receiver === state : state.has(receiver);
}
export function __addDisposableResource(env, value, async) {
if (value !== null && value !== void 0) {
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
var dispose, inner;
if (async) {
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
dispose = value[Symbol.asyncDispose];
}
if (dispose === void 0) {
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
dispose = value[Symbol.dispose];
if (async) inner = dispose;
}
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
env.stack.push({ value: value, dispose: dispose, async: async });
}
else if (async) {
env.stack.push({ async: true });
}
return value;
}
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
var e = new Error(message);
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
};
export function __disposeResources(env) {
function fail(e) {
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
env.hasError = true;
}
function next() {
while (env.stack.length) {
var rec = env.stack.pop();
try {
var result = rec.dispose && rec.dispose.call(rec.value);
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
}
catch (e) {
fail(e);
}
}
if (env.hasError) throw env.error;
}
return next();
}
export default {
__extends: __extends,
__assign: __assign,
__rest: __rest,
__decorate: __decorate,
__param: __param,
__metadata: __metadata,
__awaiter: __awaiter,
__generator: __generator,
__createBinding: __createBinding,
__exportStar: __exportStar,
__values: __values,
__read: __read,
__spread: __spread,
__spreadArrays: __spreadArrays,
__spreadArray: __spreadArray,
__await: __await,
__asyncGenerator: __asyncGenerator,
__asyncDelegator: __asyncDelegator,
__asyncValues: __asyncValues,
__makeTemplateObject: __makeTemplateObject,
__importStar: __importStar,
__importDefault: __importDefault,
__classPrivateFieldGet: __classPrivateFieldGet,
__classPrivateFieldSet: __classPrivateFieldSet,
__classPrivateFieldIn: __classPrivateFieldIn,
__addDisposableResource: __addDisposableResource,
__disposeResources: __disposeResources,
};
var c4=Object.create;var Cg=Object.defineProperty;var fk=Object.getOwnPropertyDescriptor;var d4=Object.getOwnPropertyNames;var u4=Object.getPrototypeOf,p4=Object.prototype.hasOwnProperty;var gk=o=>{throw TypeError(o)};var y=(o,t)=>()=>(o&&(t=o(o=0)),t);var m4=(o,t)=>()=>(t||o((t={exports:{}}).exports,t),t.exports),f4=(o,t)=>{for(var e in t)Cg(o,e,{get:t[e],enumerable:!0})},g4=(o,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of d4(t))!p4.call(o,r)&&r!==e&&Cg(o,r,{get:()=>t[r],enumerable:!(n=fk(t,r))||n.enumerable});return o};var hk=(o,t,e)=>(e=o!=null?c4(u4(o)):{},g4(t||!o||!o.__esModule?Cg(e,"default",{value:o,enumerable:!0}):e,o));var E=(o,t,e,n)=>{for(var r=n>1?void 0:n?fk(t,e):t,i=o.length-1,s;i>=0;i--)(s=o[i])&&(r=(n?s(t,e,r):s(r))||r);return n&&r&&Cg(t,e,r),r},b=(o,t)=>(e,n)=>t(e,n,o);var px=(o,t,e)=>t.has(o)||gk("Cannot "+e);var jt=(o,t,e)=>(px(o,t,"read from private field"),e?e.call(o):t.get(o)),mc=(o,t,e)=>t.has(o)?gk("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(o):t.set(o,e),op=(o,t,e,n)=>(px(o,t,"write to private field"),n?n.call(o,e):t.set(o,e),e),ip=(o,t,e)=>(px(o,t,"access private method"),e);var mx=m4((f$,bk)=>{"use strict";function h4(o,t){var e=o;t.slice(0,-1).forEach(function(r){e=e[r]||{}});var n=t[t.length-1];return n in e}function vk(o){return typeof o=="number"||/^0x[0-9a-f]+$/i.test(o)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(o)}function yk(o,t){return t==="constructor"&&typeof o[t]=="function"||t==="__proto__"}bk.exports=function(o,t){t||(t={});var e={bools:{},strings:{},unknownFn:null};typeof t.unknown=="function"&&(e.unknownFn=t.unknown),typeof t.boolean=="boolean"&&t.boolean?e.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach(function(M){e.bools[M]=!0});var n={};function r(M){return n[M].some(function(W){return e.bools[W]})}Object.keys(t.alias||{}).forEach(function(M){n[M]=[].concat(t.alias[M]),n[M].forEach(function(W){n[W]=[M].concat(n[M].filter(function(De){return W!==De}))})}),[].concat(t.string).filter(Boolean).forEach(function(M){e.strings[M]=!0,n[M]&&[].concat(n[M]).forEach(function(W){e.strings[W]=!0})});var i=t.default||{},s={_:[]};function a(M,W){return e.allBools&&/^--[^=]+$/.test(W)||e.strings[M]||e.bools[M]||n[M]}function l(M,W,De){for(var U=M,ae=0;ae<W.length-1;ae++){var $=W[ae];if(yk(U,$))return;U[$]===void 0&&(U[$]={}),(U[$]===Object.prototype||U[$]===Number.prototype||U[$]===String.prototype)&&(U[$]={}),U[$]===Array.prototype&&(U[$]=[]),U=U[$]}var B=W[W.length-1];yk(U,B)||((U===Object.prototype||U===Number.prototype||U===String.prototype)&&(U={}),U===Array.prototype&&(U=[]),U[B]===void 0||e.bools[B]||typeof U[B]=="boolean"?U[B]=De:Array.isArray(U[B])?U[B].push(De):U[B]=[U[B],De])}function c(M,W,De){if(!(De&&e.unknownFn&&!a(M,De)&&e.unknownFn(De)===!1)){var U=!e.strings[M]&&vk(W)?Number(W):W;l(s,M.split("."),U),(n[M]||[]).forEach(function(ae){l(s,ae.split("."),U)})}}Object.keys(e.bools).forEach(function(M){c(M,i[M]===void 0?!1:i[M])});var u=[];o.indexOf("--")!==-1&&(u=o.slice(o.indexOf("--")+1),o=o.slice(0,o.indexOf("--")));for(var p=0;p<o.length;p++){var m=o[p],g,h;if(/^--.+=/.test(m)){var v=m.match(/^--([^=]+)=([\s\S]*)$/);g=v[1];var I=v[2];e.bools[g]&&(I=I!=="false"),c(g,I,m)}else if(/^--no-.+/.test(m))g=m.match(/^--no-(.+)/)[1],c(g,!1,m);else if(/^--.+/.test(m))g=m.match(/^--(.+)/)[1],h=o[p+1],h!==void 0&&!/^(-|--)[^-]/.test(h)&&!e.bools[g]&&!e.allBools&&(!n[g]||!r(g))?(c(g,h,m),p+=1):/^(true|false)$/.test(h)?(c(g,h==="true",m),p+=1):c(g,e.strings[g]?"":!0,m);else if(/^-[^-]+/.test(m)){for(var T=m.slice(1,-1).split(""),C=!1,R=0;R<T.length;R++){if(h=m.slice(R+2),h==="-"){c(T[R],h,m);continue}if(/[A-Za-z]/.test(T[R])&&h[0]==="="){c(T[R],h.slice(1),m),C=!0;break}if(/[A-Za-z]/.test(T[R])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(h)){c(T[R],h,m),C=!0;break}if(T[R+1]&&T[R+1].match(/\W/)){c(T[R],m.slice(R+2),m),C=!0;break}else c(T[R],e.strings[T[R]]?"":!0,m)}g=m.slice(-1)[0],!C&&g!=="-"&&(o[p+1]&&!/^(-|--)[^-]/.test(o[p+1])&&!e.bools[g]&&(!n[g]||!r(g))?(c(g,o[p+1],m),p+=1):o[p+1]&&/^(true|false)$/.test(o[p+1])?(c(g,o[p+1]==="true",m),p+=1):c(g,e.strings[g]?"":!0,m))}else if((!e.unknownFn||e.unknownFn(m)!==!1)&&s._.push(e.strings._||!vk(m)?m:Number(m)),t.stopEarly){s._.push.apply(s._,o.slice(p+1));break}}return Object.keys(i).forEach(function(M){h4(s,M.split("."))||(l(s,M.split("."),i[M]),(n[M]||[]).forEach(function(W){l(s,W.split("."),i[M])}))}),t["--"]?s["--"]=u.slice():u.forEach(function(M){s._.push(M)}),s}});function fx(o){let t=[];typeof o=="number"&&t.push("code/timeOrigin",o);function e(i,s){t.push(i,s?.startTime??Date.now())}function n(){let i=[];for(let s=0;s<t.length;s+=2)i.push({name:t[s],startTime:t[s+1]});return i}function r(i){if(typeof i>"u"){let s=t.length>=2&&t[0]==="code/timeOrigin",a=s?t[1]:void 0;t.length=0,s&&t.push("code/timeOrigin",a)}else for(let s=t.length-2;s>=0;s-=2)t[s]===i&&t.splice(s,2)}return{mark:e,getMarks:n,clearMarks:r}}function x4(){if(typeof performance=="object"&&typeof performance.mark=="function"&&!performance.nodeTiming)return typeof performance.timeOrigin!="number"&&!performance.timing?fx():{mark(o,t){performance.mark(o,t)},clearMarks(o){performance.clearMarks(o)},getMarks(){let o=performance.timeOrigin;typeof o!="number"&&(o=(performance.timing.navigationStart||performance.timing.redirectStart||performance.timing.fetchStart)??0);let t=[{name:"code/timeOrigin",startTime:Math.round(o)}];for(let e of performance.getEntriesByType("mark"))t.push({name:e.name,startTime:Math.round(o+e.startTime)});return t}};if(typeof process=="object"){let o=performance?.timeOrigin;return fx(o)}else return console.trace("perf-util loaded in UNKNOWN environment"),fx()}function S4(o){return o.MonacoPerformanceMarks||(o.MonacoPerformanceMarks=x4()),o.MonacoPerformanceMarks}var gx,At,b$,wk,zo=y(()=>{gx=S4(globalThis),At=gx.mark,b$=gx.clearMarks,wk=gx.getMarks});function T4(){return globalThis._VSCODE_NLS_MESSAGES}function vx(){return globalThis._VSCODE_NLS_LANGUAGE}function Tg(o,t){let e;return t.length===0?e=o:e=o.replace(/\{(\d+)\}/g,(n,r)=>{let i=r[0],s=t[i],a=n;return typeof s=="string"?a=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(a=String(s)),a}),P4&&(e="\uFF3B"+e.replace(/[aouei]/g,"$&$&")+"\uFF3D"),e}function d(o,t,...e){return Tg(typeof o=="number"?Pk(o,t):t,e)}function Pk(o,t){let e=T4()?.[o];if(typeof e!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${o} !!!`)}return e}function yx(o,t,...e){let n;typeof o=="number"?n=Pk(o,t):n=t;let r=Tg(n,e);return{value:r,original:t===n?r:Tg(t,e)}}var P4,ue=y(()=>{P4=vx()==="pseudo"||typeof document<"u"&&document.location&&typeof document.location.hash=="string"&&document.location.hash.indexOf("pseudo=true")>=0});function Dg(o){switch(o){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}var Gi,cp,dp,lp,kk,Dk,bx,R4,Ix,k4,_k,Pg,Rg,Rk,D4,zi,qi,Mr,Lk,_4,kg,te,it,Me,Mk,_g,Qt,L4,Ok,Ak,Nk,Go,gi,wn,M4,O4,Uk,Or,up,Fk,Vk,Lg,C$,pe=y(()=>{ue();Gi="en",cp=!1,dp=!1,lp=!1,kk=!1,Dk=!1,bx=!1,R4=!1,Ix=!1,k4=!1,_k=!1,Rg=Gi,Rk=Gi,qi=globalThis;typeof qi.vscode<"u"&&typeof qi.vscode.process<"u"?Mr=qi.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(Mr=process);Lk=typeof Mr?.versions?.electron=="string",_4=Lk&&Mr?.type==="renderer";if(typeof Mr=="object"){cp=Mr.platform==="win32",dp=Mr.platform==="darwin",lp=Mr.platform==="linux",kk=lp&&!!Mr.env.SNAP&&!!Mr.env.SNAP_REVISION,R4=Lk,k4=!!Mr.env.CI||!!Mr.env.BUILD_ARTIFACTSTAGINGDIRECTORY||!!Mr.env.GITHUB_WORKSPACE,Pg=Gi,Rg=Gi;let o=Mr.env.VSCODE_NLS_CONFIG;if(o)try{let t=JSON.parse(o);Pg=t.userLocale,Rk=t.osLocale,Rg=t.resolvedLanguage||Gi,D4=t.languagePack?.translationsConfigFile}catch{}Dk=!0}else typeof navigator=="object"&&!_4?(zi=navigator.userAgent,cp=zi.indexOf("Windows")>=0,dp=zi.indexOf("Macintosh")>=0,Ix=(zi.indexOf("Macintosh")>=0||zi.indexOf("iPad")>=0||zi.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,lp=zi.indexOf("Linux")>=0,_k=zi?.indexOf("Mobi")>=0,bx=!0,Rg=vx()||Gi,Pg=navigator.language.toLowerCase(),Rk=Pg):console.error("Unable to resolve platform.");kg=0;dp?kg=1:cp?kg=3:lp&&(kg=2);te=cp,it=dp,Me=lp,Mk=kk,_g=Dk,Qt=bx,L4=bx&&typeof qi.importScripts=="function",Ok=L4?qi.origin:void 0,Ak=Ix,Nk=_k,Go=kg,gi=zi,wn=Rg;(n=>{function o(){return wn}n.value=o;function t(){return wn.length===2?wn==="en":wn.length>=3?wn[0]==="e"&&wn[1]==="n"&&wn[2]==="-":!1}n.isDefaultVariant=t;function e(){return wn==="en"}n.isDefault=e})(M4||={});O4=typeof qi.postMessage=="function"&&!qi.importScripts,Uk=(()=>{if(O4){let o=[];qi.addEventListener("message",e=>{if(e.data&&e.data.vscodeScheduleAsyncWork)for(let n=0,r=o.length;n<r;n++){let i=o[n];if(i.id===e.data.vscodeScheduleAsyncWork){o.splice(n,1),i.callback();return}}});let t=0;return e=>{let n=++t;o.push({id:n,callback:e}),qi.postMessage({vscodeScheduleAsyncWork:n},"*")}}return o=>setTimeout(o)})(),Or=dp||Ix?2:cp?1:3,up=!!(gi&&gi.indexOf("Chrome")>=0),Fk=!!(gi&&gi.indexOf("Firefox")>=0),Vk=!!(!up&&gi&&gi.indexOf("Safari")>=0),Lg=!!(gi&&gi.indexOf("Edg/")>=0),C$=!!(gi&&gi.indexOf("Android")>=0)});var za,xx,to,$t,Mg,Og,no=y(()=>{pe();xx=globalThis.vscode;if(typeof xx<"u"&&typeof xx.process<"u"){let o=xx.process;za={get platform(){return o.platform},get arch(){return o.arch},get env(){return o.env},cwd(){return o.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?za={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:za={get platform(){return te?"win32":it?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};to=za.cwd,$t=za.env,Mg=za.platform,Og=za.arch});function W4(o,t){if(o===null||typeof o!="object")throw new Ag(t,"Object",o)}function dn(o,t){if(typeof o!="string")throw new Ag(t,"string",o)}function Ge(o){return o===Wn||o===Ar}function Ex(o){return o===Wn}function ji(o){return o>=A4&&o<=U4||o>=N4&&o<=F4}function Ng(o,t,e,n){let r="",i=0,s=-1,a=0,l=0;for(let c=0;c<=o.length;++c){if(c<o.length)l=o.charCodeAt(c);else{if(n(l))break;l=Wn}if(n(l)){if(!(s===c-1||a===1))if(a===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==Ga||r.charCodeAt(r.length-2)!==Ga){if(r.length>2){let u=r.lastIndexOf(e);u===-1?(r="",i=0):(r=r.slice(0,u),i=r.length-1-r.lastIndexOf(e)),s=c,a=0;continue}else if(r.length!==0){r="",i=0,s=c,a=0;continue}}t&&(r+=r.length>0?`${e}..`:"..",i=2)}else r.length>0?r+=`${e}${o.slice(s+1,c)}`:r=o.slice(s+1,c),i=c-s-1;s=c,a=0}else l===Ga&&a!==-1?++a:a=-1}return r}function B4(o){return o?`${o[0]==="."?"":"."}${o}`:""}function Wk(o,t){W4(t,"pathObject");let e=t.dir||t.root,n=t.base||`${t.name||""}${B4(t.ext)}`;return e?e===t.root?`${e}${n}`:`${e}${o}${n}`:n}var A4,N4,U4,F4,Ga,Wn,Ar,Ki,V4,Ag,Nr,nn,H4,He,In,ro,H,Bn,Qi,Tt,dt,qo,P$,R$,k$,en,Ds,Oe=y(()=>{no();A4=65,N4=97,U4=90,F4=122,Ga=46,Wn=47,Ar=92,Ki=58,V4=63,Ag=class extends Error{constructor(t,e,n){let r;typeof e=="string"&&e.indexOf("not ")===0?(r="must not be",e=e.replace(/^not /,"")):r="must be";let i=t.indexOf(".")!==-1?"property":"argument",s=`The "${t}" ${i} ${r} of type ${e}`;s+=`. Received type ${typeof n}`,super(s),this.code="ERR_INVALID_ARG_TYPE"}};Nr=Mg==="win32";nn={resolve(...o){let t="",e="",n=!1;for(let r=o.length-1;r>=-1;r--){let i;if(r>=0){if(i=o[r],dn(i,`paths[${r}]`),i.length===0)continue}else t.length===0?i=to():(i=$t[`=${t}`]||to(),(i===void 0||i.slice(0,2).toLowerCase()!==t.toLowerCase()&&i.charCodeAt(2)===Ar)&&(i=`${t}\\`));let s=i.length,a=0,l="",c=!1,u=i.charCodeAt(0);if(s===1)Ge(u)&&(a=1,c=!0);else if(Ge(u))if(c=!0,Ge(i.charCodeAt(1))){let p=2,m=p;for(;p<s&&!Ge(i.charCodeAt(p));)p++;if(p<s&&p!==m){let g=i.slice(m,p);for(m=p;p<s&&Ge(i.charCodeAt(p));)p++;if(p<s&&p!==m){for(m=p;p<s&&!Ge(i.charCodeAt(p));)p++;(p===s||p!==m)&&(l=`\\\\${g}\\${i.slice(m,p)}`,a=p)}}}else a=1;else ji(u)&&i.charCodeAt(1)===Ki&&(l=i.slice(0,2),a=2,s>2&&Ge(i.charCodeAt(2))&&(c=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(n){if(t.length>0)break}else if(e=`${i.slice(a)}\\${e}`,n=c,c&&t.length>0)break}return e=Ng(e,!n,"\\",Ge),n?`${t}\\${e}`:`${t}${e}`||"."},normalize(o){dn(o,"path");let t=o.length;if(t===0)return".";let e=0,n,r=!1,i=o.charCodeAt(0);if(t===1)return Ex(i)?"\\":o;if(Ge(i))if(r=!0,Ge(o.charCodeAt(1))){let a=2,l=a;for(;a<t&&!Ge(o.charCodeAt(a));)a++;if(a<t&&a!==l){let c=o.slice(l,a);for(l=a;a<t&&Ge(o.charCodeAt(a));)a++;if(a<t&&a!==l){for(l=a;a<t&&!Ge(o.charCodeAt(a));)a++;if(a===t)return`\\\\${c}\\${o.slice(l)}\\`;a!==l&&(n=`\\\\${c}\\${o.slice(l,a)}`,e=a)}}}else e=1;else ji(i)&&o.charCodeAt(1)===Ki&&(n=o.slice(0,2),e=2,t>2&&Ge(o.charCodeAt(2))&&(r=!0,e=3));let s=e<t?Ng(o.slice(e),!r,"\\",Ge):"";if(s.length===0&&!r&&(s="."),s.length>0&&Ge(o.charCodeAt(t-1))&&(s+="\\"),!r&&n===void 0&&o.includes(":")){if(s.length>=2&&ji(s.charCodeAt(0))&&s.charCodeAt(1)===Ki)return`.\\${s}`;let a=o.indexOf(":");do if(a===t-1||Ge(o.charCodeAt(a+1)))return`.\\${s}`;while((a=o.indexOf(":",a+1))!==-1)}return n===void 0?r?`\\${s}`:s:r?`${n}\\${s}`:`${n}${s}`},isAbsolute(o){dn(o,"path");let t=o.length;if(t===0)return!1;let e=o.charCodeAt(0);return Ge(e)||t>2&&ji(e)&&o.charCodeAt(1)===Ki&&Ge(o.charCodeAt(2))},join(...o){if(o.length===0)return".";let t,e;for(let i=0;i<o.length;++i){let s=o[i];dn(s,"path"),s.length>0&&(t===void 0?t=e=s:t+=`\\${s}`)}if(t===void 0)return".";let n=!0,r=0;if(typeof e=="string"&&Ge(e.charCodeAt(0))){++r;let i=e.length;i>1&&Ge(e.charCodeAt(1))&&(++r,i>2&&(Ge(e.charCodeAt(2))?++r:n=!1))}if(n){for(;r<t.length&&Ge(t.charCodeAt(r));)r++;r>=2&&(t=`\\${t.slice(r)}`)}return nn.normalize(t)},relative(o,t){if(dn(o,"from"),dn(t,"to"),o===t)return"";let e=nn.resolve(o),n=nn.resolve(t);if(e===n||(o=e.toLowerCase(),t=n.toLowerCase(),o===t))return"";if(e.length!==o.length||n.length!==t.length){let h=e.split("\\"),v=n.split("\\");h[h.length-1]===""&&h.pop(),v[v.length-1]===""&&v.pop();let I=h.length,T=v.length,C=I<T?I:T,R;for(R=0;R<C&&h[R].toLowerCase()===v[R].toLowerCase();R++);return R===0?n:R===C?T>C?v.slice(R).join("\\"):I>C?"..\\".repeat(I-1-R)+"..":"":"..\\".repeat(I-R)+v.slice(R).join("\\")}let r=0;for(;r<o.length&&o.charCodeAt(r)===Ar;)r++;let i=o.length;for(;i-1>r&&o.charCodeAt(i-1)===Ar;)i--;let s=i-r,a=0;for(;a<t.length&&t.charCodeAt(a)===Ar;)a++;let l=t.length;for(;l-1>a&&t.charCodeAt(l-1)===Ar;)l--;let c=l-a,u=s<c?s:c,p=-1,m=0;for(;m<u;m++){let h=o.charCodeAt(r+m);if(h!==t.charCodeAt(a+m))break;h===Ar&&(p=m)}if(m!==u){if(p===-1)return n}else{if(c>u){if(t.charCodeAt(a+m)===Ar)return n.slice(a+m+1);if(m===2)return n.slice(a+m)}s>u&&(o.charCodeAt(r+m)===Ar?p=m:m===2&&(p=3)),p===-1&&(p=0)}let g="";for(m=r+p+1;m<=i;++m)(m===i||o.charCodeAt(m)===Ar)&&(g+=g.length===0?"..":"\\..");return a+=p,g.length>0?`${g}${n.slice(a,l)}`:(n.charCodeAt(a)===Ar&&++a,n.slice(a,l))},toNamespacedPath(o){if(typeof o!="string"||o.length===0)return o;let t=nn.resolve(o);if(t.length<=2)return o;if(t.charCodeAt(0)===Ar){if(t.charCodeAt(1)===Ar){let e=t.charCodeAt(2);if(e!==V4&&e!==Ga)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(ji(t.charCodeAt(0))&&t.charCodeAt(1)===Ki&&t.charCodeAt(2)===Ar)return`\\\\?\\${t}`;return t},dirname(o){dn(o,"path");let t=o.length;if(t===0)return".";let e=-1,n=0,r=o.charCodeAt(0);if(t===1)return Ge(r)?o:".";if(Ge(r)){if(e=n=1,Ge(o.charCodeAt(1))){let a=2,l=a;for(;a<t&&!Ge(o.charCodeAt(a));)a++;if(a<t&&a!==l){for(l=a;a<t&&Ge(o.charCodeAt(a));)a++;if(a<t&&a!==l){for(l=a;a<t&&!Ge(o.charCodeAt(a));)a++;if(a===t)return o;a!==l&&(e=n=a+1)}}}}else ji(r)&&o.charCodeAt(1)===Ki&&(e=t>2&&Ge(o.charCodeAt(2))?3:2,n=e);let i=-1,s=!0;for(let a=t-1;a>=n;--a)if(Ge(o.charCodeAt(a))){if(!s){i=a;break}}else s=!1;if(i===-1){if(e===-1)return".";i=e}return o.slice(0,i)},basename(o,t){t!==void 0&&dn(t,"suffix"),dn(o,"path");let e=0,n=-1,r=!0,i;if(o.length>=2&&ji(o.charCodeAt(0))&&o.charCodeAt(1)===Ki&&(e=2),t!==void 0&&t.length>0&&t.length<=o.length){if(t===o)return"";let s=t.length-1,a=-1;for(i=o.length-1;i>=e;--i){let l=o.charCodeAt(i);if(Ge(l)){if(!r){e=i+1;break}}else a===-1&&(r=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(n=i):(s=-1,n=a))}return e===n?n=a:n===-1&&(n=o.length),o.slice(e,n)}for(i=o.length-1;i>=e;--i)if(Ge(o.charCodeAt(i))){if(!r){e=i+1;break}}else n===-1&&(r=!1,n=i+1);return n===-1?"":o.slice(e,n)},extname(o){dn(o,"path");let t=0,e=-1,n=0,r=-1,i=!0,s=0;o.length>=2&&o.charCodeAt(1)===Ki&&ji(o.charCodeAt(0))&&(t=n=2);for(let a=o.length-1;a>=t;--a){let l=o.charCodeAt(a);if(Ge(l)){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),l===Ga?e===-1?e=a:s!==1&&(s=1):e!==-1&&(s=-1)}return e===-1||r===-1||s===0||s===1&&e===r-1&&e===n+1?"":o.slice(e,r)},format:Wk.bind(null,"\\"),parse(o){dn(o,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return t;let e=o.length,n=0,r=o.charCodeAt(0);if(e===1)return Ge(r)?(t.root=t.dir=o,t):(t.base=t.name=o,t);if(Ge(r)){if(n=1,Ge(o.charCodeAt(1))){let p=2,m=p;for(;p<e&&!Ge(o.charCodeAt(p));)p++;if(p<e&&p!==m){for(m=p;p<e&&Ge(o.charCodeAt(p));)p++;if(p<e&&p!==m){for(m=p;p<e&&!Ge(o.charCodeAt(p));)p++;p===e?n=p:p!==m&&(n=p+1)}}}}else if(ji(r)&&o.charCodeAt(1)===Ki){if(e<=2)return t.root=t.dir=o,t;if(n=2,Ge(o.charCodeAt(2))){if(e===3)return t.root=t.dir=o,t;n=3}}n>0&&(t.root=o.slice(0,n));let i=-1,s=n,a=-1,l=!0,c=o.length-1,u=0;for(;c>=n;--c){if(r=o.charCodeAt(c),Ge(r)){if(!l){s=c+1;break}continue}a===-1&&(l=!1,a=c+1),r===Ga?i===-1?i=c:u!==1&&(u=1):i!==-1&&(u=-1)}return a!==-1&&(i===-1||u===0||u===1&&i===a-1&&i===s+1?t.base=t.name=o.slice(s,a):(t.name=o.slice(s,i),t.base=o.slice(s,a),t.ext=o.slice(i,a))),s>0&&s!==n?t.dir=o.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},H4=(()=>{if(Nr){let o=/\\/g;return()=>{let t=to().replace(o,"/");return t.slice(t.indexOf("/"))}}return()=>to()})(),He={resolve(...o){let t="",e=!1;for(let n=o.length-1;n>=0&&!e;n--){let r=o[n];dn(r,`paths[${n}]`),r.length!==0&&(t=`${r}/${t}`,e=r.charCodeAt(0)===Wn)}if(!e){let n=H4();t=`${n}/${t}`,e=n.charCodeAt(0)===Wn}return t=Ng(t,!e,"/",Ex),e?`/${t}`:t.length>0?t:"."},normalize(o){if(dn(o,"path"),o.length===0)return".";let t=o.charCodeAt(0)===Wn,e=o.charCodeAt(o.length-1)===Wn;return o=Ng(o,!t,"/",Ex),o.length===0?t?"/":e?"./":".":(e&&(o+="/"),t?`/${o}`:o)},isAbsolute(o){return dn(o,"path"),o.length>0&&o.charCodeAt(0)===Wn},join(...o){if(o.length===0)return".";let t=[];for(let e=0;e<o.length;++e){let n=o[e];dn(n,"path"),n.length>0&&t.push(n)}return t.length===0?".":He.normalize(t.join("/"))},relative(o,t){if(dn(o,"from"),dn(t,"to"),o===t||(o=He.resolve(o),t=He.resolve(t),o===t))return"";let e=1,n=o.length,r=n-e,i=1,s=t.length-i,a=r<s?r:s,l=-1,c=0;for(;c<a;c++){let p=o.charCodeAt(e+c);if(p!==t.charCodeAt(i+c))break;p===Wn&&(l=c)}if(c===a)if(s>a){if(t.charCodeAt(i+c)===Wn)return t.slice(i+c+1);if(c===0)return t.slice(i+c)}else r>a&&(o.charCodeAt(e+c)===Wn?l=c:c===0&&(l=0));let u="";for(c=e+l+1;c<=n;++c)(c===n||o.charCodeAt(c)===Wn)&&(u+=u.length===0?"..":"/..");return`${u}${t.slice(i+l)}`},toNamespacedPath(o){return o},dirname(o){if(dn(o,"path"),o.length===0)return".";let t=o.charCodeAt(0)===Wn,e=-1,n=!0;for(let r=o.length-1;r>=1;--r)if(o.charCodeAt(r)===Wn){if(!n){e=r;break}}else n=!1;return e===-1?t?"/":".":t&&e===1?"//":o.slice(0,e)},basename(o,t){t!==void 0&&dn(t,"suffix"),dn(o,"path");let e=0,n=-1,r=!0,i;if(t!==void 0&&t.length>0&&t.length<=o.length){if(t===o)return"";let s=t.length-1,a=-1;for(i=o.length-1;i>=0;--i){let l=o.charCodeAt(i);if(l===Wn){if(!r){e=i+1;break}}else a===-1&&(r=!1,a=i+1),s>=0&&(l===t.charCodeAt(s)?--s===-1&&(n=i):(s=-1,n=a))}return e===n?n=a:n===-1&&(n=o.length),o.slice(e,n)}for(i=o.length-1;i>=0;--i)if(o.charCodeAt(i)===Wn){if(!r){e=i+1;break}}else n===-1&&(r=!1,n=i+1);return n===-1?"":o.slice(e,n)},extname(o){dn(o,"path");let t=-1,e=0,n=-1,r=!0,i=0;for(let s=o.length-1;s>=0;--s){let a=o[s];if(a==="/"){if(!r){e=s+1;break}continue}n===-1&&(r=!1,n=s+1),a==="."?t===-1?t=s:i!==1&&(i=1):t!==-1&&(i=-1)}return t===-1||n===-1||i===0||i===1&&t===n-1&&t===e+1?"":o.slice(t,n)},format:Wk.bind(null,"/"),parse(o){dn(o,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return t;let e=o.charCodeAt(0)===Wn,n;e?(t.root="/",n=1):n=0;let r=-1,i=0,s=-1,a=!0,l=o.length-1,c=0;for(;l>=n;--l){let u=o.charCodeAt(l);if(u===Wn){if(!a){i=l+1;break}continue}s===-1&&(a=!1,s=l+1),u===Ga?r===-1?r=l:c!==1&&(c=1):r!==-1&&(c=-1)}if(s!==-1){let u=i===0&&e?1:i;r===-1||c===0||c===1&&r===s-1&&r===i+1?t.base=t.name=o.slice(u,s):(t.name=o.slice(u,r),t.base=o.slice(u,s),t.ext=o.slice(r,s))}return i>0?t.dir=o.slice(0,i-1):e&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};He.win32=nn.win32=nn;He.posix=nn.posix=He;In=Nr?nn.normalize:He.normalize,ro=Nr?nn.isAbsolute:He.isAbsolute,H=Nr?nn.join:He.join,Bn=Nr?nn.resolve:He.resolve,Qi=Nr?nn.relative:He.relative,Tt=Nr?nn.dirname:He.dirname,dt=Nr?nn.basename:He.basename,qo=Nr?nn.extname:He.extname,P$=Nr?nn.format:He.format,R$=Nr?nn.parse:He.parse,k$=Nr?nn.toNamespacedPath:He.toNamespacedPath,en=Nr?nn.sep:He.sep,Ds=Nr?nn.delimiter:He.delimiter});function zk(o,t){let e=Object.create(null);for(let n of o){let r=t(n),i=e[r];i||(i=e[r]=[]),i.push(n)}return e}var Hk,$k,Bk,Cx=y(()=>{Bk=class{constructor(t,e){this.toKey=e;this._map=new Map;this[Hk]="SetWithKey";for(let n of t)this.add(n)}get size(){return this._map.size}add(t){let e=this.toKey(t);return this._map.set(e,t),this}delete(t){return this._map.delete(this.toKey(t))}has(t){return this._map.has(this.toKey(t))}*entries(){for(let t of this._map.values())yield[t,t]}keys(){return this.values()}*values(){for(let t of this._map.values())yield t}clear(){this._map.clear()}forEach(t,e){this._map.forEach(n=>t.call(e,n,n,this))}[($k=Symbol.iterator,Hk=Symbol.toStringTag,$k)](){return this.values()}}});function Vg(o){pp.setUnexpectedErrorHandler(o)}function Wg(o){if(!o||typeof o!="object")return!1;let t=o;return t.code==="EPIPE"&&t.syscall?.toUpperCase()==="WRITE"}function _s(o){pp.onUnexpectedError(o)}function Ke(o){Tn(o)||pp.onUnexpectedError(o)}function Tn(o){return o instanceof et?!0:o instanceof Error&&o.name===Ug&&o.message===Ug}function mp(){let o=new Error(Ug);return o.name=o.message,o}function Xe(o){return o?new Error(`Illegal argument: ${o}`):new Error("Illegal argument")}function Bg(o){return o?new Error(`Illegal state: ${o}`):new Error("Illegal state")}function fe(o){return o?o.message?o.message:o.stack?o.stack.split(`
`)[0]:String(o):"Error"}var wx,pp,Ug,et,Fg,pr,zt,Se=y(()=>{wx=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?pr.isErrorNoTelemetry(t)?new pr(t.message+`
`+t.stack):new Error(t.message+`
`+t.stack):t},0)}}addListener(t){return this.listeners.push(t),()=>{this._removeListener(t)}}emit(t){this.listeners.forEach(e=>{e(t)})}_removeListener(t){this.listeners.splice(this.listeners.indexOf(t),1)}setUnexpectedErrorHandler(t){this.unexpectedErrorHandler=t}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}},pp=new wx;Ug="Canceled";et=class extends Error{constructor(){super(Ug),this.name=this.message}},Fg=class o extends Error{static{this._name="PendingMigrationError"}static is(t){return t instanceof o||t instanceof Error&&t.name===o._name}constructor(t){super(t),this.name=o._name}};pr=class o extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof o)return t;let e=new o;return e.message=t.message,e.stack=t.stack,e}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},zt=class o extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,o.prototype)}}});function qa(o,t){let e=this,n=!1,r;return function(){if(n)return r;if(n=!0,t)try{r=o.apply(e,arguments)}finally{t()}else r=o.apply(e,arguments);return r}}var fp=y(()=>{});function $4(o,t,e=0,n=o.length){let r=e,i=n;for(;r<i;){let s=Math.floor((r+i)/2);t(o[s])?r=s+1:i=s}return r-1}var qk,Kk=y(()=>{qk=class o{constructor(t){this._array=t;this._findLastMonotonousLastIdx=0}static{this.assertInvariants=!1}findLastMonotonous(t){if(o.assertInvariants){if(this._prevFindLastPredicate){for(let n of this._array)if(this._prevFindLastPredicate(n)&&!t(n))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}let e=$4(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=e+1,e===-1?void 0:this._array[e]}}});function mn(o,t,e=(n,r)=>n===r){if(o===t)return!0;if(!o||!t||o.length!==t.length)return!1;for(let n=0,r=o.length;n<r;n++)if(!e(o[n],t[n]))return!1;return!0}function Qk(o,t,e){return z4(o.length,n=>e(o[n],t))}function z4(o,t){let e=0,n=o-1;for(;e<=n;){let r=(e+n)/2|0,i=t(r);if(i<0)e=r+1;else if(i>0)n=r-1;else return r}return-(e+1)}function Hg(o,t,e){if(o=o|0,o>=t.length)throw new TypeError("invalid index");let n=t[Math.floor(t.length*Math.random())],r=[],i=[],s=[];for(let a of t){let l=e(a,n);l<0?r.push(a):l>0?i.push(a):s.push(a)}return o<r.length?Hg(o,r,e):o<r.length+s.length?s[0]:Hg(o-(r.length+s.length),i,e)}function Qn(o){return o.filter(t=>!!t)}function Jk(o){let t=0;for(let e=0;e<o.length;e++)o[e]&&(o[t]=o[e],t+=1);o.length=t}function Ka(o){return Array.isArray(o)&&o.length>0}function mr(o,t=e=>e){let e=new Set;return o.filter(n=>{let r=t(n);return e.has(r)?!1:(e.add(r),!0)})}function Tx(o,t){return o.push(t),()=>G4(o,t)}function G4(o,t){let e=o.indexOf(t);if(e>-1)return o.splice(e,1),t}function Px(o,t){let e;if(typeof t=="number"){let n=t;e=()=>{let r=Math.sin(n++)*179426549;return r-Math.floor(r)}}else e=Math.random;for(let n=o.length-1;n>0;n-=1){let r=Math.floor(e()*(n+1)),i=o[n];o[n]=o[r],o[r]=i}}function $g(o){return Array.isArray(o)?o:[o]}function Xk(o){return o[Math.floor(Math.random()*o.length)]}function Zk(o,t){return(e,n)=>t(o(e),o(n))}var Yk,e1,jk,Nt=y(()=>{Kk();Se();(a=>{function o(l){return l<0}a.isLessThan=o;function t(l){return l<=0}a.isLessThanOrEqual=t;function e(l){return l>0}a.isGreaterThan=e;function n(l){return l===0}a.isNeitherLessOrGreaterThan=n,a.greaterThan=1,a.lessThan=-1,a.neitherLessOrGreaterThan=0})(Yk||={});e1=(o,t)=>o-t,jk=class o{constructor(t){this.iterate=t}static{this.empty=new o(t=>{})}forEach(t){this.iterate(e=>(t(e),!0))}toArray(){let t=[];return this.iterate(e=>(t.push(e),!0)),t}filter(t){return new o(e=>this.iterate(n=>t(n)?e(n):!0))}map(t){return new o(e=>this.iterate(n=>e(t(n))))}some(t){let e=!1;return this.iterate(n=>(e=t(n),!e)),e}findFirst(t){let e;return this.iterate(n=>t(n)?(e=n,!1):!0),e}findLast(t){let e;return this.iterate(n=>(t(n)&&(e=n),!0)),e}findLastMaxBy(t){let e,n=!0;return this.iterate(r=>((n||Yk.isGreaterThan(t(r,e)))&&(n=!1,e=r),!0)),e}}});function q4(o){return Array.isArray(o)}var Rx,t1,ut,n1,Ls,r1,kx,Dx,hi,Gg,Hn=y(()=>{Rx=class{constructor(t,e){this.uri=t;this.value=e}};ut=class o{constructor(t,e){this[t1]="ResourceMap";if(t instanceof o)this.map=new Map(t.map),this.toKey=e??o.defaultToKey;else if(q4(t)){this.map=new Map,this.toKey=e??o.defaultToKey;for(let[n,r]of t)this.set(n,r)}else this.map=new Map,this.toKey=t??o.defaultToKey}static{this.defaultToKey=t=>t.toString()}set(t,e){return this.map.set(this.toKey(t),new Rx(t,e)),this}get(t){return this.map.get(this.toKey(t))?.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,e){typeof e<"u"&&(t=t.bind(e));for(let[n,r]of this.map)t(r.value,r.uri,this)}*values(){for(let t of this.map.values())yield t.value}*keys(){for(let t of this.map.values())yield t.uri}*entries(){for(let t of this.map.values())yield[t.uri,t.value]}*[(t1=Symbol.toStringTag,Symbol.iterator)](){for(let[,t]of this.map)yield[t.uri,t.value]}},Ls=class{constructor(t,e){this[n1]="ResourceSet";!t||typeof t=="function"?this._map=new ut(t):(this._map=new ut(e),t.forEach(this.add,this))}get size(){return this._map.size}add(t){return this._map.set(t,t),this}clear(){this._map.clear()}delete(t){return this._map.delete(t)}forEach(t,e){this._map.forEach((n,r)=>t.call(e,r,r,this))}has(t){return this._map.has(t)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(n1=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}},kx=class{constructor(){this[r1]="LinkedMap";this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,e=0){let n=this._map.get(t);if(n)return e!==0&&this.touch(n,e),n.value}set(t,e,n=0){let r=this._map.get(t);if(r)r.value=e,n!==0&&this.touch(r,n);else{switch(r={key:t,value:e,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(t,r),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let e=this._map.get(t);if(e)return this._map.delete(t),this.removeItem(e),this._size--,e.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,e){let n=this._state,r=this._head;for(;r;){if(e?t.bind(e)(r.value,r.key,this):t(r.value,r.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){let t=this,e=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(t._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.key,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}values(){let t=this,e=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(t._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:n.value,done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}entries(){let t=this,e=this._state,n=this._head,r={[Symbol.iterator](){return r},next(){if(t._state!==e)throw new Error("LinkedMap got modified during iteration.");if(n){let i={value:[n.key,n.value],done:!1};return n=n.next,i}else return{value:void 0,done:!0}}};return r}[(r1=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let e=this._head,n=this.size;for(;e&&n>t;)this._map.delete(e.key),e=e.next,n--;this._head=e,this._size=n,e&&(e.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let e=this._tail,n=this.size;for(;e&&n>t;)this._map.delete(e.key),e=e.previous,n--;this._tail=e,this._size=n,e&&(e.next=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let e=t.next,n=t.previous;if(!e||!n)throw new Error("Invalid list");e.previous=n,n.next=e}t.next=void 0,t.previous=void 0,this._state++}touch(t,e){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(e!==1&&e!==2)){if(e===1){if(t===this._head)return;let n=