"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const editorOptions = require("./common/config/editorOptions.js");
const editorBaseApi = require("./common/services/editorBaseApi.js");
const standaloneEditor = require("./standalone/browser/standaloneEditor.js");
const standaloneLanguages = require("./standalone/browser/standaloneLanguages.js");
const platform = require("../base/common/platform.js");
const format = require("./contrib/format/browser/format.js");
var _a;
editorOptions.EditorOptions.wrappingIndent.defaultValue = 0;
editorOptions.EditorOptions.glyphMargin.defaultValue = false;
editorOptions.EditorOptions.autoIndent.defaultValue = 3;
editorOptions.EditorOptions.overviewRulerLanes.defaultValue = 2;
format.FormattingConflicts.setFormatterSelector((formatter, document, mode) => Promise.resolve(formatter[0]));
const api = editorBaseApi.createMonacoBaseAPI();
api.editor = standaloneEditor.createMonacoEditorAPI();
api.languages = standaloneLanguages.createMonacoLanguagesAPI();
const CancellationTokenSource = api.CancellationTokenSource;
const Emitter = api.Emitter;
const KeyCode = api.KeyCode;
const KeyMod = api.KeyMod;
const Position = api.Position;
const Range = api.Range;
const Selection = api.Selection;
const SelectionDirection = api.SelectionDirection;
const MarkerSeverity = api.MarkerSeverity;
const MarkerTag = api.MarkerTag;
const Uri = api.Uri;
const Token = api.Token;
const editor = api.editor;
const languages = api.languages;
if (((_a = platform.globals.MonacoEnvironment) === null || _a === void 0 ? void 0 : _a.globalAPI) || typeof define === "function" && define.amd) {
  self.monaco = api;
}
if (typeof self.require !== "undefined" && typeof self.require.config === "function") {
  self.require.config({
    ignoreDuplicateModules: [
      "vscode-languageserver-types",
      "vscode-languageserver-types/main",
      "vscode-languageserver-textdocument",
      "vscode-languageserver-textdocument/main",
      "vscode-nls",
      "vscode-nls/vscode-nls",
      "jsonc-parser",
      "jsonc-parser/main",
      "vscode-uri",
      "vscode-uri/index",
      "vs/basic-languages/typescript/typescript"
    ]
  });
}
exports.CancellationTokenSource = CancellationTokenSource;
exports.Emitter = Emitter;
exports.KeyCode = KeyCode;
exports.KeyMod = KeyMod;
exports.MarkerSeverity = MarkerSeverity;
exports.MarkerTag = MarkerTag;
exports.Position = Position;
exports.Range = Range;
exports.Selection = Selection;
exports.SelectionDirection = SelectionDirection;
exports.Token = Token;
exports.Uri = Uri;
exports.editor = editor;
exports.languages = languages;
