import * as t from "monaco-editor/esm/vs/editor/editor.api.js";
const i = (r) => r.severity === t.MarkerSeverity.Error || r.severity === t.MarkerSeverity.Warning, s = (r, e) => r.severity !== e.severity ? e.severity - r.severity : r.startLineNumber !== e.startLineNumber ? r.startLineNumber - e.startLineNumber : r.startColumn - e.startColumn, n = (r, e) => [...r].filter(i).sort(s).slice(0, e);
export {
  n as getVisibleDiagnostics
};
