import { m as editor_api_exports } from "./editor.api-erJ7GEVs.js";
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/
var __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __hasOwnProp = Object.prototype.hasOwnProperty, __copyProps = (e, v, y, b) => {
	if (v && typeof v == "object" || typeof v == "function") for (let x of __getOwnPropNames(v)) !__hasOwnProp.call(e, x) && x !== y && __defProp(e, x, {
		get: () => v[x],
		enumerable: !(b = __getOwnPropDesc(v, x)) || b.enumerable
	});
	return e;
}, __reExport = (e, m, h) => (__copyProps(e, m, "default"), h && __copyProps(h, m, "default")), typescriptVersion = "5.4.5", monaco_editor_core_exports = {};
__reExport(monaco_editor_core_exports, editor_api_exports);
var ModuleKind = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.CommonJS = 1] = "CommonJS", e[e.AMD = 2] = "AMD", e[e.UMD = 3] = "UMD", e[e.System = 4] = "System", e[e.ES2015 = 5] = "ES2015", e[e.ESNext = 99] = "ESNext", e))(ModuleKind || {}), JsxEmit = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Preserve = 1] = "Preserve", e[e.React = 2] = "React", e[e.ReactNative = 3] = "ReactNative", e[e.ReactJSX = 4] = "ReactJSX", e[e.ReactJSXDev = 5] = "ReactJSXDev", e))(JsxEmit || {}), NewLineKind = /* @__PURE__ */ ((e) => (e[e.CarriageReturnLineFeed = 0] = "CarriageReturnLineFeed", e[e.LineFeed = 1] = "LineFeed", e))(NewLineKind || {}), ScriptTarget = /* @__PURE__ */ ((e) => (e[e.ES3 = 0] = "ES3", e[e.ES5 = 1] = "ES5", e[e.ES2015 = 2] = "ES2015", e[e.ES2016 = 3] = "ES2016", e[e.ES2017 = 4] = "ES2017", e[e.ES2018 = 5] = "ES2018", e[e.ES2019 = 6] = "ES2019", e[e.ES2020 = 7] = "ES2020", e[e.ESNext = 99] = "ESNext", e[e.JSON = 100] = "JSON", e[e.Latest = 99] = "Latest", e))(ScriptTarget || {}), ModuleResolutionKind = /* @__PURE__ */ ((e) => (e[e.Classic = 1] = "Classic", e[e.NodeJs = 2] = "NodeJs", e))(ModuleResolutionKind || {}), LanguageServiceDefaultsImpl = class {
	constructor(e, m, h, g, _) {
		this._onDidChange = new monaco_editor_core_exports.Emitter(), this._onDidExtraLibsChange = new monaco_editor_core_exports.Emitter(), this._extraLibs = /* @__PURE__ */ Object.create(null), this._removedExtraLibs = /* @__PURE__ */ Object.create(null), this._eagerModelSync = !1, this.setCompilerOptions(e), this.setDiagnosticsOptions(m), this.setWorkerOptions(h), this.setInlayHintsOptions(g), this.setModeConfiguration(_), this._onDidExtraLibsChangeTimeout = -1;
	}
	get onDidChange() {
		return this._onDidChange.event;
	}
	get onDidExtraLibsChange() {
		return this._onDidExtraLibsChange.event;
	}
	get modeConfiguration() {
		return this._modeConfiguration;
	}
	get workerOptions() {
		return this._workerOptions;
	}
	get inlayHintsOptions() {
		return this._inlayHintsOptions;
	}
	getExtraLibs() {
		return this._extraLibs;
	}
	addExtraLib(e, m) {
		let h;
		if (h = m === void 0 ? `ts:extralib-${Math.random().toString(36).substring(2, 15)}` : m, this._extraLibs[h] && this._extraLibs[h].content === e) return { dispose: () => {} };
		let g = 1;
		return this._removedExtraLibs[h] && (g = this._removedExtraLibs[h] + 1), this._extraLibs[h] && (g = this._extraLibs[h].version + 1), this._extraLibs[h] = {
			content: e,
			version: g
		}, this._fireOnDidExtraLibsChangeSoon(), { dispose: () => {
			let e = this._extraLibs[h];
			e && e.version === g && (delete this._extraLibs[h], this._removedExtraLibs[h] = g, this._fireOnDidExtraLibsChangeSoon());
		} };
	}
	setExtraLibs(e) {
		for (let e in this._extraLibs) this._removedExtraLibs[e] = this._extraLibs[e].version;
		if (this._extraLibs = /* @__PURE__ */ Object.create(null), e && e.length > 0) for (let m of e) {
			let e = m.filePath || `ts:extralib-${Math.random().toString(36).substring(2, 15)}`, h = m.content, g = 1;
			this._removedExtraLibs[e] && (g = this._removedExtraLibs[e] + 1), this._extraLibs[e] = {
				content: h,
				version: g
			};
		}
		this._fireOnDidExtraLibsChangeSoon();
	}
	_fireOnDidExtraLibsChangeSoon() {
		this._onDidExtraLibsChangeTimeout === -1 && (this._onDidExtraLibsChangeTimeout = window.setTimeout(() => {
			this._onDidExtraLibsChangeTimeout = -1, this._onDidExtraLibsChange.fire(void 0);
		}, 0));
	}
	getCompilerOptions() {
		return this._compilerOptions;
	}
	setCompilerOptions(e) {
		this._compilerOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
	}
	getDiagnosticsOptions() {
		return this._diagnosticsOptions;
	}
	setDiagnosticsOptions(e) {
		this._diagnosticsOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
	}
	setWorkerOptions(e) {
		this._workerOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
	}
	setInlayHintsOptions(e) {
		this._inlayHintsOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
	}
	setMaximumWorkerIdleTime(e) {}
	setEagerModelSync(e) {
		this._eagerModelSync = e;
	}
	getEagerModelSync() {
		return this._eagerModelSync;
	}
	setModeConfiguration(e) {
		this._modeConfiguration = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(void 0);
	}
}, typescriptVersion2 = typescriptVersion, modeConfigurationDefault = {
	completionItems: !0,
	hovers: !0,
	documentSymbols: !0,
	definitions: !0,
	references: !0,
	documentHighlights: !0,
	rename: !0,
	diagnostics: !0,
	documentRangeFormattingEdits: !0,
	signatureHelp: !0,
	onTypeFormattingEdits: !0,
	codeActions: !0,
	inlayHints: !0
}, typescriptDefaults = new LanguageServiceDefaultsImpl({
	allowNonTsExtensions: !0,
	target: 99
}, {
	noSemanticValidation: !1,
	noSyntaxValidation: !1,
	onlyVisible: !1
}, {}, {}, modeConfigurationDefault), javascriptDefaults = new LanguageServiceDefaultsImpl({
	allowNonTsExtensions: !0,
	allowJs: !0,
	target: 99
}, {
	noSemanticValidation: !0,
	noSyntaxValidation: !1,
	onlyVisible: !1
}, {}, {}, modeConfigurationDefault), getTypeScriptWorker = () => getMode().then((e) => e.getTypeScriptWorker()), getJavaScriptWorker = () => getMode().then((e) => e.getJavaScriptWorker());
monaco_editor_core_exports.languages.typescript = {
	ModuleKind,
	JsxEmit,
	NewLineKind,
	ScriptTarget,
	ModuleResolutionKind,
	typescriptVersion: typescriptVersion2,
	typescriptDefaults,
	javascriptDefaults,
	getTypeScriptWorker,
	getJavaScriptWorker
};
function getMode() {
	return import("./tsMode-DiWd4JH-.js");
}
monaco_editor_core_exports.languages.onLanguage("typescript", () => getMode().then((e) => e.setupTypeScript(typescriptDefaults))), monaco_editor_core_exports.languages.onLanguage("javascript", () => getMode().then((e) => e.setupJavaScript(javascriptDefaults)));
export { ScriptTarget as a, javascriptDefaults as c, NewLineKind as i, typescriptDefaults as l, ModuleKind as n, getJavaScriptWorker as o, ModuleResolutionKind as r, getTypeScriptWorker as s, JsxEmit as t, typescriptVersion2 as u };
