ranui
Version:
A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.
1,469 lines • 847 kB
JavaScript
var Iw = Object.create, _s = Object.defineProperty, Nw = Object.getOwnPropertyDescriptor, mp = Object.getOwnPropertyNames, Pw = Object.getPrototypeOf, kw = Object.prototype.hasOwnProperty, i = (e, t) => _s(e, "name", {
value: t,
configurable: !0
}), Ow = (e, t) => function() {
return e && (t = (0, e[mp(e)[0]])(e = 0)), t;
}, V = (e, t) => function() {
return t || (0, e[mp(e)[0]])((t = { exports: {} }).exports, t), t.exports;
}, Mr = (e, t) => {
for (var r in t) _s(e, r, {
get: t[r],
enumerable: !0
});
}, Go = (e, t, r, n) => {
if (t && typeof t == "object" || typeof t == "function")
for (let a of mp(t)) !kw.call(e, a) && a !== r && _s(e, a, {
get: () => t[a],
enumerable: !(n = Nw(t, a)) || n.enumerable
});
return e;
}, Sl = (e, t, r) => (Go(e, t, "default"), r && Go(r, t, "default")), hp = (e, t, r) => (r = e != null ? Iw(Pw(e)) : {}, Go(t || !e || !e.__esModule ? _s(r, "default", {
value: e,
enumerable: !0
}) : r, e)), yp = (e) => Go(_s({}, "__esModule", { value: !0 }), e), wl = {};
Mr(wl, {
AnnotatedTextEdit: () => ir,
ChangeAnnotation: () => Yr,
ChangeAnnotationIdentifier: () => je,
CodeAction: () => Wc,
CodeActionContext: () => qc,
CodeActionKind: () => Bc,
CodeActionTriggerKind: () => zi,
CodeDescription: () => Ac,
CodeLens: () => Vc,
Color: () => ho,
ColorInformation: () => yc,
ColorPresentation: () => gc,
Command: () => Hr,
CompletionItem: () => kc,
CompletionItemKind: () => _c,
CompletionItemLabelDetails: () => Pc,
CompletionItemTag: () => wc,
CompletionList: () => Oc,
CreateFile: () => oa,
DeleteFile: () => ua,
Diagnostic: () => xi,
DiagnosticRelatedInformation: () => yo,
DiagnosticSeverity: () => $c,
DiagnosticTag: () => Rc,
DocumentHighlight: () => Gc,
DocumentHighlightKind: () => Mc,
DocumentLink: () => Yc,
DocumentSymbol: () => Kc,
DocumentUri: () => dc,
EOL: () => _g,
FoldingRange: () => Tc,
FoldingRangeKind: () => vc,
FormattingOptions: () => Hc,
Hover: () => Lc,
InlayHint: () => af,
InlayHintKind: () => To,
InlayHintLabelPart: () => $o,
InlineCompletionContext: () => ff,
InlineCompletionItem: () => of,
InlineCompletionList: () => lf,
InlineCompletionTriggerKind: () => uf,
InlineValueContext: () => nf,
InlineValueEvaluatableExpression: () => rf,
InlineValueText: () => ef,
InlineValueVariableLookup: () => tf,
InsertReplaceEdit: () => Ic,
InsertTextFormat: () => Sc,
InsertTextMode: () => Nc,
Location: () => Di,
LocationLink: () => hc,
MarkedString: () => Fi,
MarkupContent: () => ca,
MarkupKind: () => vo,
OptionalVersionedTextDocumentIdentifier: () => Gi,
ParameterInformation: () => Dc,
Position: () => ne,
Range: () => J,
RenameFile: () => la,
SelectedCompletionInfo: () => cf,
SelectionRange: () => Xc,
SemanticTokenModifiers: () => Zc,
SemanticTokenTypes: () => Jc,
SemanticTokens: () => Qc,
SignatureInformation: () => xc,
StringValue: () => sf,
SymbolInformation: () => jc,
SymbolKind: () => Fc,
SymbolTag: () => zc,
TextDocument: () => df,
TextDocumentEdit: () => Mi,
TextDocumentIdentifier: () => Ec,
TextDocumentItem: () => bc,
TextEdit: () => jt,
URI: () => mo,
VersionedTextDocumentIdentifier: () => Cc,
WorkspaceChange: () => bg,
WorkspaceEdit: () => go,
WorkspaceFolder: () => pf,
WorkspaceSymbol: () => Uc,
integer: () => mc,
uinteger: () => Li
});
var dc, mo, mc, Li, ne, J, Di, hc, ho, yc, gc, vc, Tc, yo, $c, Rc, Ac, xi, Hr, jt, Yr, je, ir, Mi, oa, la, ua, go, Ai, Mu, bg, Ec, Cc, Gi, bc, vo, ca, _c, Sc, wc, Ic, Nc, Pc, kc, Oc, Fi, Lc, Dc, xc, Mc, Gc, Fc, zc, jc, Uc, Kc, Bc, zi, qc, Wc, Vc, Hc, Yc, Xc, Jc, Zc, Qc, ef, tf, rf, nf, To, $o, af, sf, of, lf, uf, cf, ff, pf, _g, df, th, E, Ss = Ow({ "../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"() {
"use strict";
(function(e) {
function t(r) {
return typeof r == "string";
}
i(t, "is"), e.is = t;
})(dc || (dc = {})), (function(e) {
function t(r) {
return typeof r == "string";
}
i(t, "is"), e.is = t;
})(mo || (mo = {})), (function(e) {
e.MIN_VALUE = -2147483648, e.MAX_VALUE = 2147483647;
function t(r) {
return typeof r == "number" && e.MIN_VALUE <= r && r <= e.MAX_VALUE;
}
i(t, "is"), e.is = t;
})(mc || (mc = {})), (function(e) {
e.MIN_VALUE = 0, e.MAX_VALUE = 2147483647;
function t(r) {
return typeof r == "number" && e.MIN_VALUE <= r && r <= e.MAX_VALUE;
}
i(t, "is"), e.is = t;
})(Li || (Li = {})), (function(e) {
function t(n, a) {
return n === Number.MAX_VALUE && (n = Li.MAX_VALUE), a === Number.MAX_VALUE && (a = Li.MAX_VALUE), {
line: n,
character: a
};
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.objectLiteral(a) && E.uinteger(a.line) && E.uinteger(a.character);
}
i(r, "is"), e.is = r;
})(ne || (ne = {})), (function(e) {
function t(n, a, s, o) {
if (E.uinteger(n) && E.uinteger(a) && E.uinteger(s) && E.uinteger(o)) return {
start: ne.create(n, a),
end: ne.create(s, o)
};
if (ne.is(n) && ne.is(a)) return {
start: n,
end: a
};
throw new Error(`Range#create called with invalid arguments[${n}, ${a}, ${s}, ${o}]`);
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.objectLiteral(a) && ne.is(a.start) && ne.is(a.end);
}
i(r, "is"), e.is = r;
})(J || (J = {})), (function(e) {
function t(n, a) {
return {
uri: n,
range: a
};
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.objectLiteral(a) && J.is(a.range) && (E.string(a.uri) || E.undefined(a.uri));
}
i(r, "is"), e.is = r;
})(Di || (Di = {})), (function(e) {
function t(n, a, s, o) {
return {
targetUri: n,
targetRange: a,
targetSelectionRange: s,
originSelectionRange: o
};
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.objectLiteral(a) && J.is(a.targetRange) && E.string(a.targetUri) && J.is(a.targetSelectionRange) && (J.is(a.originSelectionRange) || E.undefined(a.originSelectionRange));
}
i(r, "is"), e.is = r;
})(hc || (hc = {})), (function(e) {
function t(n, a, s, o) {
return {
red: n,
green: a,
blue: s,
alpha: o
};
}
i(t, "create"), e.create = t;
function r(n) {
const a = n;
return E.objectLiteral(a) && E.numberRange(a.red, 0, 1) && E.numberRange(a.green, 0, 1) && E.numberRange(a.blue, 0, 1) && E.numberRange(a.alpha, 0, 1);
}
i(r, "is"), e.is = r;
})(ho || (ho = {})), (function(e) {
function t(n, a) {
return {
range: n,
color: a
};
}
i(t, "create"), e.create = t;
function r(n) {
const a = n;
return E.objectLiteral(a) && J.is(a.range) && ho.is(a.color);
}
i(r, "is"), e.is = r;
})(yc || (yc = {})), (function(e) {
function t(n, a, s) {
return {
label: n,
textEdit: a,
additionalTextEdits: s
};
}
i(t, "create"), e.create = t;
function r(n) {
const a = n;
return E.objectLiteral(a) && E.string(a.label) && (E.undefined(a.textEdit) || jt.is(a)) && (E.undefined(a.additionalTextEdits) || E.typedArray(a.additionalTextEdits, jt.is));
}
i(r, "is"), e.is = r;
})(gc || (gc = {})), (function(e) {
e.Comment = "comment", e.Imports = "imports", e.Region = "region";
})(vc || (vc = {})), (function(e) {
function t(n, a, s, o, l, u) {
const c = {
startLine: n,
endLine: a
};
return E.defined(s) && (c.startCharacter = s), E.defined(o) && (c.endCharacter = o), E.defined(l) && (c.kind = l), E.defined(u) && (c.collapsedText = u), c;
}
i(t, "create"), e.create = t;
function r(n) {
const a = n;
return E.objectLiteral(a) && E.uinteger(a.startLine) && E.uinteger(a.startLine) && (E.undefined(a.startCharacter) || E.uinteger(a.startCharacter)) && (E.undefined(a.endCharacter) || E.uinteger(a.endCharacter)) && (E.undefined(a.kind) || E.string(a.kind));
}
i(r, "is"), e.is = r;
})(Tc || (Tc = {})), (function(e) {
function t(n, a) {
return {
location: n,
message: a
};
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.defined(a) && Di.is(a.location) && E.string(a.message);
}
i(r, "is"), e.is = r;
})(yo || (yo = {})), (function(e) {
e.Error = 1, e.Warning = 2, e.Information = 3, e.Hint = 4;
})($c || ($c = {})), (function(e) {
e.Unnecessary = 1, e.Deprecated = 2;
})(Rc || (Rc = {})), (function(e) {
function t(r) {
const n = r;
return E.objectLiteral(n) && E.string(n.href);
}
i(t, "is"), e.is = t;
})(Ac || (Ac = {})), (function(e) {
function t(n, a, s, o, l, u) {
let c = {
range: n,
message: a
};
return E.defined(s) && (c.severity = s), E.defined(o) && (c.code = o), E.defined(l) && (c.source = l), E.defined(u) && (c.relatedInformation = u), c;
}
i(t, "create"), e.create = t;
function r(n) {
var a;
let s = n;
return E.defined(s) && J.is(s.range) && E.string(s.message) && (E.number(s.severity) || E.undefined(s.severity)) && (E.integer(s.code) || E.string(s.code) || E.undefined(s.code)) && (E.undefined(s.codeDescription) || E.string((a = s.codeDescription) === null || a === void 0 ? void 0 : a.href)) && (E.string(s.source) || E.undefined(s.source)) && (E.undefined(s.relatedInformation) || E.typedArray(s.relatedInformation, yo.is));
}
i(r, "is"), e.is = r;
})(xi || (xi = {})), (function(e) {
function t(n, a, ...s) {
let o = {
title: n,
command: a
};
return E.defined(s) && s.length > 0 && (o.arguments = s), o;
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.defined(a) && E.string(a.title) && E.string(a.command);
}
i(r, "is"), e.is = r;
})(Hr || (Hr = {})), (function(e) {
function t(s, o) {
return {
range: s,
newText: o
};
}
i(t, "replace"), e.replace = t;
function r(s, o) {
return {
range: {
start: s,
end: s
},
newText: o
};
}
i(r, "insert"), e.insert = r;
function n(s) {
return {
range: s,
newText: ""
};
}
i(n, "del"), e.del = n;
function a(s) {
const o = s;
return E.objectLiteral(o) && E.string(o.newText) && J.is(o.range);
}
i(a, "is"), e.is = a;
})(jt || (jt = {})), (function(e) {
function t(n, a, s) {
const o = { label: n };
return a !== void 0 && (o.needsConfirmation = a), s !== void 0 && (o.description = s), o;
}
i(t, "create"), e.create = t;
function r(n) {
const a = n;
return E.objectLiteral(a) && E.string(a.label) && (E.boolean(a.needsConfirmation) || a.needsConfirmation === void 0) && (E.string(a.description) || a.description === void 0);
}
i(r, "is"), e.is = r;
})(Yr || (Yr = {})), (function(e) {
function t(r) {
const n = r;
return E.string(n);
}
i(t, "is"), e.is = t;
})(je || (je = {})), (function(e) {
function t(s, o, l) {
return {
range: s,
newText: o,
annotationId: l
};
}
i(t, "replace"), e.replace = t;
function r(s, o, l) {
return {
range: {
start: s,
end: s
},
newText: o,
annotationId: l
};
}
i(r, "insert"), e.insert = r;
function n(s, o) {
return {
range: s,
newText: "",
annotationId: o
};
}
i(n, "del"), e.del = n;
function a(s) {
const o = s;
return jt.is(o) && (Yr.is(o.annotationId) || je.is(o.annotationId));
}
i(a, "is"), e.is = a;
})(ir || (ir = {})), (function(e) {
function t(n, a) {
return {
textDocument: n,
edits: a
};
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.defined(a) && Gi.is(a.textDocument) && Array.isArray(a.edits);
}
i(r, "is"), e.is = r;
})(Mi || (Mi = {})), (function(e) {
function t(n, a, s) {
let o = {
kind: "create",
uri: n
};
return a !== void 0 && (a.overwrite !== void 0 || a.ignoreIfExists !== void 0) && (o.options = a), s !== void 0 && (o.annotationId = s), o;
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return a && a.kind === "create" && E.string(a.uri) && (a.options === void 0 || (a.options.overwrite === void 0 || E.boolean(a.options.overwrite)) && (a.options.ignoreIfExists === void 0 || E.boolean(a.options.ignoreIfExists))) && (a.annotationId === void 0 || je.is(a.annotationId));
}
i(r, "is"), e.is = r;
})(oa || (oa = {})), (function(e) {
function t(n, a, s, o) {
let l = {
kind: "rename",
oldUri: n,
newUri: a
};
return s !== void 0 && (s.overwrite !== void 0 || s.ignoreIfExists !== void 0) && (l.options = s), o !== void 0 && (l.annotationId = o), l;
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return a && a.kind === "rename" && E.string(a.oldUri) && E.string(a.newUri) && (a.options === void 0 || (a.options.overwrite === void 0 || E.boolean(a.options.overwrite)) && (a.options.ignoreIfExists === void 0 || E.boolean(a.options.ignoreIfExists))) && (a.annotationId === void 0 || je.is(a.annotationId));
}
i(r, "is"), e.is = r;
})(la || (la = {})), (function(e) {
function t(n, a, s) {
let o = {
kind: "delete",
uri: n
};
return a !== void 0 && (a.recursive !== void 0 || a.ignoreIfNotExists !== void 0) && (o.options = a), s !== void 0 && (o.annotationId = s), o;
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return a && a.kind === "delete" && E.string(a.uri) && (a.options === void 0 || (a.options.recursive === void 0 || E.boolean(a.options.recursive)) && (a.options.ignoreIfNotExists === void 0 || E.boolean(a.options.ignoreIfNotExists))) && (a.annotationId === void 0 || je.is(a.annotationId));
}
i(r, "is"), e.is = r;
})(ua || (ua = {})), (function(e) {
function t(r) {
let n = r;
return n && (n.changes !== void 0 || n.documentChanges !== void 0) && (n.documentChanges === void 0 || n.documentChanges.every((a) => E.string(a.kind) ? oa.is(a) || la.is(a) || ua.is(a) : Mi.is(a)));
}
i(t, "is"), e.is = t;
})(go || (go = {})), Ai = class {
static {
i(this, "TextEditChangeImpl");
}
constructor(e, t) {
this.edits = e, this.changeAnnotations = t;
}
insert(e, t, r) {
let n, a;
if (r === void 0 ? n = jt.insert(e, t) : je.is(r) ? (a = r, n = ir.insert(e, t, r)) : (this.assertChangeAnnotations(this.changeAnnotations), a = this.changeAnnotations.manage(r), n = ir.insert(e, t, a)), this.edits.push(n), a !== void 0) return a;
}
replace(e, t, r) {
let n, a;
if (r === void 0 ? n = jt.replace(e, t) : je.is(r) ? (a = r, n = ir.replace(e, t, r)) : (this.assertChangeAnnotations(this.changeAnnotations), a = this.changeAnnotations.manage(r), n = ir.replace(e, t, a)), this.edits.push(n), a !== void 0) return a;
}
delete(e, t) {
let r, n;
if (t === void 0 ? r = jt.del(e) : je.is(t) ? (n = t, r = ir.del(e, t)) : (this.assertChangeAnnotations(this.changeAnnotations), n = this.changeAnnotations.manage(t), r = ir.del(e, n)), this.edits.push(r), n !== void 0) return n;
}
add(e) {
this.edits.push(e);
}
all() {
return this.edits;
}
clear() {
this.edits.splice(0, this.edits.length);
}
assertChangeAnnotations(e) {
if (e === void 0) throw new Error("Text edit change is not configured to manage change annotations.");
}
}, Mu = class {
static {
i(this, "ChangeAnnotations");
}
constructor(e) {
this._annotations = e === void 0 ? /* @__PURE__ */ Object.create(null) : e, this._counter = 0, this._size = 0;
}
all() {
return this._annotations;
}
get size() {
return this._size;
}
manage(e, t) {
let r;
if (je.is(e) ? r = e : (r = this.nextId(), t = e), this._annotations[r] !== void 0) throw new Error(`Id ${r} is already in use.`);
if (t === void 0) throw new Error(`No annotation provided for id ${r}`);
return this._annotations[r] = t, this._size++, r;
}
nextId() {
return this._counter++, this._counter.toString();
}
}, bg = class {
static {
i(this, "WorkspaceChange");
}
constructor(e) {
this._textEditChanges = /* @__PURE__ */ Object.create(null), e !== void 0 ? (this._workspaceEdit = e, e.documentChanges ? (this._changeAnnotations = new Mu(e.changeAnnotations), e.changeAnnotations = this._changeAnnotations.all(), e.documentChanges.forEach((t) => {
if (Mi.is(t)) {
const r = new Ai(t.edits, this._changeAnnotations);
this._textEditChanges[t.textDocument.uri] = r;
}
})) : e.changes && Object.keys(e.changes).forEach((t) => {
const r = new Ai(e.changes[t]);
this._textEditChanges[t] = r;
})) : this._workspaceEdit = {};
}
get edit() {
return this.initDocumentChanges(), this._changeAnnotations !== void 0 && (this._changeAnnotations.size === 0 ? this._workspaceEdit.changeAnnotations = void 0 : this._workspaceEdit.changeAnnotations = this._changeAnnotations.all()), this._workspaceEdit;
}
getTextEditChange(e) {
if (Gi.is(e)) {
if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw new Error("Workspace edit is not configured for document changes.");
const t = {
uri: e.uri,
version: e.version
};
let r = this._textEditChanges[t.uri];
if (!r) {
const n = [], a = {
textDocument: t,
edits: n
};
this._workspaceEdit.documentChanges.push(a), r = new Ai(n, this._changeAnnotations), this._textEditChanges[t.uri] = r;
}
return r;
} else {
if (this.initChanges(), this._workspaceEdit.changes === void 0) throw new Error("Workspace edit is not configured for normal text edit changes.");
let t = this._textEditChanges[e];
if (!t) {
let r = [];
this._workspaceEdit.changes[e] = r, t = new Ai(r), this._textEditChanges[e] = t;
}
return t;
}
}
initDocumentChanges() {
this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._changeAnnotations = new Mu(), this._workspaceEdit.documentChanges = [], this._workspaceEdit.changeAnnotations = this._changeAnnotations.all());
}
initChanges() {
this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._workspaceEdit.changes = /* @__PURE__ */ Object.create(null));
}
createFile(e, t, r) {
if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw new Error("Workspace edit is not configured for document changes.");
let n;
Yr.is(t) || je.is(t) ? n = t : r = t;
let a, s;
if (n === void 0 ? a = oa.create(e, r) : (s = je.is(n) ? n : this._changeAnnotations.manage(n), a = oa.create(e, r, s)), this._workspaceEdit.documentChanges.push(a), s !== void 0) return s;
}
renameFile(e, t, r, n) {
if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw new Error("Workspace edit is not configured for document changes.");
let a;
Yr.is(r) || je.is(r) ? a = r : n = r;
let s, o;
if (a === void 0 ? s = la.create(e, t, n) : (o = je.is(a) ? a : this._changeAnnotations.manage(a), s = la.create(e, t, n, o)), this._workspaceEdit.documentChanges.push(s), o !== void 0) return o;
}
deleteFile(e, t, r) {
if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0) throw new Error("Workspace edit is not configured for document changes.");
let n;
Yr.is(t) || je.is(t) ? n = t : r = t;
let a, s;
if (n === void 0 ? a = ua.create(e, r) : (s = je.is(n) ? n : this._changeAnnotations.manage(n), a = ua.create(e, r, s)), this._workspaceEdit.documentChanges.push(a), s !== void 0) return s;
}
}, (function(e) {
function t(n) {
return { uri: n };
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.defined(a) && E.string(a.uri);
}
i(r, "is"), e.is = r;
})(Ec || (Ec = {})), (function(e) {
function t(n, a) {
return {
uri: n,
version: a
};
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.defined(a) && E.string(a.uri) && E.integer(a.version);
}
i(r, "is"), e.is = r;
})(Cc || (Cc = {})), (function(e) {
function t(n, a) {
return {
uri: n,
version: a
};
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.defined(a) && E.string(a.uri) && (a.version === null || E.integer(a.version));
}
i(r, "is"), e.is = r;
})(Gi || (Gi = {})), (function(e) {
function t(n, a, s, o) {
return {
uri: n,
languageId: a,
version: s,
text: o
};
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.defined(a) && E.string(a.uri) && E.string(a.languageId) && E.integer(a.version) && E.string(a.text);
}
i(r, "is"), e.is = r;
})(bc || (bc = {})), (function(e) {
e.PlainText = "plaintext", e.Markdown = "markdown";
function t(r) {
const n = r;
return n === e.PlainText || n === e.Markdown;
}
i(t, "is"), e.is = t;
})(vo || (vo = {})), (function(e) {
function t(r) {
const n = r;
return E.objectLiteral(r) && vo.is(n.kind) && E.string(n.value);
}
i(t, "is"), e.is = t;
})(ca || (ca = {})), (function(e) {
e.Text = 1, e.Method = 2, e.Function = 3, e.Constructor = 4, e.Field = 5, e.Variable = 6, e.Class = 7, e.Interface = 8, e.Module = 9, e.Property = 10, e.Unit = 11, e.Value = 12, e.Enum = 13, e.Keyword = 14, e.Snippet = 15, e.Color = 16, e.File = 17, e.Reference = 18, e.Folder = 19, e.EnumMember = 20, e.Constant = 21, e.Struct = 22, e.Event = 23, e.Operator = 24, e.TypeParameter = 25;
})(_c || (_c = {})), (function(e) {
e.PlainText = 1, e.Snippet = 2;
})(Sc || (Sc = {})), (function(e) {
e.Deprecated = 1;
})(wc || (wc = {})), (function(e) {
function t(n, a, s) {
return {
newText: n,
insert: a,
replace: s
};
}
i(t, "create"), e.create = t;
function r(n) {
const a = n;
return a && E.string(a.newText) && J.is(a.insert) && J.is(a.replace);
}
i(r, "is"), e.is = r;
})(Ic || (Ic = {})), (function(e) {
e.asIs = 1, e.adjustIndentation = 2;
})(Nc || (Nc = {})), (function(e) {
function t(r) {
const n = r;
return n && (E.string(n.detail) || n.detail === void 0) && (E.string(n.description) || n.description === void 0);
}
i(t, "is"), e.is = t;
})(Pc || (Pc = {})), (function(e) {
function t(r) {
return { label: r };
}
i(t, "create"), e.create = t;
})(kc || (kc = {})), (function(e) {
function t(r, n) {
return {
items: r || [],
isIncomplete: !!n
};
}
i(t, "create"), e.create = t;
})(Oc || (Oc = {})), (function(e) {
function t(n) {
return n.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&");
}
i(t, "fromPlainText"), e.fromPlainText = t;
function r(n) {
const a = n;
return E.string(a) || E.objectLiteral(a) && E.string(a.language) && E.string(a.value);
}
i(r, "is"), e.is = r;
})(Fi || (Fi = {})), (function(e) {
function t(r) {
let n = r;
return !!n && E.objectLiteral(n) && (ca.is(n.contents) || Fi.is(n.contents) || E.typedArray(n.contents, Fi.is)) && (r.range === void 0 || J.is(r.range));
}
i(t, "is"), e.is = t;
})(Lc || (Lc = {})), (function(e) {
function t(r, n) {
return n ? {
label: r,
documentation: n
} : { label: r };
}
i(t, "create"), e.create = t;
})(Dc || (Dc = {})), (function(e) {
function t(r, n, ...a) {
let s = { label: r };
return E.defined(n) && (s.documentation = n), E.defined(a) ? s.parameters = a : s.parameters = [], s;
}
i(t, "create"), e.create = t;
})(xc || (xc = {})), (function(e) {
e.Text = 1, e.Read = 2, e.Write = 3;
})(Mc || (Mc = {})), (function(e) {
function t(r, n) {
let a = { range: r };
return E.number(n) && (a.kind = n), a;
}
i(t, "create"), e.create = t;
})(Gc || (Gc = {})), (function(e) {
e.File = 1, e.Module = 2, e.Namespace = 3, e.Package = 4, e.Class = 5, e.Method = 6, e.Property = 7, e.Field = 8, e.Constructor = 9, e.Enum = 10, e.Interface = 11, e.Function = 12, e.Variable = 13, e.Constant = 14, e.String = 15, e.Number = 16, e.Boolean = 17, e.Array = 18, e.Object = 19, e.Key = 20, e.Null = 21, e.EnumMember = 22, e.Struct = 23, e.Event = 24, e.Operator = 25, e.TypeParameter = 26;
})(Fc || (Fc = {})), (function(e) {
e.Deprecated = 1;
})(zc || (zc = {})), (function(e) {
function t(r, n, a, s, o) {
let l = {
name: r,
kind: n,
location: {
uri: s,
range: a
}
};
return o && (l.containerName = o), l;
}
i(t, "create"), e.create = t;
})(jc || (jc = {})), (function(e) {
function t(r, n, a, s) {
return s !== void 0 ? {
name: r,
kind: n,
location: {
uri: a,
range: s
}
} : {
name: r,
kind: n,
location: { uri: a }
};
}
i(t, "create"), e.create = t;
})(Uc || (Uc = {})), (function(e) {
function t(n, a, s, o, l, u) {
let c = {
name: n,
detail: a,
kind: s,
range: o,
selectionRange: l
};
return u !== void 0 && (c.children = u), c;
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return a && E.string(a.name) && E.number(a.kind) && J.is(a.range) && J.is(a.selectionRange) && (a.detail === void 0 || E.string(a.detail)) && (a.deprecated === void 0 || E.boolean(a.deprecated)) && (a.children === void 0 || Array.isArray(a.children)) && (a.tags === void 0 || Array.isArray(a.tags));
}
i(r, "is"), e.is = r;
})(Kc || (Kc = {})), (function(e) {
e.Empty = "", e.QuickFix = "quickfix", e.Refactor = "refactor", e.RefactorExtract = "refactor.extract", e.RefactorInline = "refactor.inline", e.RefactorRewrite = "refactor.rewrite", e.Source = "source", e.SourceOrganizeImports = "source.organizeImports", e.SourceFixAll = "source.fixAll";
})(Bc || (Bc = {})), (function(e) {
e.Invoked = 1, e.Automatic = 2;
})(zi || (zi = {})), (function(e) {
function t(n, a, s) {
let o = { diagnostics: n };
return a != null && (o.only = a), s != null && (o.triggerKind = s), o;
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.defined(a) && E.typedArray(a.diagnostics, xi.is) && (a.only === void 0 || E.typedArray(a.only, E.string)) && (a.triggerKind === void 0 || a.triggerKind === zi.Invoked || a.triggerKind === zi.Automatic);
}
i(r, "is"), e.is = r;
})(qc || (qc = {})), (function(e) {
function t(n, a, s) {
let o = { title: n }, l = !0;
return typeof a == "string" ? (l = !1, o.kind = a) : Hr.is(a) ? o.command = a : o.edit = a, l && s !== void 0 && (o.kind = s), o;
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return a && E.string(a.title) && (a.diagnostics === void 0 || E.typedArray(a.diagnostics, xi.is)) && (a.kind === void 0 || E.string(a.kind)) && (a.edit !== void 0 || a.command !== void 0) && (a.command === void 0 || Hr.is(a.command)) && (a.isPreferred === void 0 || E.boolean(a.isPreferred)) && (a.edit === void 0 || go.is(a.edit));
}
i(r, "is"), e.is = r;
})(Wc || (Wc = {})), (function(e) {
function t(n, a) {
let s = { range: n };
return E.defined(a) && (s.data = a), s;
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.defined(a) && J.is(a.range) && (E.undefined(a.command) || Hr.is(a.command));
}
i(r, "is"), e.is = r;
})(Vc || (Vc = {})), (function(e) {
function t(n, a) {
return {
tabSize: n,
insertSpaces: a
};
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.defined(a) && E.uinteger(a.tabSize) && E.boolean(a.insertSpaces);
}
i(r, "is"), e.is = r;
})(Hc || (Hc = {})), (function(e) {
function t(n, a, s) {
return {
range: n,
target: a,
data: s
};
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.defined(a) && J.is(a.range) && (E.undefined(a.target) || E.string(a.target));
}
i(r, "is"), e.is = r;
})(Yc || (Yc = {})), (function(e) {
function t(n, a) {
return {
range: n,
parent: a
};
}
i(t, "create"), e.create = t;
function r(n) {
let a = n;
return E.objectLiteral(a) && J.is(a.range) && (a.parent === void 0 || e.is(a.parent));
}
i(r, "is"), e.is = r;
})(Xc || (Xc = {})), (function(e) {
e.namespace = "namespace", e.type = "type", e.class = "class", e.enum = "enum", e.interface = "interface", e.struct = "struct", e.typeParameter = "typeParameter", e.parameter = "parameter", e.variable = "variable", e.property = "property", e.enumMember = "enumMember", e.event = "event", e.function = "function", e.method = "method", e.macro = "macro", e.keyword = "keyword", e.modifier = "modifier", e.comment = "comment", e.string = "string", e.number = "number", e.regexp = "regexp", e.operator = "operator", e.decorator = "decorator";
})(Jc || (Jc = {})), (function(e) {
e.declaration = "declaration", e.definition = "definition", e.readonly = "readonly", e.static = "static", e.deprecated = "deprecated", e.abstract = "abstract", e.async = "async", e.modification = "modification", e.documentation = "documentation", e.defaultLibrary = "defaultLibrary";
})(Zc || (Zc = {})), (function(e) {
function t(r) {
const n = r;
return E.objectLiteral(n) && (n.resultId === void 0 || typeof n.resultId == "string") && Array.isArray(n.data) && (n.data.length === 0 || typeof n.data[0] == "number");
}
i(t, "is"), e.is = t;
})(Qc || (Qc = {})), (function(e) {
function t(n, a) {
return {
range: n,
text: a
};
}
i(t, "create"), e.create = t;
function r(n) {
const a = n;
return a != null && J.is(a.range) && E.string(a.text);
}
i(r, "is"), e.is = r;
})(ef || (ef = {})), (function(e) {
function t(n, a, s) {
return {
range: n,
variableName: a,
caseSensitiveLookup: s
};
}
i(t, "create"), e.create = t;
function r(n) {
const a = n;
return a != null && J.is(a.range) && E.boolean(a.caseSensitiveLookup) && (E.string(a.variableName) || a.variableName === void 0);
}
i(r, "is"), e.is = r;
})(tf || (tf = {})), (function(e) {
function t(n, a) {
return {
range: n,
expression: a
};
}
i(t, "create"), e.create = t;
function r(n) {
const a = n;
return a != null && J.is(a.range) && (E.string(a.expression) || a.expression === void 0);
}
i(r, "is"), e.is = r;
})(rf || (rf = {})), (function(e) {
function t(n, a) {
return {
frameId: n,
stoppedLocation: a
};
}
i(t, "create"), e.create = t;
function r(n) {
const a = n;
return E.defined(a) && J.is(n.stoppedLocation);
}
i(r, "is"), e.is = r;
})(nf || (nf = {})), (function(e) {
e.Type = 1, e.Parameter = 2;
function t(r) {
return r === 1 || r === 2;
}
i(t, "is"), e.is = t;
})(To || (To = {})), (function(e) {
function t(n) {
return { value: n };
}
i(t, "create"), e.create = t;
function r(n) {
const a = n;
return E.objectLiteral(a) && (a.tooltip === void 0 || E.string(a.tooltip) || ca.is(a.tooltip)) && (a.location === void 0 || Di.is(a.location)) && (a.command === void 0 || Hr.is(a.command));
}
i(r, "is"), e.is = r;
})($o || ($o = {})), (function(e) {
function t(n, a, s) {
const o = {
position: n,
label: a
};
return s !== void 0 && (o.kind = s), o;
}
i(t, "create"), e.create = t;
function r(n) {
const a = n;
return E.objectLiteral(a) && ne.is(a.position) && (E.string(a.label) || E.typedArray(a.label, $o.is)) && (a.kind === void 0 || To.is(a.kind)) && a.textEdits === void 0 || E.typedArray(a.textEdits, jt.is) && (a.tooltip === void 0 || E.string(a.tooltip) || ca.is(a.tooltip)) && (a.paddingLeft === void 0 || E.boolean(a.paddingLeft)) && (a.paddingRight === void 0 || E.boolean(a.paddingRight));
}
i(r, "is"), e.is = r;
})(af || (af = {})), (function(e) {
function t(r) {
return {
kind: "snippet",
value: r
};
}
i(t, "createSnippet"), e.createSnippet = t;
})(sf || (sf = {})), (function(e) {
function t(r, n, a, s) {
return {
insertText: r,
filterText: n,
range: a,
command: s
};
}
i(t, "create"), e.create = t;
})(of || (of = {})), (function(e) {
function t(r) {
return { items: r };
}
i(t, "create"), e.create = t;
})(lf || (lf = {})), (function(e) {
e.Invoked = 0, e.Automatic = 1;
})(uf || (uf = {})), (function(e) {
function t(r, n) {
return {
range: r,
text: n
};
}
i(t, "create"), e.create = t;
})(cf || (cf = {})), (function(e) {
function t(r, n) {
return {
triggerKind: r,
selectedCompletionInfo: n
};
}
i(t, "create"), e.create = t;
})(ff || (ff = {})), (function(e) {
function t(r) {
const n = r;
return E.objectLiteral(n) && mo.is(n.uri) && E.string(n.name);
}
i(t, "is"), e.is = t;
})(pf || (pf = {})), _g = [
`
`,
`\r
`,
"\r"
], (function(e) {
function t(s, o, l, u) {
return new th(s, o, l, u);
}
i(t, "create"), e.create = t;
function r(s) {
let o = s;
return !!(E.defined(o) && E.string(o.uri) && (E.undefined(o.languageId) || E.string(o.languageId)) && E.uinteger(o.lineCount) && E.func(o.getText) && E.func(o.positionAt) && E.func(o.offsetAt));
}
i(r, "is"), e.is = r;
function n(s, o) {
let l = s.getText(), u = a(o, (f, p) => {
let m = f.range.start.line - p.range.start.line;
return m === 0 ? f.range.start.character - p.range.start.character : m;
}), c = l.length;
for (let f = u.length - 1; f >= 0; f--) {
let p = u[f], m = s.offsetAt(p.range.start), T = s.offsetAt(p.range.end);
if (T <= c) l = l.substring(0, m) + p.newText + l.substring(T, l.length);
else throw new Error("Overlapping edit");
c = m;
}
return l;
}
i(n, "applyEdits"), e.applyEdits = n;
function a(s, o) {
if (s.length <= 1) return s;
const l = s.length / 2 | 0, u = s.slice(0, l), c = s.slice(l);
a(u, o), a(c, o);
let f = 0, p = 0, m = 0;
for (; f < u.length && p < c.length; ) o(u[f], c[p]) <= 0 ? s[m++] = u[f++] : s[m++] = c[p++];
for (; f < u.length; ) s[m++] = u[f++];
for (; p < c.length; ) s[m++] = c[p++];
return s;
}
i(a, "mergeSort");
})(df || (df = {})), th = class {
static {
i(this, "FullTextDocument");
}
constructor(e, t, r, n) {
this._uri = e, this._languageId = t, this._version = r, this._content = n, this._lineOffsets = void 0;
}
get uri() {
return this._uri;
}
get languageId() {
return this._languageId;
}
get version() {
return this._version;
}
getText(e) {
if (e) {
let t = this.offsetAt(e.start), r = this.offsetAt(e.end);
return this._content.substring(t, r);
}
return this._content;
}
update(e, t) {
this._content = e.text, this._version = t, this._lineOffsets = void 0;
}
getLineOffsets() {
if (this._lineOffsets === void 0) {
let e = [], t = this._content, r = !0;
for (let n = 0; n < t.length; n++) {
r && (e.push(n), r = !1);
let a = t.charAt(n);
r = a === "\r" || a === `
`, a === "\r" && n + 1 < t.length && t.charAt(n + 1) === `
` && n++;
}
r && t.length > 0 && e.push(t.length), this._lineOffsets = e;
}
return this._lineOffsets;
}
positionAt(e) {
e = Math.max(Math.min(e, this._content.length), 0);
let t = this.getLineOffsets(), r = 0, n = t.length;
if (n === 0) return ne.create(0, e);
for (; r < n; ) {
let s = Math.floor((r + n) / 2);
t[s] > e ? n = s : r = s + 1;
}
let a = r - 1;
return ne.create(a, e - t[a]);
}
offsetAt(e) {
let t = this.getLineOffsets();
if (e.line >= t.length) return this._content.length;
if (e.line < 0) return 0;
let r = t[e.line], n = e.line + 1 < t.length ? t[e.line + 1] : this._content.length;
return Math.max(Math.min(r + e.character, n), r);
}
get lineCount() {
return this.getLineOffsets().length;
}
}, (function(e) {
const t = Object.prototype.toString;
function r(T) {
return typeof T < "u";
}
i(r, "defined"), e.defined = r;
function n(T) {
return typeof T > "u";
}
i(n, "undefined"), e.undefined = n;
function a(T) {
return T === !0 || T === !1;
}
i(a, "boolean"), e.boolean = a;
function s(T) {
return t.call(T) === "[object String]";
}
i(s, "string"), e.string = s;
function o(T) {
return t.call(T) === "[object Number]";
}
i(o, "number"), e.number = o;
function l(T, g, _) {
return t.call(T) === "[object Number]" && g <= T && T <= _;
}
i(l, "numberRange"), e.numberRange = l;
function u(T) {
return t.call(T) === "[object Number]" && -2147483648 <= T && T <= 2147483647;
}
i(u, "integer"), e.integer = u;
function c(T) {
return t.call(T) === "[object Number]" && 0 <= T && T <= 2147483647;
}
i(c, "uinteger"), e.uinteger = c;
function f(T) {
return t.call(T) === "[object Function]";
}
i(f, "func"), e.func = f;
function p(T) {
return T !== null && typeof T == "object";
}
i(p, "objectLiteral"), e.objectLiteral = p;
function m(T, g) {
return Array.isArray(T) && T.every(g);
}
i(m, "typedArray"), e.typedArray = m;
})(E || (E = {}));
} }), _n = V({ "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.js"(e) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 });
var t;
function r() {
if (t === void 0) throw new Error("No runtime abstraction layer installed");
return t;
}
i(r, "RAL"), (function(n) {
function a(s) {
if (s === void 0) throw new Error("No runtime abstraction layer provided");
t = s;
}
i(a, "install"), n.install = a;
})(r || (r = {})), e.default = r;
} }), ws = V({ "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.js"(e) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }), e.stringArray = e.array = e.func = e.error = e.number = e.string = e.boolean = void 0;
function t(u) {
return u === !0 || u === !1;
}
i(t, "boolean"), e.boolean = t;
function r(u) {
return typeof u == "string" || u instanceof String;
}
i(r, "string"), e.string = r;
function n(u) {
return typeof u == "number" || u instanceof Number;
}
i(n, "number"), e.number = n;
function a(u) {
return u instanceof Error;
}
i(a, "error"), e.error = a;
function s(u) {
return typeof u == "function";
}
i(s, "func"), e.func = s;
function o(u) {
return Array.isArray(u);
}
i(o, "array"), e.array = o;
function l(u) {
return o(u) && u.every((c) => r(c));
}
i(l, "stringArray"), e.stringArray = l;
} }), qa = V({ "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.js"(e) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }), e.Emitter = e.Event = void 0;
var t = _n(), r;
(function(s) {
const o = { dispose() {
} };
s.None = function() {
return o;
};
})(r || (e.Event = r = {}));
var n = class {
static {
i(this, "CallbackList");
}
add(s, o = null, l) {
this._callbacks || (this._callbacks = [], this._contexts = []), this._callbacks.push(s), this._contexts.push(o), Array.isArray(l) && l.push({ dispose: /* @__PURE__ */ i(() => this.remove(s, o), "dispose") });
}
remove(s, o = null) {
if (!this._callbacks) return;
let l = !1;
for (let u = 0, c = this._callbacks.length; u < c; u++) if (this._callbacks[u] === s) if (this._contexts[u] === o) {
this._callbacks.splice(u, 1), this._contexts.splice(u, 1);
return;
} else l = !0;
if (l) throw new Error("When adding a listener with a context, you should remove it with the same context");
}
invoke(...s) {
if (!this._callbacks) return [];
const o = [], l = this._callbacks.slice(0), u = this._contexts.slice(0);
for (let c = 0, f = l.length; c < f; c++) try {
o.push(l[c].apply(u[c], s));
} catch (p) {
(0, t.default)().console.error(p);
}
return o;
}
isEmpty() {
return !this._callbacks || this._callbacks.length === 0;
}
dispose() {
this._callbacks = void 0, this._contexts = void 0;
}
}, a = class Sg {
static {
i(this, "Emitter");
}
constructor(o) {
this._options = o;
}
get event() {
return this._event || (this._event = (o, l, u) => {
this._callbacks || (this._callbacks = new n()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(o, l);
const c = { dispose: /* @__PURE__ */ i(() => {
this._callbacks && (this._callbacks.remove(o, l), c.dispose = Sg._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this));
}, "dispose") };
return Array.isArray(u) && u.push(c), c;
}), this._event;
}
fire(o) {
this._callbacks && this._callbacks.invoke.call(this._callbacks, o);
}
dispose() {
this._callbacks && (this._callbacks.dispose(), this._callbacks = void 0);
}
};
e.Emitter = a, a._noop = function() {
};
} }), Il = V({ "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }), e.CancellationTokenSource = e.CancellationToken = void 0;
var t = _n(), r = ws(), n = qa(), a;
(function(u) {
u.None = Object.freeze({
isCancellationRequested: !1,
onCancellationRequested: n.Event.None
}), u.Cancelled = Object.freeze({
isCancellationRequested: !0,
onCancellationRequested: n.Event.None
});
function c(f) {
const p = f;
return p && (p === u.None || p === u.Cancelled || r.boolean(p.isCancellationRequested) && !!p.onCancellationRequested);
}
i(c, "is"), u.is = c;
})(a || (e.CancellationToken = a = {}));
var s = Object.freeze(function(u, c) {
const f = (0, t.default)().timer.setTimeout(u.bind(c), 0);
return { dispose() {
f.dispose();
} };
}), o = class {
static {
i(this, "MutableToken");
}
constructor() {
this._isCancelled = !1;
}
cancel() {
this._isCancelled || (this._isCancelled = !0, this._emitter && (this._emitter.fire(void 0), this.dispose()));
}
get isCancellationRequested() {
return this._isCancelled;
}
get onCancellationRequested() {
return this._isCancelled ? s : (this._emitter || (this._emitter = new n.Emitter()), this._emitter.event);
}
dispose() {
this._emitter && (this._emitter.dispose(), this._emitter = void 0);
}
}, l = class {
static {
i(this, "CancellationTokenSource");
}
get token() {
return this._token || (this._token = new o()), this._token;
}
cancel() {
this._token ? this._token.cancel() : this._token = a.Cancelled;
}
dispose() {
this._token ? this._token instanceof o && this._token.dispose() : this._token = a.None;
}
};
e.CancellationTokenSource = l;
} }), wg = V({ "../../node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js"(e) {
"use strict";
Object.defineProperty(e, "__esModule", { value: !0 }), e.Message = e.NotificationType9 = e.NotificationType8 = e.NotificationType7 = e.NotificationType6 = e.NotificationType5 = e.NotificationType4 = e.NotificationType3 = e.NotificationType2 = e.NotificationType1 = e.NotificationType0 = e.NotificationType = e.RequestType9 = e.RequestType8 = e.RequestType7 = e.RequestType6 = e.RequestType5 = e.RequestType4 = e.RequestType3 = e.RequestType2 = e.RequestType1 = e.RequestType = e.RequestType0 = e.AbstractMessageSignature = e.ParameterStructures = e.ResponseError = e.ErrorCodes = void 0;
var t = ws(), r;
(function(y) {
y.ParseError = -32700, y.InvalidRequest = -32600, y.MethodNotFound = -32601, y.InvalidParams = -32602, y.InternalError = -32603, y.jsonrpcReservedErrorRangeStart = -32099, y.serverErrorStart = -32099, y.MessageWriteError = -32099, y.MessageReadError = -32098, y.PendingResponseRejected = -32097, y.ConnectionInactive = -32096, y.ServerNotInitialized = -32002, y.UnknownErrorCode = -32001, y.jsonrpcReservedErrorRangeEnd = -32e3, y.serverErrorEnd = -32e3;
})(r || (e.ErrorCodes = r = {})), e.ResponseError = class Ig extends Error {
static {
i(this, "ResponseError");
}
constructor(v, b, $) {
super(b), this.code = t.number(v) ? v : r.UnknownErrorCode, this.data = $, Object.setPrototypeOf(this, Ig.prototype);
}
toJson() {
const v = {
code: this.code,
message: this.message
};
return this.data !== void 0 && (v.data = this.data), v;
}
};
var n = class Ro {
static {
i(this, "ParameterStructures");
}
constructor(v) {
this.kind = v;
}
static is(v) {
return v === Ro.auto || v === Ro.byName || v === Ro.byPosition;
}
toString() {
return this.kind;
}
};
e.ParameterStructures = n, n.auto = new n("auto"), n.byPosition = new n("byPosition"), n.byName = new n("byName");
var a = class {
static {
i(this, "AbstractMessageSignature");
}
constructor(y, v) {
this.method = y, this.numberOfParams = v;
}
get parameterStructures() {
return n.auto;
}
};
e.AbstractMessageSignature = a;
var s = class extends a {
static {
i(this, "RequestType0");
}
constructor(y) {
super(y, 0);
}
};
e.RequestType0 = s;
var o = class extends a {
static {
i(this, "RequestType");
}
constructor(y, v = n.auto) {
super(y, 1), this._parameterStructures = v;
}
get parameterStructures() {
return this._parameterStructures;
}
};
e.RequestType = o;
var l = class extends a {
static {
i(this, "RequestType1");
}
constructor(y, v = n.auto) {
super(y, 1), this._parameterStructures = v;
}
get parameterStructures() {
return this._parameterStructures;
}
};
e.RequestType1 = l;
var u = class extends a {
static {
i(this, "RequestType2");
}
constructor(y) {
super(y, 2);
}
};
e.RequestType2 = u;
var c = class extends a {
static {
i(this, "RequestType3");
}
constructor(y) {
super(y, 3);
}
};
e.RequestType3 = c;
var f = class extends a {
static {
i(this, "RequestType4");
}
constructor(y) {
super(y, 4);
}
};
e.RequestType4 = f;
var p = class extends a {
static {
i(this, "RequestType5");
}
constructor(y) {
super(y, 5);
}
};
e.RequestType5 = p;
var m = class extends a {
static {
i(this, "RequestType6");
}
constructor(y) {
super(y, 6);
}
};
e.RequestType6 = m;
var T = class extends a {
static {
i(this, "RequestType7");
}
constructor(y) {
super(y, 7);
}
};
e.RequestType7 = T;
var g = class extends a {
static {
i(this, "RequestType8");
}
constructor(y) {
super(y, 8);
}
};
e.RequestType8 = g;
var _ = class extends a {
static {
i(this, "RequestType9");
}
constructor(y) {
super(y, 9);
}
};
e.RequestType9 = _;
var I = class extends a {
static {
i(this, "NotificationType");
}
constructor(y, v = n.auto) {
super(y, 1), this._parameterStructures = v;
}
get parameterStructures() {
return this._parameterStructures;
}
};
e.NotificationType = I;
var N = class extends a {
static {
i(this, "NotificationType0");
}
constructor(y) {
super(y, 0);
}
};
e.Not